//
// sub_10008F880 from 0x10008f880 to 0x10008f8ee (110 bytes)
//
// 9 xrefs:
// > ??> @ 0x10008f347
// > ??> @ 0x10008f353
// > ??> @ 0x10008f3ed
// > ??> @ 0x10014156d
// > ??> @ 0x100141579
// > ??> @ 0x1001e5aa9
// > ??> @ 0x1001e6a62
// > ??> @ 0x1008ec1f5
// > ??> @ 0x1008ec2c4
//
// 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:20:07 +0000
//
void __fastcall sub_10008F880(__int64 a1)
{
_QWORD *v2; // r14
void *v3; // rdi
_QWORD *v4; // r15
void *v5; // rdi
v2 = *(_QWORD **)(a1 + 16);
if ( v2 )
{
do
{
v4 = (_QWORD *)*v2;
v5 = (void *)v2[3];
if ( v5 )
{
v2[4] = v5;
operator delete(v5);
}
operator delete(v2);
v2 = v4;
}
while ( v4 );
}
v3 = *(void **)a1;
*(_QWORD *)a1 = 0;
if ( v3 )
operator delete(v3);
}