CUtlLinkedList<LagRecord,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<LagRecord,int>>>::RemoveAll
0x007cdb10 · 407 bytes · __thiscall
_ZN14CUtlLinkedListI9LagRecordiLb1Ei15CUtlFixedMemoryI19UtlLinkedListElem_tIS0_iEEE9RemoveAllEv
Decompiled
undefined (1 param)
/* CUtlLinkedList<LagRecord, int, true, int, CUtlFixedMemory<UtlLinkedListElem_t<LagRecord, int> >
>::RemoveAll() */
void __thiscall
CUtlLinkedList<LagRecord,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<LagRecord,int>>>::
RemoveAll(CUtlLinkedList<LagRecord,int,true,int,CUtlFixedMemory<UtlLinkedListElem_t<LagRecord,int>>>
*this)
{
undefined4 *puVar1;
undefined4 *puVar2;
undefined4 *puVar3;
int iVar4;
undefined4 *puVar5;
int iVar6;
if ((*(int *)(this + 0x20) == 0) && (*(int *)(this + 0x24) == -1)) {
return;
}
puVar5 = *(undefined4 **)this;
iVar6 = -(uint)(puVar5 == (undefined4 *)0x0);
LAB_007cdb3a:
if (puVar5 == (undefined4 *)0x0) goto LAB_007cdc88;
do {
if (((iVar6 == -1) || ((int)puVar5[1] <= iVar6)) ||
(puVar2 = puVar5 + iVar6 * 0x4e + 2, puVar2 == (undefined4 *)0x0)) goto LAB_007cdc52;
puVar1 = *(undefined4 **)(this + 0x20);
if (((puVar1 == (undefined4 *)0x0) || (iVar4 = *(int *)(this + 0x24), iVar4 < 0)) ||
((int)puVar1[1] <= iVar4)) {
LAB_007cdc38:
if ((puVar2 != (undefined4 *)puVar2[0x4c]) || (puVar2 == (undefined4 *)puVar2[0x4d])) {
puVar2[0x4c] = puVar2;
puVar2[0x4d] = *(undefined4 *)(this + 0x14);
*(undefined4 **)(this + 0x14) = puVar2;
LAB_007cdc52:
iVar4 = *(int *)(this + 0x24);
puVar2 = *(undefined4 **)(this + 0x20);
goto LAB_007cdc58;
}
iVar4 = *(int *)(this + 0x24);
}
else {
puVar3 = puVar1 + 2;
if ((puVar2 < puVar3) || (puVar3 + puVar1[1] * 0x4e <= puVar2)) {
for (puVar3 = (undefined4 *)*puVar1; puVar3 != (undefined4 *)0x0;
puVar3 = (undefined4 *)*puVar3) {
if ((puVar3 + 2 <= puVar2) && (puVar2 < puVar3 + 2 + puVar3[1] * 0x4e)) goto LAB_007cdbf9;
}
goto LAB_007cdc38;
}
if ((int)puVar2 <= (int)(puVar3 + iVar4 * 0x4e)) goto LAB_007cdc38;
}
LAB_007cdbf9:
if (puVar1 == puVar5) goto LAB_007cdc5c;
while( true ) {
if (((puVar5 == (undefined4 *)0x0) || (iVar6 == -1)) || ((int)puVar5[1] <= iVar6))
goto LAB_007cdc10;
iVar6 = iVar6 + 1;
if (iVar6 < (int)puVar5[1]) goto LAB_007cdb3a;
puVar5 = (undefined4 *)*puVar5;
iVar6 = -(uint)(puVar5 == (undefined4 *)0x0);
if (puVar5 != (undefined4 *)0x0) break;
LAB_007cdc88:
if (iVar6 == -1) goto LAB_007cdc10;
iVar4 = *(int *)(this + 0x24);
puVar2 = *(undefined4 **)(this + 0x20);
LAB_007cdc58:
if (puVar2 == puVar5) {
LAB_007cdc5c:
if (iVar4 == iVar6) {
LAB_007cdc10:
*(undefined4 *)(this + 0xc) = 0;
*(undefined4 *)(this + 0x10) = 0;
*(undefined4 *)(this + 0x18) = 0;
return;
}
}
}
} 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.