CUtlRBTree<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int,CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int>,int>>::InsertRebalance
0x00066a40 · 2727 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIyPN5GCSDK4CJobEiE6Node_tEiNS4_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS5_iEiEE15InsertRebalanceEi
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<unsigned long long, GCSDK::CJob*, int>::Node_t, int, CUtlMap<unsigned long
long, GCSDK::CJob*, int>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned long long,
GCSDK::CJob*, int>::Node_t, int>, int> >::InsertRebalance(int) */
void __thiscall
CUtlRBTree<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int,CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int>,int>>
::InsertRebalance(CUtlRBTree<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int,CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,GCSDK::CJob*,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_00066aa7:
*(undefined4 *)(iVar2 * 0x1c + *(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_000d282c = -1;
DAT_000d2830 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_00066de4;
LAB_00066a6f:
puVar1 = (undefined4 *)(param_1 * 0x1c + *(int *)(this + 4));
}
else {
if (param_1 != -1) goto LAB_00066a6f;
LAB_00066de4:
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_000d282c = -1;
DAT_000d2830 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar2 == -1) goto LAB_00066db0;
LAB_00066a90:
puVar1 = (undefined4 *)(iVar2 * 0x1c + *(int *)(this + 4));
}
else {
if (iVar2 != -1) goto LAB_00066a90;
LAB_00066db0:
puVar1 = &Links(int)::s_Sentinel;
}
if (puVar1[3] != 0) {
iVar2 = *(int *)(this + 0x10);
goto LAB_00066aa7;
}
if (Links(int)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar2 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_000d282c = -1;
DAT_000d2830 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_00066d54;
LAB_00066ae0:
puVar1 = (undefined4 *)(param_1 * 0x1c + *(int *)(this + 4));
}
else {
if (param_1 != -1) goto LAB_00066ae0;
LAB_00066d54:
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_000d282c = -1;
DAT_000d2830 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar2 == -1) goto LAB_00066d1c;
LAB_00066b01:
puVar1 = (undefined4 *)(iVar2 * 0x1c + *(int *)(this + 4));
}
else {
if (iVar2 != -1) goto LAB_00066b01;
LAB_00066d1c:
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_000d282c = -1;
DAT_000d2830 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_00066b19;
}
if (iVar2 == -1) goto LAB_00066cea;
LAB_00066b22:
puVar1 = (undefined4 *)(iVar2 * 0x1c + *(int *)(this + 4));
}
else {
LAB_00066b19:
if (iVar2 != -1) goto LAB_00066b22;
LAB_00066cea:
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_000d282c = -1;
DAT_000d2830 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_00066b33;
}
if (iVar5 == -1) goto LAB_00066cb0;
LAB_00066b3c:
piVar7 = (int *)(iVar5 * 0x1c + *(int *)(this + 4));
}
else {
LAB_00066b33:
if (iVar5 != -1) goto LAB_00066b3c;
LAB_00066cb0:
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_000d282c = -1;
DAT_000d2830 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_00066b52;
}
if (iVar6 == -1) goto LAB_00066f12;
LAB_00066b5b:
puVar1 = (undefined4 *)(iVar6 * 0x1c + *(int *)(this + 4));
}
else {
LAB_00066b52:
if (iVar6 != -1) goto LAB_00066b5b;
LAB_00066f12:
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_000d282c = -1;
DAT_000d2830 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar4 = DAT_000d2834;
if (iVar5 != -1) {
iVar4 = *(int *)(iVar5 * 0x1c + *(int *)(this + 4) + 0xc);
}
if (iVar4 == 0) {
LAB_00066b86:
*(undefined4 *)(iVar2 * 0x1c + *(int *)(this + 4) + 0xc) = 1;
*(undefined4 *)(iVar5 * 0x1c + *(int *)(this + 4) + 0xc) = 1;
*(undefined4 *)(iVar6 * 0x1c + *(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_000d282c = -1;
DAT_000d2830 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_00066e6f;
}
if (param_1 == -1) goto LAB_0006726a;
LAB_00066e78:
iVar5 = *(int *)(param_1 * 0x1c + *(int *)(this + 4) + 8);
if (Links(int)::s_Sentinel != '\0') goto LAB_00066e89;
LAB_00067280:
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 == 0) goto LAB_00066e89;
Links(int)::s_Sentinel = 0xffffffff;
DAT_000d282c = -1;
DAT_000d2830 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar5 == -1) goto LAB_000672e0;
LAB_00066e92:
if (param_1 != *(int *)(iVar5 * 0x1c + *(int *)(this + 4) + 4)) goto LAB_00066ea8;
LAB_000672f0:
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_000d282c = -1;
DAT_000d2830 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar2 == -1) {
puVar1 = &Links(int)::s_Sentinel;
}
else {
puVar1 = (undefined4 *)(iVar2 * 0x1c + *(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_000d282c = -1;
DAT_000d2830 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar6 == -1) {
puVar1 = &Links(int)::s_Sentinel;
puVar3 = (undefined4 *)(*(int *)(this + 4) + -0x1c);
}
else {
puVar3 = (undefined4 *)(iVar6 * 0x1c + *(int *)(this + 4));
puVar1 = puVar3;
}
iVar6 = puVar1[2];
}
else {
LAB_00066e6f:
if (param_1 != -1) goto LAB_00066e78;
LAB_0006726a:
iVar5 = DAT_000d2830;
if (Links(int)::s_Sentinel == '\0') goto LAB_00067280;
LAB_00066e89:
if (iVar5 != -1) goto LAB_00066e92;
LAB_000672e0:
if (param_1 == DAT_000d282c) goto LAB_000672f0;
LAB_00066ea8:
puVar3 = (undefined4 *)(iVar2 * 0x1c + *(int *)(this + 4));
iVar2 = param_1;
}
puVar3[3] = 1;
*(undefined4 *)(iVar6 * 0x1c + *(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_000d282c = -1;
DAT_000d2830 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_00066bd0;
}
if (iVar6 == -1) goto LAB_00066fba;
LAB_00066bd9:
piVar7 = (int *)(iVar6 * 0x1c + *(int *)(this + 4));
}
else {
LAB_00066bd0:
if (iVar6 != -1) goto LAB_00066bd9;
LAB_00066fba:
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_000d282c = -1;
DAT_000d2830 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar5 == -1) goto LAB_00066f80;
LAB_00066bf2:
puVar1 = (undefined4 *)(iVar5 * 0x1c + *(int *)(this + 4));
}
else {
if (iVar5 != -1) goto LAB_00066bf2;
LAB_00066f80:
puVar1 = &Links(int)::s_Sentinel;
}
if (puVar1[3] == 0) goto LAB_00066b86;
if (Links(int)::s_Sentinel == '\0') {
iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar5 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_000d282c = -1;
DAT_000d2830 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_00066c0e;
}
if (param_1 == -1) goto LAB_000671ba;
LAB_00066c17:
iVar5 = *(int *)(param_1 * 0x1c + *(int *)(this + 4) + 8);
if (Links(int)::s_Sentinel != '\0') goto LAB_00066c28;
LAB_000671d0:
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 == 0) goto LAB_00066c28;
Links(int)::s_Sentinel = 0xffffffff;
DAT_000d282c = -1;
DAT_000d2830 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar5 == -1) goto LAB_00067230;
LAB_00066c31:
piVar7 = (int *)(iVar5 * 0x1c + *(int *)(this + 4));
}
else {
LAB_00066c0e:
if (param_1 != -1) goto LAB_00066c17;
LAB_000671ba:
iVar5 = DAT_000d2830;
if (Links(int)::s_Sentinel == '\0') goto LAB_000671d0;
LAB_00066c28:
if (iVar5 != -1) goto LAB_00066c31;
LAB_00067230:
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_000d282c = -1;
DAT_000d2830 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar2 == -1) {
puVar1 = &Links(int)::s_Sentinel;
}
else {
puVar1 = (undefined4 *)(iVar2 * 0x1c + *(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_000d282c = -1;
DAT_000d2830 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar6 == -1) {
puVar1 = &Links(int)::s_Sentinel;
puVar3 = (undefined4 *)(*(int *)(this + 4) + -0x1c);
}
else {
puVar3 = (undefined4 *)(iVar6 * 0x1c + *(int *)(this + 4));
puVar1 = puVar3;
}
iVar6 = puVar1[2];
}
else {
puVar3 = (undefined4 *)(iVar2 * 0x1c + *(int *)(this + 4));
iVar2 = param_1;
}
puVar3[3] = 1;
*(undefined4 *)(iVar6 * 0x1c + *(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.