L L4D2node

CUtlRBTree<CUtlSymbolTable::CStringPoolIndex,unsigned_short,CUtlSymbolTable::CLess,CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex,unsigned_short>,unsigned_short>>::RotateRight

0x00b83430 · 1325 bytes · __thiscall

_ZN10CUtlRBTreeIN15CUtlSymbolTable16CStringPoolIndexEtNS0_5CLessE10CUtlMemoryI15UtlRBTreeNode_tIS1_tEtEE11RotateRightEt

Decompiled

undefined (2 params)

/* CUtlRBTree<CUtlSymbolTable::CStringPoolIndex, unsigned short, CUtlSymbolTable::CLess,
   CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex, unsigned short>, unsigned short>
   >::RotateRight(unsigned short) */

void __thiscall
CUtlRBTree<CUtlSymbolTable::CStringPoolIndex,unsigned_short,CUtlSymbolTable::CLess,CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex,unsigned_short>,unsigned_short>>
::RotateRight(CUtlRBTree<CUtlSymbolTable::CStringPoolIndex,unsigned_short,CUtlSymbolTable::CLess,CUtlMemory<UtlRBTreeNode_t<CUtlSymbolTable::CStringPoolIndex,unsigned_short>,unsigned_short>>
              *this,ushort param_1)

{
  ushort uVar1;
  int iVar2;
  int iVar3;
  ushort uVar4;
  ushort *puVar5;
  undefined2 *puVar6;
  int local_24;
  
  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_00f6d1fc = 0xffff;
      DAT_00f6d1fe = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    if (param_1 != 0xffff) goto LAB_00b83458;
LAB_00b83655:
    local_24 = 0xbfff4;
    puVar5 = &Links(unsigned_short)::s_Sentinel;
  }
  else {
    if (param_1 == 0xffff) goto LAB_00b83655;
LAB_00b83458:
    local_24 = (uint)param_1 * 0xc;
    puVar5 = (ushort *)(*(int *)(this + 4) + local_24);
  }
  uVar1 = *puVar5;
  if ((Links(unsigned_short)::s_Sentinel == '\0') &&
     (iVar3 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar3 != 0)) {
    DAT_00f6d1fc = 0xffff;
    Links(unsigned_short)::s_Sentinel = 0xffff;
    DAT_00f6d1fe = 0xffff;
    __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
  }
  iVar3 = 0xbfff4;
  puVar6 = &Links(unsigned_short)::s_Sentinel;
  if (uVar1 != 0xffff) {
    iVar3 = (uint)uVar1 * 0xc;
    puVar6 = (undefined2 *)(*(int *)(this + 4) + iVar3);
  }
  *(undefined2 *)(*(int *)(this + 4) + local_24) = puVar6[1];
  if ((Links(unsigned_short)::s_Sentinel == '\0') &&
     (iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
    DAT_00f6d1fe = 0xffff;
    Links(unsigned_short)::s_Sentinel = 0xffff;
    DAT_00f6d1fc = 0xffff;
    __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
  }
  if (uVar1 == 0xffff) {
    puVar6 = &Links(unsigned_short)::s_Sentinel;
  }
  else {
    puVar6 = (undefined2 *)(*(int *)(this + 4) + iVar3);
  }
  if (puVar6[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_00f6d1fc = 0xffff;
      DAT_00f6d1fe = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    puVar6 = &Links(unsigned_short)::s_Sentinel;
    if (uVar1 != 0xffff) {
      puVar6 = (undefined2 *)(*(int *)(this + 4) + iVar3);
    }
    *(ushort *)(*(int *)(this + 4) + 4 + (uint)(ushort)puVar6[1] * 0xc) = param_1;
  }
  if (uVar1 != 0xffff) {
    if ((Links(unsigned_short)::s_Sentinel == '\0') &&
       (iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
      DAT_00f6d1fc = 0xffff;
      Links(unsigned_short)::s_Sentinel = 0xffff;
      DAT_00f6d1fe = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    puVar6 = &Links(unsigned_short)::s_Sentinel;
    if (param_1 != 0xffff) {
      puVar6 = (undefined2 *)(*(int *)(this + 4) + local_24);
    }
    *(undefined2 *)(*(int *)(this + 4) + 4 + iVar3) = puVar6[2];
  }
  if (param_1 == *(ushort *)(this + 0x10)) {
    *(ushort *)(this + 0x10) = uVar1;
    goto LAB_00b835ac;
  }
  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_00f6d1fe = 0xffff;
      DAT_00f6d1fc = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      goto LAB_00b83545;
    }
    if (param_1 != 0xffff) goto LAB_00b8354f;
LAB_00b837d0:
    uVar4 = DAT_00f6d1fe;
    if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_00b83561;
LAB_00b837e8:
    iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
    if (iVar2 != 0) {
      Links(unsigned_short)::s_Sentinel = 0xffff;
      DAT_00f6d1fc = 0xffff;
      DAT_00f6d1fe = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      goto LAB_00b83561;
    }
    if (uVar4 != 0xffff) goto LAB_00b8356b;
LAB_00b83819:
    puVar6 = &Links(unsigned_short)::s_Sentinel;
  }
  else {
LAB_00b83545:
    if (param_1 == 0xffff) goto LAB_00b837d0;
LAB_00b8354f:
    uVar4 = *(ushort *)(local_24 + *(int *)(this + 4) + 4);
    if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_00b837e8;
LAB_00b83561:
    if (uVar4 == 0xffff) goto LAB_00b83819;
LAB_00b8356b:
    puVar6 = (undefined2 *)(*(int *)(this + 4) + (uint)uVar4 * 0xc);
  }
  if (param_1 == puVar6[1]) {
    if ((Links(unsigned_short)::s_Sentinel == '\0') &&
       (iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
      DAT_00f6d1fc = 0xffff;
      Links(unsigned_short)::s_Sentinel = 0xffff;
      DAT_00f6d1fe = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    puVar6 = &Links(unsigned_short)::s_Sentinel;
    if (param_1 != 0xffff) {
      puVar6 = (undefined2 *)(local_24 + *(int *)(this + 4));
    }
    *(ushort *)(*(int *)(this + 4) + 2 + (uint)(ushort)puVar6[2] * 0xc) = uVar1;
  }
  else {
    if ((Links(unsigned_short)::s_Sentinel == '\0') &&
       (iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
      DAT_00f6d1fe = 0xffff;
      Links(unsigned_short)::s_Sentinel = 0xffff;
      DAT_00f6d1fc = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    puVar6 = &Links(unsigned_short)::s_Sentinel;
    if (param_1 != 0xffff) {
      puVar6 = (undefined2 *)(local_24 + *(int *)(this + 4));
    }
    *(ushort *)(*(int *)(this + 4) + (uint)(ushort)puVar6[2] * 0xc) = uVar1;
  }
LAB_00b835ac:
  *(ushort *)(*(int *)(this + 4) + 2 + iVar3) = 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)