CUtlRBTree<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int,CUtlMap<char_const*,ConceptHistory_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int>,int>>::InsertRebalance
0x005d6650 · 2685 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIPKc16ConceptHistory_tiE6Node_tEiNS4_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS5_iEiEE15InsertRebalanceEi
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<char const*, ConceptHistory_t, int>::Node_t, int, CUtlMap<char const*,
ConceptHistory_t, int>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<char const*,
ConceptHistory_t, int>::Node_t, int>, int> >::InsertRebalance(int) */
void __thiscall
CUtlRBTree<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int,CUtlMap<char_const*,ConceptHistory_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int>,int>>
::InsertRebalance(CUtlRBTree<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int,CUtlMap<char_const*,ConceptHistory_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int>,int>>
*this,int param_1)
{
undefined4 *puVar1;
int iVar2;
undefined4 *puVar3;
int iVar4;
int iVar5;
int iVar6;
int *piVar7;
do {
iVar2 = *(int *)(this + 0x10);
if (param_1 == iVar2) {
LAB_005d66af:
*(undefined4 *)(iVar2 * 0xd4 + *(int *)(this + 4) + 0xc) = 1;
return;
}
if (Links(int)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar2 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = -1;
DAT_00f21f7c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_005d69e4;
LAB_005d667f:
puVar1 = (undefined4 *)(param_1 * 0xd4 + *(int *)(this + 4));
}
else {
if (param_1 != -1) goto LAB_005d667f;
LAB_005d69e4:
puVar1 = &Links(int)::s_Sentinel;
}
iVar2 = puVar1[2];
if ((Links(int)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar6 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = -1;
DAT_00f21f7c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar2 == -1) goto LAB_005d69b0;
LAB_005d669c:
puVar1 = (undefined4 *)(iVar2 * 0xd4 + *(int *)(this + 4));
}
else {
if (iVar2 != -1) goto LAB_005d669c;
LAB_005d69b0:
puVar1 = &Links(int)::s_Sentinel;
}
if (puVar1[3] != 0) {
iVar2 = *(int *)(this + 0x10);
goto LAB_005d66af;
}
if (Links(int)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar2 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = -1;
DAT_00f21f7c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_005d6954;
LAB_005d66e8:
puVar1 = (undefined4 *)(param_1 * 0xd4 + *(int *)(this + 4));
}
else {
if (param_1 != -1) goto LAB_005d66e8;
LAB_005d6954:
puVar1 = &Links(int)::s_Sentinel;
}
iVar2 = puVar1[2];
if (Links(int)::s_Sentinel == '\0') {
iVar6 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar6 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = -1;
DAT_00f21f7c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar2 == -1) goto LAB_005d691c;
LAB_005d6705:
puVar1 = (undefined4 *)(iVar2 * 0xd4 + *(int *)(this + 4));
}
else {
if (iVar2 != -1) goto LAB_005d6705;
LAB_005d691c:
puVar1 = &Links(int)::s_Sentinel;
}
iVar6 = puVar1[2];
if (Links(int)::s_Sentinel == '\0') {
iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar5 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = -1;
DAT_00f21f7c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_005d6719;
}
if (iVar2 == -1) goto LAB_005d68ea;
LAB_005d6722:
puVar1 = (undefined4 *)(iVar2 * 0xd4 + *(int *)(this + 4));
}
else {
LAB_005d6719:
if (iVar2 != -1) goto LAB_005d6722;
LAB_005d68ea:
puVar1 = &Links(int)::s_Sentinel;
}
iVar5 = puVar1[2];
if (Links(int)::s_Sentinel == '\0') {
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = -1;
DAT_00f21f7c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_005d6736;
}
if (iVar5 == -1) goto LAB_005d68b0;
LAB_005d673f:
piVar7 = (int *)(iVar5 * 0xd4 + *(int *)(this + 4));
}
else {
LAB_005d6736:
if (iVar5 != -1) goto LAB_005d673f;
LAB_005d68b0:
piVar7 = &Links(int)::s_Sentinel;
}
if (iVar2 == *piVar7) {
if (Links(int)::s_Sentinel == '\0') {
iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar5 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = -1;
DAT_00f21f7c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_005d6754;
}
if (iVar6 == -1) goto LAB_005d6b0a;
LAB_005d675d:
puVar1 = (undefined4 *)(iVar6 * 0xd4 + *(int *)(this + 4));
}
else {
LAB_005d6754:
if (iVar6 != -1) goto LAB_005d675d;
LAB_005d6b0a:
puVar1 = &Links(int)::s_Sentinel;
}
iVar5 = puVar1[1];
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = -1;
DAT_00f21f7c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar4 = DAT_00f21f80;
if (iVar5 != -1) {
iVar4 = *(int *)(iVar5 * 0xd4 + *(int *)(this + 4) + 0xc);
}
if (iVar4 == 0) {
LAB_005d678e:
*(undefined4 *)(iVar2 * 0xd4 + *(int *)(this + 4) + 0xc) = 1;
*(undefined4 *)(iVar5 * 0xd4 + *(int *)(this + 4) + 0xc) = 1;
*(undefined4 *)(iVar6 * 0xd4 + *(int *)(this + 4) + 0xc) = 0;
param_1 = iVar6;
}
else {
if (Links(int)::s_Sentinel == '\0') {
iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar5 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = -1;
DAT_00f21f7c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_005d6a6f;
}
if (param_1 == -1) goto LAB_005d6e5a;
LAB_005d6a78:
iVar5 = *(int *)(param_1 * 0xd4 + *(int *)(this + 4) + 8);
if (Links(int)::s_Sentinel != '\0') goto LAB_005d6a8c;
LAB_005d6e70:
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 == 0) goto LAB_005d6a8c;
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = -1;
DAT_00f21f7c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar5 == -1) goto LAB_005d6ed0;
LAB_005d6a95:
if (param_1 != *(int *)(iVar5 * 0xd4 + *(int *)(this + 4) + 4)) goto LAB_005d6aa7;
LAB_005d6ee0:
RotateLeft(this,iVar2);
if ((Links(int)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar6 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = -1;
DAT_00f21f7c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar2 == -1) {
puVar1 = &Links(int)::s_Sentinel;
}
else {
puVar1 = (undefined4 *)(iVar2 * 0xd4 + *(int *)(this + 4));
}
iVar6 = puVar1[2];
if ((Links(int)::s_Sentinel == '\0') &&
(iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar5 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = -1;
DAT_00f21f7c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar6 == -1) {
puVar1 = &Links(int)::s_Sentinel;
puVar3 = (undefined4 *)(*(int *)(this + 4) + -0xd4);
}
else {
puVar3 = (undefined4 *)(iVar6 * 0xd4 + *(int *)(this + 4));
puVar1 = puVar3;
}
iVar6 = puVar1[2];
}
else {
LAB_005d6a6f:
if (param_1 != -1) goto LAB_005d6a78;
LAB_005d6e5a:
iVar5 = DAT_00f21f7c;
if (Links(int)::s_Sentinel == '\0') goto LAB_005d6e70;
LAB_005d6a8c:
if (iVar5 != -1) goto LAB_005d6a95;
LAB_005d6ed0:
if (param_1 == DAT_00f21f78) goto LAB_005d6ee0;
LAB_005d6aa7:
puVar3 = (undefined4 *)(iVar2 * 0xd4 + *(int *)(this + 4));
iVar2 = param_1;
}
puVar3[3] = 1;
*(undefined4 *)(iVar6 * 0xd4 + *(int *)(this + 4) + 0xc) = 0;
RotateRight(this,iVar6);
param_1 = iVar2;
}
}
else {
if (Links(int)::s_Sentinel == '\0') {
iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar5 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = -1;
DAT_00f21f7c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_005d67d0;
}
if (iVar6 == -1) goto LAB_005d6bb2;
LAB_005d67d9:
piVar7 = (int *)(iVar6 * 0xd4 + *(int *)(this + 4));
}
else {
LAB_005d67d0:
if (iVar6 != -1) goto LAB_005d67d9;
LAB_005d6bb2:
piVar7 = &Links(int)::s_Sentinel;
}
iVar5 = *piVar7;
if ((Links(int)::s_Sentinel == '\0') &&
(iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = -1;
DAT_00f21f7c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar5 == -1) goto LAB_005d6b78;
LAB_005d67f5:
puVar1 = (undefined4 *)(iVar5 * 0xd4 + *(int *)(this + 4));
}
else {
if (iVar5 != -1) goto LAB_005d67f5;
LAB_005d6b78:
puVar1 = &Links(int)::s_Sentinel;
}
if (puVar1[3] == 0) goto LAB_005d678e;
if (Links(int)::s_Sentinel == '\0') {
iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar5 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = -1;
DAT_00f21f7c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_005d6814;
}
if (param_1 == -1) goto LAB_005d6daa;
LAB_005d681d:
iVar5 = *(int *)(param_1 * 0xd4 + *(int *)(this + 4) + 8);
if (Links(int)::s_Sentinel != '\0') goto LAB_005d6831;
LAB_005d6dc0:
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 == 0) goto LAB_005d6831;
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = -1;
DAT_00f21f7c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar5 == -1) goto LAB_005d6e20;
LAB_005d683a:
piVar7 = (int *)(iVar5 * 0xd4 + *(int *)(this + 4));
}
else {
LAB_005d6814:
if (param_1 != -1) goto LAB_005d681d;
LAB_005d6daa:
iVar5 = DAT_00f21f7c;
if (Links(int)::s_Sentinel == '\0') goto LAB_005d6dc0;
LAB_005d6831:
if (iVar5 != -1) goto LAB_005d683a;
LAB_005d6e20:
piVar7 = &Links(int)::s_Sentinel;
}
if (param_1 == *piVar7) {
RotateRight(this,iVar2);
if ((Links(int)::s_Sentinel == '\0') &&
(iVar6 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar6 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = -1;
DAT_00f21f7c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar2 == -1) {
puVar1 = &Links(int)::s_Sentinel;
}
else {
puVar1 = (undefined4 *)(iVar2 * 0xd4 + *(int *)(this + 4));
}
iVar6 = puVar1[2];
if ((Links(int)::s_Sentinel == '\0') &&
(iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar5 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = -1;
DAT_00f21f7c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar6 == -1) {
puVar1 = &Links(int)::s_Sentinel;
puVar3 = (undefined4 *)(*(int *)(this + 4) + -0xd4);
}
else {
puVar3 = (undefined4 *)(iVar6 * 0xd4 + *(int *)(this + 4));
puVar1 = puVar3;
}
iVar6 = puVar1[2];
}
else {
puVar3 = (undefined4 *)(iVar2 * 0xd4 + *(int *)(this + 4));
iVar2 = param_1;
}
puVar3[3] = 1;
*(undefined4 *)(iVar6 * 0xd4 + *(int *)(this + 4) + 0xc) = 0;
RotateLeft(this,iVar6);
param_1 = iVar2;
}
} while( true );
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
Just a Signatures{} block, ready to drop into a gamedata
file. Wire it up in your plugin however you like - SDKCall, DHooks,
raw memory ops, or anything else.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.