//
// sub_100108F40 from 0x100108f40 to 0x100108faf (111 bytes)
//
// 4 xrefs:
// > ??> @ 0x1000f6606
// > ??> @ 0x1000f67a8
// > ??> @ 0x1000fba40
// > ??> @ 0x100109cdb
//
// 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_100108F40(void ***a1)
{
void **v2; // r14
char *v3; // r15
char *v4; // r12
void *v5; // rdi
void *v6; // rdi
if ( !*((_BYTE *)a1 + 8) )
{
v2 = *a1;
v3 = (char *)**a1;
if ( v3 )
{
v4 = (char *)v2[1];
v5 = **a1;
if ( v4 != v3 )
{
do
{
v6 = *((void **)v4 - 7);
if ( v6 )
{
*((_QWORD *)v4 - 6) = v6;
operator delete(v6);
}
v4 -= 64;
}
while ( v4 != v3 );
v5 = **a1;
}
v2[1] = v3;
operator delete(v5);
}
}
}