//
// GameLevelManager::getLocalLevelList from 0x7ff4f4 to 0x7ff558 (100 bytes)
//
// 3 xrefs:
// > GameLevelManager::onUploadLevelListCompleted @ 0x84590c
// > GameLevelManager::onUploadLevelListCompleted @ 0x84595c
// > ??> @ 0x54f88
//
// This function is hookable on this platform (idp: arm, 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 12:54:43 +0000
//
__int64 __fastcall GameLevelManager::getLocalLevelList(GameLevelManager *this, int a2)
{
unsigned int v2; // w19
cocos2d::CCArray *v4; // x20
__int64 result; // x0
bool v6; // cf
unsigned int v7; // w1
v2 = 0;
v4 = *(cocos2d::CCArray **)(LocalLevelManager::sharedState(this) + 368);
while ( 1 )
{
v6 = v2 >= (unsigned int)cocos2d::CCArray::count(v4);
v7 = v2++;
if ( v6 )
break;
result = cocos2d::CCArray::objectAtIndex(v4, v7);
if ( *(_DWORD *)(result + 548) == a2 )
return result;
}
return 0;
}