L L4D2node

CUtlRBTree<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RotateLeft

0x00073220 · 1273 bytes · __thiscall

_ZN10CUtlRBTreeIN7CUtlMapIiPN5GCSDK22CSharedObjectTypeCacheEtE6Node_tEtNS4_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS5_tEtEE10RotateLeftEt

Decompiled

undefined (2 params)

/* CUtlRBTree<CUtlMap<int, GCSDK::CSharedObjectTypeCache*, unsigned short>::Node_t, unsigned short,
   CUtlMap<int, GCSDK::CSharedObjectTypeCache*, unsigned short>::CKeyLess,
   CUtlMemory<UtlRBTreeNode_t<CUtlMap<int, GCSDK::CSharedObjectTypeCache*, unsigned short>::Node_t,
   unsigned short>, unsigned short> >::RotateLeft(unsigned short) */

void __thiscall
CUtlRBTree<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::RotateLeft(CUtlRBTree<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<int,GCSDK::CSharedObjectTypeCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
             *this,ushort param_1)

{
  short *psVar1;
  ushort *puVar2;
  int iVar3;
  ushort uVar4;
  undefined2 *puVar5;
  ushort uVar6;
  bool bVar7;
  int local_24;
  int local_20;
  
  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_000d285a = 0xffff;
      DAT_000d285c = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    if (param_1 != 0xffff) goto LAB_0007324b;
LAB_00073438:
    local_20 = 0xffff0;
    uVar6 = DAT_000d285a;
    if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00073269;
LAB_00073458:
    iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
    if (iVar3 != 0) {
      Links(unsigned_short)::s_Sentinel = 0xffff;
      DAT_000d285a = 0xffff;
      DAT_000d285c = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    iVar3 = *(int *)(this + 4);
    if (uVar6 != 0xffff) goto LAB_00073276;
LAB_00073483:
    local_24 = 0xffff0;
    puVar5 = &Links(unsigned_short)::s_Sentinel;
  }
  else {
    if (param_1 == 0xffff) goto LAB_00073438;
LAB_0007324b:
    local_20 = (uint)param_1 * 0x10;
    uVar6 = *(ushort *)(local_20 + *(int *)(this + 4) + 2);
    if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00073458;
LAB_00073269:
    iVar3 = *(int *)(this + 4);
    if (uVar6 == 0xffff) goto LAB_00073483;
LAB_00073276:
    local_24 = (uint)uVar6 * 0x10;
    puVar5 = (undefined2 *)(iVar3 + local_24);
  }
  bVar7 = Links(unsigned_short)::s_Sentinel == '\0';
  *(undefined2 *)(iVar3 + 2 + local_20) = *puVar5;
  if ((bVar7) && (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
    DAT_000d285a = 0xffff;
    Links(unsigned_short)::s_Sentinel = 0xffff;
    DAT_000d285c = 0xffff;
    __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
  }
  if (uVar6 == 0xffff) {
    psVar1 = &Links(unsigned_short)::s_Sentinel;
  }
  else {
    psVar1 = (short *)(local_24 + *(int *)(this + 4));
  }
  if (*psVar1 != -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_000d285a = 0xffff;
      DAT_000d285c = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    puVar2 = &Links(unsigned_short)::s_Sentinel;
    if (uVar6 != 0xffff) {
      puVar2 = (ushort *)(local_24 + *(int *)(this + 4));
    }
    *(ushort *)(*(int *)(this + 4) + 4 + (uint)*puVar2 * 0x10) = param_1;
  }
  if (uVar6 != 0xffff) {
    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_000d285a = 0xffff;
      DAT_000d285c = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    puVar5 = &Links(unsigned_short)::s_Sentinel;
    if (param_1 != 0xffff) {
      puVar5 = (undefined2 *)(*(int *)(this + 4) + local_20);
    }
    *(undefined2 *)(*(int *)(this + 4) + 4 + local_24) = puVar5[2];
  }
  if (param_1 == *(ushort *)(this + 0x10)) {
    *(ushort *)(this + 0x10) = uVar6;
    goto LAB_00073386;
  }
  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_000d285a = 0xffff;
      DAT_000d285c = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    if (param_1 != 0xffff) goto LAB_00073332;
LAB_00073585:
    uVar4 = DAT_000d285c;
    if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00073344;
LAB_000735a0:
    iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
    if (iVar3 != 0) {
      Links(unsigned_short)::s_Sentinel = 0xffff;
      DAT_000d285a = 0xffff;
      DAT_000d285c = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      goto LAB_00073344;
    }
    if (uVar4 != 0xffff) goto LAB_0007334e;
LAB_000735cb:
    puVar2 = &Links(unsigned_short)::s_Sentinel;
  }
  else {
    if (param_1 == 0xffff) goto LAB_00073585;
LAB_00073332:
    uVar4 = *(ushort *)(local_20 + *(int *)(this + 4) + 4);
    if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_000735a0;
LAB_00073344:
    if (uVar4 == 0xffff) goto LAB_000735cb;
LAB_0007334e:
    puVar2 = (ushort *)((uint)uVar4 * 0x10 + *(int *)(this + 4));
  }
  if (param_1 == *puVar2) {
    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_000d285a = 0xffff;
      DAT_000d285c = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    puVar5 = &Links(unsigned_short)::s_Sentinel;
    if (param_1 != 0xffff) {
      puVar5 = (undefined2 *)(local_20 + *(int *)(this + 4));
    }
    *(ushort *)(*(int *)(this + 4) + (uint)(ushort)puVar5[2] * 0x10) = uVar6;
  }
  else {
    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_000d285a = 0xffff;
      DAT_000d285c = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    puVar5 = &Links(unsigned_short)::s_Sentinel;
    if (param_1 != 0xffff) {
      puVar5 = (undefined2 *)(local_20 + *(int *)(this + 4));
    }
    *(ushort *)(*(int *)(this + 4) + 2 + (uint)(ushort)puVar5[2] * 0x10) = uVar6;
  }
LAB_00073386:
  *(ushort *)(*(int *)(this + 4) + local_24) = param_1;
  if (param_1 != 0xffff) {
    *(ushort *)(*(int *)(this + 4) + 4 + local_20) = uVar6;
  }
  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)