CUtlRBTree<CUtlMap<CBaseEntity*,CPhysSaveRestoreBlockHandler::CEntityRestoreSet*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CBaseEntity*,CPhysSaveRestoreBlockHandler::CEntityRestoreSet*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CBaseEntity*,CPhysSaveRestoreBlockHandler::CEntityRestoreSet*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::NextInorder
0x004827a0 · 1053 bytes · __thiscall
_ZNK10CUtlRBTreeIN7CUtlMapIP11CBaseEntityPN28CPhysSaveRestoreBlockHandler17CEntityRestoreSetEtE6Node_tEtNS6_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS7_tEtEE11NextInorderEt
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<CBaseEntity*, CPhysSaveRestoreBlockHandler::CEntityRestoreSet*, unsigned
short>::Node_t, unsigned short, CUtlMap<CBaseEntity*,
CPhysSaveRestoreBlockHandler::CEntityRestoreSet*, unsigned short>::CKeyLess,
CUtlMemory<UtlRBTreeNode_t<CUtlMap<CBaseEntity*,
CPhysSaveRestoreBlockHandler::CEntityRestoreSet*, unsigned short>::Node_t, unsigned short>,
unsigned short> >::NextInorder(unsigned short) const */
ushort __thiscall
CUtlRBTree<CUtlMap<CBaseEntity*,CPhysSaveRestoreBlockHandler::CEntityRestoreSet*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CBaseEntity*,CPhysSaveRestoreBlockHandler::CEntityRestoreSet*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CBaseEntity*,CPhysSaveRestoreBlockHandler::CEntityRestoreSet*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::NextInorder(CUtlRBTree<CUtlMap<CBaseEntity*,CPhysSaveRestoreBlockHandler::CEntityRestoreSet*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CBaseEntity*,CPhysSaveRestoreBlockHandler::CEntityRestoreSet*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CBaseEntity*,CPhysSaveRestoreBlockHandler::CEntityRestoreSet*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*this,ushort param_1)
{
ushort uVar1;
int iVar2;
ushort uVar3;
undefined2 *puVar4;
short sVar5;
ushort *puVar6;
uint uVar7;
uVar1 = param_1;
_param_1 = (uint)param_1;
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
Links(unsigned_short)::s_Sentinel = -1;
DAT_00f165f0 = -1;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar5 = DAT_00f165f0;
if (uVar1 != 0xffff) {
sVar5 = *(short *)((uint)uVar1 * 0x10 + *(int *)(this + 4) + 2);
}
if (sVar5 == -1) {
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
Links(unsigned_short)::s_Sentinel = -1;
DAT_00f165f0 = -1;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)((uint)uVar1 * 0x10 + *(int *)(this + 4));
}
uVar1 = puVar4[2];
do {
uVar7 = (uint)uVar1;
sVar5 = (short)_param_1;
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 != 0) {
Links(unsigned_short)::s_Sentinel = -1;
DAT_00f165f0 = -1;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (sVar5 == -1) goto LAB_004829f1;
LAB_00482976:
uVar3 = *(ushort *)(_param_1 * 0x10 + *(int *)(this + 4) + 4);
if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00482a00;
LAB_00482987:
if (uVar3 == 0xffff) goto LAB_00482a60;
LAB_00482991:
puVar4 = (undefined2 *)((uint)uVar3 * 0x10 + *(int *)(this + 4));
}
else {
if (sVar5 != -1) goto LAB_00482976;
LAB_004829f1:
uVar3 = DAT_00f165f2;
if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00482987;
LAB_00482a00:
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 == 0) goto LAB_00482987;
DAT_00f165f2 = 0xffff;
Links(unsigned_short)::s_Sentinel = -1;
DAT_00f165f0 = -1;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
if (uVar3 != 0xffff) goto LAB_00482991;
LAB_00482a60:
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
if (sVar5 != puVar4[1]) {
return uVar1;
}
if (uVar1 == 0xffff) {
return 0xffff;
}
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
Links(unsigned_short)::s_Sentinel = -1;
DAT_00f165f0 = -1;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
uVar1 = *(ushort *)(uVar7 * 0x10 + *(int *)(this + 4) + 4);
_param_1 = uVar7;
} while( true );
}
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
Links(unsigned_short)::s_Sentinel = -1;
DAT_00f165f0 = -1;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) {
puVar4 = &Links(unsigned_short)::s_Sentinel;
}
else {
puVar4 = (undefined2 *)((uint)uVar1 * 0x10 + *(int *)(this + 4));
}
uVar1 = puVar4[1];
do {
if ((Links(unsigned_short)::s_Sentinel == '\0') &&
(iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
Links(unsigned_short)::s_Sentinel = -1;
DAT_00f165f0 = -1;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
sVar5 = Links(unsigned_short)::s_Sentinel;
if (uVar1 != 0xffff) {
sVar5 = *(short *)((uint)uVar1 * 0x10 + *(int *)(this + 4));
}
if (sVar5 == -1) {
return uVar1;
}
if (Links(unsigned_short)::s_Sentinel == '\0') {
iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
if (iVar2 != 0) {
Links(unsigned_short)::s_Sentinel = -1;
DAT_00f165f0 = -1;
DAT_00f165f2 = 0xffff;
__cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
}
if (uVar1 == 0xffff) goto LAB_004828d1;
LAB_0048283e:
puVar6 = (ushort *)((uint)uVar1 * 0x10 + *(int *)(this + 4));
}
else {
if (uVar1 != 0xffff) goto LAB_0048283e;
LAB_004828d1:
puVar6 = (ushort *)&Links(unsigned_short)::s_Sentinel;
}
uVar1 = *puVar6;
} 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.