//
// sub_1001150DC from 0x1001150dc to 0x100115174 (152 bytes)
//
// 2 xrefs:
// > sub_1001136B0 @ 0x100113b30
// > sub_1001136B0 @ 0x100113b48
//
// 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
//
__int64 __fastcall sub_1001150DC(_QWORD *a1)
{
void **v2; // x20
void **v3; // x21
unsigned __int64 v4; // x8
__int64 v5; // x8
void *v6; // t1
v2 = (void **)a1[1];
v3 = (void **)a1[2];
a1[5] = 0;
v4 = v3 - v2;
if ( v4 >= 3 )
{
do
{
operator delete(*v2);
v3 = (void **)a1[2];
v2 = (void **)(a1[1] + 8LL);
a1[1] = v2;
v4 = v3 - v2;
}
while ( v4 > 2 );
}
if ( v4 == 1 )
{
v5 = 256;
}
else
{
if ( v4 != 2 )
goto LABEL_9;
v5 = 512;
}
a1[4] = v5;
LABEL_9:
while ( v2 != v3 )
{
v6 = *v2++;
operator delete(v6);
}
return sub_100115174(a1);
}