//
// sub_100147420 from 0x100147420 to 0x100147499 (121 bytes)
//
// 3 xrefs:
// > ??> @ 0x10014724c
// > ??> @ 0x100147268
// > ??> @ 0x1005fbb73
//
// 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:24:58 +0000
//
void __fastcall sub_100147420(__int64 a1)
{
__int64 v2; // r15
__int64 i; // r12
void *v4; // rdi
v2 = *(_QWORD *)(a1 + 8);
for ( i = *(_QWORD *)(a1 + 16); i != v2; i = *(_QWORD *)(a1 + 16) )
{
*(_QWORD *)(a1 + 16) = i - 240;
v4 = *(void **)(i - 32);
if ( v4 )
{
*(_QWORD *)(i - 24) = v4;
operator delete(v4);
}
sub_10001ADF0(i - 240, *(_QWORD **)(i - 232));
}
if ( *(_QWORD *)a1 )
operator delete(*(void **)a1);
}