//
// sub_100204A40 from 0x100204a40 to 0x100204ad2 (146 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ae52b0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:26:53 +0000
//
__int64 __fastcall sub_100204A40(_QWORD *a1)
{
_QWORD *v2; // rdi
_QWORD *v3; // r14
void *v4; // rdi
_QWORD *v5; // rdi
_QWORD *v6; // r14
void *v7; // rdi
*a1 = off_100AE52A8;
v2 = (_QWORD *)a1[14];
if ( v2 )
{
do
{
v3 = (_QWORD *)*v2;
operator delete(v2);
v2 = v3;
}
while ( v3 );
}
v4 = (void *)a1[12];
a1[12] = 0;
if ( v4 )
operator delete(v4);
v5 = (_QWORD *)a1[9];
if ( v5 )
{
do
{
v6 = (_QWORD *)*v5;
operator delete(v5);
v5 = v6;
}
while ( v6 );
}
v7 = (void *)a1[7];
a1[7] = 0;
if ( v7 )
operator delete(v7);
return sub_10047FF60(a1);
}