L L4D2node

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

0x002201b0 · 5686 bytes · __thiscall

_ZN10CUtlRBTreeIN7CUtlMapIy19PublishedFileInfo_ttE6Node_tEtNS2_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS3_tEtEE15RemoveRebalanceEt

Decompiled

undefined (2 params)

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

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

{
  short sVar1;
  uint uVar2;
  int iVar3;
  undefined2 *puVar4;
  ushort uVar5;
  ushort uVar6;
  ushort *puVar7;
  uint uVar8;
  ushort uVar9;
  ushort uVar11;
  bool bVar12;
  int local_28;
  int local_24;
  uint uVar10;
  
  uVar2 = (uint)*(ushort *)(this + 0x10);
  uVar10 = (uint)param_1;
  while (uVar9 = (ushort)uVar10, uVar9 != (ushort)uVar2) {
    if ((Links(unsigned_short)::s_Sentinel == '\0') &&
       (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
      Links(unsigned_short)::s_Sentinel = 0xffff;
      DAT_00341a9a = 0xffff;
      DAT_00341a9c = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    sVar1 = DAT_00341a9e;
    if (uVar9 != 0xffff) {
      sVar1 = *(short *)(uVar10 * 0x2540 + *(int *)(this + 4) + 6);
    }
    if (sVar1 != 1) break;
    if (Links(unsigned_short)::s_Sentinel == '\0') {
      iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
      if (iVar3 != 0) {
        DAT_00341a9a = 0xffff;
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00341a9c = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      }
      if (uVar9 != 0xffff) goto LAB_00220289;
LAB_00220465:
      uVar2 = (uint)DAT_00341a9c;
      uVar11 = DAT_00341a9c;
      if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_002202a4;
LAB_00220480:
      iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
      if (iVar3 != 0) {
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00341a9c = 0xffff;
        DAT_00341a9a = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        goto LAB_002202a4;
      }
      if (uVar11 != 0xffff) goto LAB_002202ae;
LAB_002204ab:
      if (uVar9 != Links(unsigned_short)::s_Sentinel) goto LAB_002202c0;
LAB_002204c0:
      if (Links(unsigned_short)::s_Sentinel == '\0') {
        iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar3 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00341a9a = 0xffff;
          DAT_00341a9c = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_002204c8;
        }
        if (uVar11 != 0xffff) goto LAB_002204d2;
LAB_00220e2b:
        puVar4 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
LAB_002204c8:
        if (uVar11 == 0xffff) goto LAB_00220e2b;
LAB_002204d2:
        puVar4 = (undefined2 *)(uVar2 * 0x2540 + *(int *)(this + 4));
      }
      uVar6 = puVar4[1];
      uVar8 = (uint)uVar6;
      if ((Links(unsigned_short)::s_Sentinel == '\0') &&
         (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
        DAT_00341a9a = 0xffff;
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00341a9c = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        if (uVar6 != 0xffff) goto LAB_002204f1;
LAB_00220df0:
        puVar4 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
        if (uVar6 == 0xffff) goto LAB_00220df0;
LAB_002204f1:
        puVar4 = (undefined2 *)(uVar8 * 0x2540 + *(int *)(this + 4));
      }
      if (puVar4[3] == 0) {
        *(undefined2 *)(uVar8 * 0x2540 + *(int *)(this + 4) + 6) = 1;
        *(undefined2 *)(uVar2 * 0x2540 + *(int *)(this + 4) + 6) = 0;
        RotateLeft(this,(ushort)uVar2);
        if (Links(unsigned_short)::s_Sentinel == '\0') {
          iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
          if (iVar3 != 0) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00341a9a = 0xffff;
            DAT_00341a9c = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          if (uVar9 != 0xffff) goto LAB_00220d4c;
LAB_00221268:
          puVar4 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          if (uVar9 == 0xffff) goto LAB_00221268;
LAB_00220d4c:
          puVar4 = (undefined2 *)(uVar10 * 0x2540 + *(int *)(this + 4));
        }
        uVar11 = puVar4[2];
        if (Links(unsigned_short)::s_Sentinel == '\0') {
          iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
          if (iVar3 != 0) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00341a9a = 0xffff;
            DAT_00341a9c = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          if (uVar11 != 0xffff) goto LAB_00220d70;
LAB_00221230:
          puVar4 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          if (uVar11 == 0xffff) goto LAB_00221230;
LAB_00220d70:
          puVar4 = (undefined2 *)((uint)uVar11 * 0x2540 + *(int *)(this + 4));
        }
        uVar8 = (uint)(ushort)puVar4[1];
      }
      uVar6 = (ushort)uVar8;
      if (Links(unsigned_short)::s_Sentinel == '\0') {
        iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar3 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00341a9a = 0xffff;
          DAT_00341a9c = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_0022051c;
        }
        if (uVar6 != 0xffff) goto LAB_00220526;
LAB_00220cf6:
        puVar7 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
LAB_0022051c:
        if (uVar6 == 0xffff) goto LAB_00220cf6;
LAB_00220526:
        puVar7 = (ushort *)(uVar8 * 0x2540 + *(int *)(this + 4));
      }
      uVar5 = *puVar7;
      if (Links(unsigned_short)::s_Sentinel == '\0') {
        iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar3 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00341a9a = 0xffff;
          DAT_00341a9c = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_0022053f;
        }
        if (uVar5 != 0xffff) goto LAB_00220549;
LAB_00220ab4:
        if (DAT_00341a9e != 1) goto joined_r0x00220b21;
LAB_00220ac4:
        if ((Links(unsigned_short)::s_Sentinel == '\0') &&
           (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00341a9a = 0xffff;
          DAT_00341a9c = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (uVar6 == 0xffff) {
          puVar4 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          puVar4 = (undefined2 *)(uVar8 * 0x2540 + *(int *)(this + 4));
        }
        uVar5 = puVar4[1];
        if ((Links(unsigned_short)::s_Sentinel == '\0') &&
           (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00341a9a = 0xffff;
          DAT_00341a9c = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (uVar5 == 0xffff) {
          puVar4 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          puVar4 = (undefined2 *)((uint)uVar5 * 0x2540 + *(int *)(this + 4));
        }
        if (puVar4[3] != 1) goto joined_r0x00220b21;
LAB_00221000:
        if ((short)uVar8 == -1) {
          uVar2 = (uint)*(ushort *)(this + 0x10);
          uVar10 = (uint)uVar11;
        }
        else {
          *(undefined2 *)(uVar8 * 0x2540 + *(int *)(this + 4) + 6) = 0;
          uVar2 = (uint)*(ushort *)(this + 0x10);
          uVar10 = (uint)uVar11;
        }
      }
      else {
LAB_0022053f:
        if (uVar5 == 0xffff) goto LAB_00220ab4;
LAB_00220549:
        if (*(short *)((uint)uVar5 * 0x2540 + *(int *)(this + 4) + 6) == 1) goto LAB_00220ac4;
joined_r0x00220b21:
        if (Links(unsigned_short)::s_Sentinel == '\0') {
          iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
          if (iVar3 != 0) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00341a9a = 0xffff;
            DAT_00341a9c = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
            goto LAB_0022056a;
          }
          if (uVar6 != 0xffff) goto LAB_00220574;
LAB_00220b5e:
          local_24 = 0x253fdac0;
          uVar5 = DAT_00341a9a;
          if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00220591;
LAB_00220b78:
          iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
          if (iVar3 != 0) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00341a9a = 0xffff;
            DAT_00341a9c = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
            goto LAB_00220591;
          }
          if (uVar5 != 0xffff) goto LAB_0022059b;
LAB_00220bac:
          if (DAT_00341a9e != 1) goto LAB_002205b2;
LAB_00220bc0:
          if ((Links(unsigned_short)::s_Sentinel == '\0') &&
             (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
            DAT_00341a9a = 0xffff;
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00341a9c = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          puVar7 = &Links(unsigned_short)::s_Sentinel;
          if (uVar6 != 0xffff) {
            puVar7 = (ushort *)(*(int *)(this + 4) + local_24);
          }
          *(undefined2 *)(*(int *)(this + 4) + 6 + (uint)*puVar7 * 0x2540) = 1;
          *(undefined2 *)(*(int *)(this + 4) + 6 + local_24) = 0;
          RotateRight(this,uVar6);
          if ((Links(unsigned_short)::s_Sentinel == '\0') &&
             (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00341a9a = 0xffff;
            DAT_00341a9c = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          if (uVar9 == 0xffff) {
            puVar4 = &Links(unsigned_short)::s_Sentinel;
          }
          else {
            puVar4 = (undefined2 *)(uVar10 * 0x2540 + *(int *)(this + 4));
          }
          uVar11 = puVar4[2];
          if ((Links(unsigned_short)::s_Sentinel == '\0') &&
             (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00341a9a = 0xffff;
            DAT_00341a9c = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          if (uVar11 == 0xffff) {
            local_28 = 0x253fdac0;
            puVar4 = &Links(unsigned_short)::s_Sentinel;
            uVar9 = 0xffff;
          }
          else {
            local_28 = (uint)uVar11 * 0x2540;
            puVar4 = (undefined2 *)(*(int *)(this + 4) + local_28);
            uVar9 = uVar11;
          }
          uVar6 = puVar4[1];
          local_24 = (uint)uVar6 * 0x2540;
          if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00220c80;
LAB_002205c8:
          iVar3 = *(int *)(this + 4);
          if (uVar11 != 0xffff) goto LAB_002205d5;
LAB_00220cb7:
          puVar4 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
LAB_0022056a:
          if (uVar6 == 0xffff) goto LAB_00220b5e;
LAB_00220574:
          local_24 = uVar8 * 0x2540;
          uVar5 = *(ushort *)(local_24 + *(int *)(this + 4) + 2);
          if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00220b78;
LAB_00220591:
          if (uVar5 == 0xffff) goto LAB_00220bac;
LAB_0022059b:
          if (*(short *)((uint)uVar5 * 0x2540 + *(int *)(this + 4) + 6) == 1) goto LAB_00220bc0;
LAB_002205b2:
          local_28 = (uint)uVar11 * 0x2540;
          uVar9 = uVar11;
          if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_002205c8;
LAB_00220c80:
          iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
          if (iVar3 != 0) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00341a9a = 0xffff;
            DAT_00341a9c = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
            goto LAB_002205c8;
          }
          iVar3 = *(int *)(this + 4);
          if (uVar11 == 0xffff) goto LAB_00220cb7;
LAB_002205d5:
          puVar4 = (undefined2 *)(iVar3 + local_28);
        }
        bVar12 = Links(unsigned_short)::s_Sentinel == '\0';
        *(undefined2 *)(iVar3 + 6 + local_24) = puVar4[3];
        *(undefined2 *)(*(int *)(this + 4) + 6 + local_28) = 1;
        if ((bVar12) &&
           (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
          DAT_00341a9a = 0xffff;
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00341a9c = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (uVar6 == 0xffff) {
          puVar4 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          puVar4 = (undefined2 *)(*(int *)(this + 4) + local_24);
        }
        *(undefined2 *)(*(int *)(this + 4) + 6 + (uint)(ushort)puVar4[1] * 0x2540) = 1;
        RotateLeft(this,uVar9);
        uVar2 = (uint)*(ushort *)(this + 0x10);
        uVar10 = uVar2;
      }
    }
    else {
      if (uVar9 == 0xffff) goto LAB_00220465;
LAB_00220289:
      uVar11 = *(ushort *)(uVar10 * 0x2540 + *(int *)(this + 4) + 4);
      uVar2 = (uint)uVar11;
      if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00220480;
LAB_002202a4:
      if (uVar11 == 0xffff) goto LAB_002204ab;
LAB_002202ae:
      if (uVar9 == *(ushort *)(uVar2 * 0x2540 + *(int *)(this + 4))) goto LAB_002204c0;
LAB_002202c0:
      if (Links(unsigned_short)::s_Sentinel == '\0') {
        iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar3 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00341a9a = 0xffff;
          DAT_00341a9c = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_002202c8;
        }
        if (uVar11 != 0xffff) goto LAB_002202d2;
LAB_002209f3:
        puVar7 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
LAB_002202c8:
        if (uVar11 == 0xffff) goto LAB_002209f3;
LAB_002202d2:
        puVar7 = (ushort *)(uVar2 * 0x2540 + *(int *)(this + 4));
      }
      uVar6 = *puVar7;
      uVar8 = (uint)uVar6;
      if ((Links(unsigned_short)::s_Sentinel == '\0') &&
         (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
        DAT_00341a9a = 0xffff;
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00341a9c = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        if (uVar6 != 0xffff) goto LAB_002202f0;
LAB_002208f0:
        if (DAT_00341a9e != 0) goto LAB_00220307;
LAB_00220900:
        *(undefined2 *)(uVar8 * 0x2540 + *(int *)(this + 4) + 6) = 1;
        *(undefined2 *)(uVar2 * 0x2540 + *(int *)(this + 4) + 6) = 0;
        RotateRight(this,(ushort)uVar2);
        if (Links(unsigned_short)::s_Sentinel == '\0') {
          iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
          if (iVar3 != 0) {
            DAT_00341a9c = 0xffff;
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00341a9a = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          if (uVar9 != 0xffff) goto LAB_0022094c;
LAB_00220e98:
          puVar4 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          if (uVar9 == 0xffff) goto LAB_00220e98;
LAB_0022094c:
          puVar4 = (undefined2 *)(uVar10 * 0x2540 + *(int *)(this + 4));
        }
        uVar11 = puVar4[2];
        if (Links(unsigned_short)::s_Sentinel == '\0') {
          iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
          if (iVar3 != 0) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00341a9a = 0xffff;
            DAT_00341a9c = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          if (uVar11 != 0xffff) goto LAB_00220970;
LAB_00220e60:
          puVar7 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          if (uVar11 == 0xffff) goto LAB_00220e60;
LAB_00220970:
          puVar7 = (ushort *)((uint)uVar11 * 0x2540 + *(int *)(this + 4));
        }
        uVar8 = (uint)*puVar7;
        if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_0022031b;
LAB_00220989:
        iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar3 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00341a9a = 0xffff;
          DAT_00341a9c = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_0022031b;
        }
        if ((short)uVar8 != -1) goto LAB_00220325;
LAB_002209b7:
        puVar4 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
        if (uVar6 == 0xffff) goto LAB_002208f0;
LAB_002202f0:
        if (*(short *)(uVar8 * 0x2540 + *(int *)(this + 4) + 6) == 0) goto LAB_00220900;
LAB_00220307:
        if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00220989;
LAB_0022031b:
        if ((short)uVar8 == -1) goto LAB_002209b7;
LAB_00220325:
        puVar4 = (undefined2 *)(uVar8 * 0x2540 + *(int *)(this + 4));
      }
      uVar6 = puVar4[1];
      uVar5 = (ushort)uVar8;
      if (Links(unsigned_short)::s_Sentinel == '\0') {
        iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar3 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00341a9a = 0xffff;
          DAT_00341a9c = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_0022033f;
        }
        if (uVar6 != 0xffff) goto LAB_00220349;
LAB_00220674:
        if (DAT_00341a9e != 1) goto LAB_00220360;
LAB_00220688:
        if ((Links(unsigned_short)::s_Sentinel == '\0') &&
           (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00341a9a = 0xffff;
          DAT_00341a9c = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        uVar6 = Links(unsigned_short)::s_Sentinel;
        if (uVar5 != 0xffff) {
          uVar6 = *(ushort *)(uVar8 * 0x2540 + *(int *)(this + 4));
        }
        if ((Links(unsigned_short)::s_Sentinel == '\0') &&
           (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00341a9a = 0xffff;
          DAT_00341a9c = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (uVar6 == 0xffff) {
          puVar4 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          puVar4 = (undefined2 *)((uint)uVar6 * 0x2540 + *(int *)(this + 4));
        }
        if (puVar4[3] == 1) goto LAB_00221000;
        if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_002206f0;
LAB_0022036a:
        if (uVar5 != 0xffff) goto LAB_00220374;
LAB_0022071e:
        local_24 = 0x253fdac0;
        uVar6 = Links(unsigned_short)::s_Sentinel;
        if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00220740;
LAB_00220390:
        if (uVar6 != 0xffff) goto LAB_0022039a;
LAB_00220774:
        if (DAT_00341a9e != 1) goto LAB_002203b1;
LAB_00220788:
        if ((Links(unsigned_short)::s_Sentinel == '\0') &&
           (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
          DAT_00341a9a = 0xffff;
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00341a9c = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        puVar4 = &Links(unsigned_short)::s_Sentinel;
        if (uVar5 != 0xffff) {
          puVar4 = (undefined2 *)(*(int *)(this + 4) + local_24);
        }
        *(undefined2 *)(*(int *)(this + 4) + 6 + (uint)(ushort)puVar4[1] * 0x2540) = 1;
        *(undefined2 *)(*(int *)(this + 4) + 6 + local_24) = 0;
        RotateLeft(this,uVar5);
        if ((Links(unsigned_short)::s_Sentinel == '\0') &&
           (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00341a9a = 0xffff;
          DAT_00341a9c = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (uVar9 == 0xffff) {
          puVar4 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          puVar4 = (undefined2 *)(uVar10 * 0x2540 + *(int *)(this + 4));
        }
        uVar11 = puVar4[2];
        if ((Links(unsigned_short)::s_Sentinel == '\0') &&
           (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00341a9a = 0xffff;
          DAT_00341a9c = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (uVar11 == 0xffff) {
          local_28 = 0x253fdac0;
          puVar7 = &Links(unsigned_short)::s_Sentinel;
          uVar9 = 0xffff;
        }
        else {
          local_28 = (uint)uVar11 * 0x2540;
          puVar7 = (ushort *)(*(int *)(this + 4) + local_28);
          uVar9 = uVar11;
        }
        uVar5 = *puVar7;
        local_24 = (uint)uVar5 * 0x2540;
        if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_002203c7;
LAB_00220840:
        iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar3 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00341a9a = 0xffff;
          DAT_00341a9c = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_002203c7;
        }
        iVar3 = *(int *)(this + 4);
        if (uVar11 != 0xffff) goto LAB_002203d4;
LAB_00220877:
        puVar4 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
LAB_0022033f:
        if (uVar6 == 0xffff) goto LAB_00220674;
LAB_00220349:
        if (*(short *)((uint)uVar6 * 0x2540 + *(int *)(this + 4) + 6) == 1) goto LAB_00220688;
LAB_00220360:
        if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_0022036a;
LAB_002206f0:
        iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar3 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00341a9a = 0xffff;
          DAT_00341a9c = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_0022036a;
        }
        if (uVar5 == 0xffff) goto LAB_0022071e;
LAB_00220374:
        local_24 = uVar8 * 0x2540;
        uVar6 = *(ushort *)(local_24 + *(int *)(this + 4));
        if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00220390;
LAB_00220740:
        iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar3 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00341a9a = 0xffff;
          DAT_00341a9c = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_00220390;
        }
        if (uVar6 == 0xffff) goto LAB_00220774;
LAB_0022039a:
        if (*(short *)((uint)uVar6 * 0x2540 + *(int *)(this + 4) + 6) == 1) goto LAB_00220788;
LAB_002203b1:
        local_28 = (uint)uVar11 * 0x2540;
        uVar9 = uVar11;
        if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00220840;
LAB_002203c7:
        iVar3 = *(int *)(this + 4);
        if (uVar11 == 0xffff) goto LAB_00220877;
LAB_002203d4:
        puVar4 = (undefined2 *)(iVar3 + local_28);
      }
      bVar12 = Links(unsigned_short)::s_Sentinel == '\0';
      *(undefined2 *)(iVar3 + 6 + local_24) = puVar4[3];
      *(undefined2 *)(*(int *)(this + 4) + 6 + local_28) = 1;
      if ((bVar12) && (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0))
      {
        DAT_00341a9a = 0xffff;
        DAT_00341a9c = 0xffff;
        Links(unsigned_short)::s_Sentinel = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        iVar3 = *(int *)(this + 4);
        if (uVar5 != 0xffff) goto LAB_0022040d;
LAB_00220ff0:
        puVar7 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
        iVar3 = *(int *)(this + 4);
        if (uVar5 == 0xffff) goto LAB_00220ff0;
LAB_0022040d:
        puVar7 = (ushort *)(iVar3 + local_24);
      }
      *(undefined2 *)(iVar3 + 6 + (uint)*puVar7 * 0x2540) = 1;
      RotateRight(this,uVar9);
      uVar2 = (uint)*(ushort *)(this + 0x10);
      uVar10 = uVar2;
    }
  }
  *(undefined2 *)(uVar10 * 0x2540 + *(int *)(this + 4) + 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)