//
// LocalLevelManager::getCreatedLevels from 0x432fb4 to 0x432ffe (74 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::loadPage @ 0x3bb9ba
//
// 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::CCArray *LocalLevelManager::getCreatedLevels(LocalLevelManager *a1, int a2)
{
cocos2d::CCArray *v5; // r0
cocos2d::CCArray *m_localLevels; // r3
cocos2d::CCArray *v7; // r4
cocos2d::ccArray *data; // r2
cocos2d::CCObject **arr; // r6
cocos2d::CCObject **v10; // r5
cocos2d::CCObject *v11; // r1
cocos2d::CCObject *v12; // t1
if ( a2 <= 0 )
return a1->m_localLevels;
v5 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1);
m_localLevels = a1->m_localLevels;
v7 = v5;
if ( m_localLevels )
{
data = m_localLevels->data;
if ( data->num )
{
arr = data->arr;
v10 = &arr[data->num] + 0x3FFFFFFF;
while ( arr <= v10 )
{
v12 = *arr++;
v11 = v12;
if ( !v12 )
break;
if ( v11[10].m_unknown2 == a2 )
cocos2d::CCArray::addObject(v7, v11);
}
}
}
return v7;
}