L L4D2node

CUtlRBTree<CUtlMap<unsigned_long_long,KeyValues*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,KeyValues*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,KeyValues*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RemoveRebalance

0x00895ac0 · 5434 bytes · __thiscall

_ZN10CUtlRBTreeIN7CUtlMapIyP9KeyValuestE6Node_tEtNS3_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS4_tEtEE15RemoveRebalanceEt

Decompiled

undefined (2 params)

/* CUtlRBTree<CUtlMap<unsigned long long, KeyValues*, unsigned short>::Node_t, unsigned short,
   CUtlMap<unsigned long long, KeyValues*, unsigned short>::CKeyLess,
   CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned long long, KeyValues*, unsigned short>::Node_t,
   unsigned short>, unsigned short> >::RemoveRebalance(unsigned short) */

void __thiscall
CUtlRBTree<CUtlMap<unsigned_long_long,KeyValues*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,KeyValues*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,KeyValues*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::RemoveRebalance(CUtlRBTree<CUtlMap<unsigned_long_long,KeyValues*,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,KeyValues*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,KeyValues*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                  *this,ushort param_1)

{
  short sVar1;
  ushort uVar2;
  ushort *puVar3;
  int iVar4;
  ushort uVar5;
  ushort uVar6;
  uint uVar7;
  undefined2 *puVar8;
  bool bVar9;
  int local_28;
  uint local_24;
  int local_20;
  
  uVar2 = *(ushort *)(this + 0x10);
  while (param_1 != uVar2) {
    if ((Links(unsigned_short)::s_Sentinel == '\0') &&
       (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
      DAT_00f5e1e8 = 0xffff;
      Links(unsigned_short)::s_Sentinel = 0xffff;
      DAT_00f5e1e6 = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    sVar1 = DAT_00f5e1ea;
    if (param_1 != 0xffff) {
      sVar1 = *(short *)(*(int *)(this + 4) + (uint)param_1 * 0x14 + 6);
    }
    if (sVar1 != 1) break;
    if (Links(unsigned_short)::s_Sentinel == '\0') {
      iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
      if (iVar4 != 0) {
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00f5e1e6 = 0xffff;
        DAT_00f5e1e8 = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      }
      if (param_1 != 0xffff) goto LAB_00895bad;
LAB_00895d99:
      local_24 = (uint)DAT_00f5e1e8;
      uVar2 = DAT_00f5e1e8;
      if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00895bcb;
LAB_00895db0:
      iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
      if (iVar4 != 0) {
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00f5e1e6 = 0xffff;
        DAT_00f5e1e8 = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      }
      if (uVar2 != 0xffff) goto LAB_00895bd5;
LAB_00895dd5:
      if (param_1 != Links(unsigned_short)::s_Sentinel) goto LAB_00895bee;
LAB_00895df0:
      if (Links(unsigned_short)::s_Sentinel == '\0') {
        iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar4 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f5e1e6 = 0xffff;
          DAT_00f5e1e8 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (uVar2 != 0xffff) goto LAB_00895e02;
LAB_008966cd:
        puVar8 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
        if (uVar2 == 0xffff) goto LAB_008966cd;
LAB_00895e02:
        puVar8 = (undefined2 *)(*(int *)(this + 4) + local_24 * 0x14);
      }
      uVar6 = puVar8[1];
      uVar7 = (uint)uVar6;
      if ((Links(unsigned_short)::s_Sentinel == '\0') &&
         (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
        DAT_00f5e1e6 = 0xffff;
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00f5e1e8 = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        if (uVar6 != 0xffff) goto LAB_00895e24;
LAB_00896698:
        puVar8 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
        if (uVar6 == 0xffff) goto LAB_00896698;
LAB_00895e24:
        puVar8 = (undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14);
      }
      if (puVar8[3] == 0) {
        *(undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) = 1;
        *(undefined2 *)(*(int *)(this + 4) + local_24 * 0x14 + 6) = 0;
        RotateLeft(this,(ushort)local_24);
        if (Links(unsigned_short)::s_Sentinel == '\0') {
          iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
          if (iVar4 != 0) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00f5e1e6 = 0xffff;
            DAT_00f5e1e8 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          if (param_1 != 0xffff) goto LAB_00896608;
LAB_00896ab9:
          puVar8 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          if (param_1 == 0xffff) goto LAB_00896ab9;
LAB_00896608:
          puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)param_1 * 0x14);
        }
        uVar2 = puVar8[2];
        if (Links(unsigned_short)::s_Sentinel == '\0') {
          iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
          if (iVar4 != 0) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00f5e1e6 = 0xffff;
            DAT_00f5e1e8 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          if (uVar2 != 0xffff) goto LAB_0089662a;
LAB_00896a7d:
          puVar8 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          if (uVar2 == 0xffff) goto LAB_00896a7d;
LAB_0089662a:
          puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar2 * 0x14);
        }
        uVar7 = (uint)(ushort)puVar8[1];
      }
      uVar6 = (ushort)uVar7;
      if (Links(unsigned_short)::s_Sentinel == '\0') {
        iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar4 != 0) {
          DAT_00f5e1e6 = 0xffff;
          DAT_00f5e1e8 = 0xffff;
          Links(unsigned_short)::s_Sentinel = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_00895e4a;
        }
        if (uVar6 != 0xffff) goto LAB_00895e54;
LAB_008965ab:
        puVar3 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
LAB_00895e4a:
        if (uVar6 == 0xffff) goto LAB_008965ab;
LAB_00895e54:
        puVar3 = (ushort *)(*(int *)(this + 4) + uVar7 * 0x14);
      }
      uVar5 = *puVar3;
      if (Links(unsigned_short)::s_Sentinel == '\0') {
        iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar4 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f5e1e6 = 0xffff;
          DAT_00f5e1e8 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_00895e6b;
        }
        if (uVar5 != 0xffff) goto LAB_00895e75;
LAB_0089638b:
        if (DAT_00f5e1ea != 1) goto joined_r0x008963ec;
LAB_0089639b:
        if ((Links(unsigned_short)::s_Sentinel == '\0') &&
           (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f5e1e6 = 0xffff;
          DAT_00f5e1e8 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (uVar6 == 0xffff) {
          puVar8 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          puVar8 = (undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14);
        }
        uVar5 = puVar8[1];
        if ((Links(unsigned_short)::s_Sentinel == '\0') &&
           (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
          DAT_00f5e1e6 = 0xffff;
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f5e1e8 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (uVar5 == 0xffff) {
          puVar8 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar5 * 0x14);
        }
        if (puVar8[3] != 1) goto joined_r0x008963ec;
LAB_00896880:
        param_1 = uVar2;
        if ((short)uVar7 == -1) {
          uVar2 = *(ushort *)(this + 0x10);
        }
        else {
          *(undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) = 0;
          uVar2 = *(ushort *)(this + 0x10);
        }
      }
      else {
LAB_00895e6b:
        if (uVar5 == 0xffff) goto LAB_0089638b;
LAB_00895e75:
        if (*(short *)(*(int *)(this + 4) + (uint)uVar5 * 0x14 + 6) == 1) goto LAB_0089639b;
joined_r0x008963ec:
        if (Links(unsigned_short)::s_Sentinel == '\0') {
          iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
          if (iVar4 != 0) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00f5e1e6 = 0xffff;
            DAT_00f5e1e8 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
            goto LAB_00895e91;
          }
          if (uVar6 != 0xffff) goto LAB_00895e9b;
LAB_00896423:
          local_28 = 0x13ffec;
          uVar7 = (uint)DAT_00f5e1e6;
          if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00895ebc;
LAB_0089643b:
          iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
          if (iVar4 != 0) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00f5e1e6 = 0xffff;
            DAT_00f5e1e8 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
            goto LAB_00895ebc;
          }
          if ((short)uVar7 != -1) goto LAB_00895ec6;
LAB_00896466:
          if (DAT_00f5e1ea != 1) goto LAB_00895eda;
LAB_00896480:
          if ((Links(unsigned_short)::s_Sentinel == '\0') &&
             (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00f5e1e6 = 0xffff;
            DAT_00f5e1e8 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          puVar3 = &Links(unsigned_short)::s_Sentinel;
          if (uVar6 != 0xffff) {
            puVar3 = (ushort *)(local_28 + *(int *)(this + 4));
          }
          *(undefined2 *)(*(int *)(this + 4) + 6 + (uint)*puVar3 * 0x14) = 1;
          *(undefined2 *)(*(int *)(this + 4) + 6 + local_28) = 0;
          RotateRight(this,uVar6);
          if ((Links(unsigned_short)::s_Sentinel == '\0') &&
             (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00f5e1e6 = 0xffff;
            DAT_00f5e1e8 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          if (param_1 == 0xffff) {
            puVar8 = &Links(unsigned_short)::s_Sentinel;
          }
          else {
            puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)param_1 * 0x14);
          }
          uVar2 = puVar8[2];
          if ((Links(unsigned_short)::s_Sentinel == '\0') &&
             (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00f5e1e6 = 0xffff;
            DAT_00f5e1e8 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          if (uVar2 == 0xffff) {
            local_20 = 0x13ffec;
            puVar8 = &Links(unsigned_short)::s_Sentinel;
            local_24._0_2_ = 0xffff;
          }
          else {
            local_20 = (uint)uVar2 * 0x14;
            puVar8 = (undefined2 *)(*(int *)(this + 4) + local_20);
            local_24._0_2_ = uVar2;
          }
          uVar6 = puVar8[1];
          local_28 = (uint)uVar6 * 0x14;
          if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00896540;
LAB_00895ef5:
          iVar4 = *(int *)(this + 4);
          if (uVar2 != 0xffff) goto LAB_00895f02;
LAB_0089656e:
          puVar8 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
LAB_00895e91:
          if (uVar6 == 0xffff) goto LAB_00896423;
LAB_00895e9b:
          local_28 = uVar7 * 0x14;
          uVar7 = (uint)*(ushort *)(*(int *)(this + 4) + local_28 + 2);
          if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_0089643b;
LAB_00895ebc:
          if ((short)uVar7 == -1) goto LAB_00896466;
LAB_00895ec6:
          if (*(short *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) == 1) goto LAB_00896480;
LAB_00895eda:
          local_20 = (uint)uVar2 * 0x14;
          local_24._0_2_ = uVar2;
          if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00895ef5;
LAB_00896540:
          iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
          if (iVar4 != 0) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00f5e1e6 = 0xffff;
            DAT_00f5e1e8 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
            goto LAB_00895ef5;
          }
          iVar4 = *(int *)(this + 4);
          if (uVar2 == 0xffff) goto LAB_0089656e;
LAB_00895f02:
          puVar8 = (undefined2 *)(local_20 + iVar4);
        }
        bVar9 = Links(unsigned_short)::s_Sentinel == '\0';
        *(undefined2 *)(iVar4 + 6 + local_28) = puVar8[3];
        *(undefined2 *)(*(int *)(this + 4) + 6 + local_20) = 1;
        if ((bVar9) && (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)
           ) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f5e1e6 = 0xffff;
          DAT_00f5e1e8 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (uVar6 == 0xffff) {
          puVar8 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          puVar8 = (undefined2 *)(local_28 + *(int *)(this + 4));
        }
        *(undefined2 *)(*(int *)(this + 4) + 6 + (uint)(ushort)puVar8[1] * 0x14) = 1;
        RotateLeft(this,(ushort)local_24);
        uVar2 = *(ushort *)(this + 0x10);
        param_1 = uVar2;
      }
    }
    else {
      if (param_1 == 0xffff) goto LAB_00895d99;
LAB_00895bad:
      uVar2 = *(ushort *)(*(int *)(this + 4) + (uint)param_1 * 0x14 + 4);
      local_24 = (uint)uVar2;
      if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00895db0;
LAB_00895bcb:
      if (uVar2 == 0xffff) goto LAB_00895dd5;
LAB_00895bd5:
      if (param_1 == *(ushort *)(*(int *)(this + 4) + local_24 * 0x14)) goto LAB_00895df0;
LAB_00895bee:
      if (Links(unsigned_short)::s_Sentinel == '\0') {
        iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar4 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f5e1e6 = 0xffff;
          DAT_00f5e1e8 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (uVar2 != 0xffff) goto LAB_00895c00;
LAB_008962e5:
        puVar3 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
        if (uVar2 == 0xffff) goto LAB_008962e5;
LAB_00895c00:
        puVar3 = (ushort *)(*(int *)(this + 4) + local_24 * 0x14);
      }
      uVar6 = *puVar3;
      uVar7 = (uint)uVar6;
      if ((Links(unsigned_short)::s_Sentinel == '\0') &&
         (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00f5e1e6 = 0xffff;
        DAT_00f5e1e8 = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        if (uVar6 != 0xffff) goto LAB_00895c21;
LAB_008961f0:
        if (DAT_00f5e1ea != 0) goto LAB_00895c38;
LAB_00896200:
        *(undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) = 1;
        *(undefined2 *)(*(int *)(this + 4) + local_24 * 0x14 + 6) = 0;
        RotateRight(this,(ushort)local_24);
        if (Links(unsigned_short)::s_Sentinel == '\0') {
          iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
          if (iVar4 != 0) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00f5e1e6 = 0xffff;
            DAT_00f5e1e8 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          if (param_1 != 0xffff) goto LAB_00896250;
LAB_00896739:
          puVar8 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          if (param_1 == 0xffff) goto LAB_00896739;
LAB_00896250:
          puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)param_1 * 0x14);
        }
        uVar2 = puVar8[2];
        if (Links(unsigned_short)::s_Sentinel == '\0') {
          iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
          if (iVar4 != 0) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00f5e1e6 = 0xffff;
            DAT_00f5e1e8 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          if (uVar2 != 0xffff) goto LAB_00896272;
LAB_00896705:
          puVar3 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          if (uVar2 == 0xffff) goto LAB_00896705;
LAB_00896272:
          puVar3 = (ushort *)(*(int *)(this + 4) + (uint)uVar2 * 0x14);
        }
        uVar7 = (uint)*puVar3;
        if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00895c47;
LAB_00896289:
        iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar4 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f5e1e6 = 0xffff;
          DAT_00f5e1e8 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_00895c47;
        }
        if ((short)uVar7 != -1) goto LAB_00895c51;
LAB_008962b4:
        puVar8 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
        if (uVar6 == 0xffff) goto LAB_008961f0;
LAB_00895c21:
        if (*(short *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) == 0) goto LAB_00896200;
LAB_00895c38:
        if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00896289;
LAB_00895c47:
        if ((short)uVar7 == -1) goto LAB_008962b4;
LAB_00895c51:
        puVar8 = (undefined2 *)(*(int *)(this + 4) + uVar7 * 0x14);
      }
      uVar6 = puVar8[1];
      uVar5 = (ushort)uVar7;
      if (Links(unsigned_short)::s_Sentinel == '\0') {
        iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar4 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f5e1e8 = 0xffff;
          DAT_00f5e1e6 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_00895c69;
        }
        if (uVar6 != 0xffff) goto LAB_00895c73;
LAB_00895f9b:
        if (DAT_00f5e1ea != 1) goto LAB_00895c87;
LAB_00895fb0:
        if ((Links(unsigned_short)::s_Sentinel == '\0') &&
           (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f5e1e6 = 0xffff;
          DAT_00f5e1e8 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        uVar6 = Links(unsigned_short)::s_Sentinel;
        if (uVar5 != 0xffff) {
          uVar6 = *(ushort *)(*(int *)(this + 4) + uVar7 * 0x14);
        }
        if ((Links(unsigned_short)::s_Sentinel == '\0') &&
           (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f5e1e6 = 0xffff;
          DAT_00f5e1e8 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (uVar6 == 0xffff) {
          puVar8 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar6 * 0x14);
        }
        if (puVar8[3] == 1) goto LAB_00896880;
        if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00896010;
LAB_00895c8f:
        if (uVar5 != 0xffff) goto LAB_00895c99;
LAB_0089603b:
        local_28 = 0x13ffec;
        uVar7 = (uint)Links(unsigned_short)::s_Sentinel;
        if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00896058;
LAB_00895cb9:
        if ((short)uVar7 != -1) goto LAB_00895cc3;
LAB_00896083:
        if (DAT_00f5e1ea != 1) goto LAB_00895cd7;
LAB_00896098:
        if ((Links(unsigned_short)::s_Sentinel == '\0') &&
           (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f5e1e6 = 0xffff;
          DAT_00f5e1e8 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        puVar8 = &Links(unsigned_short)::s_Sentinel;
        if (uVar5 != 0xffff) {
          puVar8 = (undefined2 *)(local_28 + *(int *)(this + 4));
        }
        *(undefined2 *)(*(int *)(this + 4) + 6 + (uint)(ushort)puVar8[1] * 0x14) = 1;
        *(undefined2 *)(*(int *)(this + 4) + 6 + local_28) = 0;
        RotateLeft(this,uVar5);
        if ((Links(unsigned_short)::s_Sentinel == '\0') &&
           (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f5e1e6 = 0xffff;
          DAT_00f5e1e8 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (param_1 == 0xffff) {
          puVar8 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          puVar8 = (undefined2 *)(*(int *)(this + 4) + (uint)param_1 * 0x14);
        }
        uVar2 = puVar8[2];
        if ((Links(unsigned_short)::s_Sentinel == '\0') &&
           (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0)) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f5e1e6 = 0xffff;
          DAT_00f5e1e8 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (uVar2 == 0xffff) {
          local_20 = 0x13ffec;
          puVar3 = &Links(unsigned_short)::s_Sentinel;
          local_24._0_2_ = 0xffff;
        }
        else {
          local_20 = (uint)uVar2 * 0x14;
          puVar3 = (ushort *)(*(int *)(this + 4) + local_20);
          local_24._0_2_ = uVar2;
        }
        uVar5 = *puVar3;
        local_28 = (uint)uVar5 * 0x14;
        if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00895cf2;
LAB_00896158:
        iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar4 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f5e1e6 = 0xffff;
          DAT_00f5e1e8 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_00895cf2;
        }
        iVar4 = *(int *)(this + 4);
        if (uVar2 != 0xffff) goto LAB_00895cff;
LAB_00896186:
        puVar8 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
LAB_00895c69:
        if (uVar6 == 0xffff) goto LAB_00895f9b;
LAB_00895c73:
        if (*(short *)(*(int *)(this + 4) + (uint)uVar6 * 0x14 + 6) == 1) goto LAB_00895fb0;
LAB_00895c87:
        if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00895c8f;
LAB_00896010:
        iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar4 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f5e1e6 = 0xffff;
          DAT_00f5e1e8 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_00895c8f;
        }
        if (uVar5 == 0xffff) goto LAB_0089603b;
LAB_00895c99:
        local_28 = uVar7 * 0x14;
        uVar7 = (uint)*(ushort *)(*(int *)(this + 4) + local_28);
        if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00895cb9;
LAB_00896058:
        iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar4 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f5e1e6 = 0xffff;
          DAT_00f5e1e8 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_00895cb9;
        }
        if ((short)uVar7 == -1) goto LAB_00896083;
LAB_00895cc3:
        if (*(short *)(*(int *)(this + 4) + uVar7 * 0x14 + 6) == 1) goto LAB_00896098;
LAB_00895cd7:
        local_20 = (uint)uVar2 * 0x14;
        local_24._0_2_ = uVar2;
        if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00896158;
LAB_00895cf2:
        iVar4 = *(int *)(this + 4);
        if (uVar2 == 0xffff) goto LAB_00896186;
LAB_00895cff:
        puVar8 = (undefined2 *)(local_20 + iVar4);
      }
      bVar9 = Links(unsigned_short)::s_Sentinel == '\0';
      *(undefined2 *)(iVar4 + 6 + local_28) = puVar8[3];
      *(undefined2 *)(*(int *)(this + 4) + 6 + local_20) = 1;
      if ((bVar9) && (iVar4 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar4 != 0))
      {
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00f5e1e6 = 0xffff;
        DAT_00f5e1e8 = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        iVar4 = *(int *)(this + 4);
        if (uVar5 != 0xffff) goto LAB_00895d35;
LAB_00896870:
        puVar3 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
        iVar4 = *(int *)(this + 4);
        if (uVar5 == 0xffff) goto LAB_00896870;
LAB_00895d35:
        puVar3 = (ushort *)(local_28 + iVar4);
      }
      *(undefined2 *)(iVar4 + 6 + (uint)*puVar3 * 0x14) = 1;
      RotateRight(this,(ushort)local_24);
      uVar2 = *(ushort *)(this + 0x10);
      param_1 = uVar2;
    }
  }
  *(undefined2 *)(*(int *)(this + 4) + (uint)param_1 * 0x14 + 6) = 1;
  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)