CUtlLinkedList<LeafListData_t,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<LeafListData_t,int>>>::RemoveAll
0x001e38b0 · 378 bytes · __thiscall
_ZN14CUtlLinkedListI14LeafListData_tiLb1Ei15CUtlFixedMemoryI19UtlLinkedListElem_tIS0_iEEE9RemoveAllEv
Decompiled
undefined (1 param)
/* CUtlLinkedList<LeafListData_t, int, true, int,
CUtlFixedMemory<UtlLinkedListElem_t<LeafListData_t, int> > >::RemoveAll() */
void __thiscall
CUtlLinkedList<LeafListData_t,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<LeafListData_t,int>>>
::RemoveAll(CUtlLinkedList<LeafListData_t,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<LeafListData_t,int>>>
*this)
{
undefined4 *puVar1;
undefined4 *puVar2;
int iVar3;
undefined4 *puVar4;
undefined4 *puVar5;
int iVar6;
if ((*(int *)(this + 0x20) == 0) && (*(int *)(this + 0x24) == -1)) {
return;
}
puVar5 = *(undefined4 **)this;
do {
iVar6 = -(uint)(puVar5 == (undefined4 *)0x0);
do {
if (puVar5 == (undefined4 *)0x0) {
if (iVar6 == -1) goto LAB_001e39d4;
LAB_001e3a00:
puVar2 = *(undefined4 **)(this + 0x20);
iVar3 = *(int *)(this + 0x24);
}
else {
if (((iVar6 == -1) || ((int)puVar5[1] <= iVar6)) ||
(puVar1 = puVar5 + iVar6 * 4 + 2, puVar1 == (undefined4 *)0x0)) goto LAB_001e3a00;
puVar2 = *(undefined4 **)(this + 0x20);
if (((puVar2 == (undefined4 *)0x0) || (iVar3 = *(int *)(this + 0x24), iVar3 < 0)) ||
((int)puVar2[1] <= iVar3)) {
LAB_001e3960:
if ((puVar1 == (undefined4 *)puVar1[2]) && (puVar1 != (undefined4 *)puVar1[3])) {
iVar3 = *(int *)(this + 0x24);
}
else {
puVar1[2] = puVar1;
puVar1[3] = *(undefined4 *)(this + 0x14);
*(undefined4 **)(this + 0x14) = puVar1;
puVar2 = *(undefined4 **)(this + 0x20);
iVar3 = *(int *)(this + 0x24);
}
}
else {
puVar4 = puVar2 + 2;
if ((puVar1 < puVar4) || (puVar4 + puVar2[1] * 4 <= puVar1)) {
for (puVar4 = (undefined4 *)*puVar2; puVar4 != (undefined4 *)0x0;
puVar4 = (undefined4 *)*puVar4) {
while (puVar4 + 2 <= puVar1) {
if (puVar1 < puVar4 + 2 + puVar4[1] * 4) goto joined_r0x001e39c2;
puVar4 = (undefined4 *)*puVar4;
if (puVar4 == (undefined4 *)0x0) goto LAB_001e3960;
}
}
goto LAB_001e3960;
}
if ((int)puVar1 <= (int)(puVar4 + iVar3 * 4)) goto LAB_001e3960;
}
}
joined_r0x001e39c2:
if ((((puVar2 == puVar5) && (iVar3 == iVar6)) || (puVar5 == (undefined4 *)0x0)) ||
((iVar6 == -1 || ((int)puVar5[1] <= iVar6)))) {
LAB_001e39d4:
*(undefined4 *)(this + 0xc) = 0;
*(undefined4 *)(this + 0x10) = 0;
*(undefined4 *)(this + 0x18) = 0;
return;
}
iVar6 = iVar6 + 1;
} while (iVar6 < (int)puVar5[1]);
puVar5 = (undefined4 *)*puVar5;
} while( true );
}
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.