CUtlRBTree<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int,CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int>,int>>::InsertRebalance
0x0006a310 · 2685 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIjN5GCSDK16JobStatsBucket_tEiE6Node_tEiNS3_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS4_iEiEE15InsertRebalanceEi
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<unsigned int, GCSDK::JobStatsBucket_t, int>::Node_t, int, CUtlMap<unsigned
int, GCSDK::JobStatsBucket_t, int>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned int,
GCSDK::JobStatsBucket_t, int>::Node_t, int>, int> >::InsertRebalance(int) */
void __thiscall
CUtlRBTree<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int,CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int>,int>>
::InsertRebalance(CUtlRBTree<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int,CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_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_0006a36f:
*(undefined4 *)(iVar2 * 0xec + *(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_000d2844 = -1;
DAT_000d2848 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_0006a6a4;
LAB_0006a33f:
puVar1 = (undefined4 *)(param_1 * 0xec + *(int *)(this + 4));
}
else {
if (param_1 != -1) goto LAB_0006a33f;
LAB_0006a6a4:
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_000d2844 = -1;
DAT_000d2848 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar2 == -1) goto LAB_0006a670;
LAB_0006a35c:
puVar1 = (undefined4 *)(iVar2 * 0xec + *(int *)(this + 4));
}
else {
if (iVar2 != -1) goto LAB_0006a35c;
LAB_0006a670:
puVar1 = &Links(int)::s_Sentinel;
}
if (puVar1[3] != 0) {
iVar2 = *(int *)(this + 0x10);
goto LAB_0006a36f;
}
if (Links(int)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar2 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_000d2844 = -1;
DAT_000d2848 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_0006a614;
LAB_0006a3a8:
puVar1 = (undefined4 *)(param_1 * 0xec + *(int *)(this + 4));
}
else {
if (param_1 != -1) goto LAB_0006a3a8;
LAB_0006a614:
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_000d2844 = -1;
DAT_000d2848 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar2 == -1) goto LAB_0006a5dc;
LAB_0006a3c5:
puVar1 = (undefined4 *)(iVar2 * 0xec + *(int *)(this + 4));
}
else {
if (iVar2 != -1) goto LAB_0006a3c5;
LAB_0006a5dc:
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_000d2844 = -1;
DAT_000d2848 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_0006a3d9;
}
if (iVar2 == -1) goto LAB_0006a5aa;
LAB_0006a3e2:
puVar1 = (undefined4 *)(iVar2 * 0xec + *(int *)(this + 4));
}
else {
LAB_0006a3d9:
if (iVar2 != -1) goto LAB_0006a3e2;
LAB_0006a5aa:
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_000d2844 = -1;
DAT_000d2848 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_0006a3f6;
}
if (iVar5 == -1) goto LAB_0006a570;
LAB_0006a3ff:
piVar7 = (int *)(iVar5 * 0xec + *(int *)(this + 4));
}
else {
LAB_0006a3f6:
if (iVar5 != -1) goto LAB_0006a3ff;
LAB_0006a570:
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_000d2844 = -1;
DAT_000d2848 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_0006a414;
}
if (iVar6 == -1) goto LAB_0006a7ca;
LAB_0006a41d:
puVar1 = (undefined4 *)(iVar6 * 0xec + *(int *)(this + 4));
}
else {
LAB_0006a414:
if (iVar6 != -1) goto LAB_0006a41d;
LAB_0006a7ca:
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_000d2844 = -1;
DAT_000d2848 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar4 = DAT_000d284c;
if (iVar5 != -1) {
iVar4 = *(int *)(iVar5 * 0xec + *(int *)(this + 4) + 0xc);
}
if (iVar4 == 0) {
LAB_0006a44e:
*(undefined4 *)(iVar2 * 0xec + *(int *)(this + 4) + 0xc) = 1;
*(undefined4 *)(iVar5 * 0xec + *(int *)(this + 4) + 0xc) = 1;
*(undefined4 *)(iVar6 * 0xec + *(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_000d2844 = -1;
DAT_000d2848 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_0006a72f;
}
if (param_1 == -1) goto LAB_0006ab1a;
LAB_0006a738:
iVar5 = *(int *)(param_1 * 0xec + *(int *)(this + 4) + 8);
if (Links(int)::s_Sentinel != '\0') goto LAB_0006a74c;
LAB_0006ab30:
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 == 0) goto LAB_0006a74c;
Links(int)::s_Sentinel = 0xffffffff;
DAT_000d2844 = -1;
DAT_000d2848 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar5 == -1) goto LAB_0006ab90;
LAB_0006a755:
if (param_1 != *(int *)(iVar5 * 0xec + *(int *)(this + 4) + 4)) goto LAB_0006a767;
LAB_0006aba0:
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_000d2844 = -1;
DAT_000d2848 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar2 == -1) {
puVar1 = &Links(int)::s_Sentinel;
}
else {
puVar1 = (undefined4 *)(iVar2 * 0xec + *(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_000d2844 = -1;
DAT_000d2848 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar6 == -1) {
puVar1 = &Links(int)::s_Sentinel;
puVar3 = (undefined4 *)(*(int *)(this + 4) + -0xec);
}
else {
puVar3 = (undefined4 *)(iVar6 * 0xec + *(int *)(this + 4));
puVar1 = puVar3;
}
iVar6 = puVar1[2];
}
else {
LAB_0006a72f:
if (param_1 != -1) goto LAB_0006a738;
LAB_0006ab1a:
iVar5 = DAT_000d2848;
if (Links(int)::s_Sentinel == '\0') goto LAB_0006ab30;
LAB_0006a74c:
if (iVar5 != -1) goto LAB_0006a755;
LAB_0006ab90:
if (param_1 == DAT_000d2844) goto LAB_0006aba0;
LAB_0006a767:
puVar3 = (undefined4 *)(iVar2 * 0xec + *(int *)(this + 4));
iVar2 = param_1;
}
puVar3[3] = 1;
*(undefined4 *)(iVar6 * 0xec + *(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_000d2844 = -1;
DAT_000d2848 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_0006a490;
}
if (iVar6 == -1) goto LAB_0006a872;
LAB_0006a499:
piVar7 = (int *)(iVar6 * 0xec + *(int *)(this + 4));
}
else {
LAB_0006a490:
if (iVar6 != -1) goto LAB_0006a499;
LAB_0006a872:
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_000d2844 = -1;
DAT_000d2848 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar5 == -1) goto LAB_0006a838;
LAB_0006a4b5:
puVar1 = (undefined4 *)(iVar5 * 0xec + *(int *)(this + 4));
}
else {
if (iVar5 != -1) goto LAB_0006a4b5;
LAB_0006a838:
puVar1 = &Links(int)::s_Sentinel;
}
if (puVar1[3] == 0) goto LAB_0006a44e;
if (Links(int)::s_Sentinel == '\0') {
iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar5 != 0) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_000d2844 = -1;
DAT_000d2848 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
goto LAB_0006a4d4;
}
if (param_1 == -1) goto LAB_0006aa6a;
LAB_0006a4dd:
iVar5 = *(int *)(param_1 * 0xec + *(int *)(this + 4) + 8);
if (Links(int)::s_Sentinel != '\0') goto LAB_0006a4f1;
LAB_0006aa80:
iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar4 == 0) goto LAB_0006a4f1;
Links(int)::s_Sentinel = 0xffffffff;
DAT_000d2844 = -1;
DAT_000d2848 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar5 == -1) goto LAB_0006aae0;
LAB_0006a4fa:
piVar7 = (int *)(iVar5 * 0xec + *(int *)(this + 4));
}
else {
LAB_0006a4d4:
if (param_1 != -1) goto LAB_0006a4dd;
LAB_0006aa6a:
iVar5 = DAT_000d2848;
if (Links(int)::s_Sentinel == '\0') goto LAB_0006aa80;
LAB_0006a4f1:
if (iVar5 != -1) goto LAB_0006a4fa;
LAB_0006aae0:
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_000d2844 = -1;
DAT_000d2848 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar2 == -1) {
puVar1 = &Links(int)::s_Sentinel;
}
else {
puVar1 = (undefined4 *)(iVar2 * 0xec + *(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_000d2844 = -1;
DAT_000d2848 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (iVar6 == -1) {
puVar1 = &Links(int)::s_Sentinel;
puVar3 = (undefined4 *)(*(int *)(this + 4) + -0xec);
}
else {
puVar3 = (undefined4 *)(iVar6 * 0xec + *(int *)(this + 4));
puVar1 = puVar3;
}
iVar6 = puVar1[2];
}
else {
puVar3 = (undefined4 *)(iVar2 * 0xec + *(int *)(this + 4));
iVar2 = param_1;
}
puVar3[3] = 1;
*(undefined4 *)(iVar6 * 0xec + *(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.