//
// GameStatsManager::getChallenge from 0x100333ccc to 0x100333d34 (104 bytes)
//
// 5 xrefs:
// > ChallengesPage::createChallengeNode @ 0x10003259c
// > ChallengesPage::createChallengeNode @ 0x1000325bc
// > GameLevelManager::onGetGJChallengesCompleted @ 0x10008fc6c
// > CreatorLayer::checkQuestsStatus @ 0x1000b644c
// > GameStatsManager::incrementChallenge @ 0x10032f9dc
//
// 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 *__fastcall GameStatsManager::getChallenge(GameStatsManager *a1, int a2)
{
cocos2d::CCDictionary *m_activeChallenges; // x19
cocos2d::CCString *v3; // x0
char *CString; // x0
GJChallengeItem *v5; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v8; // [xsp+1Fh] [xbp-11h]
m_activeChallenges = a1->m_activeChallenges;
v3 = (cocos2d::CCString *)sub_100268F4C("%i", a2);
CString = (char *)cocos2d::CCString::getCString(v3);
sub_100009900(__p, CString);
v5 = (GJChallengeItem *)cocos2d::CCDictionary::objectForKey_1(m_activeChallenges, __p);
if ( v8 < 0 )
operator delete(__p[0]);
return v5;
}