CUtlRBTree<CGameEvent,unsigned_short,bool(*)(CGameEvent_const&,CGameEvent_const&),CUtlMemory<UtlRBTreeNode_t<CGameEvent,unsigned_short>,unsigned_short>>::NextInorder
0x006dc6f0 · 1176 bytes · __thiscall
_ZNK10CUtlRBTreeI10CGameEventtPFbRKS0_S2_E10CUtlMemoryI15UtlRBTreeNode_tIS0_tEtEE11NextInorderEt
Decompiled
undefined (2 params)
/* CUtlRBTree<CGameEvent, unsigned short, bool (*)(CGameEvent const&, CGameEvent const&),
CUtlMemory<UtlRBTreeNode_t<CGameEvent, unsigned short>, unsigned short> >::NextInorder(unsigned
short) const */
ushort __thiscall
CUtlRBTree<CGameEvent,unsigned_short,bool(*)(CGameEvent_const&,CGameEvent_const&),CUtlMemory<UtlRBTreeNode_t<CGameEvent,unsigned_short>,unsigned_short>>
::NextInorder(CUtlRBTree<CGameEvent,unsigned_short,bool(*)(CGameEvent_const&,CGameEvent_const&),CUtlMemory<UtlRBTreeNode_t<CGameEvent,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_00f3c852 = -1;
DAT_00f3c854 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar8 = DAT_00f3c852;
if (uVar1 != 0xffff) {
sVar8 = *(short *)(*(int *)(this + 4) + (uint)uVar1 * 0x14 + 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_00f3c852 = -1;
DAT_00f3c854 = 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 * 0x14);
}
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_00f3c852 = -1;
DAT_00f3c854 = 0xffff;
Links(unsigned_short)::s_Sentinel = -1;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
goto LAB_006dc8e8;
}
if (sVar8 != -1) goto LAB_006dc8f2;
LAB_006dc97f:
uVar7 = (uint)DAT_00f3c854;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_006dc90a;
LAB_006dc990:
iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar3 == 0) goto LAB_006dc90a;
DAT_00f3c852 = -1;
Links(unsigned_short)::s_Sentinel = -1;
DAT_00f3c854 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
sVar6 = (short)uVar7;
}
else {
LAB_006dc8e8:
if (sVar8 == -1) goto LAB_006dc97f;
LAB_006dc8f2:
uVar7 = (uint)*(ushort *)(*(int *)(this + 4) + _param_1 * 0x14 + 4);
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_006dc990;
LAB_006dc90a:
sVar6 = (short)uVar7;
}
sVar2 = DAT_00f3c852;
if (sVar6 != -1) {
sVar2 = *(short *)(*(int *)(this + 4) + uVar7 * 0x14 + 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_00f3c852 = -1;
DAT_00f3c854 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
uVar1 = *(ushort *)(*(int *)(this + 4) + 4 + uVar9 * 0x14);
_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_00f3c852 = -1;
DAT_00f3c854 = 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 * 0x14);
}
uVar1 = puVar5[1];
do {
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
DAT_00f3c852 = -1;
Links(unsigned_short)::s_Sentinel = -1;
DAT_00f3c854 = 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 * 0x14);
}
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_00f3c852 = -1;
DAT_00f3c854 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 != 0xffff) goto LAB_006dc799;
LAB_006dc841:
puVar4 = (ushort *)&Links(unsigned_short)::s_Sentinel;
}
else {
if (uVar1 == 0xffff) goto LAB_006dc841;
LAB_006dc799:
puVar4 = (ushort *)(*(int *)(this + 4) + (uint)uVar1 * 0x14);
}
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.