//
// GameStatsManager::hasCompletedChallenge from 0x8cc470 to 0x8cc50c (156 bytes)
//
// 4 xrefs:
// > GameLevelManager::onGetGJChallengesCompleted @ 0x83b2c4
// > GameStatsManager::dataLoaded @ 0x8e93c4
// > GameStatsManager::completedChallenge @ 0x8ea86c
// > ??> @ 0xedd00
//
// 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:36 +0000
//
bool __fastcall GameStatsManager::hasCompletedChallenge(GameStatsManager *this, GJChallengeItem *a2)
{
__int64 v2; // x21
_BOOL4 v3; // w20
__int64 v5[3]; // [xsp+30h] [xbp+30h] BYREF
v2 = *((_QWORD *)this + 89);
GameStatsManager::getChallengeKey(a2, v5);
v3 = cocos2d::CCDictionary::objectForKey(v2, v5) != 0;
if ( (v5[0] & 1) != 0 )
operator delete((void *)v5[2]);
return v3;
}