//
// LocalLevelManager::getAllLevelsWithName from 0x542a40 to 0x542ab6 (118 bytes)
//
// 1 xrefs:
// > EditLevelLayer::verifyLevelName @ 0x4a0244
//
// 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:52:20 +0000
//
cocos2d::CCArray *__fastcall LocalLevelManager::getAllLevelsWithName(cocos2d::CCArray **a1, unsigned __int8 *a2)
{
unsigned int v4; // r5
cocos2d::CCArray *v5; // r7
cocos2d::CCObject *v6; // r9
_BOOL4 v7; // r11
int v9[3]; // [sp+0h] [bp-14h] BYREF
v4 = 0;
v5 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1);
while ( v4 < cocos2d::CCArray::count(a1[71]) )
{
v6 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a1[71], v4);
std::string::basic_string(v9, (int)v6 + 280);
v7 = sub_542480((unsigned __int8 *)v9, a2);
std::string::~string((int)v9);
if ( v7 )
cocos2d::CCArray::addObject(v5, v6);
++v4;
}
return v5;
}