//
// sub_10066D060 from 0x10066d060 to 0x10066d0f9 (153 bytes)
//
// 1 xrefs:
// > ??> @ 0x10066cdaa
//
// 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:02 +0000
//
void __fastcall sub_10066D060(__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 - 96;
if ( (*(_BYTE *)(i - 24) & 1) != 0 )
{
operator delete(*(void **)(i - 8));
if ( (*(_BYTE *)(i - 64) & 1) != 0 )
{
LABEL_9:
operator delete(*(void **)(i - 48));
if ( (*(_BYTE *)(i - 88) & 1) == 0 )
continue;
goto LABEL_10;
}
}
else if ( (*(_BYTE *)(i - 64) & 1) != 0 )
{
goto LABEL_9;
}
if ( (*(_BYTE *)(i - 88) & 1) == 0 )
continue;
LABEL_10:
operator delete(*(void **)(i - 72));
}
v4 = *(void **)a1;
if ( *(_QWORD *)a1 )
operator delete(v4);
}