//
// sub_1001090C0 from 0x1001090c0 to 0x100109168 (168 bytes)
//
// 1 xrefs:
// > ??> @ 0x100109ce4
//
// 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_1001090C0(__int64 a1)
{
void **v2; // r15
void *v3; // rdi
void **v4; // r12
char *v5; // r13
char *v6; // r14
void *v7; // rdi
void **v8; // [rsp+0h] [rbp-30h]
v2 = *(void ***)(a1 + 16);
v8 = *(void ***)(a1 + 8);
if ( v2 != v8 )
{
do
{
v4 = v2 - 3;
*(_QWORD *)(a1 + 16) = v2 - 3;
v5 = (char *)*(v2 - 3);
if ( v5 )
{
v6 = (char *)*(v2 - 2);
v3 = *(v2 - 3);
if ( v6 != v5 )
{
do
{
v7 = *((void **)v6 - 7);
if ( v7 )
{
*((_QWORD *)v6 - 6) = v7;
operator delete(v7);
}
v6 -= 64;
}
while ( v6 != v5 );
v3 = *v4;
}
*(v2 - 2) = v5;
operator delete(v3);
v4 = *(void ***)(a1 + 16);
}
v2 = v4;
}
while ( v4 != v8 );
}
if ( *(_QWORD *)a1 )
operator delete(*(void **)a1);
}