L L4D2node

CUtlRBTree<CUtlMap<unsigned_int,CResponseSystem::Enumeration,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,CResponseSystem::Enumeration,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,CResponseSystem::Enumeration,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::InsertRebalance

0x005cea80 · 1865 bytes · __thiscall

_ZN10CUtlRBTreeIN7CUtlMapIjN15CResponseSystem11EnumerationEtE6Node_tEtNS3_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS4_tEtEE15InsertRebalanceEt

Decompiled

undefined (2 params)

/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* CUtlRBTree<CUtlMap<unsigned int, CResponseSystem::Enumeration, unsigned short>::Node_t, unsigned
   short, CUtlMap<unsigned int, CResponseSystem::Enumeration, unsigned short>::CKeyLess,
   CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned int, CResponseSystem::Enumeration, unsigned
   short>::Node_t, unsigned short>, unsigned short> >::InsertRebalance(unsigned short) */

void __thiscall
CUtlRBTree<CUtlMap<unsigned_int,CResponseSystem::Enumeration,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,CResponseSystem::Enumeration,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,CResponseSystem::Enumeration,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::InsertRebalance(CUtlRBTree<CUtlMap<unsigned_int,CResponseSystem::Enumeration,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,CResponseSystem::Enumeration,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,CResponseSystem::Enumeration,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                  *this,ushort param_1)

{
  ushort uVar1;
  ushort uVar2;
  ushort uVar3;
  short sVar4;
  undefined2 *puVar5;
  int iVar6;
  ushort *puVar7;
  uint uVar8;
  uint uVar9;
  uint uVar10;
  ushort local_1e;
  
  local_1e = param_1;
  do {
    uVar1 = *(ushort *)(this + 0x10);
    if (local_1e == uVar1) {
LAB_005ceaef:
      *(undefined2 *)((uint)uVar1 * 0x10 + *(int *)(this + 4) + 6) = 1;
      return;
    }
    if (Links(unsigned_short)::s_Sentinel == '\0') {
      iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
      if (iVar6 != 0) {
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00f21cca = 0xffff;
        DAT_00f21ccc = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      }
      if (local_1e == 0xffff) goto LAB_005cee41;
LAB_005ceabf:
      puVar5 = (undefined2 *)((uint)local_1e * 0x10 + *(int *)(this + 4));
    }
    else {
      if (local_1e != 0xffff) goto LAB_005ceabf;
LAB_005cee41:
      puVar5 = &Links(unsigned_short)::s_Sentinel;
    }
    uVar1 = puVar5[2];
    if ((Links(unsigned_short)::s_Sentinel == '\0') &&
       (iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
      Links(unsigned_short)::s_Sentinel = 0xffff;
      DAT_00f21cca = 0xffff;
      DAT_00f21ccc = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      if (uVar1 == 0xffff) goto LAB_005cee08;
LAB_005ceadb:
      puVar5 = (undefined2 *)((uint)uVar1 * 0x10 + *(int *)(this + 4));
    }
    else {
      if (uVar1 != 0xffff) goto LAB_005ceadb;
LAB_005cee08:
      puVar5 = &Links(unsigned_short)::s_Sentinel;
    }
    if (puVar5[3] != 0) {
      uVar1 = *(ushort *)(this + 0x10);
      goto LAB_005ceaef;
    }
    if (Links(unsigned_short)::s_Sentinel == '\0') {
      iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
      if (iVar6 != 0) {
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00f21cca = 0xffff;
        DAT_00f21ccc = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      }
      if (local_1e == 0xffff) goto LAB_005ceda9;
LAB_005ceb2d:
      puVar5 = (undefined2 *)((uint)local_1e * 0x10 + *(int *)(this + 4));
    }
    else {
      if (local_1e != 0xffff) goto LAB_005ceb2d;
LAB_005ceda9:
      puVar5 = &Links(unsigned_short)::s_Sentinel;
    }
    uVar1 = puVar5[2];
    uVar10 = (uint)uVar1;
    if (Links(unsigned_short)::s_Sentinel == '\0') {
      iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
      if (iVar6 != 0) {
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00f21cca = 0xffff;
        DAT_00f21ccc = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      }
      if (uVar1 == 0xffff) goto LAB_005ced6d;
LAB_005ceb4f:
      puVar5 = (undefined2 *)(uVar10 * 0x10 + *(int *)(this + 4));
    }
    else {
      if (uVar1 != 0xffff) goto LAB_005ceb4f;
LAB_005ced6d:
      puVar5 = &Links(unsigned_short)::s_Sentinel;
    }
    uVar2 = puVar5[2];
    uVar9 = (uint)uVar2;
    if (Links(unsigned_short)::s_Sentinel == '\0') {
      iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
      if (iVar6 != 0) {
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00f21cca = 0xffff;
        DAT_00f21ccc = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        goto LAB_005ceb63;
      }
      if (uVar1 == 0xffff) goto LAB_005ced3b;
LAB_005ceb6d:
      puVar5 = (undefined2 *)(uVar10 * 0x10 + *(int *)(this + 4));
    }
    else {
LAB_005ceb63:
      if (uVar1 != 0xffff) goto LAB_005ceb6d;
LAB_005ced3b:
      puVar5 = &Links(unsigned_short)::s_Sentinel;
    }
    uVar3 = puVar5[2];
    if (Links(unsigned_short)::s_Sentinel == '\0') {
      iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
      if (iVar6 != 0) {
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00f21cca = 0xffff;
        DAT_00f21ccc = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        goto LAB_005ceb81;
      }
      if (uVar3 == 0xffff) goto LAB_005ced01;
LAB_005ceb8b:
      puVar7 = (ushort *)((uint)uVar3 * 0x10 + *(int *)(this + 4));
    }
    else {
LAB_005ceb81:
      if (uVar3 != 0xffff) goto LAB_005ceb8b;
LAB_005ced01:
      puVar7 = &Links(unsigned_short)::s_Sentinel;
    }
    if (uVar1 == *puVar7) {
      if (Links(unsigned_short)::s_Sentinel == '\0') {
        iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar6 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f21cca = 0xffff;
          DAT_00f21ccc = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_005ceba5;
        }
        if (uVar2 == 0xffff) goto LAB_005cef53;
LAB_005cebaf:
        puVar5 = (undefined2 *)(uVar9 * 0x10 + *(int *)(this + 4));
      }
      else {
LAB_005ceba5:
        if (uVar2 != 0xffff) goto LAB_005cebaf;
LAB_005cef53:
        puVar5 = &Links(unsigned_short)::s_Sentinel;
      }
      uVar3 = puVar5[1];
      uVar8 = (uint)uVar3;
      if ((Links(unsigned_short)::s_Sentinel == '\0') &&
         (iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00f21cca = 0xffff;
        DAT_00f21ccc = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      }
      sVar4 = _DAT_00f21cce;
      if (uVar3 != 0xffff) {
        sVar4 = *(short *)(uVar8 * 0x10 + *(int *)(this + 4) + 6);
      }
      if (sVar4 == 0) {
LAB_005cebe2:
        *(undefined2 *)(uVar10 * 0x10 + *(int *)(this + 4) + 6) = 1;
        *(undefined2 *)(uVar8 * 0x10 + *(int *)(this + 4) + 6) = 1;
        *(undefined2 *)(uVar9 * 0x10 + *(int *)(this + 4) + 6) = 0;
        local_1e = uVar2;
      }
      else {
        iVar6 = Links(this,local_1e);
        iVar6 = Links(this,*(ushort *)(iVar6 + 4));
        if (local_1e == *(ushort *)(iVar6 + 2)) {
          RotateLeft(this,uVar1);
          iVar6 = Links(this,uVar1);
          uVar10 = (uint)*(ushort *)(iVar6 + 4);
          iVar6 = Links(this,*(ushort *)(iVar6 + 4));
          uVar9 = (uint)*(ushort *)(iVar6 + 4);
          local_1e = uVar1;
        }
        *(undefined2 *)(uVar10 * 0x10 + *(int *)(this + 4) + 6) = 1;
        *(undefined2 *)(uVar9 * 0x10 + *(int *)(this + 4) + 6) = 0;
        RotateRight(this,(ushort)uVar9);
      }
    }
    else {
      if (Links(unsigned_short)::s_Sentinel == '\0') {
        iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar6 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f21cca = 0xffff;
          DAT_00f21ccc = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_005cec28;
        }
        if (uVar2 == 0xffff) goto LAB_005ceffb;
LAB_005cec32:
        puVar7 = (ushort *)(uVar9 * 0x10 + *(int *)(this + 4));
      }
      else {
LAB_005cec28:
        if (uVar2 != 0xffff) goto LAB_005cec32;
LAB_005ceffb:
        puVar7 = &Links(unsigned_short)::s_Sentinel;
      }
      uVar3 = *puVar7;
      uVar8 = (uint)uVar3;
      if ((Links(unsigned_short)::s_Sentinel == '\0') &&
         (iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00f21cca = 0xffff;
        DAT_00f21ccc = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        if (uVar3 == 0xffff) goto LAB_005cefc0;
LAB_005cec50:
        puVar5 = (undefined2 *)(uVar8 * 0x10 + *(int *)(this + 4));
      }
      else {
        if (uVar3 != 0xffff) goto LAB_005cec50;
LAB_005cefc0:
        puVar5 = &Links(unsigned_short)::s_Sentinel;
      }
      if (puVar5[3] == 0) goto LAB_005cebe2;
      iVar6 = Links(this,local_1e);
      puVar7 = (ushort *)Links(this,*(ushort *)(iVar6 + 4));
      if (local_1e == *puVar7) {
        RotateRight(this,uVar1);
        iVar6 = Links(this,uVar1);
        uVar10 = (uint)*(ushort *)(iVar6 + 4);
        iVar6 = Links(this,*(ushort *)(iVar6 + 4));
        uVar9 = (uint)*(ushort *)(iVar6 + 4);
        local_1e = uVar1;
      }
      *(undefined2 *)(uVar10 * 0x10 + *(int *)(this + 4) + 6) = 1;
      *(undefined2 *)(uVar9 * 0x10 + *(int *)(this + 4) + 6) = 0;
      RotateLeft(this,(ushort)uVar9);
    }
  } 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)