CUtlLinkedList<unsigned_short,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<unsigned_short,int>>>::RemoveAll
0x001e30a0 · 376 bytes · __thiscall
_ZN14CUtlLinkedListItiLb1Ei15CUtlFixedMemoryI19UtlLinkedListElem_tItiEEE9RemoveAllEv
Decompiled
undefined (1 param)
/* CUtlLinkedList<unsigned short, int, true, int, CUtlFixedMemory<UtlLinkedListElem_t<unsigned
short, int> > >::RemoveAll() */
void __thiscall
CUtlLinkedList<unsigned_short,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<unsigned_short,int>>>
::RemoveAll(CUtlLinkedList<unsigned_short,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<unsigned_short,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_001e31c4;
LAB_001e31f0:
puVar2 = *(undefined4 **)(this + 0x20);
iVar3 = *(int *)(this + 0x24);
}
else {
if (((iVar6 == -1) || ((int)puVar5[1] <= iVar6)) ||
(puVar1 = puVar5 + iVar6 * 3 + 2, puVar1 == (undefined4 *)0x0)) goto LAB_001e31f0;
puVar2 = *(undefined4 **)(this + 0x20);
if (((puVar2 == (undefined4 *)0x0) || (iVar3 = *(int *)(this + 0x24), iVar3 < 0)) ||
((int)puVar2[1] <= iVar3)) {
LAB_001e3150:
if ((puVar1 == (undefined4 *)puVar1[1]) && (puVar1 != (undefined4 *)puVar1[2])) {
iVar3 = *(int *)(this + 0x24);
}
else {
puVar1[1] = puVar1;
puVar1[2] = *(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] * 3 <= puVar1)) {
for (puVar4 = (undefined4 *)*puVar2; puVar4 != (undefined4 *)0x0;
puVar4 = (undefined4 *)*puVar4) {
while (puVar4 + 2 <= puVar1) {
if (puVar1 < puVar4 + 2 + puVar4[1] * 3) goto joined_r0x001e31b2;
puVar4 = (undefined4 *)*puVar4;
if (puVar4 == (undefined4 *)0x0) goto LAB_001e3150;
}
}
goto LAB_001e3150;
}
if ((int)puVar1 <= (int)(puVar4 + iVar3 * 3)) goto LAB_001e3150;
}
}
joined_r0x001e31b2:
if ((((puVar2 == puVar5) && (iVar3 == iVar6)) || (puVar5 == (undefined4 *)0x0)) ||
((iVar6 == -1 || ((int)puVar5[1] <= iVar6)))) {
LAB_001e31c4:
*(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.