//
// sub_100663158 from 0x100663158 to 0x1006631dc (132 bytes)
//
// 2 xrefs:
// > sub_10065DE8C @ 0x10065e79c
// > sub_10065FF40 @ 0x10065ff98
//
// 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:10:59 +0000
//
__int64 __fastcall sub_100663158(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x20
__int64 v4; // x21
void *v5; // x0
void *v6; // x0
while ( 1 )
{
result = sub_10073EE3C(*(_QWORD *)(*(_QWORD *)(a1 + 136) + 616LL));
v3 = result;
if ( !result )
break;
v4 = *(_QWORD *)(result + 8);
if ( *(_DWORD *)(v4 + 40) )
{
sub_10070A398(*(void **)(v4 + 48));
sub_100709690(*(_QWORD *)(v4 + 56));
}
v5 = *(void **)(v4 + 88);
if ( v5 )
sub_1006AEDAC(v5);
v6 = *(void **)(v4 + 96);
if ( v6 )
sub_1006AEDAC(v6);
sub_1006AEDAC((void *)v4);
sub_10073ED50(v3);
}
return result;
}