//
// GameLevelManager::getLowestLevelOrder from 0x6f1d88 to 0x6f1dcc (68 bytes)
//
// 3 xrefs:
// > LevelInfoLayer::downloadLevel @ 0x6d78e0
// > LevelInfoLayer::FLAlert_Clicked @ 0x6d96a0
// > ??> @ 0x53c88
//
// 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 GameLevelManager::getLowestLevelOrder(GameLevelManager *a1)
{
cocos2d::CCDictionary *m_onlineLevels; // x0
cocos2d::CCDictElement *m_pElements; // x3
cocos2d::CCDictElement *next; // x1
int result; // w0
cocos2d::CCObject *m_pObject; // x2
int m_uIndexInArray; // w2
m_onlineLevels = a1->m_onlineLevels;
if ( !m_onlineLevels )
return 0;
m_pElements = m_onlineLevels->m_pElements;
if ( !m_pElements )
return 0;
next = (cocos2d::CCDictElement *)m_pElements->hh.next;
result = 0;
while ( 1 )
{
m_pObject = m_pElements->m_pObject;
m_pElements = next;
m_uIndexInArray = m_pObject[8].m_uIndexInArray;
if ( result > m_uIndexInArray )
result = m_uIndexInArray;
if ( !next )
break;
next = (cocos2d::CCDictElement *)next->hh.next;
}
return result;
}