//
// sub_100416AE0 from 0x100416ae0 to 0x100416b51 (113 bytes)
//
// 2 xrefs:
// > ??> @ 0x100416abd
// > ??> @ 0x100416ad1
//
// 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:30:11 +0000
//
void __fastcall sub_100416AE0(__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 - 72;
if ( (*(_BYTE *)(i - 40) & 1) != 0 )
operator delete(*(void **)(i - 24));
if ( (*(_BYTE *)(i - 64) & 1) != 0 )
operator delete(*(void **)(i - 48));
}
v4 = *(void **)a1;
if ( *(_QWORD *)a1 )
operator delete(v4);
}