//
// GameStatsManager::hasCompletedMainLevel from 0x100032ec0 to 0x100032f1b (91 bytes)
//
// 14 xrefs:
// > LevelAreaInnerLayer::init @ 0x10026662e
// > LevelAreaInnerLayer::init @ 0x10026664c
// > WorldSelectLayer::init @ 0x1003ab916
// > GJWorldNode::init @ 0x1003ad3e6
// > GJWorldNode::init @ 0x1003ad40f
// > GJWorldNode::init @ 0x1003ad430
// > GJWorldNode::init @ 0x1003ad451
// > GJWorldNode::init @ 0x1003ad475
// > GJWorldNode::init @ 0x1003ad497
// > GameLevelManager::getStarLevelsString @ 0x1005473bb
// > GameLevelManager::getStarLevelsString @ 0x1005474be
// > GameLevelManager::getStarLevelsString @ 0x10054763f
// > GameLevelManager::getStarLevelsString @ 0x1005477c0
// > GameLevelManager::getStarLevelsString @ 0x100547941
//
// 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 12:19:31 +0000
//
bool __fastcall GameStatsManager::hasCompletedMainLevel(__int64 a1, __int64 a2)
{
__int64 v2; // rbx
__int64 v3; // rbx
size_t v5[5]; // [rsp+8h] [rbp-28h] BYREF
v2 = *(_QWORD *)(a1 + 608);
GameStatsManager::getLevelKey(v5, a2, a2, 0, 0, 0, 0);
v3 = cocos2d::CCDictionary::objectForKey(v2, v5);
if ( (v5[0] & 1) != 0 )
operator delete((void *)v5[2]);
return v3 != 0;
}