CUtlRBTree<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int,CUtlMap<char_const*,ConceptHistory_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int>,int>>::Insert
0x005d7160 · 464 bytes · __thiscall
_ZN10CUtlRBTreeIN7CUtlMapIPKc16ConceptHistory_tiE6Node_tEiNS4_8CKeyLessE10CUtlMemoryI15UtlRBTreeNode_tIS5_iEiEE6InsertERKS5_
Decompiled
undefined (2 params)
/* CUtlRBTree<CUtlMap<char const*, ConceptHistory_t, int>::Node_t, int, CUtlMap<char const*,
ConceptHistory_t, int>::CKeyLess, CUtlMemory<UtlRBTreeNode_t<CUtlMap<char const*,
ConceptHistory_t, int>::Node_t, int>, int> >::Insert(CUtlMap<char const*, ConceptHistory_t,
int>::Node_t const&) */
int __thiscall
CUtlRBTree<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int,CUtlMap<char_const*,ConceptHistory_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int>,int>>
::Insert(CUtlRBTree<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int,CUtlMap<char_const*,ConceptHistory_t,int>::CKeyLess,CUtlMemory<UtlRBTreeNode_t<CUtlMap<char_const*,ConceptHistory_t,int>::Node_t,int>,int>>
*this,Node_t *param_1)
{
bool bVar1;
char cVar2;
int iVar3;
undefined4 *puVar4;
int iVar5;
int iVar6;
int local_24;
iVar3 = *(int *)(this + 0x10);
if (*(int *)(this + 0x10) == -1) {
iVar3 = NewNode(this);
local_24 = iVar3 * 0xd4;
puVar4 = (undefined4 *)(local_24 + *(int *)(this + 4));
puVar4[2] = 0xffffffff;
puVar4[1] = 0xffffffff;
*puVar4 = 0xffffffff;
puVar4[3] = 0;
}
else {
do {
iVar5 = iVar3;
iVar6 = iVar5 * 0xd4;
cVar2 = (**(code **)this)(param_1,*(int *)(this + 4) + iVar6 + 0x10);
if (cVar2 == '\0') {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = 0xffffffff;
DAT_00f21f7c = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
bVar1 = false;
iVar3 = *(int *)(*(int *)(this + 4) + 4 + iVar6);
}
else {
if ((Links(int)::s_Sentinel == '\0') &&
(iVar3 = __cxa_guard_acquire(&Links(int)::s_Sentinel), iVar3 != 0)) {
Links(int)::s_Sentinel = 0xffffffff;
DAT_00f21f78 = 0xffffffff;
DAT_00f21f7c = 0xffffffff;
__cxa_guard_release(&Links(int)::s_Sentinel);
}
bVar1 = true;
iVar3 = *(int *)(*(int *)(this + 4) + iVar6);
}
} while (iVar3 != -1);
iVar3 = NewNode(this);
local_24 = iVar3 * 0xd4;
puVar4 = (undefined4 *)(local_24 + *(int *)(this + 4));
puVar4[2] = iVar5;
puVar4[1] = 0xffffffff;
*puVar4 = 0xffffffff;
puVar4[3] = 0;
if (iVar5 != -1) {
if (bVar1) {
*(int *)(*(int *)(this + 4) + iVar6) = iVar3;
}
else {
*(int *)(*(int *)(this + 4) + 4 + iVar6) = iVar3;
}
goto LAB_005d7223;
}
}
*(int *)(this + 0x10) = iVar3;
LAB_005d7223:
InsertRebalance(this,iVar3);
*(int *)(this + 0x14) = *(int *)(this + 0x14) + 1;
local_24 = local_24 + *(int *)(this + 4);
if (local_24 != -0x10) {
*(undefined4 *)(local_24 + 0x10) = *(undefined4 *)param_1;
ConceptHistory_t::ConceptHistory_t
((ConceptHistory_t *)(local_24 + 0x14),(ConceptHistory_t *)(param_1 + 4));
}
return iVar3;
}
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.