//
// sub_100611A40 from 0x100611a40 to 0x100611ae0 (160 bytes)
//
// 1 xrefs:
// > sub_1006119C8 @ 0x1006119fc
//
// 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_100611A40(__int64 a1)
{
unsigned int *v2; // x20
int v3; // w0
int v4; // w21
void **v5; // x22
int v6; // w8
if ( !*(_QWORD *)(a1 + 8) )
{
v2 = *(unsigned int **)(a1 + 16);
v3 = sub_1005DEA4C(v2);
v4 = v3 - 1;
if ( v3 >= 1 )
{
do
{
v5 = (void **)sub_1005DEA60((__int64)v2, v4);
sub_100588C44(v5[2]);
sub_100588C44(v5[1]);
sub_100588C44(v5);
v6 = v4-- + 1;
}
while ( v6 > 1 );
}
if ( v2 )
sub_1005DE314(v2);
sub_100588C44(*(void **)a1);
sub_100588C44((void *)a1);
}
}