L L4D2node

CUtlRBTree<ConCommandBase_const*,unsigned_short,bool(*)(ConCommandBase_const*const&,ConCommandBase_const*const&),CUtlMemory<UtlRBTreeNode_t<ConCommandBase_const*,unsigned_short>,unsigned_short>>::~CUtlRBTree

0x0012b280 · 254 bytes · __thiscall

_ZN10CUtlRBTreeIPK14ConCommandBasetPFbRKS2_S4_E10CUtlMemoryI15UtlRBTreeNode_tIS2_tEtEED2Ev

Decompiled

undefined (1 param)

/* CUtlRBTree<ConCommandBase const*, unsigned short, bool (*)(ConCommandBase const* const&,
   ConCommandBase const* const&), CUtlMemory<UtlRBTreeNode_t<ConCommandBase const*, unsigned short>,
   unsigned short> >::~CUtlRBTree() */

void __thiscall
CUtlRBTree<ConCommandBase_const*,unsigned_short,bool(*)(ConCommandBase_const*const&,ConCommandBase_const*const&),CUtlMemory<UtlRBTreeNode_t<ConCommandBase_const*,unsigned_short>,unsigned_short>>
::~CUtlRBTree(CUtlRBTree<ConCommandBase_const*,unsigned_short,bool(*)(ConCommandBase_const*const&,ConCommandBase_const*const&),CUtlMemory<UtlRBTreeNode_t<ConCommandBase_const*,unsigned_short>,unsigned_short>>
              *this)

{
  ushort *puVar1;
  int iVar2;
  ushort uVar3;
  int iVar4;
  ushort uVar5;
  
  uVar3 = *(ushort *)(this + 0x16);
  if (uVar3 != 0xffff) {
    iVar2 = *(int *)(this + 8);
    iVar4 = 0;
    if (0 < iVar2) {
      do {
        uVar5 = (ushort)iVar4;
        if ((iVar4 < iVar2) && (uVar5 <= uVar3)) {
          if ((Links(unsigned_short)::s_Sentinel == '\0') &&
             (iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
            DAT_00340d9e = 0xffff;
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00340da0 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          puVar1 = (ushort *)(*(int *)(this + 4) + iVar4 * 0xc);
          if (*puVar1 != uVar5) {
            puVar1[1] = *(ushort *)(this + 0x14);
            *(ushort *)(*(int *)(this + 4) + iVar4 * 0xc) = uVar5;
            *(ushort *)(this + 0x14) = uVar5;
          }
          uVar3 = *(ushort *)(this + 0x16);
        }
      } while (((uVar3 != uVar5) && (iVar2 = *(int *)(this + 8), (int)(iVar4 + 1U & 0xffff) < iVar2)
               ) && (iVar4 = iVar4 + 1, iVar4 != 0xffff));
    }
    *(undefined2 *)(this + 0x10) = 0xffff;
    *(undefined2 *)(this + 0x12) = 0;
  }
  *(undefined2 *)(this + 0x14) = 0xffff;
  CUtlMemory<UtlRBTreeNode_t<ConCommandBase_const*,unsigned_short>,unsigned_short>::Purge
            ((CUtlMemory<UtlRBTreeNode_t<ConCommandBase_const*,unsigned_short>,unsigned_short> *)
             (this + 4));
  *(undefined2 *)(this + 0x16) = 0xffff;
  CUtlMemory<UtlRBTreeNode_t<ConCommandBase_const*,unsigned_short>,unsigned_short>::Purge
            ((CUtlMemory<UtlRBTreeNode_t<ConCommandBase_const*,unsigned_short>,unsigned_short> *)
             (this + 4));
  return;
}

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)