//
// GameLevelManager::getSavedLevelLists from 0x4aa690 to 0x4aa6fc (108 bytes)
//
// 3 xrefs:
// > LevelBrowserLayer::loadPage @ 0x4a6588
// > LevelBrowserLayer::FLAlert_Clicked @ 0x4a8f4e
// > LevelPickerPopup::savedIndex @ 0x74fb16
//
// 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:49:57 +0000
//
size_t **__fastcall GameLevelManager::getSavedLevelLists(GameLevelManager *this, int a2)
{
size_t **v4; // r0
int v5; // r3
size_t **v6; // r5
int v7; // r3
int v8; // r4
cocos2d::CCObject *v9; // r1
int v10; // r2
v4 = (size_t **)cocos2d::CCArray::create(this);
v5 = *((_DWORD *)this + 139);
v6 = v4;
if ( v5 )
{
v7 = *(_DWORD *)(v5 + 52);
if ( v7 )
v8 = *(_DWORD *)(v7 + 272);
else
v8 = 0;
while ( v7 )
{
v9 = *(cocos2d::CCObject **)(v7 + 260);
if ( a2 <= 0 || *((_DWORD *)v9 + 75) == a2 )
cocos2d::CCArray::addObject((cocos2d::CCArray *)v6, v9);
if ( v8 )
v10 = *(_DWORD *)(v8 + 272);
else
v10 = 0;
v7 = v8;
v8 = v10;
}
}
if ( cocos2d::CCArray::count((cocos2d::CCArray *)v6) )
qsort((void *)v6[13][3], *v6[13], 4u, savedListCompare);
return v6;
}