//
// GameStatsManager::hasCompletedMainLevel from 0x10006d720 to 0x10006d77b (91 bytes)
//
// 14 xrefs:
// > LevelAreaInnerLayer::init @ 0x10027a02e
// > LevelAreaInnerLayer::init @ 0x10027a04c
// > WorldSelectLayer::init @ 0x1003c2516
// > GJWorldNode::init @ 0x1003c3fe6
// > GJWorldNode::init @ 0x1003c400f
// > GJWorldNode::init @ 0x1003c4030
// > GJWorldNode::init @ 0x1003c4051
// > GJWorldNode::init @ 0x1003c4075
// > GJWorldNode::init @ 0x1003c4097
// > GameLevelManager::getStarLevelsString @ 0x10053582b
// > GameLevelManager::getStarLevelsString @ 0x10053592e
// > GameLevelManager::getStarLevelsString @ 0x100535aaf
// > GameLevelManager::getStarLevelsString @ 0x100535c30
// > GameLevelManager::getStarLevelsString @ 0x100535db1
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
bool __fastcall GameStatsManager::hasCompletedMainLevel(GameStatsManager *a1, int a2)
{
double v2; // xmm0_8
cocos2d::CCDictionary *m_completedLevels; // rbx
__int64 v4; // rbx
size_t v6[5]; // [rsp+8h] [rbp-28h] BYREF
m_completedLevels = a1->m_completedLevels;
GameStatsManager::getLevelKey(v6, v2, *(__int64 *)&a2, a2, 0, 0, 0, 0);
v4 = cocos2d::CCDictionary::objectForKey_1(m_completedLevels, v6);
if ( (v6[0] & 1) != 0 )
operator delete((void *)v6[2]);
return v4 != 0;
}