//
// GameStatsManager::getChallenge from 0x40d6f4 to 0x40d748 (84 bytes)
//
// 5 xrefs:
// > CreatorLayer::checkQuestsStatus @ 0x3ab22e
// > GameLevelManager::onGetGJChallengesCompleted @ 0x3c3f58
// > GameStatsManager::incrementChallenge @ 0x412d7a
// > ChallengesPage::createChallengeNode @ 0x4cc770
// > ChallengesPage::createChallengeNode @ 0x4cc788
//
// 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
//
GJChallengeItem *GameStatsManager::getChallenge(GameStatsManager *a1, int a2)
{
cocos2d::CCDictionary *m_activeChallenges; // r6
cocos2d::CCString *v3; // r0
char *CString; // r0
GJChallengeItem *v5; // r6
std::string v7; // [sp+8h] [bp-8h] BYREF
m_activeChallenges = a1->m_activeChallenges;
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2);
CString = (char *)cocos2d::CCString::getCString(v3);
sub_776584((int)&v7, CString);
v5 = (GJChallengeItem *)cocos2d::CCDictionary::objectForKey(m_activeChallenges, &v7);
sub_774008(&v7);
return v5;
}