//
// sub_100109AC0 from 0x100109ac0 to 0x100109b27 (103 bytes)
//
// 2 xrefs:
// > ??> @ 0x100109aad
// > ??> @ 0x100166c6d
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall sub_100109AC0(__int64 a1)
{
_QWORD *v1; // rbx
_QWORD *v2; // rdi
_QWORD *v3; // r14
void *v4; // rdi
v1 = *(_QWORD **)a1;
*(_QWORD *)a1 = 0;
if ( v1 )
{
if ( *(_BYTE *)(a1 + 16) == 1 )
{
v2 = (_QWORD *)v1[5];
if ( v2 )
{
do
{
v3 = (_QWORD *)*v2;
operator delete(v2);
v2 = v3;
}
while ( v3 );
}
v4 = (void *)v1[3];
v1[3] = 0;
if ( v4 )
operator delete(v4);
}
operator delete(v1);
}
}