CUtlRBTree<CHandle<CBaseEntity>,unsigned_short,bool(*)(CHandle<CBaseEntity>const&,CHandle<CBaseEntity>const&),CUtlMemory<UtlRBTreeNode_t<CHandle<CBaseEntity>,unsigned_short>,unsigned_short>>::NextInorder
0x007ce6f0 · 943 bytes · __thiscall
_ZNK10CUtlRBTreeI7CHandleI11CBaseEntityEtPFbRKS2_S4_E10CUtlMemoryI15UtlRBTreeNode_tIS2_tEtEE11NextInorderEt
Decompiled
undefined (2 params)
/* CUtlRBTree<CHandle<CBaseEntity>, unsigned short, bool (*)(CHandle<CBaseEntity> const&,
CHandle<CBaseEntity> const&), CUtlMemory<UtlRBTreeNode_t<CHandle<CBaseEntity>, unsigned short>,
unsigned short> >::NextInorder(unsigned short) const */
ushort __thiscall
CUtlRBTree<CHandle<CBaseEntity>,unsigned_short,bool(*)(CHandle<CBaseEntity>const&,CHandle<CBaseEntity>const&),CUtlMemory<UtlRBTreeNode_t<CHandle<CBaseEntity>,unsigned_short>,unsigned_short>>
::NextInorder(CUtlRBTree<CHandle<CBaseEntity>,unsigned_short,bool(*)(CHandle<CBaseEntity>const&,CHandle<CBaseEntity>const&),CUtlMemory<UtlRBTreeNode_t<CHandle<CBaseEntity>,unsigned_short>,unsigned_short>>
*this,ushort param_1)
{
ushort uVar1;
short sVar2;
int iVar3;
undefined2 *puVar4;
ushort *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_00f4ee6a = -1;
DAT_00f4ee6c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar1 * 0xc);
}
if (puVar4[1] == -1) {
iVar3 = Links(this,uVar1);
uVar1 = *(ushort *)(iVar3 + 4);
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_00f4ee6a = -1;
DAT_00f4ee6c = 0xffff;
Links(unsigned_short)::s_Sentinel = -1;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_007ce8d8;
}
if (sVar8 != -1) goto LAB_007ce8e2;
LAB_007ce96f:
uVar7 = (uint)DAT_00f4ee6c;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_007ce8fa;
LAB_007ce980:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 == 0) goto LAB_007ce8fa;
DAT_00f4ee6a = -1;
Links(unsigned_short)::s_Sentinel = -1;
DAT_00f4ee6c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
sVar6 = (short)uVar7;
}
else {
LAB_007ce8d8:
if (sVar8 == -1) goto LAB_007ce96f;
LAB_007ce8e2:
uVar7 = (uint)*(ushort *)(*(int *)(this + 4) + _param_1 * 0xc + 4);
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_007ce980;
LAB_007ce8fa:
sVar6 = (short)uVar7;
}
sVar2 = DAT_00f4ee6a;
if (sVar6 != -1) {
sVar2 = *(short *)(*(int *)(this + 4) + uVar7 * 0xc + 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_00f4ee6a = -1;
DAT_00f4ee6c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
uVar1 = *(ushort *)(*(int *)(this + 4) + 4 + uVar9 * 0xc);
_param_1 = uVar9;
} while( true );
}
iVar3 = Links(this,uVar1);
uVar1 = *(ushort *)(iVar3 + 2);
do {
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_00f4ee6a = -1;
DAT_00f4ee6c = 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 * 0xc);
}
if (sVar8 == -1) {
return uVar1;
}
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 != 0) {
DAT_00f4ee6a = -1;
Links(unsigned_short)::s_Sentinel = -1;
DAT_00f4ee6c = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) goto LAB_007ce831;
LAB_007ce789:
puVar5 = (ushort *)(*(int *)(this + 4) + (uint)uVar1 * 0xc);
}
else {
if (uVar1 != 0xffff) goto LAB_007ce789;
LAB_007ce831:
puVar5 = (ushort *)&Links(unsigned_short)::s_Sentinel;
}
uVar1 = *puVar5;
} 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.