//
// GameLevelManager::getHighestLevelOrder from 0x1005469b0 to 0x1005469f0 (64 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::downloadLevel @ 0x1002acfbd
// > LevelInfoLayer::FLAlert_Clicked @ 0x1002b1b38
//
// This function is hookable on this platform (idp: pc, 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:31:59 +0000
//
__int64 __fastcall GameLevelManager::getHighestLevelOrder(__int64 a1)
{
__int64 v1; // rcx
__int64 result; // rax
__int64 v3; // rcx
__int64 v4; // rdx
int v5; // edx
v1 = *(_QWORD *)(a1 + 760);
result = 0;
if ( v1 )
{
v3 = *(_QWORD *)(v1 + 56);
if ( v3 )
{
result = 0;
do
{
v4 = *(_QWORD *)(v3 + 264);
v3 = *(_QWORD *)(v3 + 288);
v5 = *(_DWORD *)(v4 + 632);
if ( v5 > (int)result )
result = (unsigned int)v5;
}
while ( v3 );
}
}
return result;
}