{"type": "func", "start": 4295202080, "end": 4295202200, "name": "GameStatsManager::processChallengeQueue", "pseudocode": "// \n// GameStatsManager::processChallengeQueue from 0x100039520 to 0x100039598 (120 bytes)\n// \n// 2 xrefs:\n// > ChallengesPage::createChallengeNode @ 0x100387843\n// > ChallengesPage::claimItem @ 0x100388321\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:19:33 +0000\n// \n\nvoid __fastcall GameStatsManager::processChallengeQueue(__int64 a1, int a2)\n{\n  __int64 QueuedChallenge; // r12\n  __int64 SecondaryQueuedChallenge; // r15\n\n  QueuedChallenge = GameStatsManager::getQueuedChallenge(a1);\n  SecondaryQueuedChallenge = GameStatsManager::getSecondaryQueuedChallenge(a1);\n  GameStatsManager::removeChallenge(a1);\n  if ( QueuedChallenge )\n  {\n    GameStatsManager::storeChallenge(a1, a2, QueuedChallenge);\n    GameStatsManager::removeQueuedChallenge(a1);\n  }\n  if ( SecondaryQueuedChallenge )\n  {\n    GameStatsManager::storeQueuedChallenge(a1, a2, SecondaryQueuedChallenge);\n    GameStatsManager::removeQueuedSecondaryChallenge(a1);\n  }\n}", "assembly": "; \n; GameStatsManager::processChallengeQueue from 0x100039520 to 0x100039598 (120 bytes)\n; \n; 2 xrefs:\n; > ChallengesPage::createChallengeNode @ 0x100387843\n; > ChallengesPage::claimItem @ 0x100388321\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:19:33 +0000\n; \npush    rbp                                                            ; +0x0, 0x100039520\nmov     rbp, rsp                                                       ; +0x1, 0x100039521\npush    r15                                                            ; +0x4, 0x100039524\npush    r14                                                            ; +0x6, 0x100039526\npush    r12                                                            ; +0x8, 0x100039528\npush    rbx                                                            ; +0xa, 0x10003952a\nmov     ebx, esi                                                       ; +0xb, 0x10003952b\nmov     r14, rdi                                                       ; +0xd, 0x10003952d\ncall    GameStatsManager__getQueuedChallenge                           ; +0x10, 0x100039530\nmov     r12, rax                                                       ; +0x15, 0x100039535\nmov     rdi, r14                                                       ; +0x18, 0x100039538\nmov     esi, ebx                                                       ; +0x1b, 0x10003953b\ncall    GameStatsManager__getSecondaryQueuedChallenge                  ; +0x1d, 0x10003953d\nmov     r15, rax                                                       ; +0x22, 0x100039542\nmov     rdi, r14                                                       ; +0x25, 0x100039545\nmov     esi, ebx                                                       ; +0x28, 0x100039548\ncall    GameStatsManager__removeChallenge                              ; +0x2a, 0x10003954a\ntest    r12, r12                                                       ; +0x2f, 0x10003954f\njz      short loc_10003956B                                            ; +0x32, 0x100039552\nmov     rdi, r14                                                       ; +0x34, 0x100039554\nmov     esi, ebx                                                       ; +0x37, 0x100039557\nmov     rdx, r12                                                       ; +0x39, 0x100039559\ncall    GameStatsManager__storeChallenge                               ; +0x3c, 0x10003955c\nmov     rdi, r14                                                       ; +0x41, 0x100039561\nmov     esi, ebx                                                       ; +0x44, 0x100039564\ncall    GameStatsManager__removeQueuedChallenge                        ; +0x46, 0x100039566\ntest    r15, r15                                                       ; +0x4b, 0x10003956b\njz      short loc_10003958F                                            ; +0x4e, 0x10003956e\nmov     rdi, r14                                                       ; +0x50, 0x100039570\nmov     esi, ebx                                                       ; +0x53, 0x100039573\nmov     rdx, r15                                                       ; +0x55, 0x100039575\ncall    GameStatsManager__storeQueuedChallenge                         ; +0x58, 0x100039578\nmov     rdi, r14                                                       ; +0x5d, 0x10003957d\nmov     esi, ebx                                                       ; +0x60, 0x100039580\npop     rbx                                                            ; +0x62, 0x100039582\npop     r12                                                            ; +0x63, 0x100039583\npop     r14                                                            ; +0x65, 0x100039585\npop     r15                                                            ; +0x67, 0x100039587\npop     rbp                                                            ; +0x69, 0x100039589\njmp     GameStatsManager__removeQueuedSecondaryChallenge               ; +0x6a, 0x10003958a\npop     rbx                                                            ; +0x6f, 0x10003958f\npop     r12                                                            ; +0x70, 0x100039590\npop     r14                                                            ; +0x72, 0x100039592\npop     r15                                                            ; +0x74, 0x100039594\npop     rbp                                                            ; +0x76, 0x100039596\nretn                                                                   ; +0x77, 0x100039597", "xrefs": ["ChallengesPage::createChallengeNode @ 0x100387843", "ChallengesPage::claimItem @ 0x100388321"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}