//
// GameLevelManager::getHighestLevelOrder from 0x100534e20 to 0x100534e60 (64 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::downloadLevel @ 0x1002c005d
// > LevelInfoLayer::FLAlert_Clicked @ 0x1002c4cff
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall GameLevelManager::getHighestLevelOrder(GameLevelManager *a1)
{
cocos2d::CCDictionary *m_onlineLevels; // rcx
int result; // eax
cocos2d::CCDictElement *m_pElements; // rcx
cocos2d::CCObject *m_pObject; // rdx
int m_uID; // edx
m_onlineLevels = a1->m_onlineLevels;
result = 0;
if ( m_onlineLevels )
{
m_pElements = m_onlineLevels->m_pElements;
if ( m_pElements )
{
result = 0;
do
{
m_pObject = m_pElements->m_pObject;
m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next;
m_uID = m_pObject[11].m_uID;
if ( m_uID > result )
result = m_uID;
}
while ( m_pElements );
}
}
return result;
}