//
// sub_10066D110 from 0x10066d110 to 0x10066d17e (110 bytes)
//
// 3 xrefs:
// > ??> @ 0x10066d577
// > ??> @ 0x10095c1b6
// > ??> @ 0x10095c1d2
//
// 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_10066D110(__int64 a1)
{
__int64 v1; // rbx
__int64 v2; // r14
if ( !*(_BYTE *)(a1 + 24) )
{
v1 = **(_QWORD **)(a1 + 16);
v2 = **(_QWORD **)(a1 + 8);
while ( 1 )
{
if ( v1 == v2 )
return;
if ( (*(_BYTE *)(v1 - 24) & 1) != 0 )
{
operator delete(*(void **)(v1 - 8));
if ( (*(_BYTE *)(v1 - 64) & 1) != 0 )
{
LABEL_10:
operator delete(*(void **)(v1 - 48));
if ( (*(_BYTE *)(v1 - 88) & 1) == 0 )
goto LABEL_3;
goto LABEL_11;
}
}
else if ( (*(_BYTE *)(v1 - 64) & 1) != 0 )
{
goto LABEL_10;
}
if ( (*(_BYTE *)(v1 - 88) & 1) == 0 )
goto LABEL_3;
LABEL_11:
operator delete(*(void **)(v1 - 72));
LABEL_3:
v1 -= 96;
}
}
}