//
// sub_100048D24 from 0x100048d24 to 0x100048dc0 (156 bytes)
//
// 4 xrefs:
// > FLAlertLayer::show @ 0x10034bca0
// > FLAlertLayer::show @ 0x10034bcb0
// > FLAlertLayer::show @ 0x10034bccc
// > FLAlertLayer::show @ 0x10034bcdc
//
// 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 10:57:40 +0000
//
__int64 __fastcall sub_100048D24(__int64 a1)
{
__int64 v1; // x0
unsigned int *v2; // x9
__int64 v3; // x8
__int64 v4; // x19
_QWORD *v5; // x21
unsigned __int64 v6; // x22
__int64 v7; // x20
if ( !a1 )
return 0;
v1 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1);
if ( !v1 )
return 0;
v2 = *(unsigned int **)(v1 + 56);
v3 = *v2;
if ( !(_DWORD)v3 )
return 0;
v4 = 0;
v5 = *((_QWORD **)v2 + 2);
v6 = (unsigned __int64)&v5[v3 - 1];
do
{
v7 = *v5;
if ( !*v5 )
break;
if ( (int)v4 < (*(int (__fastcall **)(_QWORD))(*(_QWORD *)v7 + 104LL))(*v5) )
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 104LL))(v7);
++v5;
}
while ( (unsigned __int64)v5 <= v6 );
return v4;
}