//
// GameStatsManager::hasCompletedOnlineLevel from 0x10006d850 to 0x10006d8ae (94 bytes)
//
// 2 xrefs:
// > GJMapPack::completedMaps @ 0x10055fdb0
// > GJLevelList::completedLevels @ 0x10056300b
//
// 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::hasCompletedOnlineLevel(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, 1, 0, 0, 0);
v4 = cocos2d::CCDictionary::objectForKey_1(m_completedLevels, v6);
if ( (v6[0] & 1) != 0 )
operator delete((void *)v6[2]);
return v4 != 0;
}