CUtlRBTree<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::NewNode
0x0021e480 · 554 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIy19PublishedFileInfo_ttE6Node_tEtNS2_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS3_tEtEE7NewNodeEv
Decompiled
undefined (1 param)
/* CUtlRBTree<CUtlMap<unsigned long long, PublishedFileInfo_t, unsigned short>::Node_t, unsigned
short, CUtlMap<unsigned long long, PublishedFileInfo_t, unsigned short>::CKeyLess,
CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned long long, PublishedFileInfo_t, unsigned
short>::Node_t, unsigned short>, unsigned short> >::NewNode() */
uint __thiscall
CUtlRBTree<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::NewNode(CUtlRBTree<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*this)
{
ushort uVar1;
int iVar2;
uint uVar3;
uint uVar4;
int iVar5;
uint uVar6;
undefined4 *puVar7;
byte bVar8;
bVar8 = 0;
uVar1 = *(ushort *)(this + 0x14);
uVar6 = (uint)uVar1;
if (uVar1 != 0xffff) {
iVar2 = *(int *)(this + 4);
iVar5 = (uint)uVar1 * 0x2540 + iVar2;
*(undefined2 *)(this + 0x14) = *(undefined2 *)(iVar5 + 2);
goto LAB_0021e4b0;
}
iVar5 = *(int *)(this + 8);
if ((int)(uint)*(ushort *)(this + 0x16) < iVar5) {
uVar3 = *(ushort *)(this + 0x16) + 1;
uVar4 = uVar3 & 0xffff;
if (iVar5 <= (int)uVar4) {
uVar3 = uVar6;
uVar4 = 0xffff;
}
if (iVar5 <= (int)uVar4) goto LAB_0021e647;
LAB_0021e60f:
iVar5 = (uVar3 & 0xffff) * 0x2540;
uVar6 = uVar3;
}
else {
iVar2 = 0;
if (iVar5 < 1) {
iVar2 = 0xffff;
}
uVar3 = (0 < iVar5) - 1;
if (iVar2 < iVar5) goto LAB_0021e60f;
LAB_0021e647:
CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
::Grow((CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_long_long,PublishedFileInfo_t,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
*)(this + 4),1);
iVar2 = *(int *)(this + 8);
if ((int)(uint)*(ushort *)(this + 0x16) < iVar2) {
uVar3 = *(ushort *)(this + 0x16) + 1;
uVar4 = uVar3 & 0xffff;
if ((int)uVar4 < iVar2) {
iVar5 = uVar4 * 0x2540;
uVar6 = uVar3;
}
else {
iVar5 = 0x253fdac0;
uVar4 = 0xffff;
}
}
else {
uVar4 = 0;
iVar5 = 0x253fdac0;
if (iVar2 < 1) {
uVar4 = 0xffff;
}
else {
iVar5 = 0;
uVar6 = 0;
}
}
if (iVar2 <= (int)uVar4) {
Error("CUtlRBTree overflow!\n");
}
}
iVar2 = *(int *)(this + 4);
*(short *)(this + 0x16) = (short)uVar6;
iVar5 = iVar2 + iVar5;
LAB_0021e4b0:
if (iVar5 != -8) {
*(undefined4 *)(iVar5 + 0x10) = 0;
*(undefined4 *)(iVar5 + 0x14) = 0;
*(undefined4 *)(iVar5 + 0x9c) = 0xffffffff;
*(undefined4 *)(iVar5 + 0xa0) = 0xffffffff;
*(undefined4 *)(iVar5 + 0xa4) = 0xffffffff;
*(undefined4 *)(iVar5 + 0xa8) = 0xffffffff;
*(undefined4 *)(iVar5 + 0xac) = 0;
*(undefined4 *)(iVar5 + 0xb0) = 0;
*(undefined4 *)(iVar5 + 0xb4) = 0;
*(undefined4 *)(iVar5 + 0xb8) = 0;
*(undefined4 *)(iVar5 + 0xbc) = 0;
*(undefined4 *)(iVar5 + 0xc0) = 0;
*(undefined4 *)(iVar5 + 0xc4) = 0;
*(undefined4 *)(iVar5 + 200) = 0;
*(undefined4 *)(iVar5 + 0x2518) = 0;
*(undefined4 *)(iVar5 + 0x251c) = 0;
*(undefined4 *)(iVar5 + 0x2520) = 0;
*(undefined4 *)(iVar5 + 0x2524) = 0;
*(undefined4 *)(iVar5 + 0x2528) = 0;
*(undefined ***)(iVar5 + 0x2514) = &PTR__CCopyableUtlVector_002c8068;
*(undefined1 *)(iVar5 + 0x252c) = 0;
*(undefined4 *)(iVar5 + 0x2530) = 0;
*(undefined4 *)(iVar5 + 0x2534) = 0;
*(undefined4 *)(iVar5 + 0x2538) = 0;
*(undefined4 *)(iVar5 + 0x253c) = 0;
puVar7 = (undefined4 *)(iVar5 + 0x18);
for (iVar2 = 0x20; iVar2 != 0; iVar2 = iVar2 + -1) {
*puVar7 = 0;
puVar7 = puVar7 + (uint)bVar8 * -2 + 1;
}
*(undefined1 *)puVar7 = 0;
puVar7 = (undefined4 *)(iVar5 + 0xcc);
for (iVar2 = 2000; iVar2 != 0; iVar2 = iVar2 + -1) {
*puVar7 = 0;
puVar7 = puVar7 + (uint)bVar8 * -2 + 1;
}
puVar7 = (undefined4 *)(iVar5 + 0x200c);
for (iVar2 = 0x41; iVar2 != 0; iVar2 = iVar2 + -1) {
*puVar7 = 0;
puVar7 = puVar7 + (uint)bVar8 * -2 + 1;
}
iVar2 = *(int *)(this + 4);
}
*(int *)(this + 0x18) = iVar2;
return uVar6;
}
SourceMod gamedata
paste intoaddons/sourcemod/gamedata/<your_plugin>.txt
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.
Signatures + Functions block. The plugin uses
DHookCreateFromConf - DHooks reads return type, this-type,
calling convention, and argument types straight from the gamedata. Less
boilerplate in the plugin, types travel with the gamedata.
Type inference is best-effort from the C signature - sanity-check the DHooks types before shipping.