//
// sub_1006C1E60 from 0x1006c1e60 to 0x1006c1eb6 (86 bytes)
//
// 1 xrefs:
// > ??> @ 0x1006c1e44
//
// 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:32 +0000
//
void __fastcall sub_1006C1E60(__int64 *a1)
{
__int64 v2; // rax
__int64 *v3; // rdi
_QWORD *v4; // rax
__int64 v5; // rcx
__int64 *v6; // r14
if ( a1[2] )
{
v2 = *a1;
v3 = (__int64 *)a1[1];
v4 = *(_QWORD **)(v2 + 8);
v5 = *v3;
*(_QWORD *)(v5 + 8) = v4;
*v4 = v5;
a1[2] = 0;
if ( v3 != a1 )
{
do
{
v6 = (__int64 *)v3[1];
operator delete(v3);
v3 = v6;
}
while ( v6 != a1 );
}
}
}