//
// GameLevelManager::getLocalLevelList from 0x3bf1fc to 0x3bf22c (48 bytes)
//
// 2 xrefs:
// > GameLevelManager::onUploadLevelListCompleted @ 0x3ce79e
// > GameLevelManager::onUploadLevelListCompleted @ 0x3ce7b4
//
// 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 *GameLevelManager::getLocalLevelList(GameLevelManager *a1, int a2)
{
unsigned int v3; // r4
cocos2d::CCArray *m_localLists; // r5
GJLevelList *result; // r0
v3 = 0;
m_localLists = LocalLevelManager::sharedState()->m_localLists;
while ( v3 < cocos2d::CCArray::count(m_localLists) )
{
result = (GJLevelList *)cocos2d::CCArray::objectAtIndex(m_localLists, v3);
if ( result->m_M_ID == a2 )
return result;
++v3;
}
return nullptr;
}