//
// GameLevelManager::getLocalLevel from 0x3befd0 to 0x3bf000 (48 bytes)
//
// 2 xrefs:
// > GameLevelManager::onUploadLevelCompleted @ 0x3c5450
// > GameLevelManager::onUploadLevelCompleted @ 0x3c546a
//
// 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
//
GJGameLevel *GameLevelManager::getLocalLevel(GameLevelManager *a1, int a2)
{
unsigned int v3; // r4
cocos2d::CCArray *m_localLevels; // r5
GJGameLevel *result; // r0
v3 = 0;
m_localLevels = LocalLevelManager::sharedState()->m_localLevels;
while ( v3 < cocos2d::CCArray::count(m_localLevels) )
{
result = (GJGameLevel *)cocos2d::CCArray::objectAtIndex(m_localLevels, v3);
if ( result->m_M_ID == a2 )
return result;
++v3;
}
return nullptr;
}