//
// GameLevelManager::getLocalLevelByName from 0x4af9d8 to 0x4afa44 (108 bytes)
//
// 1 xrefs:
// > MapSelectLayer::init @ 0x640e1a
//
// 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:50:01 +0000
//
int __fastcall GameLevelManager::getLocalLevelByName(LocalLevelManager *a1, unsigned __int8 *a2, int a3, int a4)
{
unsigned int v5; // r5
cocos2d::CCArray *v6; // r8
int v7; // r4
_BOOL4 v8; // r10
int v10[4]; // [sp+0h] [bp+0h] BYREF
v10[0] = (int)a1;
v10[1] = (int)a2;
v10[2] = a3;
v10[3] = a4;
v5 = 0;
v6 = *(cocos2d::CCArray **)(LocalLevelManager::sharedState(a1) + 284);
while ( 1 )
{
if ( v5 >= cocos2d::CCArray::count(v6) )
return 0;
v7 = cocos2d::CCArray::objectAtIndex(v6, v5);
std::string::basic_string(v10, v7 + 280);
v8 = sub_4A9CC4((unsigned __int8 *)v10, a2);
std::string::~string((int)v10);
if ( v8 )
break;
++v5;
}
return v7;
}