//
// sub_10005F5C0 from 0x10005f5c0 to 0x10005f638 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ab8048
//
// 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:19:41 +0000
//
void __fastcall sub_10005F5C0(__int64 a1)
{
int v2; // eax
__int64 i; // r14
void *v4; // rdi
void *v5; // rdi
*(_QWORD *)a1 = &off_100AB8048;
v2 = *(_DWORD *)(a1 + 100);
if ( v2 > 0 )
{
for ( i = 0; i < v2; ++i )
{
v4 = *(void **)(*(_QWORD *)(a1 + 8) + 8 * i);
if ( v4 )
{
operator delete(v4);
v2 = *(_DWORD *)(a1 + 100);
}
}
}
v5 = *(void **)(a1 + 8);
if ( v5 != (void *)(a1 + 16) && v5 != nullptr )
operator delete[](v5);
}