//
// GameLevelManager::getLocalLevelList from 0x100092ce4 to 0x100092d50 (108 bytes)
//
// 2 xrefs:
// > GameLevelManager::onUploadLevelListCompleted @ 0x1000916fc
// > GameLevelManager::onUploadLevelListCompleted @ 0x100091740
//
// 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
//
GJLevelList *__fastcall GameLevelManager::getLocalLevelList(GameLevelManager *a1, int a2)
{
cocos2d::CCArray *m_localLists; // x20
__int64 v4; // x21
GJLevelList *result; // x0
m_localLists = LocalLevelManager::sharedState()->m_localLists;
if ( !(unsigned int)sub_10024A36C(m_localLists) )
return nullptr;
v4 = 0;
while ( 1 )
{
result = (GJLevelList *)sub_10024A388(m_localLists, v4);
if ( result->m_M_ID == a2 )
break;
v4 = (unsigned int)(v4 + 1);
if ( (unsigned int)v4 >= (unsigned int)sub_10024A36C(m_localLists) )
return nullptr;
}
return result;
}