//
// GameStatsManager::hasCompletedChallenge from 0x100333f14 to 0x100333f68 (84 bytes)
//
// 3 xrefs:
// > GameLevelManager::onGetGJChallengesCompleted @ 0x10008fd1c
// > GameStatsManager::completedChallenge @ 0x100333fb0
// > GameStatsManager::dataLoaded @ 0x10033f86c
//
// 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
//
bool __fastcall GameStatsManager::hasCompletedChallenge(GameStatsManager *a1, GJChallengeItem *a2)
{
cocos2d::CCDictionary *m_challengeDiamonds; // x19
__int64 v3; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v6; // [xsp+1Fh] [xbp-11h]
m_challengeDiamonds = a1->m_challengeDiamonds;
GameStatsManager::getChallengeKey((__int64)a2, __p);
v3 = cocos2d::CCDictionary::objectForKey_1(m_challengeDiamonds, __p);
if ( v6 < 0 )
operator delete(__p[0]);
return v3 != 0;
}