//
// GameStatsManager::hasCompletedChallenge from 0x516c4c to 0x516c9a (78 bytes)
//
// 3 xrefs:
// > GameLevelManager::onGetGJChallengesCompleted @ 0x4ca0d6
// > GameStatsManager::dataLoaded @ 0x529e0e
// > GameStatsManager::completedChallenge @ 0x52a7a6
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:51:43 +0000
//
int __fastcall GameStatsManager::hasCompletedChallenge(GameStatsManager *this, GJChallengeItem *a2, int a3, int a4)
{
int v4; // r6
int v5; // r6
int result; // r0
_DWORD v7[4]; // [sp+0h] [bp-10h] BYREF
v7[0] = this;
v7[1] = a2;
v7[2] = a3;
v7[3] = a4;
v4 = *((_DWORD *)this + 116);
GameStatsManager::getChallengeKey((GameStatsManager *)v7, this, (int)a2);
v5 = cocos2d::CCDictionary::objectForKey(v4, v7);
std::string::~string((int)v7);
result = v5;
if ( v5 )
return 1;
return result;
}