//
// sub_10008F990 from 0x10008f990 to 0x10008fa17 (135 bytes)
//
// 1 xrefs:
// > ??> @ 0x10008f45d
//
// 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_10008F990(void ***a1)
{
void **v1; // r14
void **v3; // r15
void **v4; // rdi
_QWORD *v5; // rdi
_QWORD *v6; // r12
void *v7; // rdi
v1 = *a1;
if ( *a1 )
{
v3 = a1[1];
v4 = *a1;
if ( v3 != v1 )
{
do
{
v5 = *(v3 - 3);
if ( v5 )
{
do
{
v6 = (_QWORD *)*v5;
operator delete(v5);
v5 = v6;
}
while ( v6 );
}
v3 -= 5;
v7 = *v3;
*v3 = nullptr;
if ( v7 )
operator delete(v7);
}
while ( v3 != v1 );
v4 = *a1;
}
a1[1] = v1;
operator delete(v4);
}
}