//
// GameStatsManager::hasCompletedMainLevel from 0x524024 to 0x52407c (88 bytes)
//
// 7 xrefs:
// > GameLevelManager::getStarLevelsString @ 0x4d5ed4
// > GameLevelManager::getStarLevelsString @ 0x4d5f32
// > GJWorldNode::init @ 0x62d89e
// > GJWorldNode::init @ 0x62db30
// > WorldSelectLayer::init @ 0x62e5f8
// > LevelAreaInnerLayer::init @ 0x6a5512
// > LevelAreaInnerLayer::init @ 0x6a5528
//
// 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:51:53 +0000
//
int __fastcall GameStatsManager::hasCompletedMainLevel(GameStatsManager *this, bool a2)
{
int v2; // r7
int v3; // r6
int result; // r0
_BYTE v5[12]; // [sp+10h] [bp-14h] BYREF
v2 = *((_DWORD *)this + 103);
GameStatsManager::getLevelKey((GameStatsManager *)v5, (int)this, a2, 0, 0, 0, 0);
v3 = cocos2d::CCDictionary::objectForKey(v2, v5);
std::string::~string((int)v5);
result = v3;
if ( v3 )
return 1;
return result;
}