//
// sub_1000BAD70 from 0x1000bad70 to 0x1000baddc (108 bytes)
//
// 2 xrefs:
// > ??> @ 0x1000b33ee
// > ??> @ 0x1000b3421
//
// 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:31 +0000
//
void __fastcall sub_1000BAD70(__int64 a1)
{
void **v2; // r14
void *v3; // rdi
void **v4; // r15
v2 = *(void ***)(a1 + 16);
if ( v2 )
{
do
{
v4 = (void **)*v2;
if ( ((_BYTE)v2[2] & 1) != 0 )
operator delete(v2[4]);
operator delete(v2);
v2 = v4;
}
while ( v4 );
}
v3 = *(void **)a1;
*(_QWORD *)a1 = 0;
if ( v3 )
operator delete(v3);
}