L L4D2node

GCSDK::CGCBase::~CGCBase

0x0007a930 · 1387 bytes · __thiscall

_ZN5GCSDK7CGCBaseD1Ev

Decompiled

undefined (1 param)

/* GCSDK::CGCBase::~CGCBase() */

void __thiscall GCSDK::CGCBase::~CGCBase(CGCBase *this)

{
  CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
  *this_00;
  CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
  *this_01;
  CUtlRBTree<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
  *this_02;
  ushort uVar1;
  void *pvVar2;
  int *piVar3;
  short sVar4;
  int iVar5;
  short *psVar6;
  ushort *puVar7;
  uint uVar8;
  
  this_00 = (CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
             *)(this + 0x13c);
  *(undefined ***)this = &PTR_BInit_000b5cc8;
  uVar1 = *(ushort *)(this + 0x14c);
  while( true ) {
    uVar8 = (uint)uVar1;
    if ((CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
         ::Links(unsigned_short)::s_Sentinel == '\0') &&
       (iVar5 = __cxa_guard_acquire(&CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                                     ::Links(unsigned_short)::s_Sentinel), iVar5 != 0)) {
      CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
      ::Links(unsigned_short)::s_Sentinel = -1;
      DAT_000d286a = 0xffff;
      DAT_000d286c = 0xffff;
      __cxa_guard_release(&CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                           ::Links(unsigned_short)::s_Sentinel);
    }
    sVar4 = CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
            ::Links(unsigned_short)::s_Sentinel;
    if (uVar1 != 0xffff) {
      sVar4 = *(short *)(*(int *)(this + 0x140) + uVar8 * 0x14);
    }
    if (sVar4 == -1) break;
    if (CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
        ::Links(unsigned_short)::s_Sentinel == '\0') {
      iVar5 = __cxa_guard_acquire(&CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                                   ::Links(unsigned_short)::s_Sentinel);
      if (iVar5 != 0) {
        CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
        ::Links(unsigned_short)::s_Sentinel = -1;
        DAT_000d286a = 0xffff;
        DAT_000d286c = 0xffff;
        __cxa_guard_release(&CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                             ::Links(unsigned_short)::s_Sentinel);
      }
      if (uVar1 != 0xffff) goto LAB_0007a99c;
LAB_0007ac95:
      puVar7 = (ushort *)
               &CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                ::Links(unsigned_short)::s_Sentinel;
    }
    else {
      if (uVar1 == 0xffff) goto LAB_0007ac95;
LAB_0007a99c:
      puVar7 = (ushort *)(*(int *)(this + 0x140) + uVar8 * 0x14);
    }
    uVar1 = *puVar7;
  }
  for (; uVar8 != 0xffff; uVar8 = uVar8 & 0xffff) {
    operator_delete(*(void **)(*(int *)(this + 0x140) + uVar8 * 0x14 + 0x10));
    uVar8 = CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
            ::NextInorder(this_00,(ushort)uVar8);
  }
  CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
  ::RemoveAll(this_00);
  this_01 = (CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
             *)(this + 0x158);
  uVar1 = *(ushort *)(this + 0x168);
  while( true ) {
    uVar8 = (uint)uVar1;
    if ((CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
         ::Links(unsigned_short)::s_Sentinel == '\0') &&
       (iVar5 = __cxa_guard_acquire(&CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                                     ::Links(unsigned_short)::s_Sentinel), iVar5 != 0)) {
      CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
      ::Links(unsigned_short)::s_Sentinel = -1;
      DAT_000d2872 = 0xffff;
      DAT_000d2874 = 0xffff;
      __cxa_guard_release(&CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                           ::Links(unsigned_short)::s_Sentinel);
    }
    sVar4 = CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
            ::Links(unsigned_short)::s_Sentinel;
    if (uVar1 != 0xffff) {
      sVar4 = *(short *)(*(int *)(this + 0x15c) + uVar8 * 0x14);
    }
    if (sVar4 == -1) break;
    if (CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
        ::Links(unsigned_short)::s_Sentinel == '\0') {
      iVar5 = __cxa_guard_acquire(&CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                                   ::Links(unsigned_short)::s_Sentinel);
      if (iVar5 != 0) {
        CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
        ::Links(unsigned_short)::s_Sentinel = -1;
        DAT_000d2872 = 0xffff;
        DAT_000d2874 = 0xffff;
        __cxa_guard_release(&CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                             ::Links(unsigned_short)::s_Sentinel);
      }
      if (uVar1 != 0xffff) goto LAB_0007aab4;
LAB_0007acc5:
      puVar7 = (ushort *)
               &CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                ::Links(unsigned_short)::s_Sentinel;
    }
    else {
      if (uVar1 == 0xffff) goto LAB_0007acc5;
LAB_0007aab4:
      puVar7 = (ushort *)(*(int *)(this + 0x15c) + uVar8 * 0x14);
    }
    uVar1 = *puVar7;
  }
  for (; uVar8 != 0xffff; uVar8 = uVar8 & 0xffff) {
    pvVar2 = *(void **)(uVar8 * 0x14 + *(int *)(this + 0x15c) + 0x10);
    if (pvVar2 != (void *)0x0) {
      *(undefined4 *)((int)pvVar2 + 0x18) = 0;
      CUtlMemory<GCSDK::CGCUserSession*,int>::Purge
                ((CUtlMemory<GCSDK::CGCUserSession*,int> *)((int)pvVar2 + 0xc));
      *(undefined4 *)((int)pvVar2 + 0x1c) = *(undefined4 *)((int)pvVar2 + 0xc);
      CUtlMemory<GCSDK::CGCUserSession*,int>::Purge
                ((CUtlMemory<GCSDK::CGCUserSession*,int> *)((int)pvVar2 + 0xc));
      operator_delete(pvVar2);
    }
    uVar8 = CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
            ::NextInorder(this_01,(ushort)uVar8);
  }
  this_02 = (CUtlRBTree<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
             *)(this + 0x174);
  CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
  ::RemoveAll(this_01);
  uVar1 = *(ushort *)(this + 0x184);
  do {
    uVar8 = (uint)uVar1;
    if ((CUtlRBTree<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
         ::Links(unsigned_short)::s_Sentinel == '\0') &&
       (iVar5 = __cxa_guard_acquire(&CUtlRBTree<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                                     ::Links(unsigned_short)::s_Sentinel), iVar5 != 0)) {
      CUtlRBTree<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
      ::Links(unsigned_short)::s_Sentinel = 0xffff;
      DAT_000d287a = 0xffff;
      DAT_000d287c = 0xffff;
      __cxa_guard_release(&CUtlRBTree<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                           ::Links(unsigned_short)::s_Sentinel);
      if (uVar1 == 0xffff) goto LAB_0007ac60;
LAB_0007abca:
      psVar6 = (short *)(*(int *)(this + 0x178) + uVar8 * 0x14);
    }
    else {
      if (uVar1 != 0xffff) goto LAB_0007abca;
LAB_0007ac60:
      psVar6 = &CUtlRBTree<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                ::Links(unsigned_short)::s_Sentinel;
    }
    if (*psVar6 == -1) {
      for (; uVar8 != 0xffff; uVar8 = uVar8 & 0xffff) {
        piVar3 = *(int **)(*(int *)(this + 0x178) + uVar8 * 0x14 + 0x10);
        if (piVar3 != (int *)0x0) {
          (**(code **)(*piVar3 + 4))(piVar3);
        }
        uVar8 = CUtlRBTree<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                ::NextInorder(this_02,(ushort)uVar8);
      }
      CUtlRBTree<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
      ::RemoveAll(this_02);
      if (-1 < *(int *)(this + 0x19c)) {
        if (*(void **)(this + 0x194) != (void *)0x0) {
          free(*(void **)(this + 0x194));
          *(undefined4 *)(this + 0x194) = 0;
        }
        *(undefined4 *)(this + 0x198) = 0;
      }
      CUtlRBTree<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
      ::RemoveAll(this_02);
      *(undefined2 *)(this + 0x188) = 0xffff;
      CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
      ::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
               *)(this + 0x178));
      *(undefined2 *)(this + 0x18a) = 0xffff;
      CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
      ::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
               *)(this + 0x178));
      CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
      ::RemoveAll(this_01);
      *(undefined2 *)(this + 0x16c) = 0xffff;
      CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
      ::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
               *)(this + 0x15c));
      *(undefined2 *)(this + 0x16e) = 0xffff;
      CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
      ::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCGSSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
               *)(this + 0x15c));
      CUtlRBTree<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
      ::RemoveAll(this_00);
      *(undefined2 *)(this + 0x150) = 0xffff;
      CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
      ::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
               *)(this + 0x140));
      *(undefined2 *)(this + 0x152) = 0xffff;
      CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
      ::Purge((CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CGCUserSession*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
               *)(this + 0x140));
      CJobMgr::~CJobMgr((CJobMgr *)(this + 4));
      return;
    }
    if (CUtlRBTree<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
        ::Links(unsigned_short)::s_Sentinel == '\0') {
      iVar5 = __cxa_guard_acquire(&CUtlRBTree<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                                   ::Links(unsigned_short)::s_Sentinel);
      if (iVar5 != 0) {
        CUtlRBTree<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
        ::Links(unsigned_short)::s_Sentinel = 0xffff;
        DAT_000d287a = 0xffff;
        DAT_000d287c = 0xffff;
        __cxa_guard_release(&CUtlRBTree<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                             ::Links(unsigned_short)::s_Sentinel);
      }
      if (uVar1 != 0xffff) goto LAB_0007abfc;
LAB_0007ae19:
      puVar7 = &CUtlRBTree<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short,CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<CSteamID,GCSDK::CSharedObjectCache*,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
                ::Links(unsigned_short)::s_Sentinel;
    }
    else {
      if (uVar1 == 0xffff) goto LAB_0007ae19;
LAB_0007abfc:
      puVar7 = (ushort *)(*(int *)(this + 0x178) + uVar8 * 0x14);
    }
    uVar1 = *puVar7;
  } 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)