L L4D2node

CUtlRBTree<CUtlMap<unsigned_long_long,CNetChan::MessageProcessingStats_t,int>::Node_t,int,CUtlMap<unsigned_long_long,CNetChan::MessageProcessingStats_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,CNetChan::MessageProcessingStats_t,int>::Node_t,int>,int>>::InsertRebalance

0x001c0b50 · 2562 bytes · __thiscall

_ZN10CUtlRBTreeIN7CUtlMapIyN8CNetChan24MessageProcessingStats_tEiE6Node_tEiNS3_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS4_iEiEE15InsertRebalanceEi

Decompiled

undefined (2 params)

/* CUtlRBTree<CUtlMap<unsigned long long, CNetChan::MessageProcessingStats_t, int>::Node_t, int,
   CUtlMap<unsigned long long, CNetChan::MessageProcessingStats_t, int>::CKeyLess,
   CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned long long, CNetChan::MessageProcessingStats_t,
   int>::Node_t, int>, int> >::InsertRebalance(int) */

void __thiscall
CUtlRBTree<CUtlMap<unsigned_long_long,CNetChan::MessageProcessingStats_t,int>::Node_t,int,CUtlMap<unsigned_long_long,CNetChan::MessageProcessingStats_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,CNetChan::MessageProcessingStats_t,int>::Node_t,int>,int>>
::InsertRebalance(CUtlRBTree<CUtlMap<unsigned_long_long,CNetChan::MessageProcessingStats_t,int>::Node_t,int,CUtlMap<unsigned_long_long,CNetChan::MessageProcessingStats_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,CNetChan::MessageProcessingStats_t,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_001c0bb4:
      *(undefined4 *)(*(int *)(this + 4) + iVar1 * 0x28 + 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_0034169c = -1;
        DAT_003416a0 = -1;
        __cxa_guard_release(&Links(int)::s_Sentinel);
      }
      if (param_1 == -1) goto LAB_001c0ee5;
LAB_001c0b81:
      puVar6 = (undefined4 *)(*(int *)(this + 4) + param_1 * 0x28);
    }
    else {
      if (param_1 != -1) goto LAB_001c0b81;
LAB_001c0ee5:
      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_0034169c = -1;
      DAT_003416a0 = -1;
      __cxa_guard_release(&Links(int)::s_Sentinel);
      if (iVar1 == -1) goto LAB_001c0eb0;
LAB_001c0ba1:
      puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x28);
    }
    else {
      if (iVar1 != -1) goto LAB_001c0ba1;
LAB_001c0eb0:
      puVar6 = &Links(int)::s_Sentinel;
    }
    if (puVar6[3] != 0) {
      iVar1 = *(int *)(this + 0x10);
      goto LAB_001c0bb4;
    }
    if (Links(int)::s_Sentinel == '\0') {
      iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
      if (iVar1 != 0) {
        Links(int)::s_Sentinel = 0xffffffff;
        DAT_0034169c = -1;
        DAT_003416a0 = -1;
        __cxa_guard_release(&Links(int)::s_Sentinel);
      }
      if (param_1 == -1) goto LAB_001c0e55;
LAB_001c0be9:
      puVar6 = (undefined4 *)(*(int *)(this + 4) + param_1 * 0x28);
    }
    else {
      if (param_1 != -1) goto LAB_001c0be9;
LAB_001c0e55:
      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_0034169c = -1;
        DAT_003416a0 = -1;
        __cxa_guard_release(&Links(int)::s_Sentinel);
      }
      if (iVar1 == -1) goto LAB_001c0e24;
LAB_001c0c09:
      puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x28);
    }
    else {
      if (iVar1 != -1) goto LAB_001c0c09;
LAB_001c0e24:
      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_0034169c = -1;
        DAT_003416a0 = -1;
        __cxa_guard_release(&Links(int)::s_Sentinel);
      }
      if (iVar1 == -1) goto LAB_001c0dec;
LAB_001c0c26:
      puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x28);
    }
    else {
      if (iVar1 != -1) goto LAB_001c0c26;
LAB_001c0dec:
      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_0034169c = -1;
        DAT_003416a0 = -1;
        __cxa_guard_release(&Links(int)::s_Sentinel);
        goto LAB_001c0c3a;
      }
      if (iVar4 == -1) goto LAB_001c0dba;
LAB_001c0c43:
      piVar2 = (int *)(*(int *)(this + 4) + iVar4 * 0x28);
    }
    else {
LAB_001c0c3a:
      if (iVar4 != -1) goto LAB_001c0c43;
LAB_001c0dba:
      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_0034169c = -1;
          DAT_003416a0 = -1;
          __cxa_guard_release(&Links(int)::s_Sentinel);
        }
        if (iVar5 == -1) goto LAB_001c0ff4;
LAB_001c0c65:
        puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar5 * 0x28);
      }
      else {
        if (iVar5 != -1) goto LAB_001c0c65;
LAB_001c0ff4:
        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_0034169c = -1;
        DAT_003416a0 = -1;
        __cxa_guard_release(&Links(int)::s_Sentinel);
      }
      iVar3 = DAT_003416a4;
      if (iVar4 != -1) {
        iVar3 = *(int *)(*(int *)(this + 4) + iVar4 * 0x28 + 0xc);
      }
      if (iVar3 == 0) {
LAB_001c0c96:
        *(undefined4 *)(*(int *)(this + 4) + iVar1 * 0x28 + 0xc) = 1;
        *(undefined4 *)(*(int *)(this + 4) + iVar4 * 0x28 + 0xc) = 1;
        *(undefined4 *)(*(int *)(this + 4) + iVar5 * 0x28 + 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_0034169c = -1;
            DAT_003416a0 = -1;
            __cxa_guard_release(&Links(int)::s_Sentinel);
          }
          if (param_1 == -1) goto LAB_001c12e5;
LAB_001c0f69:
          iVar4 = *(int *)(*(int *)(this + 4) + param_1 * 0x28 + 8);
          if (Links(int)::s_Sentinel != '\0') goto LAB_001c0f80;
LAB_001c12f8:
          iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
          if (iVar3 == 0) goto LAB_001c0f80;
          Links(int)::s_Sentinel = 0xffffffff;
          DAT_0034169c = -1;
          DAT_003416a0 = -1;
          __cxa_guard_release(&Links(int)::s_Sentinel);
          if (iVar4 == -1) goto LAB_001c1350;
LAB_001c0f89:
          if (param_1 != *(int *)(*(int *)(this + 4) + iVar4 * 0x28 + 4)) goto LAB_001c0f9e;
LAB_001c1368:
          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_0034169c = -1;
            DAT_003416a0 = -1;
            __cxa_guard_release(&Links(int)::s_Sentinel);
          }
          if (iVar1 == -1) {
            puVar6 = &Links(int)::s_Sentinel;
          }
          else {
            puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x28);
          }
          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_0034169c = -1;
            DAT_003416a0 = -1;
            __cxa_guard_release(&Links(int)::s_Sentinel);
          }
          if (iVar5 == -1) {
            puVar7 = &Links(int)::s_Sentinel;
            puVar6 = (undefined4 *)(*(int *)(this + 4) + -0x28);
          }
          else {
            puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar5 * 0x28);
            puVar7 = puVar6;
          }
          iVar5 = puVar7[2];
          param_1 = iVar1;
        }
        else {
          if (param_1 != -1) goto LAB_001c0f69;
LAB_001c12e5:
          iVar4 = DAT_003416a0;
          if (Links(int)::s_Sentinel == '\0') goto LAB_001c12f8;
LAB_001c0f80:
          if (iVar4 != -1) goto LAB_001c0f89;
LAB_001c1350:
          if (param_1 == DAT_0034169c) goto LAB_001c1368;
LAB_001c0f9e:
          puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x28);
        }
        puVar6[3] = 1;
        *(undefined4 *)(*(int *)(this + 4) + iVar5 * 0x28 + 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_0034169c = -1;
          DAT_003416a0 = -1;
          __cxa_guard_release(&Links(int)::s_Sentinel);
        }
        if (iVar5 == -1) goto LAB_001c1084;
LAB_001c0ce1:
        piVar2 = (int *)(*(int *)(this + 4) + iVar5 * 0x28);
      }
      else {
        if (iVar5 != -1) goto LAB_001c0ce1;
LAB_001c1084:
        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_0034169c = -1;
        DAT_003416a0 = -1;
        __cxa_guard_release(&Links(int)::s_Sentinel);
        if (iVar4 == -1) goto LAB_001c1050;
LAB_001c0cfd:
        puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar4 * 0x28);
      }
      else {
        if (iVar4 != -1) goto LAB_001c0cfd;
LAB_001c1050:
        puVar6 = &Links(int)::s_Sentinel;
      }
      if (puVar6[3] == 0) goto LAB_001c0c96;
      if (Links(int)::s_Sentinel == '\0') {
        iVar4 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
        if (iVar4 != 0) {
          Links(int)::s_Sentinel = 0xffffffff;
          DAT_0034169c = -1;
          DAT_003416a0 = -1;
          __cxa_guard_release(&Links(int)::s_Sentinel);
        }
        if (param_1 == -1) goto LAB_001c1245;
LAB_001c0d26:
        iVar4 = *(int *)(*(int *)(this + 4) + param_1 * 0x28 + 8);
        if (Links(int)::s_Sentinel != '\0') goto LAB_001c0d3d;
LAB_001c1258:
        iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
        if (iVar3 == 0) goto LAB_001c0d3d;
        Links(int)::s_Sentinel = 0xffffffff;
        DAT_0034169c = -1;
        DAT_003416a0 = -1;
        __cxa_guard_release(&Links(int)::s_Sentinel);
        if (iVar4 == -1) goto LAB_001c12b0;
LAB_001c0d46:
        piVar2 = (int *)(*(int *)(this + 4) + iVar4 * 0x28);
      }
      else {
        if (param_1 != -1) goto LAB_001c0d26;
LAB_001c1245:
        iVar4 = DAT_003416a0;
        if (Links(int)::s_Sentinel == '\0') goto LAB_001c1258;
LAB_001c0d3d:
        if (iVar4 != -1) goto LAB_001c0d46;
LAB_001c12b0:
        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_0034169c = -1;
          DAT_003416a0 = -1;
          __cxa_guard_release(&Links(int)::s_Sentinel);
        }
        if (iVar1 == -1) {
          puVar6 = &Links(int)::s_Sentinel;
        }
        else {
          puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x28);
        }
        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_0034169c = -1;
          DAT_003416a0 = -1;
          __cxa_guard_release(&Links(int)::s_Sentinel);
        }
        if (iVar5 == -1) {
          puVar7 = &Links(int)::s_Sentinel;
          puVar6 = (undefined4 *)(*(int *)(this + 4) + -0x28);
        }
        else {
          puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar5 * 0x28);
          puVar7 = puVar6;
        }
        iVar5 = puVar7[2];
        param_1 = iVar1;
      }
      else {
        puVar6 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x28);
      }
      puVar6[3] = 1;
      *(undefined4 *)(*(int *)(this + 4) + iVar5 * 0x28 + 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)