//
// GameStatsManager::hasCompletedMainLevel from 0x8df234 to 0x8df2e0 (172 bytes)
//
// 8 xrefs:
// > GameLevelManager::getStarLevelsString @ 0x85190c
// > GameLevelManager::getStarLevelsString @ 0x851944
// > GJWorldNode::init @ 0xaa72d8
// > GJWorldNode::init @ 0xaa7300
// > WorldSelectLayer::init @ 0xaa8524
// > LevelAreaInnerLayer::init @ 0xb5ca88
// > LevelAreaInnerLayer::init @ 0xb5ca9c
// > ??> @ 0xb59a8
//
// 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:56:49 +0000
//
bool __fastcall GameStatsManager::hasCompletedMainLevel(GameStatsManager *this, unsigned int a2)
{
__int64 v2; // x21
_BOOL4 v3; // w20
unsigned __int64 v5[3]; // [xsp+30h] [xbp+30h] BYREF
v2 = *((_QWORD *)this + 76);
GameStatsManager::getLevelKey(a2, 0, 0, 0, 0, v5);
v3 = cocos2d::CCDictionary::objectForKey(v2, v5) != 0;
if ( (v5[0] & 1) != 0 )
operator delete((void *)v5[2]);
return v3;
}