CUtlRBTree<CUtlMap<char_const*,EventGroup,int>::Node_t,int,CUtlMap<char_const*,EventGroup,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,EventGroup,int>::Node_t,int>,int>>::NextInorder
0x00ba12c0 · 1000 bytes · __thiscall
_ZNK10CUtlRBTreeIN7CUtlMapIPKc10EventGroupiE6Node_tEiNS4_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS5_iEiEE11NextInorderEi
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<char const*, EventGroup, int>::Node_t, int, CUtlMap<char const*, EventGroup,
int>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<char const*, EventGroup, int>::Node_t, int>,
int> >::NextInorder(int) const */
int __thiscall
CUtlRBTree<CUtlMap<char_const*,EventGroup,int>::Node_t,int,CUtlMap<char_const*,EventGroup,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,EventGroup,int>::Node_t,int>,int>>
::NextInorder(CUtlRBTree<CUtlMap<char_const*,EventGroup,int>::Node_t,int,CUtlMap<char_const*,EventGroup,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,EventGroup,int>::Node_t,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_00f6d208 = -1;
DAT_00f6d20c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar2 = DAT_00f6d208;
if (param_1 != -1) {
iVar2 = *(int *)(param_1 * 0x30 + *(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_00f6d208 = -1;
DAT_00f6d20c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) {
puVar4 = &Links(int)::s_Sentinel;
}
else {
puVar4 = (undefined4 *)(param_1 * 0x30 + *(int *)(this + 4));
}
iVar2 = puVar4[1];
if (Links(int)::s_Sentinel == '\0') goto LAB_00ba135a;
LAB_00ba1320:
if (iVar2 == -1) goto LAB_00ba13a0;
do {
iVar1 = iVar2;
if (*(int *)(iVar2 * 0x30 + *(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_00f6d208 = -1;
DAT_00f6d20c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar2 = Links(int)::s_Sentinel;
if (iVar1 != -1) {
iVar2 = *(int *)(iVar1 * 0x30 + *(int *)(this + 4));
}
if (Links(int)::s_Sentinel != '\0') goto LAB_00ba1320;
LAB_00ba135a:
iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar1 == 0) goto LAB_00ba1320;
Links(int)::s_Sentinel = -1;
DAT_00f6d208 = -1;
DAT_00f6d20c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar2 != -1) break;
LAB_00ba13a0:
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_00f6d208 = -1;
DAT_00f6d20c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) {
puVar4 = &Links(int)::s_Sentinel;
}
else {
puVar4 = (undefined4 *)(param_1 * 0x30 + *(int *)(this + 4));
}
iVar2 = puVar4[2];
do {
iVar1 = iVar2;
if (Links(int)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar2 != 0) {
Links(int)::s_Sentinel = -1;
DAT_00f6d208 = -1;
DAT_00f6d20c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
if (param_1 == -1) goto LAB_00ba14fa;
LAB_00ba1485:
iVar2 = *(int *)(param_1 * 0x30 + *(int *)(this + 4) + 8);
if (Links(int)::s_Sentinel == '\0') goto LAB_00ba1510;
LAB_00ba1495:
if (iVar2 == -1) goto LAB_00ba1560;
LAB_00ba149e:
puVar4 = (undefined4 *)(iVar2 * 0x30 + *(int *)(this + 4));
}
else {
if (param_1 != -1) goto LAB_00ba1485;
LAB_00ba14fa:
iVar2 = DAT_00f6d20c;
if (Links(int)::s_Sentinel != '\0') goto LAB_00ba1495;
LAB_00ba1510:
iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
if (iVar3 == 0) goto LAB_00ba1495;
Links(int)::s_Sentinel = -1;
DAT_00f6d208 = -1;
DAT_00f6d20c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
if (iVar2 != -1) goto LAB_00ba149e;
LAB_00ba1560:
puVar4 = &Links(int)::s_Sentinel;
}
if (param_1 != puVar4[1]) {
return iVar1;
}
if (iVar1 == -1) {
return -1;
}
if ((Links(int)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar2 != 0)) {
Links(int)::s_Sentinel = -1;
DAT_00f6d208 = -1;
DAT_00f6d20c = -1;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
iVar2 = *(int *)(iVar1 * 0x30 + *(int *)(this + 4) + 8);
param_1 = iVar1;
} 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.