//
// sub_100572828 from 0x100572828 to 0x1005728a0 (120 bytes)
//
// 0 xrefs:
//
// 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:08:19 +0000
//
__int64 __fastcall sub_100572828(__int64 a1)
{
__int64 v2; // x19
int v3; // w22
__int64 v4; // x0
__int64 v5; // x21
v2 = *(_QWORD *)(a1 + 32);
sub_1005DBDD8(v2);
if ( *(int *)(a1 + 56) < 1 )
{
LABEL_5:
v5 = 0;
*(_DWORD *)(a1 + 56) = 0;
}
else
{
v3 = 0;
while ( 1 )
{
v4 = sub_1005DBF3C(*(_QWORD *)(a1 + 40));
if ( (_DWORD)v4 )
break;
if ( ++v3 >= *(_DWORD *)(a1 + 56) )
goto LABEL_5;
}
v5 = v4;
}
sub_1005DBE08(v2);
return v5;
}