//
// sub_10066C5C0 from 0x10066c5c0 to 0x10066c631 (113 bytes)
//
// 6 xrefs:
// > ??> @ 0x10066c59d
// > ??> @ 0x10066c5b1
// > ??> @ 0x1008dc6ad
// > ??> @ 0x1008dc6c1
// > ??> @ 0x10091d9d9
// > ??> @ 0x10091da0b
//
// 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:35:01 +0000
//
void __fastcall sub_10066C5C0(__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 - 56;
if ( (*(_BYTE *)(i - 24) & 1) != 0 )
operator delete(*(void **)(i - 8));
if ( (*(_BYTE *)(i - 48) & 1) != 0 )
operator delete(*(void **)(i - 32));
}
v4 = *(void **)a1;
if ( *(_QWORD *)a1 )
operator delete(v4);
}