//
// GameStatsManager::storeQueuedChallenge from 0x40d57c to 0x40d5d4 (88 bytes)
//
// 2 xrefs:
// > GameLevelManager::onGetGJChallengesCompleted @ 0x3c40bc
// > GameStatsManager::processChallengeQueue @ 0x40d8de
//
// 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
//
void GameStatsManager::storeQueuedChallenge(GameStatsManager *a1, int a2, GJChallengeItem *a3)
{
cocos2d::CCDictionary *m_upcomingChallenges; // r7
cocos2d::CCString *v5; // r0
char *CString; // r0
_BYTE v7[4]; // [sp+8h] [bp-Ch] BYREF
m_upcomingChallenges = a1->m_upcomingChallenges;
a3->m_position = a2;
v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)a2);
CString = (char *)cocos2d::CCString::getCString(v5);
sub_776584((int)v7, CString);
cocos2d::CCDictionary::setObject((int)m_upcomingChallenges, a3);
sub_774008(v7);
}