L L4D2node

CUtlRBTree<CDmxSerializationDictionary::DmxElementInfo_t,int,bool(*)(CDmxSerializationDictionary::DmxElementInfo_t_const&,CDmxSerializationDictionary::DmxElementInfo_t_const&),CUtlMemory<UtlRBTreeNode_t<CDmxSerializationDictionary::DmxElementInfo_t,int>,int>>::NextInorder

0x00beebb0 · 1037 bytes · __thiscall

_ZNK10CUtlRBTreeIN27CDmxSerializationDictionary16DmxElementInfo_tEiPFbRKS1_S3_E10CUtlMemoryI15UtlRBTreeNode_tIS1_iEiEE11NextInorderEi

Decompiled

undefined (2 params)

/* CUtlRBTree<CDmxSerializationDictionary::DmxElementInfo_t, int, bool
   (*)(CDmxSerializationDictionary::DmxElementInfo_t const&,
   CDmxSerializationDictionary::DmxElementInfo_t const&),
   CUtlMemory<UtlRBTreeNode_t<CDmxSerializationDictionary::DmxElementInfo_t, int>, int>
   >::NextInorder(int) const */

int __thiscall
CUtlRBTree<CDmxSerializationDictionary::DmxElementInfo_t,int,bool(*)(CDmxSerializationDictionary::DmxElementInfo_t_const&,CDmxSerializationDictionary::DmxElementInfo_t_const&),CUtlMemory<UtlRBTreeNode_t<CDmxSerializationDictionary::DmxElementInfo_t,int>,int>>
::NextInorder(CUtlRBTree<CDmxSerializationDictionary::DmxElementInfo_t,int,bool(*)(CDmxSerializationDictionary::DmxElementInfo_t_const&,CDmxSerializationDictionary::DmxElementInfo_t_const&),CUtlMemory<UtlRBTreeNode_t<CDmxSerializationDictionary::DmxElementInfo_t,int>,int>>
              *this,int param_1)

{
  int iVar1;
  int iVar2;
  int iVar3;
  undefined4 *puVar4;
  
  if ((Links(int)::s_Sentinel == '\0') &&
     (iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar2 != 0)) {
    Links(int)::s_Sentinel = -1;
    DAT_00f71eb8 = -1;
    DAT_00f71ebc = -1;
    __cxa_guard_release(&Links(int)::s_Sentinel);
  }
  iVar2 = DAT_00f71eb8;
  if (param_1 != -1) {
    iVar2 = *(int *)(*(int *)(this + 4) + param_1 * 0x18 + 4);
  }
  if (iVar2 != -1) {
    if ((Links(int)::s_Sentinel == '\0') &&
       (iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar2 != 0)) {
      Links(int)::s_Sentinel = -1;
      DAT_00f71eb8 = -1;
      DAT_00f71ebc = -1;
      __cxa_guard_release(&Links(int)::s_Sentinel);
    }
    if (param_1 == -1) {
      puVar4 = &Links(int)::s_Sentinel;
    }
    else {
      puVar4 = (undefined4 *)(*(int *)(this + 4) + param_1 * 0x18);
    }
    iVar2 = puVar4[1];
    if (Links(int)::s_Sentinel == '\0') goto LAB_00beec4a;
LAB_00beec10:
    if (iVar2 == -1) goto LAB_00beec90;
    do {
      iVar1 = iVar2;
      if (*(int *)(*(int *)(this + 4) + iVar2 * 0x18) == -1) {
        return iVar2;
      }
      while( true ) {
        if ((Links(int)::s_Sentinel == '\0') &&
           (iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar2 != 0)) {
          Links(int)::s_Sentinel = -1;
          DAT_00f71eb8 = -1;
          DAT_00f71ebc = -1;
          __cxa_guard_release(&Links(int)::s_Sentinel);
        }
        iVar2 = Links(int)::s_Sentinel;
        if (iVar1 != -1) {
          iVar2 = *(int *)(*(int *)(this + 4) + iVar1 * 0x18);
        }
        if (Links(int)::s_Sentinel != '\0') goto LAB_00beec10;
LAB_00beec4a:
        iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
        if (iVar1 == 0) goto LAB_00beec10;
        Links(int)::s_Sentinel = -1;
        DAT_00f71eb8 = -1;
        DAT_00f71ebc = -1;
        __cxa_guard_release(&Links(int)::s_Sentinel);
        if (iVar2 != -1) break;
LAB_00beec90:
        iVar1 = iVar2;
        if (Links(int)::s_Sentinel == -1) {
          return iVar2;
        }
      }
    } while( true );
  }
  if ((Links(int)::s_Sentinel == '\0') &&
     (iVar2 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar2 != 0)) {
    Links(int)::s_Sentinel = -1;
    DAT_00f71eb8 = -1;
    DAT_00f71ebc = -1;
    __cxa_guard_release(&Links(int)::s_Sentinel);
  }
  if (param_1 == -1) {
    puVar4 = &Links(int)::s_Sentinel;
  }
  else {
    puVar4 = (undefined4 *)(*(int *)(this + 4) + param_1 * 0x18);
  }
  iVar2 = puVar4[2];
  do {
    if (Links(int)::s_Sentinel == '\0') {
      iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
      if (iVar1 != 0) {
        Links(int)::s_Sentinel = -1;
        DAT_00f71eb8 = -1;
        DAT_00f71ebc = -1;
        __cxa_guard_release(&Links(int)::s_Sentinel);
        goto LAB_00beed70;
      }
      if (param_1 != -1) goto LAB_00beed75;
LAB_00beedee:
      iVar1 = DAT_00f71ebc;
      if (Links(int)::s_Sentinel != '\0') goto LAB_00beed85;
LAB_00beee00:
      iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel);
      if (iVar3 == 0) goto LAB_00beed85;
      Links(int)::s_Sentinel = -1;
      DAT_00f71eb8 = -1;
      DAT_00f71ebc = -1;
      __cxa_guard_release(&Links(int)::s_Sentinel);
      if (iVar1 != -1) goto LAB_00beed8e;
LAB_00beee50:
      puVar4 = &Links(int)::s_Sentinel;
    }
    else {
LAB_00beed70:
      if (param_1 == -1) goto LAB_00beedee;
LAB_00beed75:
      iVar1 = *(int *)(*(int *)(this + 4) + param_1 * 0x18 + 8);
      if (Links(int)::s_Sentinel == '\0') goto LAB_00beee00;
LAB_00beed85:
      if (iVar1 == -1) goto LAB_00beee50;
LAB_00beed8e:
      puVar4 = (undefined4 *)(*(int *)(this + 4) + iVar1 * 0x18);
    }
    if (param_1 != puVar4[1]) {
      return iVar2;
    }
    if (iVar2 == -1) {
      return -1;
    }
    if ((Links(int)::s_Sentinel == '\0') &&
       (iVar1 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar1 != 0)) {
      Links(int)::s_Sentinel = -1;
      DAT_00f71eb8 = -1;
      DAT_00f71ebc = -1;
      __cxa_guard_release(&Links(int)::s_Sentinel);
    }
    param_1 = iVar2;
    iVar2 = *(int *)(*(int *)(this + 4) + 8 + iVar2 * 0x18);
  } while( true );
}

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)