CUtlRBTree<ccpair,int,bool(*)(ccpair_const&,ccpair_const&),CUtlMemory<UtlRBTreeNode_t<ccpair,int>,int>>::NextInorder
0x000f4270 · 980 bytes · __thiscall
_ZNK10CUtlRBTreeI6ccpairiPFbRKS0_S2_E10CUtlMemoryI15UtlRBTreeNode_tIS0_iEiEE11NextInorderEi
Decompiled
undefined (2 params)
/* CUtlRBTree<ccpair, int, bool (*)(ccpair const&, ccpair const&),
CUtlMemory<UtlRBTreeNode_t<ccpair, int>, int> >::NextInorder(int) const */
int __thiscall
CUtlRBTree<ccpair,int,bool(*)(ccpair_const&,ccpair_const&),CUtlMemory<UtlRBTreeNode_t<ccpair,int>,int>>
::NextInorder(CUtlRBTree<ccpair,int,bool(*)(ccpair_const&,ccpair_const&),CUtlMemory<UtlRBTreeNode_t<ccpair,int>,int>>
*this,int param_1)
{
int iVar1;
int iVar2;
int iVar3;
undefined4 *puVar4;
if ((Links(int)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar2 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_0034074c = -1;
DAT_00340750 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar2 = DAT_0034074c;
if (param_1 != -1) {
iVar2 = *(int *)(param_1 * 0x310 + *(int *)(this + 4) + 4);
}
if (iVar2 != -1) {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar2 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_0034074c = -1;
DAT_00340750 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) {
puVar4 = &Links(int)::s_Sentinel;
}
else {
puVar4 = (undefined4 *)(param_1 * 0x310 + *(int *)(this + 4));
}
iVar2 = puVar4[1];
if (Links(int)::s_Sentinel == '\0') goto LAB_000f4306;
LAB_000f42d0:
if (iVar2 == -1) goto LAB_000f4348;
do {
iVar1 = iVar2;
if (*(int *)(iVar2 * 0x310 + *(int *)(this + 4)) == -1) {
return iVar2;
}
while( true ) {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar2 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_0034074c = -1;
DAT_00340750 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar2 = Links(int)::s_Sentinel;
if (iVar1 != -1) {
iVar2 = *(int *)(iVar1 * 0x310 + *(int *)(this + 4));
}
if (Links(int)::s_Sentinel != '\0') goto LAB_000f42d0;
LAB_000f4306:
iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar1 == 0) goto LAB_000f42d0;
Links(int)::s_Sentinel = -1;
DAT_0034074c = -1;
DAT_00340750 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar2 != -1) break;
LAB_000f4348:
iVar1 = iVar2;
if (Links(int)::s_Sentinel == -1) {
return iVar2;
}
}
} while( true );
}
if ((Links(int)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar2 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_0034074c = -1;
DAT_00340750 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) {
puVar4 = &Links(int)::s_Sentinel;
}
else {
puVar4 = (undefined4 *)(param_1 * 0x310 + *(int *)(this + 4));
}
do {
iVar2 = puVar4[2];
if (Links(int)::s_Sentinel == '\0') {
iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar1 != 0) {
Links(int)::s_Sentinel = -1;
DAT_0034074c = -1;
DAT_00340750 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_000f449a;
LAB_000f4425:
iVar1 = *(int *)(param_1 * 0x310 + *(int *)(this + 4) + 8);
if (Links(int)::s_Sentinel == '\0') goto LAB_000f44b0;
LAB_000f4435:
if (iVar1 == -1) goto LAB_000f4500;
LAB_000f443e:
puVar4 = (undefined4 *)(iVar1 * 0x310 + *(int *)(this + 4));
}
else {
if (param_1 != -1) goto LAB_000f4425;
LAB_000f449a:
iVar1 = DAT_00340750;
if (Links(int)::s_Sentinel != '\0') goto LAB_000f4435;
LAB_000f44b0:
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 == 0) goto LAB_000f4435;
Links(int)::s_Sentinel = -1;
DAT_0034074c = -1;
DAT_00340750 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar1 != -1) goto LAB_000f443e;
LAB_000f4500:
puVar4 = &Links(int)::s_Sentinel;
}
if (param_1 != puVar4[1]) {
return iVar2;
}
if (iVar2 == -1) {
return -1;
}
if ((Links(int)::s_Sentinel == '\0') &&
(iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar1 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_0034074c = -1;
DAT_00340750 = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
puVar4 = (undefined4 *)(iVar2 * 0x310 + *(int *)(this + 4));
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.