//
// LocalLevelManager::getCreatedLevels from 0x1001c9088 to 0x1001c9114 (140 bytes)
//
// 1 xrefs:
// > LevelBrowserLayer::loadPage @ 0x100417054
//
// 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 *__fastcall LocalLevelManager::getCreatedLevels(LocalLevelManager *a1, int a2)
{
cocos2d::CCArray *v4; // x19
cocos2d::CCArray *m_localLevels; // x8
cocos2d::ccArray *data; // x9
__int64 num; // x8
cocos2d::CCObject **arr; // x21
unsigned __int64 v9; // x22
cocos2d::CCObject *v10; // x1
if ( a2 <= 0 )
return a1->m_localLevels;
v4 = (cocos2d::CCArray *)sub_10024A15C(a1);
m_localLevels = a1->m_localLevels;
if ( m_localLevels )
{
data = m_localLevels->data;
num = data->num;
if ( (_DWORD)num )
{
arr = data->arr;
v9 = (unsigned __int64)&arr[num - 1];
do
{
v10 = *arr;
if ( !*arr )
break;
if ( v10[14].m_nTag == a2 )
sub_10024A2D0(v4, v10);
++arr;
}
while ( (unsigned __int64)arr <= v9 );
}
}
return v4;
}