//
// sub_1000E8FD0 from 0x1000e8fd0 to 0x1000e9050 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x1000e8fbd
//
// 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:21:06 +0000
//
void __fastcall sub_1000E8FD0(__int64 a1)
{
_QWORD *v1; // rbx
void **v2; // r14
void *v3; // rdi
void **v4; // r15
v1 = *(_QWORD **)a1;
*(_QWORD *)a1 = 0;
if ( v1 )
{
if ( *(_BYTE *)(a1 + 16) == 1 )
{
v2 = (void **)v1[5];
if ( v2 )
{
do
{
v4 = (void **)*v2;
if ( ((_BYTE)v2[3] & 1) != 0 )
operator delete(v2[5]);
operator delete(v2);
v2 = v4;
}
while ( v4 );
}
v3 = (void *)v1[3];
v1[3] = 0;
if ( v3 )
operator delete(v3);
}
operator delete(v1);
}
}