//
// sub_10053CFF0 from 0x10053cff0 to 0x10053d074 (132 bytes)
//
// 2 xrefs:
// > sub_100537D24 @ 0x100538634
// > sub_100539DD8 @ 0x100539e30
//
// 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_10053CFF0(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x20
__int64 v4; // x21
void *v5; // x0
void *v6; // x0
while ( 1 )
{
result = sub_100618CD4(*(_QWORD *)(*(_QWORD *)(a1 + 136) + 616LL));
v3 = result;
if ( !result )
break;
v4 = *(_QWORD *)(result + 8);
if ( *(_DWORD *)(v4 + 40) )
{
sub_1005E4230(*(void **)(v4 + 48));
sub_1005E3528(*(_QWORD *)(v4 + 56));
}
v5 = *(void **)(v4 + 88);
if ( v5 )
sub_100588C44(v5);
v6 = *(void **)(v4 + 96);
if ( v6 )
sub_100588C44(v6);
sub_100588C44((void *)v4);
sub_100618BE8(v3);
}
return result;
}