//
// sub_1008D8FE0 from 0x1008d8fe0 to 0x1008d9051 (113 bytes)
//
// 4 xrefs:
// > ??> @ 0x1008d8fbd
// > ??> @ 0x1008d8fd1
// > ??> @ 0x1009573dd
// > ??> @ 0x1009573f1
//
// 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:37:42 +0000
//
void __fastcall sub_1008D8FE0(__int64 a1)
{
__int64 v2; // r14
__int64 i; // r15
void *v4; // rdi
v2 = *(_QWORD *)(a1 + 8);
for ( i = *(_QWORD *)(a1 + 16); i != v2; i = *(_QWORD *)(a1 + 16) )
{
*(_QWORD *)(a1 + 16) = i - 64;
if ( (*(_BYTE *)(i - 32) & 1) != 0 )
operator delete(*(void **)(i - 16));
if ( (*(_BYTE *)(i - 56) & 1) != 0 )
operator delete(*(void **)(i - 40));
}
v4 = *(void **)a1;
if ( *(_QWORD *)a1 )
operator delete(v4);
}