//
// GameStatsManager::processChallengeQueue from 0x10033404c to 0x1003340e4 (152 bytes)
//
// 2 xrefs:
// > ChallengesPage::createChallengeNode @ 0x1000325ac
// > ChallengesPage::claimItem @ 0x100032d74
//
// 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; // x22
GJChallengeItem *SecondaryQueuedChallenge; // x21
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);
}
}