//
// sub_1000050D0 from 0x1000050d0 to 0x10000513c (108 bytes)
//
// 4 xrefs:
// > ??> @ 0x10001ad03
// > ??> @ 0x10008f2ee
// > ??> @ 0x100665e12
// > sub_1009A6340 @ 0x1009a6376
//
// 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:18:46 +0000
//
void __fastcall sub_1000050D0(void **a1)
{
void **v2; // r14
void *v3; // rdi
void **v4; // r15
v2 = (void **)a1[2];
if ( v2 )
{
do
{
v4 = (void **)*v2;
if ( ((_BYTE)v2[3] & 1) != 0 )
operator delete(v2[5]);
operator delete(v2);
v2 = v4;
}
while ( v4 );
}
v3 = *a1;
*a1 = nullptr;
if ( v3 )
operator delete(v3);
}