//
// sub_100544E88 from 0x100544e88 to 0x100544ef0 (104 bytes)
//
// 2 xrefs:
// > sub_100542A8C @ 0x100543d90
// > sub_100543DE0 @ 0x100544060
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:07:45 +0000
//
void ***__fastcall sub_100544E88(void ***a1)
{
void **v2; // x20
void **v3; // x21
void **v4; // x0
int v5; // w8
v2 = *a1;
if ( *a1 )
{
v3 = a1[1];
v4 = *a1;
if ( v3 != v2 )
{
do
{
v5 = *((char *)v3 - 9);
v3 -= 4;
if ( v5 < 0 )
operator delete(*v3);
}
while ( v3 != v2 );
v4 = *a1;
}
a1[1] = v2;
operator delete(v4);
}
return a1;
}