L L4D2node

CUtlRBTree<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int,CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int>,int>>::RotateRight

0x00069df0 · 1240 bytes · __thiscall

_ZN10CUtlRBTreeIN7CUtlMapIjN5GCSDK16JobStatsBucket_tEiE6Node_tEiNS3_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS4_iEiEE11RotateRightEi

Decompiled

undefined (2 params)

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

void __thiscall
CUtlRBTree<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int,CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int>,int>>
::RotateRight(CUtlRBTree<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int,CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,GCSDK::JobStatsBucket_t,int>::Node_t,int>,int>>
              *this,int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  undefined4 *puVar5;
  int iVar6;
  int local_24;
  
  if (Links(int)::s_Sentinel == '\0') {
    iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
    if (iVar1 != 0) {
      Links(int)::s_Sentinel = 0xffffffff;
      DAT_000d2844 = 0xffffffff;
      DAT_000d2848 = -1;
      __cxa_guard_release(&Links(int)::s_Sentinel);
    }
    if (param_1 != -1) goto LAB_00069e17;
LAB_00069fec:
    local_24 = -0xec;
    piVar4 = &Links(int)::s_Sentinel;
  }
  else {
    if (param_1 == -1) goto LAB_00069fec;
LAB_00069e17:
    local_24 = param_1 * 0xec;
    piVar4 = (int *)(*(int *)(this + 4) + local_24);
  }
  iVar1 = *piVar4;
  if ((Links(int)::s_Sentinel == '\0') &&
     (iVar6 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar6 != 0)) {
    Links(int)::s_Sentinel = 0xffffffff;
    DAT_000d2844 = 0xffffffff;
    DAT_000d2848 = -1;
    __cxa_guard_release(&Links(int)::s_Sentinel);
  }
  iVar6 = -0xec;
  puVar5 = &Links(int)::s_Sentinel;
  if (iVar1 != -1) {
    iVar6 = iVar1 * 0xec;
    puVar5 = (undefined4 *)(*(int *)(this + 4) + iVar6);
  }
  *(undefined4 *)(*(int *)(this + 4) + local_24) = puVar5[1];
  if ((Links(int)::s_Sentinel == '\0') &&
     (iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
    Links(int)::s_Sentinel = 0xffffffff;
    DAT_000d2844 = 0xffffffff;
    DAT_000d2848 = -1;
    __cxa_guard_release(&Links(int)::s_Sentinel);
  }
  if (iVar1 == -1) {
    puVar5 = &Links(int)::s_Sentinel;
  }
  else {
    puVar5 = (undefined4 *)(*(int *)(this + 4) + iVar6);
  }
  if (puVar5[1] != -1) {
    if ((Links(int)::s_Sentinel == '\0') &&
       (iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
      Links(int)::s_Sentinel = 0xffffffff;
      DAT_000d2844 = 0xffffffff;
      DAT_000d2848 = -1;
      __cxa_guard_release(&Links(int)::s_Sentinel);
    }
    puVar5 = &Links(int)::s_Sentinel;
    if (iVar1 != -1) {
      puVar5 = (undefined4 *)(*(int *)(this + 4) + iVar6);
    }
    *(int *)(*(int *)(this + 4) + 8 + puVar5[1] * 0xec) = param_1;
  }
  if (iVar1 != -1) {
    if ((Links(int)::s_Sentinel == '\0') &&
       (iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
      Links(int)::s_Sentinel = 0xffffffff;
      DAT_000d2844 = 0xffffffff;
      DAT_000d2848 = -1;
      __cxa_guard_release(&Links(int)::s_Sentinel);
    }
    puVar5 = &Links(int)::s_Sentinel;
    if (param_1 != -1) {
      puVar5 = (undefined4 *)(*(int *)(this + 4) + local_24);
    }
    *(undefined4 *)(*(int *)(this + 4) + 8 + iVar6) = puVar5[2];
  }
  if (param_1 == *(int *)(this + 0x10)) {
    *(int *)(this + 0x10) = iVar1;
    goto LAB_00069f4c;
  }
  if (Links(int)::s_Sentinel == '\0') {
    iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
    if (iVar3 != 0) {
      Links(int)::s_Sentinel = 0xffffffff;
      DAT_000d2844 = 0xffffffff;
      DAT_000d2848 = -1;
      __cxa_guard_release(&Links(int)::s_Sentinel);
      goto LAB_00069eec;
    }
    if (param_1 != -1) goto LAB_00069ef5;
LAB_0006a150:
    iVar3 = DAT_000d2848;
    if (Links(int)::s_Sentinel != '\0') goto LAB_00069f06;
LAB_0006a160:
    iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
    if (iVar2 != 0) {
      Links(int)::s_Sentinel = 0xffffffff;
      DAT_000d2844 = 0xffffffff;
      DAT_000d2848 = -1;
      __cxa_guard_release(&Links(int)::s_Sentinel);
      goto LAB_00069f06;
    }
    if (iVar3 != -1) goto LAB_00069f0f;
LAB_0006a190:
    puVar5 = &Links(int)::s_Sentinel;
  }
  else {
LAB_00069eec:
    if (param_1 == -1) goto LAB_0006a150;
LAB_00069ef5:
    iVar3 = *(int *)(local_24 + *(int *)(this + 4) + 8);
    if (Links(int)::s_Sentinel == '\0') goto LAB_0006a160;
LAB_00069f06:
    if (iVar3 == -1) goto LAB_0006a190;
LAB_00069f0f:
    puVar5 = (undefined4 *)(iVar3 * 0xec + *(int *)(this + 4));
  }
  if (param_1 == puVar5[1]) {
    if ((Links(int)::s_Sentinel == '\0') &&
       (iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
      Links(int)::s_Sentinel = 0xffffffff;
      DAT_000d2844 = 0xffffffff;
      DAT_000d2848 = -1;
      __cxa_guard_release(&Links(int)::s_Sentinel);
    }
    puVar5 = &Links(int)::s_Sentinel;
    if (param_1 != -1) {
      puVar5 = (undefined4 *)(*(int *)(this + 4) + local_24);
    }
    *(int *)(*(int *)(this + 4) + 4 + puVar5[2] * 0xec) = iVar1;
  }
  else {
    if ((Links(int)::s_Sentinel == '\0') &&
       (iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
      Links(int)::s_Sentinel = 0xffffffff;
      DAT_000d2844 = 0xffffffff;
      DAT_000d2848 = -1;
      __cxa_guard_release(&Links(int)::s_Sentinel);
    }
    puVar5 = &Links(int)::s_Sentinel;
    if (param_1 != -1) {
      puVar5 = (undefined4 *)(*(int *)(this + 4) + local_24);
    }
    *(int *)(*(int *)(this + 4) + puVar5[2] * 0xec) = iVar1;
  }
LAB_00069f4c:
  *(int *)(*(int *)(this + 4) + 4 + iVar6) = param_1;
  if (param_1 != -1) {
    *(int *)(*(int *)(this + 4) + 8 + local_24) = iVar1;
  }
  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)