L L4D2node

CUtlRBTree<CUtlMap<unsigned_int,Criteria,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,Criteria,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,Criteria,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RotateRight

0x005ccf00 · 1105 bytes · __thiscall

_ZN10CUtlRBTreeIN7CUtlMapIj8CriteriatE6Node_tEtNS2_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS3_tEtEE11RotateRightEt

Decompiled

undefined (2 params)

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

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

{
  ushort uVar1;
  ushort uVar2;
  int iVar3;
  undefined2 *puVar4;
  ushort *puVar5;
  int iVar6;
  int iVar7;
  
  if ((Links(unsigned_short)::s_Sentinel == '\0') &&
     (iVar7 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar7 != 0)) {
    Links(unsigned_short)::s_Sentinel = 0xffff;
    DAT_00f21cd2 = 0xffff;
    DAT_00f21cd4 = 0xffff;
    __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
  }
  if (param_1 == 0xffff) {
    iVar7 = 0x33ffcc;
    puVar5 = &Links(unsigned_short)::s_Sentinel;
  }
  else {
    iVar7 = (uint)param_1 * 0x34;
    puVar5 = (ushort *)(*(int *)(this + 4) + iVar7);
  }
  uVar1 = *puVar5;
  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_00f21cd2 = 0xffff;
    DAT_00f21cd4 = 0xffff;
    __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
  }
  iVar6 = 0x33ffcc;
  puVar4 = &Links(unsigned_short)::s_Sentinel;
  if (uVar1 != 0xffff) {
    iVar6 = (uint)uVar1 * 0x34;
    puVar4 = (undefined2 *)(*(int *)(this + 4) + iVar6);
  }
  *(undefined2 *)(*(int *)(this + 4) + iVar7) = 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_00f21cd2 = 0xffff;
    DAT_00f21cd4 = 0xffff;
    __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
  }
  if (uVar1 == 0xffff) {
    puVar4 = &Links(unsigned_short)::s_Sentinel;
  }
  else {
    puVar4 = (undefined2 *)(*(int *)(this + 4) + iVar6);
  }
  if (puVar4[1] != -1) {
    if ((Links(unsigned_short)::s_Sentinel == '\0') &&
       (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
      DAT_00f21cd2 = 0xffff;
      Links(unsigned_short)::s_Sentinel = 0xffff;
      DAT_00f21cd4 = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    puVar4 = &Links(unsigned_short)::s_Sentinel;
    if (uVar1 != 0xffff) {
      puVar4 = (undefined2 *)(*(int *)(this + 4) + iVar6);
    }
    *(ushort *)(*(int *)(this + 4) + 4 + (uint)(ushort)puVar4[1] * 0x34) = param_1;
  }
  if (uVar1 != 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_00f21cd2 = 0xffff;
      DAT_00f21cd4 = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    puVar4 = &Links(unsigned_short)::s_Sentinel;
    if (param_1 != 0xffff) {
      puVar4 = (undefined2 *)(*(int *)(this + 4) + iVar7);
    }
    *(undefined2 *)(*(int *)(this + 4) + 4 + iVar6) = puVar4[2];
  }
  if (param_1 == *(ushort *)(this + 0x10)) {
    *(ushort *)(this + 0x10) = uVar1;
  }
  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_00f21cd2 = 0xffff;
      DAT_00f21cd4 = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    uVar2 = DAT_00f21cd4;
    if (param_1 != 0xffff) {
      uVar2 = *(ushort *)(*(int *)(this + 4) + iVar7 + 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_00f21cd2 = 0xffff;
      DAT_00f21cd4 = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    if (uVar2 == 0xffff) {
      puVar4 = &Links(unsigned_short)::s_Sentinel;
    }
    else {
      puVar4 = (undefined2 *)((uint)uVar2 * 0x34 + *(int *)(this + 4));
    }
    if (param_1 == puVar4[1]) {
      iVar3 = Links(this,param_1);
      *(ushort *)((uint)*(ushort *)(iVar3 + 4) * 0x34 + *(int *)(this + 4) + 2) = uVar1;
    }
    else {
      iVar3 = Links(this,param_1);
      *(ushort *)((uint)*(ushort *)(iVar3 + 4) * 0x34 + *(int *)(this + 4)) = uVar1;
    }
  }
  *(ushort *)(*(int *)(this + 4) + 2 + iVar6) = param_1;
  if (param_1 != 0xffff) {
    *(ushort *)(*(int *)(this + 4) + 4 + iVar7) = uVar1;
  }
  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)