//
// sub_100168C40 from 0x100168c40 to 0x100168cc4 (132 bytes)
//
// 1 xrefs:
// > ??> @ 0x100168a85
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall sub_100168C40(__int64 a1)
{
__int64 v2; // r14
__int64 i; // rax
void **v4; // r15
_QWORD *v5; // rdi
_QWORD *v6; // r12
void *v7; // rdi
v2 = *(_QWORD *)(a1 + 8);
for ( i = *(_QWORD *)(a1 + 16); i != v2; i = *(_QWORD *)(a1 + 16) )
{
v4 = (void **)(i - 40);
*(_QWORD *)(a1 + 16) = i - 40;
v5 = *(_QWORD **)(i - 24);
if ( v5 )
{
do
{
v6 = (_QWORD *)*v5;
operator delete(v5);
v5 = v6;
}
while ( v6 );
}
v7 = *v4;
*v4 = nullptr;
if ( v7 )
operator delete(v7);
}
if ( *(_QWORD *)a1 )
operator delete(*(void **)a1);
}