L L4D2node

CUtlRBTree<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short,CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CNetworkStringDict::CTableItem,CNetworkStringTableItem,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::RotateRight

0x001ab380 · 1341 bytes · __thiscall

_ZN10CUtlRBTreeIN7CUtlMapIN18CNetworkStringDict10CTableItemE23CNetworkStringTableItemtE6Node_tEtNS4_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS5_tEtEE11RotateRightEt

Decompiled

undefined (2 params)

/* CUtlRBTree<CUtlMap<CNetworkStringDict::CTableItem, CNetworkStringTableItem, unsigned
   short>::Node_t, unsigned short, CUtlMap<CNetworkStringDict::CTableItem, CNetworkStringTableItem,
   unsigned short>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<CNetworkStringDict::CTableItem,
   CNetworkStringTableItem, unsigned short>::Node_t, unsigned short>, unsigned short>
   >::RotateRight(unsigned short) */

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

{
  ushort uVar1;
  int iVar2;
  ushort uVar3;
  ushort *puVar4;
  undefined2 *puVar5;
  undefined *puVar6;
  undefined *local_24;
  
  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_003415e6 = 0xffff;
      DAT_003415e8 = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    if (param_1 != 0xffff) goto LAB_001ab3a8;
LAB_001ab5b5:
    local_24 = &DAT_0033ffcc;
    puVar4 = &Links(unsigned_short)::s_Sentinel;
  }
  else {
    if (param_1 == 0xffff) goto LAB_001ab5b5;
LAB_001ab3a8:
    local_24 = (undefined *)((uint)param_1 * 0x34);
    puVar4 = (ushort *)(local_24 + *(int *)(this + 4));
  }
  uVar1 = *puVar4;
  if ((Links(unsigned_short)::s_Sentinel == '\0') &&
     (iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel), iVar2 != 0)) {
    DAT_003415e6 = 0xffff;
    Links(unsigned_short)::s_Sentinel = 0xffff;
    DAT_003415e8 = 0xffff;
    __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
  }
  puVar6 = &DAT_0033ffcc;
  puVar5 = &Links(unsigned_short)::s_Sentinel;
  if (uVar1 != 0xffff) {
    puVar6 = (undefined *)((uint)uVar1 * 0x34);
    puVar5 = (undefined2 *)(puVar6 + *(int *)(this + 4));
  }
  *(undefined2 *)(local_24 + *(int *)(this + 4)) = 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_003415e6 = 0xffff;
    DAT_003415e8 = 0xffff;
    __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
  }
  if (uVar1 == 0xffff) {
    puVar5 = &Links(unsigned_short)::s_Sentinel;
  }
  else {
    puVar5 = (undefined2 *)(puVar6 + *(int *)(this + 4));
  }
  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_003415e6 = 0xffff;
      DAT_003415e8 = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    puVar5 = &Links(unsigned_short)::s_Sentinel;
    if (uVar1 != 0xffff) {
      puVar5 = (undefined2 *)(puVar6 + *(int *)(this + 4));
    }
    *(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_003415e6 = 0xffff;
      DAT_003415e8 = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    puVar5 = &Links(unsigned_short)::s_Sentinel;
    if (param_1 != 0xffff) {
      puVar5 = (undefined2 *)(local_24 + *(int *)(this + 4));
    }
    *(undefined2 *)(puVar6 + *(int *)(this + 4) + 4) = puVar5[2];
  }
  if (param_1 == *(ushort *)(this + 0x10)) {
    *(ushort *)(this + 0x10) = uVar1;
    goto LAB_001ab509;
  }
  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_003415e6 = 0xffff;
      DAT_003415e8 = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      goto LAB_001ab49a;
    }
    if (param_1 != 0xffff) goto LAB_001ab4a4;
LAB_001ab738:
    uVar3 = DAT_003415e8;
    if (Links(unsigned_short)::s_Sentinel != '\0') goto LAB_001ab4b6;
LAB_001ab750:
    iVar2 = __cxa_guard_acquire(&Links(unsigned_short)::s_Sentinel);
    if (iVar2 != 0) {
      Links(unsigned_short)::s_Sentinel = 0xffff;
      DAT_003415e6 = 0xffff;
      DAT_003415e8 = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
      goto LAB_001ab4b6;
    }
    if (uVar3 != 0xffff) goto LAB_001ab4c0;
LAB_001ab781:
    puVar5 = &Links(unsigned_short)::s_Sentinel;
  }
  else {
LAB_001ab49a:
    if (param_1 == 0xffff) goto LAB_001ab738;
LAB_001ab4a4:
    uVar3 = *(ushort *)(local_24 + *(int *)(this + 4) + 4);
    if (Links(unsigned_short)::s_Sentinel == '\0') goto LAB_001ab750;
LAB_001ab4b6:
    if (uVar3 == 0xffff) goto LAB_001ab781;
LAB_001ab4c0:
    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_003415e6 = 0xffff;
      DAT_003415e8 = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    puVar5 = &Links(unsigned_short)::s_Sentinel;
    if (param_1 != 0xffff) {
      puVar5 = (undefined2 *)(local_24 + *(int *)(this + 4));
    }
    *(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_003415e6 = 0xffff;
      DAT_003415e8 = 0xffff;
      __cxa_guard_release(&Links(unsigned_short)::s_Sentinel);
    }
    puVar5 = &Links(unsigned_short)::s_Sentinel;
    if (param_1 != 0xffff) {
      puVar5 = (undefined2 *)(local_24 + *(int *)(this + 4));
    }
    *(ushort *)(*(int *)(this + 4) + (uint)(ushort)puVar5[2] * 0x34) = uVar1;
  }
LAB_001ab509:
  *(ushort *)(puVar6 + *(int *)(this + 4) + 2) = param_1;
  if (param_1 != 0xffff) {
    *(ushort *)(local_24 + *(int *)(this + 4) + 4) = 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)