CUtlRBTree<CUtlMap<unsigned_int,Criteria,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,Criteria,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,Criteria,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>::NewNode
0x005c4750 · 370 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIj8CriteriatE6Node_tEtNS2_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS3_tEtEE7NewNodeEv
Decompiled
undefined (1 param)
/* CUtlRBTree<CUtlMap<unsigned int, Criteria, unsigned short>::Node_t, unsigned short,
CUtlMap<unsigned int, Criteria, unsigned short>::CKeyLess,
CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned int, Criteria, unsigned short>::Node_t, unsigned
short>, unsigned short> >::NewNode() */
uint __thiscall
CUtlRBTree<CUtlMap<unsigned_int,Criteria,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,Criteria,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,Criteria,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
::NewNode(CUtlRBTree<CUtlMap<unsigned_int,Criteria,unsigned_short>::Node_t,unsigned_short,CUtlMap<unsigned_int,Criteria,unsigned_short>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,Criteria,unsigned_short>::Node_t,unsigned_short>,unsigned_short>>
*this)
{
ushort uVar1;
undefined2 uVar2;
int iVar3;
uint uVar4;
uint uVar5;
int iVar6;
uint uVar7;
uVar1 = *(ushort *)(this + 0x14);
uVar7 = (uint)uVar1;
if (uVar1 != 0xffff) {
iVar3 = *(int *)(this + 4);
iVar6 = (uint)uVar1 * 0x34 + iVar3;
*(undefined2 *)(this + 0x14) = *(undefined2 *)(iVar6 + 2);
goto LAB_005c4782;
}
iVar3 = *(int *)(this + 8);
if ((int)(uint)*(ushort *)(this + 0x16) < iVar3) {
uVar4 = *(ushort *)(this + 0x16) + 1;
uVar5 = uVar4 & 0xffff;
if (iVar3 <= (int)uVar5) {
uVar4 = uVar7;
uVar5 = 0xffff;
}
if (iVar3 <= (int)uVar5) goto LAB_005c485f;
LAB_005c4827:
iVar6 = (uVar4 & 0xffff) * 0x34;
uVar7 = uVar4;
}
else {
iVar6 = 0;
if (iVar3 < 1) {
iVar6 = 0xffff;
}
uVar4 = (0 < iVar3) - 1;
if (iVar6 < iVar3) goto LAB_005c4827;
LAB_005c485f:
CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,Criteria,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
::Grow((CUtlMemory<UtlRBTreeNode_t<CUtlMap<unsigned_int,Criteria,unsigned_short>::Node_t,unsigned_short>,unsigned_short>
*)(this + 4),1);
iVar3 = *(int *)(this + 8);
if ((int)(uint)*(ushort *)(this + 0x16) < iVar3) {
uVar4 = *(ushort *)(this + 0x16) + 1;
uVar5 = uVar4 & 0xffff;
if ((int)uVar5 < iVar3) {
iVar6 = uVar5 * 0x34;
uVar7 = uVar4;
}
else {
iVar6 = 0x33ffcc;
uVar5 = 0xffff;
}
}
else {
iVar6 = 0x33ffcc;
if (0 < iVar3) {
iVar6 = 0;
}
uVar5 = 0xffff;
if (0 < iVar3) {
uVar5 = 0;
uVar7 = 0;
}
}
if (iVar3 <= (int)uVar5) {
Error("CUtlRBTree overflow!\n");
}
}
iVar3 = *(int *)(this + 4);
*(short *)(this + 0x16) = (short)uVar7;
iVar6 = iVar6 + iVar3;
LAB_005c4782:
if (iVar6 != -8) {
*(byte *)(iVar6 + 0x1d) = *(byte *)(iVar6 + 0x1d) & 0x80;
*(undefined2 *)(iVar6 + 0xc) = 0xffff;
*(undefined2 *)(iVar6 + 0x1e) = 0xffff;
*(undefined2 *)(iVar6 + 0x20) = 0xffff;
*(undefined4 *)(iVar6 + 0x15) = 0;
*(undefined4 *)(iVar6 + 0x19) = 0;
*(undefined4 *)(iVar6 + 0x22) = 0;
*(undefined4 *)(iVar6 + 0x26) = 0;
*(undefined4 *)(iVar6 + 0x2a) = 0;
*(undefined4 *)(iVar6 + 0x2e) = 0;
*(undefined4 *)(iVar6 + 0xe) = 0;
uVar2 = float16::ConvertFloatTo16bits(1.0);
*(undefined1 *)(iVar6 + 0x14) = 0;
*(undefined2 *)(iVar6 + 0x12) = uVar2;
iVar3 = *(int *)(this + 4);
}
*(int *)(this + 0x18) = iVar3;
return uVar7;
}
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.