L L4D2node

CUtlRBTree<CUtlMap<char_const*,BasicGameStatsRecord_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<char_const*,BasicGameStatsRecord_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,BasicGameStatsRecord_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RotateRight

0x006d0090 · 1341 bytes · __thiscall

_ZN10CUtlRBTreeIN7CUtlMapIPKc22BasicGameStatsRecord_ttE6Node_tEtNS4_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS5_tEtEE11RotateRightEt

Decompiled

undefined (2 params)

/* CUtlRBTree<CUtlMap<char const*, BasicGameStatsRecord_t, unsigned short>::Node_t, unsigned short,
   CUtlMap<char const*, BasicGameStatsRecord_t, unsigned short>::CKeyLess,
   CUtlMemory<UtlRBTreeNode_t<CUtlMap<char const*, BasicGameStatsRecord_t, unsigned short>::Node_t,
   unsigned short>, unsigned short> >::RotateRight(unsigned short) */

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

{
  ushort uVar1;
  int iVar2;
  ushort uVar3;
  ushort *puVar4;
  undefined2 *puVar5;
  int iVar6;
  int local_24;
  
  if (Links(unsigned_short)::s_Sentinel == '\0') {
    iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
    if (iVar6 != 0) {
      Links(unsigned_short)::s_Sentinel = 0xffff;
      DAT_00f15fbe = 0xffff;
      DAT_00f15fc0 = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    if (param_1 != 0xffff) goto LAB_006d00b8;
LAB_006d02c5:
    local_24 = 0x33ffcc;
    puVar4 = &Links(unsigned_short)::s_Sentinel;
  }
  else {
    if (param_1 == 0xffff) goto LAB_006d02c5;
LAB_006d00b8:
    local_24 = (uint)param_1 * 0x34;
    puVar4 = (ushort *)(*(int *)(this + 4) + local_24);
  }
  uVar1 = *puVar4;
  if ((Links(unsigned_short)::s_Sentinel == '\0') &&
     (iVar6 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar6 != 0)) {
    DAT_00f15fbe = 0xffff;
    Links(unsigned_short)::s_Sentinel = 0xffff;
    DAT_00f15fc0 = 0xffff;
    __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
  }
  iVar6 = 0x33ffcc;
  puVar5 = &Links(unsigned_short)::s_Sentinel;
  if (uVar1 != 0xffff) {
    iVar6 = (uint)uVar1 * 0x34;
    puVar5 = (undefined2 *)(*(int *)(this + 4) + iVar6);
  }
  *(undefined2 *)(*(int *)(this + 4) + local_24) = puVar5[1];
  if ((Links(unsigned_short)::s_Sentinel == '\0') &&
     (iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
    Links(unsigned_short)::s_Sentinel = 0xffff;
    DAT_00f15fbe = 0xffff;
    DAT_00f15fc0 = 0xffff;
    __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
  }
  if (uVar1 == 0xffff) {
    puVar5 = &Links(unsigned_short)::s_Sentinel;
  }
  else {
    puVar5 = (undefined2 *)(*(int *)(this + 4) + iVar6);
  }
  if (puVar5[1] != -1) {
    if ((Links(unsigned_short)::s_Sentinel == '\0') &&
       (iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
      Links(unsigned_short)::s_Sentinel = 0xffff;
      DAT_00f15fbe = 0xffff;
      DAT_00f15fc0 = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    puVar5 = &Links(unsigned_short)::s_Sentinel;
    if (uVar1 != 0xffff) {
      puVar5 = (undefined2 *)(*(int *)(this + 4) + iVar6);
    }
    *(ushort *)(*(int *)(this + 4) + 4 + (uint)(ushort)puVar5[1] * 0x34) = param_1;
  }
  if (uVar1 != 0xffff) {
    if ((Links(unsigned_short)::s_Sentinel == '\0') &&
       (iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
      Links(unsigned_short)::s_Sentinel = 0xffff;
      DAT_00f15fbe = 0xffff;
      DAT_00f15fc0 = 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_24);
    }
    *(undefined2 *)(*(int *)(this + 4) + 4 + iVar6) = puVar5[2];
  }
  if (param_1 == *(ushort *)(this + 0x10)) {
    *(ushort *)(this + 0x10) = uVar1;
    goto LAB_006d0219;
  }
  if (Links(unsigned_short)::s_Sentinel == '\0') {
    iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
    if (iVar2 != 0) {
      Links(unsigned_short)::s_Sentinel = 0xffff;
      DAT_00f15fbe = 0xffff;
      DAT_00f15fc0 = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      goto LAB_006d01aa;
    }
    if (param_1 != 0xffff) goto LAB_006d01b4;
LAB_006d0448:
    uVar3 = DAT_00f15fc0;
    if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_006d01c6;
LAB_006d0460:
    iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
    if (iVar2 != 0) {
      Links(unsigned_short)::s_Sentinel = 0xffff;
      DAT_00f15fbe = 0xffff;
      DAT_00f15fc0 = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      goto LAB_006d01c6;
    }
    if (uVar3 != 0xffff) goto LAB_006d01d0;
LAB_006d0491:
    puVar5 = &Links(unsigned_short)::s_Sentinel;
  }
  else {
LAB_006d01aa:
    if (param_1 == 0xffff) goto LAB_006d0448;
LAB_006d01b4:
    uVar3 = *(ushort *)(local_24 + *(int *)(this + 4) + 4);
    if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_006d0460;
LAB_006d01c6:
    if (uVar3 == 0xffff) goto LAB_006d0491;
LAB_006d01d0:
    puVar5 = (undefined2 *)((uint)uVar3 * 0x34 + *(int *)(this + 4));
  }
  if (param_1 == puVar5[1]) {
    if ((Links(unsigned_short)::s_Sentinel == '\0') &&
       (iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
      Links(unsigned_short)::s_Sentinel = 0xffff;
      DAT_00f15fbe = 0xffff;
      DAT_00f15fc0 = 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_24);
    }
    *(ushort *)(*(int *)(this + 4) + 2 + (uint)(ushort)puVar5[2] * 0x34) = uVar1;
  }
  else {
    if ((Links(unsigned_short)::s_Sentinel == '\0') &&
       (iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
      Links(unsigned_short)::s_Sentinel = 0xffff;
      DAT_00f15fbe = 0xffff;
      DAT_00f15fc0 = 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_24);
    }
    *(ushort *)(*(int *)(this + 4) + (uint)(ushort)puVar5[2] * 0x34) = uVar1;
  }
LAB_006d0219:
  *(ushort *)(*(int *)(this + 4) + 2 + iVar6) = param_1;
  if (param_1 != 0xffff) {
    *(ushort *)(*(int *)(this + 4) + 4 + local_24) = 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)