{"type": "func", "start": 4298326092, "end": 4298326244, "name": "GameStatsManager::processChallengeQueue", "pseudocode": "// \n// GameStatsManager::processChallengeQueue from 0x10033404c to 0x1003340e4 (152 bytes)\n// \n// 2 xrefs:\n// > ChallengesPage::createChallengeNode @ 0x1000325ac\n// > ChallengesPage::claimItem @ 0x100032d74\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GameStatsManager::processChallengeQueue(GameStatsManager *a1, int a2)\n{\n  GJChallengeItem *QueuedChallenge; // x22\n  GJChallengeItem *SecondaryQueuedChallenge; // x21\n\n  QueuedChallenge = GameStatsManager::getQueuedChallenge(a1, a2);\n  SecondaryQueuedChallenge = GameStatsManager::getSecondaryQueuedChallenge(a1, a2);\n  GameStatsManager::removeChallenge(a1, a2);\n  if ( QueuedChallenge )\n  {\n    GameStatsManager::storeChallenge(a1, a2, QueuedChallenge);\n    GameStatsManager::removeQueuedChallenge(a1, a2);\n  }\n  if ( SecondaryQueuedChallenge )\n  {\n    GameStatsManager::storeQueuedChallenge(a1, a2, SecondaryQueuedChallenge);\n    GameStatsManager::removeQueuedSecondaryChallenge(a1, a2);\n  }\n}", "assembly": "; \n; GameStatsManager::processChallengeQueue from 0x10033404c to 0x1003340e4 (152 bytes)\n; \n; 2 xrefs:\n; > ChallengesPage::createChallengeNode @ 0x1000325ac\n; > ChallengesPage::claimItem @ 0x100032d74\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x10033404c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100334050\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100334054\nADD             X29, SP, #0x20                                         ; +0xc, 0x100334058\nMOV             X19, X1                                                ; +0x10, 0x10033405c\nMOV             X20, X0                                                ; +0x14, 0x100334060\nBL              GameStatsManager__getQueuedChallenge                   ; +0x18, 0x100334064\nMOV             X22, X0                                                ; +0x1c, 0x100334068\nMOV             X0, X20                                                ; +0x20, 0x10033406c\nMOV             X1, X19                                                ; +0x24, 0x100334070\nBL              GameStatsManager__getSecondaryQueuedChallenge          ; +0x28, 0x100334074\nMOV             X21, X0                                                ; +0x2c, 0x100334078\nMOV             X0, X20                                                ; +0x30, 0x10033407c\nMOV             X1, X19                                                ; +0x34, 0x100334080\nBL              GameStatsManager__removeChallenge                      ; +0x38, 0x100334084\nCBZ             X22, loc_1003340A8                                     ; +0x3c, 0x100334088\nMOV             X0, X20                                                ; +0x40, 0x10033408c\nMOV             X1, X19                                                ; +0x44, 0x100334090\nMOV             X2, X22                                                ; +0x48, 0x100334094\nBL              GameStatsManager__storeChallenge                       ; +0x4c, 0x100334098\nMOV             X0, X20                                                ; +0x50, 0x10033409c\nMOV             X1, X19                                                ; +0x54, 0x1003340a0\nBL              GameStatsManager__removeQueuedChallenge                ; +0x58, 0x1003340a4\nCBZ             X21, loc_1003340D4                                     ; +0x5c, 0x1003340a8\nMOV             X0, X20                                                ; +0x60, 0x1003340ac\nMOV             X1, X19                                                ; +0x64, 0x1003340b0\nMOV             X2, X21                                                ; +0x68, 0x1003340b4\nBL              GameStatsManager__storeQueuedChallenge                 ; +0x6c, 0x1003340b8\nMOV             X0, X20                                                ; +0x70, 0x1003340bc\nMOV             X1, X19                                                ; +0x74, 0x1003340c0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x78, 0x1003340c4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x7c, 0x1003340c8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x80, 0x1003340cc\nB               GameStatsManager__removeQueuedSecondaryChallenge       ; +0x84, 0x1003340d0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x88, 0x1003340d4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x8c, 0x1003340d8\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x90, 0x1003340dc\nRET                                                                    ; +0x94, 0x1003340e0", "xrefs": ["ChallengesPage::createChallengeNode @ 0x1000325ac", "ChallengesPage::claimItem @ 0x100032d74"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}