CUtlRBTree<ThinkSync,unsigned_short,bool(*)(ThinkSync_const&,ThinkSync_const&),CUtlMemory<UtlRBTreeNode_t<ThinkSync,unsigned_short>,unsigned_short>>::NextInorder
0x0047b830 · 1176 bytes · __thiscall
_ZNK10CUtlRBTreeI9ThinkSynctPFbRKS0_S2_E10CUtlMemoryI15UtlRBTreeNode_tIS0_tEtEE11NextInorderEt
Decompiled
undefined (2 params)
/* CUtlRBTree<ThinkSync, unsigned short, bool (*)(ThinkSync const&, ThinkSync const&),
CUtlMemory<UtlRBTreeNode_t<ThinkSync, unsigned short>, unsigned short> >::NextInorder(unsigned
short) const */
ushort __thiscall
CUtlRBTree<ThinkSync,unsigned_short,bool(*)(ThinkSync_const&,ThinkSync_const&),CUtlMemory<UtlRBTreeNode_t<ThinkSync,unsigned_short>,unsigned_short>>
::NextInorder(CUtlRBTree<ThinkSync,unsigned_short,bool(*)(ThinkSync_const&,ThinkSync_const&),CUtlMemory<UtlRBTreeNode_t<ThinkSync,unsigned_short>,unsigned_short>>
*this,ushort param_1)
{
ushort uVar1;
short sVar2;
int iVar3;
ushort *puVar4;
undefined2 *puVar5;
short sVar6;
uint uVar7;
short sVar8;
uint uVar9;
uVar1 = param_1;
_param_1 = (uint)param_1;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
Links(unsigned_short)::s_Sentinel = -1;
DAT_00f1624c = -1;
DAT_00f1624e = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar8 = DAT_00f1624c;
if (uVar1 != 0xffff) {
sVar8 = *(short *)(*(int *)(this + 4) + (uint)uVar1 * 0x24 + 2);
}
if (sVar8 == -1) {
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
Links(unsigned_short)::s_Sentinel = -1;
DAT_00f1624c = -1;
DAT_00f1624e = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) {
puVar5 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar5 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar1 * 0x24);
}
uVar1 = puVar5[2];
do {
uVar9 = (uint)uVar1;
sVar8 = (short)_param_1;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
DAT_00f1624c = -1;
DAT_00f1624e = 0xffff;
Links(unsigned_short)::s_Sentinel = -1;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_0047ba28;
}
if (sVar8 != -1) goto LAB_0047ba32;
LAB_0047babf:
uVar7 = (uint)DAT_00f1624e;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_0047ba4a;
LAB_0047bad0:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 == 0) goto LAB_0047ba4a;
DAT_00f1624c = -1;
Links(unsigned_short)::s_Sentinel = -1;
DAT_00f1624e = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
sVar6 = (short)uVar7;
}
else {
LAB_0047ba28:
if (sVar8 == -1) goto LAB_0047babf;
LAB_0047ba32:
uVar7 = (uint)*(ushort *)(*(int *)(this + 4) + _param_1 * 0x24 + 4);
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_0047bad0;
LAB_0047ba4a:
sVar6 = (short)uVar7;
}
sVar2 = DAT_00f1624c;
if (sVar6 != -1) {
sVar2 = *(short *)(*(int *)(this + 4) + uVar7 * 0x24 + 2);
}
if (sVar8 != sVar2) {
return uVar1;
}
if (uVar1 == 0xffff) {
return 0xffff;
}
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
Links(unsigned_short)::s_Sentinel = -1;
DAT_00f1624c = -1;
DAT_00f1624e = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
uVar1 = *(ushort *)(*(int *)(this + 4) + 4 + uVar9 * 0x24);
_param_1 = uVar9;
} while( true );
}
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
Links(unsigned_short)::s_Sentinel = -1;
DAT_00f1624c = -1;
DAT_00f1624e = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) {
puVar5 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar5 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar1 * 0x24);
}
uVar1 = puVar5[1];
do {
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
DAT_00f1624c = -1;
Links(unsigned_short)::s_Sentinel = -1;
DAT_00f1624e = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar8 = Links(unsigned_short)::s_Sentinel;
if (uVar1 != 0xffff) {
sVar8 = *(short *)(*(int *)(this + 4) + (uint)uVar1 * 0x24);
}
if (sVar8 == -1) {
return uVar1;
}
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
Links(unsigned_short)::s_Sentinel = -1;
DAT_00f1624c = -1;
DAT_00f1624e = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 != 0xffff) goto LAB_0047b8d9;
LAB_0047b981:
puVar4 = (ushort *)&Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar1 == 0xffff) goto LAB_0047b981;
LAB_0047b8d9:
puVar4 = (ushort *)(*(int *)(this + 4) + (uint)uVar1 * 0x24);
}
uVar1 = *puVar4;
} 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.