L L4D2node

CUtlRBTree<CUtlMap<unsigned_int,Rule*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,Rule*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,Rule*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::NextInorder

0x005c0f80 · 742 bytes · __thiscall

_ZNK10CUtlRBTreeIN7CUtlMapIjP4RuletE6Node_tEtNS3_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS4_tEtEE11NextInorderEt

Decompiled

undefined (2 params)

/* CUtlRBTree<CUtlMap<unsigned int, Rule*, unsigned short>::Node_t, unsigned short, CUtlMap<unsigned
   int, Rule*, unsigned short>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned int, Rule*,
   unsigned short>::Node_t, unsigned short>, unsigned short> >::NextInorder(unsigned short) const */

ushort __thiscall
CUtlRBTree<CUtlMap<unsigned_int,Rule*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,Rule*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,Rule*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::NextInorder(CUtlRBTree<CUtlMap<unsigned_int,Rule*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,Rule*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,Rule*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
              *this,ushort param_1)

{
  ushort uVar1;
  int iVar2;
  ushort *puVar3;
  ushort uVar4;
  undefined2 *puVar5;
  uint uVar6;
  short sVar7;
  
  uVar1 = param_1;
  _param_1 = (uint)param_1;
  iVar2 = Links(this,uVar1);
  if (*(short *)(iVar2 + 2) == -1) {
    iVar2 = Links(this,uVar1);
    uVar1 = *(ushort *)(iVar2 + 4);
    do {
      uVar6 = (uint)uVar1;
      sVar7 = (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_00f21cea = 0xffff;
          DAT_00f21cec = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (sVar7 != -1) goto LAB_005c10fe;
LAB_005c117d:
        uVar4 = DAT_00f21cec;
        if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_005c1190;
LAB_005c1113:
        if (uVar4 != 0xffff) goto LAB_005c111d;
LAB_005c11f0:
        puVar5 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
        if (sVar7 == -1) goto LAB_005c117d;
LAB_005c10fe:
        uVar4 = *(ushort *)(_param_1 * 0x10 + *(int *)(this + 4) + 4);
        if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_005c1113;
LAB_005c1190:
        iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar2 == 0) goto LAB_005c1113;
        DAT_00f21cec = 0xffff;
        Links(unsigned_short)::s_Sentinel = -1;
        DAT_00f21cea = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        if (uVar4 == 0xffff) goto LAB_005c11f0;
LAB_005c111d:
        puVar5 = (undefined2 *)((uint)uVar4 * 0x10 + *(int *)(this + 4));
      }
      if (sVar7 != puVar5[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_00f21cea = 0xffff;
        DAT_00f21cec = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      }
      uVar1 = *(ushort *)(uVar6 * 0x10 + *(int *)(this + 4) + 4);
      _param_1 = uVar6;
    } while( true );
  }
  iVar2 = Links(this,uVar1);
  uVar1 = *(ushort *)(iVar2 + 2);
  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_00f21cea = 0xffff;
      DAT_00f21cec = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    sVar7 = Links(unsigned_short)::s_Sentinel;
    if (uVar1 != 0xffff) {
      sVar7 = *(short *)((uint)uVar1 * 0x10 + *(int *)(this + 4));
    }
    if (sVar7 == -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_00f21cea = 0xffff;
        DAT_00f21cec = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      }
      if (uVar1 != 0xffff) goto LAB_005c1006;
LAB_005c10a1:
      puVar3 = (ushort *)&Links(unsigned_short)::s_Sentinel;
    }
    else {
      if (uVar1 == 0xffff) goto LAB_005c10a1;
LAB_005c1006:
      puVar3 = (ushort *)((uint)uVar1 * 0x10 + *(int *)(this + 4));
    }
    uVar1 = *puVar3;
  } while( true );
}

SourceMod gamedata

paste into addons/sourcemod/gamedata/<your_plugin>.txt
used as the SourceMod key — change to fit your plugin's convention
SourceMod library name (server / engine / matchmaking)

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.



        

        

          

Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.

Return-type handling cheatsheet (DHookReturn)