//
// GameLevelManager::getLocalLevel from 0x4aa5f4 to 0x4aa624 (48 bytes)
//
// 2 xrefs:
// > GameLevelManager::onUploadLevelCompleted @ 0x4c1684
// > GameLevelManager::onUploadLevelCompleted @ 0x4c16a4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:49:57 +0000
//
int __fastcall GameLevelManager::getLocalLevel(GameLevelManager *this, int a2)
{
unsigned int v3; // r4
cocos2d::CCArray *v4; // r5
int result; // r0
v3 = 0;
v4 = *(cocos2d::CCArray **)(LocalLevelManager::sharedState(this) + 284);
while ( v3 < cocos2d::CCArray::count(v4) )
{
result = cocos2d::CCArray::objectAtIndex(v4, v3);
if ( *(_DWORD *)(result + 956) == a2 )
return result;
++v3;
}
return 0;
}