//
// GameLevelManager::getLowestLevelOrder from 0x7ff8ac to 0x7ff8f0 (68 bytes)
//
// 3 xrefs:
// > LevelInfoLayer::downloadLevel @ 0x7e5d44
// > LevelInfoLayer::FLAlert_Clicked @ 0x7e8524
// > ??> @ 0x742f0
//
// 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 12:54:43 +0000
//
__int64 __fastcall GameLevelManager::getLowestLevelOrder(GameLevelManager *this)
{
__int64 v1; // x0
__int64 v2; // x3
__int64 v3; // x1
__int64 result; // x0
__int64 v5; // x2
int v6; // w2
v1 = *((_QWORD *)this + 95);
if ( !v1 )
return 0;
v2 = *(_QWORD *)(v1 + 56);
if ( !v2 )
return 0;
v3 = *(_QWORD *)(v2 + 288);
LODWORD(result) = 0;
while ( 1 )
{
v5 = *(_QWORD *)(v2 + 264);
v2 = v3;
v6 = *(_DWORD *)(v5 + 632);
result = (int)result > v6 ? (unsigned int)v6 : (unsigned int)result;
if ( !v3 )
break;
v3 = *(_QWORD *)(v3 + 288);
}
return result;
}