//
// LocalLevelManager::getLevelsInNameGroups from 0x432bcc to 0x432c66 (154 bytes)
//
// 1 xrefs:
// > LocalLevelManager::dataLoaded @ 0x4330c2
//
// 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
//
cocos2d::CCDictionary *LocalLevelManager::getLevelsInNameGroups(LocalLevelManager *a1)
{
unsigned int v2; // r7
cocos2d::CCDictionary *v3; // r8
cocos2d::CCObject *v4; // r10
cocos2d::CCArray *v5; // r5
cocos2d::CCArray *v6; // r0
std::string v8; // [sp+0h] [bp-Ch] BYREF
v8.m_data.m_data = (stl::StringData::Internal *)a1;
v2 = 0;
v3 = cocos2d::CCDictionary::create();
while ( v2 < cocos2d::CCArray::count(a1->m_localLevels) )
{
v4 = (cocos2d::CCObject *)cocos2d::CCArray::objectAtIndex(a1->m_localLevels, v2);
sub_775C20(&v8);
v5 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(v3, &v8);
v6 = (cocos2d::CCArray *)sub_774008(&v8);
if ( !v5 )
{
v5 = (cocos2d::CCArray *)cocos2d::CCArray::create(v6);
sub_775C20(&v8);
cocos2d::CCDictionary::setObject((int)v3, v5);
sub_774008(&v8);
}
cocos2d::CCArray::addObject(v5, v4);
++v2;
}
return v3;
}