//
// sub_10009A870 from 0x10009a870 to 0x10009a8eb (123 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008b4a30
//
// 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_10009A870(_DWORD *__p)
{
int v2; // eax
__int64 i; // r14
void *v4; // rdi
_DWORD *v5; // rdi
*(_QWORD *)__p = &off_1008B4A28;
v2 = __p[25];
if ( v2 > 0 )
{
for ( i = 0; i < v2; ++i )
{
v4 = *(void **)(*((_QWORD *)__p + 1) + 8 * i);
if ( v4 )
{
operator delete(v4);
v2 = __p[25];
}
}
}
v5 = *((_DWORD **)__p + 1);
if ( v5 != __p + 4 && v5 != nullptr )
operator delete[](v5);
operator delete(__p);
}