L L4D2node

CUtlRBTree<CUtlMap<char_const*,CPureServerWhitelist::CCommand*,int>::Node_t,int,CUtlMap<char_const*,CPureServerWhitelist::CCommand*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CPureServerWhitelist::CCommand*,int>::Node_t,int>,int>>::InsertRebalance

0x001d97b0 · 2562 bytes · __thiscall

_ZN10CUtlRBTreeIN7CUtlMapIPKcPN20CPureServerWhitelist8CCommandEiE6Node_tEiNS6_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS7_iEiEE15InsertRebalanceEi

Decompiled

undefined (2 params)

/* CUtlRBTree<CUtlMap<char const*, CPureServerWhitelist::CCommand*, int>::Node_t, int, CUtlMap<char
   const*, CPureServerWhitelist::CCommand*, int>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<char
   const*, CPureServerWhitelist::CCommand*, int>::Node_t, int>, int> >::InsertRebalance(int) */

void __thiscall
CUtlRBTree<CUtlMap<char_const*,CPureServerWhitelist::CCommand*,int>::Node_t,int,CUtlMap<char_const*,CPureServerWhitelist::CCommand*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CPureServerWhitelist::CCommand*,int>::Node_t,int>,int>>
::InsertRebalance(CUtlRBTree<CUtlMap<char_const*,CPureServerWhitelist::CCommand*,int>::Node_t,int,CUtlMap<char_const*,CPureServerWhitelist::CCommand*,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,CPureServerWhitelist::CCommand*,int>::Node_t,int>,int>>
                  *this,int param_1)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined4 *puVar6;
  undefined4 *puVar7;
  
  do {
    iVar1 = *(int *)(this + 0x10);
    if (param_1 == iVar1) {
LAB_001d9814:
      *(undefined4 *)(*(int *)(this + 4) + iVar1 * 0x18 + 0xc) = 1;
      return;
    }
    if (Links(int)::s_Sentinel == '\0') {
      iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
      if (iVar1 != 0) {
        Links(int)::s_Sentinel = 0xffffffff;
        DAT_003417d4 = -1;
        DAT_003417d8 = -1;
        __cxa_guard_release(&Links(int)::s_Sentinel);
      }
      if (param_1 == -1) goto LAB_001d9b45;
LAB_001d97e1:
      puVar6 = (undefined4 *)(*(int *)(this + 4) + param_1 * 0x18);
    }
    else {
      if (param_1 != -1) goto LAB_001d97e1;
LAB_001d9b45:
      puVar6 = &Links(int)::s_Sentinel;
    }
    iVar1 = puVar6[2];
    if ((Links(int)::s_Sentinel == '\0') &&
       (iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar5 != 0)) {
      Links(int)::s_Sentinel = 0xffffffff;
      DAT_003417d4 = -1;
      DAT_003417d8 = -1;
      __cxa_guard_release(&Links(int)::s_Sentinel);
      if (iVar1 == -1) goto LAB_001d9b10;
LAB_001d9801:
      puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x18);
    }
    else {
      if (iVar1 != -1) goto LAB_001d9801;
LAB_001d9b10:
      puVar6 = &Links(int)::s_Sentinel;
    }
    if (puVar6[3] != 0) {
      iVar1 = *(int *)(this + 0x10);
      goto LAB_001d9814;
    }
    if (Links(int)::s_Sentinel == '\0') {
      iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
      if (iVar1 != 0) {
        Links(int)::s_Sentinel = 0xffffffff;
        DAT_003417d4 = -1;
        DAT_003417d8 = -1;
        __cxa_guard_release(&Links(int)::s_Sentinel);
      }
      if (param_1 == -1) goto LAB_001d9ab5;
LAB_001d9849:
      puVar6 = (undefined4 *)(*(int *)(this + 4) + param_1 * 0x18);
    }
    else {
      if (param_1 != -1) goto LAB_001d9849;
LAB_001d9ab5:
      puVar6 = &Links(int)::s_Sentinel;
    }
    iVar1 = puVar6[2];
    if (Links(int)::s_Sentinel == '\0') {
      iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
      if (iVar5 != 0) {
        Links(int)::s_Sentinel = 0xffffffff;
        DAT_003417d4 = -1;
        DAT_003417d8 = -1;
        __cxa_guard_release(&Links(int)::s_Sentinel);
      }
      if (iVar1 == -1) goto LAB_001d9a84;
LAB_001d9869:
      puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x18);
    }
    else {
      if (iVar1 != -1) goto LAB_001d9869;
LAB_001d9a84:
      puVar6 = &Links(int)::s_Sentinel;
    }
    iVar5 = puVar6[2];
    if (Links(int)::s_Sentinel == '\0') {
      iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
      if (iVar4 != 0) {
        Links(int)::s_Sentinel = 0xffffffff;
        DAT_003417d4 = -1;
        DAT_003417d8 = -1;
        __cxa_guard_release(&Links(int)::s_Sentinel);
      }
      if (iVar1 == -1) goto LAB_001d9a4c;
LAB_001d9886:
      puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x18);
    }
    else {
      if (iVar1 != -1) goto LAB_001d9886;
LAB_001d9a4c:
      puVar6 = &Links(int)::s_Sentinel;
    }
    iVar4 = puVar6[2];
    if (Links(int)::s_Sentinel == '\0') {
      iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
      if (iVar3 != 0) {
        Links(int)::s_Sentinel = 0xffffffff;
        DAT_003417d4 = -1;
        DAT_003417d8 = -1;
        __cxa_guard_release(&Links(int)::s_Sentinel);
        goto LAB_001d989a;
      }
      if (iVar4 == -1) goto LAB_001d9a1a;
LAB_001d98a3:
      piVar2 = (int *)(*(int *)(this + 4) + iVar4 * 0x18);
    }
    else {
LAB_001d989a:
      if (iVar4 != -1) goto LAB_001d98a3;
LAB_001d9a1a:
      piVar2 = &Links(int)::s_Sentinel;
    }
    if (iVar1 == *piVar2) {
      if (Links(int)::s_Sentinel == '\0') {
        iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
        if (iVar4 != 0) {
          Links(int)::s_Sentinel = 0xffffffff;
          DAT_003417d4 = -1;
          DAT_003417d8 = -1;
          __cxa_guard_release(&Links(int)::s_Sentinel);
        }
        if (iVar5 == -1) goto LAB_001d9c54;
LAB_001d98c5:
        puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar5 * 0x18);
      }
      else {
        if (iVar5 != -1) goto LAB_001d98c5;
LAB_001d9c54:
        puVar6 = &Links(int)::s_Sentinel;
      }
      iVar4 = puVar6[1];
      if ((Links(int)::s_Sentinel == '\0') &&
         (iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
        Links(int)::s_Sentinel = 0xffffffff;
        DAT_003417d4 = -1;
        DAT_003417d8 = -1;
        __cxa_guard_release(&Links(int)::s_Sentinel);
      }
      iVar3 = DAT_003417dc;
      if (iVar4 != -1) {
        iVar3 = *(int *)(*(int *)(this + 4) + iVar4 * 0x18 + 0xc);
      }
      if (iVar3 == 0) {
LAB_001d98f6:
        *(undefined4 *)(*(int *)(this + 4) + iVar1 * 0x18 + 0xc) = 1;
        *(undefined4 *)(*(int *)(this + 4) + iVar4 * 0x18 + 0xc) = 1;
        *(undefined4 *)(*(int *)(this + 4) + iVar5 * 0x18 + 0xc) = 0;
        param_1 = iVar5;
      }
      else {
        if (Links(int)::s_Sentinel == '\0') {
          iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
          if (iVar4 != 0) {
            Links(int)::s_Sentinel = 0xffffffff;
            DAT_003417d4 = -1;
            DAT_003417d8 = -1;
            __cxa_guard_release(&Links(int)::s_Sentinel);
          }
          if (param_1 == -1) goto LAB_001d9f45;
LAB_001d9bc9:
          iVar4 = *(int *)(*(int *)(this + 4) + param_1 * 0x18 + 8);
          if (Links(int)::s_Sentinel != '\0') goto LAB_001d9be0;
LAB_001d9f58:
          iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
          if (iVar3 == 0) goto LAB_001d9be0;
          Links(int)::s_Sentinel = 0xffffffff;
          DAT_003417d4 = -1;
          DAT_003417d8 = -1;
          __cxa_guard_release(&Links(int)::s_Sentinel);
          if (iVar4 == -1) goto LAB_001d9fb0;
LAB_001d9be9:
          if (param_1 != *(int *)(*(int *)(this + 4) + iVar4 * 0x18 + 4)) goto LAB_001d9bfe;
LAB_001d9fc8:
          RotateLeft(this,iVar1);
          if ((Links(int)::s_Sentinel == '\0') &&
             (iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar5 != 0)) {
            Links(int)::s_Sentinel = 0xffffffff;
            DAT_003417d4 = -1;
            DAT_003417d8 = -1;
            __cxa_guard_release(&Links(int)::s_Sentinel);
          }
          if (iVar1 == -1) {
            puVar6 = &Links(int)::s_Sentinel;
          }
          else {
            puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x18);
          }
          iVar5 = puVar6[2];
          if ((Links(int)::s_Sentinel == '\0') &&
             (iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
            Links(int)::s_Sentinel = 0xffffffff;
            DAT_003417d4 = -1;
            DAT_003417d8 = -1;
            __cxa_guard_release(&Links(int)::s_Sentinel);
          }
          if (iVar5 == -1) {
            puVar7 = &Links(int)::s_Sentinel;
            puVar6 = (undefined4 *)(*(int *)(this + 4) + -0x18);
          }
          else {
            puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar5 * 0x18);
            puVar7 = puVar6;
          }
          iVar5 = puVar7[2];
          param_1 = iVar1;
        }
        else {
          if (param_1 != -1) goto LAB_001d9bc9;
LAB_001d9f45:
          iVar4 = DAT_003417d8;
          if (Links(int)::s_Sentinel == '\0') goto LAB_001d9f58;
LAB_001d9be0:
          if (iVar4 != -1) goto LAB_001d9be9;
LAB_001d9fb0:
          if (param_1 == DAT_003417d4) goto LAB_001d9fc8;
LAB_001d9bfe:
          puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x18);
        }
        puVar6[3] = 1;
        *(undefined4 *)(*(int *)(this + 4) + iVar5 * 0x18 + 0xc) = 0;
        RotateRight(this,iVar5);
      }
    }
    else {
      if (Links(int)::s_Sentinel == '\0') {
        iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
        if (iVar4 != 0) {
          Links(int)::s_Sentinel = 0xffffffff;
          DAT_003417d4 = -1;
          DAT_003417d8 = -1;
          __cxa_guard_release(&Links(int)::s_Sentinel);
        }
        if (iVar5 == -1) goto LAB_001d9ce4;
LAB_001d9941:
        piVar2 = (int *)(*(int *)(this + 4) + iVar5 * 0x18);
      }
      else {
        if (iVar5 != -1) goto LAB_001d9941;
LAB_001d9ce4:
        piVar2 = &Links(int)::s_Sentinel;
      }
      iVar4 = *piVar2;
      if ((Links(int)::s_Sentinel == '\0') &&
         (iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
        Links(int)::s_Sentinel = 0xffffffff;
        DAT_003417d4 = -1;
        DAT_003417d8 = -1;
        __cxa_guard_release(&Links(int)::s_Sentinel);
        if (iVar4 == -1) goto LAB_001d9cb0;
LAB_001d995d:
        puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar4 * 0x18);
      }
      else {
        if (iVar4 != -1) goto LAB_001d995d;
LAB_001d9cb0:
        puVar6 = &Links(int)::s_Sentinel;
      }
      if (puVar6[3] == 0) goto LAB_001d98f6;
      if (Links(int)::s_Sentinel == '\0') {
        iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
        if (iVar4 != 0) {
          Links(int)::s_Sentinel = 0xffffffff;
          DAT_003417d4 = -1;
          DAT_003417d8 = -1;
          __cxa_guard_release(&Links(int)::s_Sentinel);
        }
        if (param_1 == -1) goto LAB_001d9ea5;
LAB_001d9986:
        iVar4 = *(int *)(*(int *)(this + 4) + param_1 * 0x18 + 8);
        if (Links(int)::s_Sentinel != '\0') goto LAB_001d999d;
LAB_001d9eb8:
        iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
        if (iVar3 == 0) goto LAB_001d999d;
        Links(int)::s_Sentinel = 0xffffffff;
        DAT_003417d4 = -1;
        DAT_003417d8 = -1;
        __cxa_guard_release(&Links(int)::s_Sentinel);
        if (iVar4 == -1) goto LAB_001d9f10;
LAB_001d99a6:
        piVar2 = (int *)(*(int *)(this + 4) + iVar4 * 0x18);
      }
      else {
        if (param_1 != -1) goto LAB_001d9986;
LAB_001d9ea5:
        iVar4 = DAT_003417d8;
        if (Links(int)::s_Sentinel == '\0') goto LAB_001d9eb8;
LAB_001d999d:
        if (iVar4 != -1) goto LAB_001d99a6;
LAB_001d9f10:
        piVar2 = &Links(int)::s_Sentinel;
      }
      if (param_1 == *piVar2) {
        RotateRight(this,iVar1);
        if ((Links(int)::s_Sentinel == '\0') &&
           (iVar5 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar5 != 0)) {
          Links(int)::s_Sentinel = 0xffffffff;
          DAT_003417d4 = -1;
          DAT_003417d8 = -1;
          __cxa_guard_release(&Links(int)::s_Sentinel);
        }
        if (iVar1 == -1) {
          puVar6 = &Links(int)::s_Sentinel;
        }
        else {
          puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x18);
        }
        iVar5 = puVar6[2];
        if ((Links(int)::s_Sentinel == '\0') &&
           (iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar4 != 0)) {
          Links(int)::s_Sentinel = 0xffffffff;
          DAT_003417d4 = -1;
          DAT_003417d8 = -1;
          __cxa_guard_release(&Links(int)::s_Sentinel);
        }
        if (iVar5 == -1) {
          puVar7 = &Links(int)::s_Sentinel;
          puVar6 = (undefined4 *)(*(int *)(this + 4) + -0x18);
        }
        else {
          puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar5 * 0x18);
          puVar7 = puVar6;
        }
        iVar5 = puVar7[2];
        param_1 = iVar1;
      }
      else {
        puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x18);
      }
      puVar6[3] = 1;
      *(undefined4 *)(*(int *)(this + 4) + iVar5 * 0x18 + 0xc) = 0;
      RotateLeft(this,iVar5);
    }
  } 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)