//
// GameStatsManager::processChallengeQueue from 0x7a42f8 to 0x7a4390 (152 bytes)
//
// 3 xrefs:
// > ChallengesPage::createChallengeNode @ 0x907e54
// > ChallengesPage::claimItem @ 0x908d28
// > ??> @ 0xb7a20
//
// 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::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);
}
}