L L4D2node

CUtlRBTree<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int,CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int>,int>>::Insert

0x00067570 · 463 bytes · __thiscall

_ZN10CUtlRBTreeIN7CUtlMapIyPN5GCSDK4CJobEiE6Node_tEiNS4_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS5_iEiEE6InsertERKS5_

Decompiled

undefined (2 params)

/* CUtlRBTree<CUtlMap<unsigned long long, GCSDK::CJob*, int>::Node_t, int, CUtlMap<unsigned long
   long, GCSDK::CJob*, int>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned long long,
   GCSDK::CJob*, int>::Node_t, int>, int> >::Insert(CUtlMap<unsigned long long, GCSDK::CJob*,
   int>::Node_t const&) */

int __thiscall
CUtlRBTree<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int,CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int>,int>>
::Insert(CUtlRBTree<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int,CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,GCSDK::CJob*,int>::Node_t,int>,int>>
         *this,Node_t *param_1)

{
  undefined4 uVar1;
  bool bVar2;
  char cVar3;
  int iVar4;
  undefined4 *puVar5;
  int iVar6;
  int iVar7;
  int local_24;
  
  iVar4 = *(int *)(this + 0x10);
  if (*(int *)(this + 0x10) == -1) {
    iVar4 = NewNode(this);
    local_24 = iVar4 * 0x1c;
    puVar5 = (undefined4 *)(local_24 + *(int *)(this + 4));
    puVar5[2] = 0xffffffff;
    puVar5[1] = 0xffffffff;
    *puVar5 = 0xffffffff;
    puVar5[3] = 0;
  }
  else {
    do {
      iVar6 = iVar4;
      iVar7 = iVar6 * 0x1c;
      cVar3 = (**(code **)this)(param_1,*(int *)(this + 4) + iVar7 + 0x10);
      if (cVar3 == '\0') {
        if ((Links(int)::s_Sentinel == '\0') &&
           (iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
          Links(int)::s_Sentinel = 0xffffffff;
          DAT_000d282c = 0xffffffff;
          DAT_000d2830 = 0xffffffff;
          __cxa_guard_release(&Links(int)::s_Sentinel);
        }
        bVar2 = false;
        iVar4 = *(int *)(*(int *)(this + 4) + 4 + iVar7);
      }
      else {
        if ((Links(int)::s_Sentinel == '\0') &&
           (iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
          Links(int)::s_Sentinel = 0xffffffff;
          DAT_000d282c = 0xffffffff;
          DAT_000d2830 = 0xffffffff;
          __cxa_guard_release(&Links(int)::s_Sentinel);
        }
        bVar2 = true;
        iVar4 = *(int *)(*(int *)(this + 4) + iVar7);
      }
    } while (iVar4 != -1);
    iVar4 = NewNode(this);
    local_24 = iVar4 * 0x1c;
    puVar5 = (undefined4 *)(local_24 + *(int *)(this + 4));
    puVar5[2] = iVar6;
    puVar5[1] = 0xffffffff;
    *puVar5 = 0xffffffff;
    puVar5[3] = 0;
    if (iVar6 != -1) {
      if (bVar2) {
        *(int *)(*(int *)(this + 4) + iVar7) = iVar4;
      }
      else {
        *(int *)(*(int *)(this + 4) + 4 + iVar7) = iVar4;
      }
      goto LAB_00067639;
    }
  }
  *(int *)(this + 0x10) = iVar4;
LAB_00067639:
  InsertRebalance(this,iVar4);
  *(int *)(this + 0x14) = *(int *)(this + 0x14) + 1;
  local_24 = local_24 + *(int *)(this + 4);
  if (local_24 != -0x10) {
    uVar1 = *(undefined4 *)(param_1 + 4);
    *(undefined4 *)(local_24 + 0x10) = *(undefined4 *)param_1;
    *(undefined4 *)(local_24 + 0x14) = uVar1;
    *(undefined4 *)(local_24 + 0x18) = *(undefined4 *)(param_1 + 8);
  }
  return iVar4;
}

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)