//
// sub_1009A6460 from 0x1009a6460 to 0x1009a64cd (109 bytes)
//
// 1 xrefs:
// > ??> @ 0x1000f66f1
//
// 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:39:19 +0000
//
void __fastcall sub_1009A6460(__int64 a1)
{
_QWORD *v2; // r15
_QWORD *v3; // r14
_QWORD *v4; // rdi
_QWORD *v5; // r12
void *v6; // rdi
void *v7; // rdi
v2 = *(_QWORD **)(a1 + 16);
while ( v2 )
{
v3 = v2;
v2 = (_QWORD *)*v2;
v4 = (_QWORD *)v3[5];
if ( v4 )
{
do
{
v5 = (_QWORD *)*v4;
operator delete(v4);
v4 = v5;
}
while ( v5 );
}
v6 = (void *)v3[3];
v3[3] = 0;
if ( v6 )
operator delete(v6);
operator delete(v3);
}
v7 = *(void **)a1;
*(_QWORD *)a1 = 0;
if ( v7 )
operator delete(v7);
}