//
// sub_1000AB988 from 0x1000ab988 to 0x1000ab9c4 (60 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::downloadLevel @ 0x10002a720
// > LevelInfoLayer::FLAlert_Clicked @ 0x10002e6ec
//
// 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:58:36 +0000
//
__int64 __fastcall sub_1000AB988(__int64 a1)
{
__int64 v1; // x8
__int64 v2; // x8
__int64 result; // x0
__int64 v4; // x9
int v5; // w8
v1 = *(_QWORD *)(a1 + 760);
if ( !v1 )
return 0;
v2 = *(_QWORD *)(v1 + 56);
if ( !v2 )
return 0;
LODWORD(result) = 0;
do
{
v4 = *(_QWORD *)(v2 + 288);
v5 = *(_DWORD *)(*(_QWORD *)(v2 + 264) + 632LL);
if ( v5 >= (int)result )
result = (unsigned int)result;
else
result = (unsigned int)v5;
v2 = v4;
}
while ( v4 );
return result;
}