//
// GameStatsManager::processChallengeQueue from 0x100039520 to 0x100039598 (120 bytes)
//
// 2 xrefs:
// > ChallengesPage::createChallengeNode @ 0x100387843
// > ChallengesPage::claimItem @ 0x100388321
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:19:33 +0000
//
void __fastcall GameStatsManager::processChallengeQueue(__int64 a1, int a2)
{
__int64 QueuedChallenge; // r12
__int64 SecondaryQueuedChallenge; // r15
QueuedChallenge = GameStatsManager::getQueuedChallenge(a1);
SecondaryQueuedChallenge = GameStatsManager::getSecondaryQueuedChallenge(a1);
GameStatsManager::removeChallenge(a1);
if ( QueuedChallenge )
{
GameStatsManager::storeChallenge(a1, a2, QueuedChallenge);
GameStatsManager::removeQueuedChallenge(a1);
}
if ( SecondaryQueuedChallenge )
{
GameStatsManager::storeQueuedChallenge(a1, a2, SecondaryQueuedChallenge);
GameStatsManager::removeQueuedSecondaryChallenge(a1);
}
}