//
// GameStatsManager::processChallengeQueue from 0x100073a50 to 0x100073ac8 (120 bytes)
//
// 2 xrefs:
// > ChallengesPage::createChallengeNode @ 0x10039de23
// > ChallengesPage::claimItem @ 0x10039e891
//
// 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 __fastcall GameStatsManager::processChallengeQueue(GameStatsManager *a1, int a2)
{
GJChallengeItem *QueuedChallenge; // r12
GJChallengeItem *SecondaryQueuedChallenge; // r15
QueuedChallenge = GameStatsManager::getQueuedChallenge(a1, a2);
SecondaryQueuedChallenge = GameStatsManager::getSecondaryQueuedChallenge(a1, a2);
GameStatsManager::removeChallenge(a1, a2);
if ( QueuedChallenge )
{
GameStatsManager::storeChallenge(a1, a2, QueuedChallenge);
GameStatsManager::removeQueuedChallenge(a1, a2);
}
if ( SecondaryQueuedChallenge )
{
GameStatsManager::storeQueuedChallenge(a1, a2, SecondaryQueuedChallenge);
GameStatsManager::removeQueuedSecondaryChallenge(a1, a2);
}
}