L L4D2node

CUtlRBTree<CUtlMap<IPhysicsObject*,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<IPhysicsObject*,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<IPhysicsObject*,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RemoveRebalance

0x0048b530 · 5563 bytes · __thiscall

_ZN10CUtlRBTreeIN7CUtlMapIP14IPhysicsObjectitE6Node_tEtNS3_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS4_tEtEE15RemoveRebalanceEt

Decompiled

undefined (2 params)

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

void __thiscall
CUtlRBTree<CUtlMap<IPhysicsObject*,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<IPhysicsObject*,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<IPhysicsObject*,int,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::RemoveRebalance(CUtlRBTree<CUtlMap<IPhysicsObject*,int,unsigned_short>::Node_t,unsigned_short,CUtlMap<IPhysicsObject*,int,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<IPhysicsObject*,int,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_00f165e0 = 0xffff;
      DAT_00f165e2 = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    sVar1 = DAT_00f165e4;
    if (uVar9 != 0xffff) {
      sVar1 = *(short *)(uVar10 * 0x10 + *(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_00f165e0 = 0xffff;
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00f165e2 = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      }
      if (uVar9 != 0xffff) goto LAB_0048b601;
LAB_0048b7c5:
      uVar2 = (uint)DAT_00f165e2;
      uVar11 = DAT_00f165e2;
      if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_0048b619;
LAB_0048b7e0:
      iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
      if (iVar3 != 0) {
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00f165e2 = 0xffff;
        DAT_00f165e0 = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        goto LAB_0048b619;
      }
      if (uVar11 != 0xffff) goto LAB_0048b623;
LAB_0048b80b:
      if (uVar9 != Links(unsigned_short)::s_Sentinel) goto LAB_0048b634;
LAB_0048b820:
      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_00f165e0 = 0xffff;
          DAT_00f165e2 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_0048b828;
        }
        if (uVar11 != 0xffff) goto LAB_0048b832;
LAB_0048c12b:
        puVar4 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
LAB_0048b828:
        if (uVar11 == 0xffff) goto LAB_0048c12b;
LAB_0048b832:
        puVar4 = (undefined2 *)(uVar2 * 0x10 + *(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_00f165e0 = 0xffff;
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00f165e2 = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        if (uVar6 != 0xffff) goto LAB_0048b850;
LAB_0048c0f0:
        puVar4 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
        if (uVar6 == 0xffff) goto LAB_0048c0f0;
LAB_0048b850:
        puVar4 = (undefined2 *)(uVar8 * 0x10 + *(int *)(this + 4));
      }
      if (puVar4[3] == 0) {
        *(undefined2 *)(uVar8 * 0x10 + *(int *)(this + 4) + 6) = 1;
        *(undefined2 *)(uVar2 * 0x10 + *(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_00f165e0 = 0xffff;
            DAT_00f165e2 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          if (uVar9 != 0xffff) goto LAB_0048c058;
LAB_0048c568:
          puVar4 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          if (uVar9 == 0xffff) goto LAB_0048c568;
LAB_0048c058:
          puVar4 = (undefined2 *)(uVar10 * 0x10 + *(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_00f165e0 = 0xffff;
            DAT_00f165e2 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          if (uVar11 != 0xffff) goto LAB_0048c079;
LAB_0048c530:
          puVar4 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          if (uVar11 == 0xffff) goto LAB_0048c530;
LAB_0048c079:
          puVar4 = (undefined2 *)((uint)uVar11 * 0x10 + *(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_00f165e0 = 0xffff;
          DAT_00f165e2 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_0048b878;
        }
        if (uVar6 != 0xffff) goto LAB_0048b882;
LAB_0048c006:
        puVar7 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
LAB_0048b878:
        if (uVar6 == 0xffff) goto LAB_0048c006;
LAB_0048b882:
        puVar7 = (ushort *)(uVar8 * 0x10 + *(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_00f165e0 = 0xffff;
          DAT_00f165e2 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_0048b898;
        }
        if (uVar5 != 0xffff) goto LAB_0048b8a2;
LAB_0048bddc:
        if (DAT_00f165e4 != 1) goto joined_r0x0048be43;
LAB_0048bdec:
        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_00f165e0 = 0xffff;
          DAT_00f165e2 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (uVar6 == 0xffff) {
          puVar4 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          puVar4 = (undefined2 *)(uVar8 * 0x10 + *(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_00f165e0 = 0xffff;
          DAT_00f165e2 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (uVar5 == 0xffff) {
          puVar4 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          puVar4 = (undefined2 *)((uint)uVar5 * 0x10 + *(int *)(this + 4));
        }
        if (puVar4[3] != 1) goto joined_r0x0048be43;
LAB_0048c300:
        if ((short)uVar8 == -1) {
          uVar2 = (uint)*(ushort *)(this + 0x10);
          uVar10 = (uint)uVar11;
        }
        else {
          *(undefined2 *)(uVar8 * 0x10 + *(int *)(this + 4) + 6) = 0;
          uVar2 = (uint)*(ushort *)(this + 0x10);
          uVar10 = (uint)uVar11;
        }
      }
      else {
LAB_0048b898:
        if (uVar5 == 0xffff) goto LAB_0048bddc;
LAB_0048b8a2:
        if (*(short *)((uint)uVar5 * 0x10 + *(int *)(this + 4) + 6) == 1) goto LAB_0048bdec;
joined_r0x0048be43:
        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_00f165e0 = 0xffff;
            DAT_00f165e2 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
            goto LAB_0048b8c0;
          }
          if (uVar6 != 0xffff) goto LAB_0048b8ca;
LAB_0048be7e:
          local_24 = 0xffff0;
          uVar5 = DAT_00f165e0;
          if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_0048b8e8;
LAB_0048be98:
          iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
          if (iVar3 != 0) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00f165e0 = 0xffff;
            DAT_00f165e2 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
            goto LAB_0048b8e8;
          }
          if (uVar5 != 0xffff) goto LAB_0048b8f2;
LAB_0048becc:
          if (DAT_00f165e4 != 1) goto LAB_0048b906;
LAB_0048bee0:
          if ((Links(unsigned_short)::s_Sentinel == '\0') &&
             (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
            DAT_00f165e0 = 0xffff;
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00f165e2 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          puVar7 = &Links(unsigned_short)::s_Sentinel;
          if (uVar6 != 0xffff) {
            puVar7 = (ushort *)(local_24 + *(int *)(this + 4));
          }
          *(undefined2 *)(*(int *)(this + 4) + 6 + (uint)*puVar7 * 0x10) = 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_00f165e0 = 0xffff;
            DAT_00f165e2 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          if (uVar9 == 0xffff) {
            puVar4 = &Links(unsigned_short)::s_Sentinel;
          }
          else {
            puVar4 = (undefined2 *)(uVar10 * 0x10 + *(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_00f165e0 = 0xffff;
            DAT_00f165e2 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          if (uVar11 == 0xffff) {
            local_28 = 0xffff0;
            puVar4 = &Links(unsigned_short)::s_Sentinel;
            uVar9 = 0xffff;
          }
          else {
            local_28 = (uint)uVar11 * 0x10;
            puVar4 = (undefined2 *)(*(int *)(this + 4) + local_28);
            uVar9 = uVar11;
          }
          uVar6 = puVar4[1];
          local_24 = (uint)uVar6 << 4;
          if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_0048bf90;
LAB_0048b91b:
          iVar3 = *(int *)(this + 4);
          if (uVar11 != 0xffff) goto LAB_0048b928;
LAB_0048bfc7:
          puVar4 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
LAB_0048b8c0:
          if (uVar6 == 0xffff) goto LAB_0048be7e;
LAB_0048b8ca:
          local_24 = uVar8 * 0x10;
          uVar5 = *(ushort *)(local_24 + *(int *)(this + 4) + 2);
          if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_0048be98;
LAB_0048b8e8:
          if (uVar5 == 0xffff) goto LAB_0048becc;
LAB_0048b8f2:
          if (*(short *)((uint)uVar5 * 0x10 + *(int *)(this + 4) + 6) == 1) goto LAB_0048bee0;
LAB_0048b906:
          local_28 = (uint)uVar11 << 4;
          uVar9 = uVar11;
          if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_0048b91b;
LAB_0048bf90:
          iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
          if (iVar3 != 0) {
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00f165e0 = 0xffff;
            DAT_00f165e2 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
            goto LAB_0048b91b;
          }
          iVar3 = *(int *)(this + 4);
          if (uVar11 == 0xffff) goto LAB_0048bfc7;
LAB_0048b928:
          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_00f165e0 = 0xffff;
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f165e2 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (uVar6 == 0xffff) {
          puVar4 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          puVar4 = (undefined2 *)(local_24 + *(int *)(this + 4));
        }
        *(undefined2 *)(*(int *)(this + 4) + 6 + (uint)(ushort)puVar4[1] * 0x10) = 1;
        RotateLeft(this,uVar9);
        uVar2 = (uint)*(ushort *)(this + 0x10);
        uVar10 = uVar2;
      }
    }
    else {
      if (uVar9 == 0xffff) goto LAB_0048b7c5;
LAB_0048b601:
      uVar11 = *(ushort *)(uVar10 * 0x10 + *(int *)(this + 4) + 4);
      uVar2 = (uint)uVar11;
      if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_0048b7e0;
LAB_0048b619:
      if (uVar11 == 0xffff) goto LAB_0048b80b;
LAB_0048b623:
      if (uVar9 == *(ushort *)(uVar2 * 0x10 + *(int *)(this + 4))) goto LAB_0048b820;
LAB_0048b634:
      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_00f165e0 = 0xffff;
          DAT_00f165e2 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_0048b63c;
        }
        if (uVar11 != 0xffff) goto LAB_0048b646;
LAB_0048bd1b:
        puVar7 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
LAB_0048b63c:
        if (uVar11 == 0xffff) goto LAB_0048bd1b;
LAB_0048b646:
        puVar7 = (ushort *)(uVar2 * 0x10 + *(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_00f165e0 = 0xffff;
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00f165e2 = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        if (uVar6 != 0xffff) goto LAB_0048b663;
LAB_0048bc20:
        if (DAT_00f165e4 != 0) goto LAB_0048b677;
LAB_0048bc30:
        *(undefined2 *)(uVar8 * 0x10 + *(int *)(this + 4) + 6) = 1;
        *(undefined2 *)(uVar2 * 0x10 + *(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_00f165e2 = 0xffff;
            Links(unsigned_short)::s_Sentinel = 0xffff;
            DAT_00f165e0 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          if (uVar9 != 0xffff) goto LAB_0048bc78;
LAB_0048c198:
          puVar4 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          if (uVar9 == 0xffff) goto LAB_0048c198;
LAB_0048bc78:
          puVar4 = (undefined2 *)(uVar10 * 0x10 + *(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_00f165e0 = 0xffff;
            DAT_00f165e2 = 0xffff;
            __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          }
          if (uVar11 != 0xffff) goto LAB_0048bc99;
LAB_0048c160:
          puVar7 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          if (uVar11 == 0xffff) goto LAB_0048c160;
LAB_0048bc99:
          puVar7 = (ushort *)((uint)uVar11 * 0x10 + *(int *)(this + 4));
        }
        uVar8 = (uint)*puVar7;
        if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_0048b68b;
LAB_0048bcaf:
        iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar3 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f165e0 = 0xffff;
          DAT_00f165e2 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_0048b68b;
        }
        if ((short)uVar8 != -1) goto LAB_0048b695;
LAB_0048bcdd:
        puVar4 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
        if (uVar6 == 0xffff) goto LAB_0048bc20;
LAB_0048b663:
        if (*(short *)(uVar8 * 0x10 + *(int *)(this + 4) + 6) == 0) goto LAB_0048bc30;
LAB_0048b677:
        if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_0048bcaf;
LAB_0048b68b:
        if ((short)uVar8 == -1) goto LAB_0048bcdd;
LAB_0048b695:
        puVar4 = (undefined2 *)(uVar8 * 0x10 + *(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_00f165e0 = 0xffff;
          DAT_00f165e2 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_0048b6ac;
        }
        if (uVar6 != 0xffff) goto LAB_0048b6b6;
LAB_0048b9c4:
        if (DAT_00f165e4 != 1) goto LAB_0048b6ca;
LAB_0048b9d8:
        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_00f165e0 = 0xffff;
          DAT_00f165e2 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        uVar6 = Links(unsigned_short)::s_Sentinel;
        if (uVar5 != 0xffff) {
          uVar6 = *(ushort *)(uVar8 * 0x10 + *(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_00f165e0 = 0xffff;
          DAT_00f165e2 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (uVar6 == 0xffff) {
          puVar4 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          puVar4 = (undefined2 *)((uint)uVar6 * 0x10 + *(int *)(this + 4));
        }
        if (puVar4[3] == 1) goto LAB_0048c300;
        if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_0048ba38;
LAB_0048b6d4:
        if (uVar5 != 0xffff) goto LAB_0048b6de;
LAB_0048ba66:
        local_24 = 0xffff0;
        uVar6 = Links(unsigned_short)::s_Sentinel;
        if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_0048ba80;
LAB_0048b6fb:
        if (uVar6 != 0xffff) goto LAB_0048b705;
LAB_0048bab4:
        if (DAT_00f165e4 != 1) goto LAB_0048b719;
LAB_0048bac8:
        if ((Links(unsigned_short)::s_Sentinel == '\0') &&
           (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
          DAT_00f165e0 = 0xffff;
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f165e2 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        puVar4 = &Links(unsigned_short)::s_Sentinel;
        if (uVar5 != 0xffff) {
          puVar4 = (undefined2 *)(local_24 + *(int *)(this + 4));
        }
        *(undefined2 *)(*(int *)(this + 4) + 6 + (uint)(ushort)puVar4[1] * 0x10) = 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_00f165e0 = 0xffff;
          DAT_00f165e2 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (uVar9 == 0xffff) {
          puVar4 = &Links(unsigned_short)::s_Sentinel;
        }
        else {
          puVar4 = (undefined2 *)(uVar10 * 0x10 + *(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_00f165e0 = 0xffff;
          DAT_00f165e2 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        }
        if (uVar11 == 0xffff) {
          local_28 = 0xffff0;
          puVar7 = &Links(unsigned_short)::s_Sentinel;
          uVar9 = 0xffff;
        }
        else {
          local_28 = (uint)uVar11 * 0x10;
          puVar7 = (ushort *)(*(int *)(this + 4) + local_28);
          uVar9 = uVar11;
        }
        uVar5 = *puVar7;
        local_24 = (uint)uVar5 << 4;
        if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_0048b72e;
LAB_0048bb78:
        iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar3 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f165e0 = 0xffff;
          DAT_00f165e2 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_0048b72e;
        }
        iVar3 = *(int *)(this + 4);
        if (uVar11 != 0xffff) goto LAB_0048b73b;
LAB_0048bbaf:
        puVar4 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
LAB_0048b6ac:
        if (uVar6 == 0xffff) goto LAB_0048b9c4;
LAB_0048b6b6:
        if (*(short *)((uint)uVar6 * 0x10 + *(int *)(this + 4) + 6) == 1) goto LAB_0048b9d8;
LAB_0048b6ca:
        if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_0048b6d4;
LAB_0048ba38:
        iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar3 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f165e0 = 0xffff;
          DAT_00f165e2 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_0048b6d4;
        }
        if (uVar5 == 0xffff) goto LAB_0048ba66;
LAB_0048b6de:
        local_24 = uVar8 * 0x10;
        uVar6 = *(ushort *)(local_24 + *(int *)(this + 4));
        if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_0048b6fb;
LAB_0048ba80:
        iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
        if (iVar3 != 0) {
          Links(unsigned_short)::s_Sentinel = 0xffff;
          DAT_00f165e0 = 0xffff;
          DAT_00f165e2 = 0xffff;
          __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
          goto LAB_0048b6fb;
        }
        if (uVar6 == 0xffff) goto LAB_0048bab4;
LAB_0048b705:
        if (*(short *)((uint)uVar6 * 0x10 + *(int *)(this + 4) + 6) == 1) goto LAB_0048bac8;
LAB_0048b719:
        local_28 = (uint)uVar11 << 4;
        uVar9 = uVar11;
        if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_0048bb78;
LAB_0048b72e:
        iVar3 = *(int *)(this + 4);
        if (uVar11 == 0xffff) goto LAB_0048bbaf;
LAB_0048b73b:
        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_00f165e0 = 0xffff;
        Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_00f165e2 = 0xffff;
        __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
        iVar3 = *(int *)(this + 4);
        if (uVar5 != 0xffff) goto LAB_0048b774;
LAB_0048c2f0:
        puVar7 = &Links(unsigned_short)::s_Sentinel;
      }
      else {
        iVar3 = *(int *)(this + 4);
        if (uVar5 == 0xffff) goto LAB_0048c2f0;
LAB_0048b774:
        puVar7 = (ushort *)(local_24 + iVar3);
      }
      *(undefined2 *)(iVar3 + 6 + (uint)*puVar7 * 0x10) = 1;
      RotateRight(this,uVar9);
      uVar2 = (uint)*(ushort *)(this + 0x10);
      uVar10 = uVar2;
    }
  }
  *(undefined2 *)(uVar10 * 0x10 + *(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)