//
// GameLevelManager::getLocalLevelList from 0x14021cac0 to 0x14021cb24 (100 bytes)
//
// 3 xrefs:
// > GameLevelManager::handleIt @ 0x14021a700
// > GameLevelManager::handleIt @ 0x14021a715
// > ??> @ 0x14091ba70
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:28:23 +0000
//
struct cocos2d::CCObject *__fastcall GameLevelManager::getLocalLevelList(__int64 a1, int a2)
{
unsigned int v3; // ebx
cocos2d::CCArray *v4; // rdi
struct cocos2d::CCObject *result; // rax
v3 = 0;
v4 = *(cocos2d::CCArray **)(LocalLevelManager::sharedState(a1) + 376);
if ( !cocos2d::CCArray::count(v4) )
return nullptr;
while ( 1 )
{
result = cocos2d::CCArray::objectAtIndex(v4, v3);
if ( *((_DWORD *)result + 147) == a2 )
break;
if ( ++v3 >= cocos2d::CCArray::count(v4) )
return nullptr;
}
return result;
}