{"type": "func", "start": 4295188884, "end": 4295188968, "name": "ChallengesPage::canCollectQuests", "pseudocode": "// \n// ChallengesPage::canCollectQuests from 0x100036194 to 0x1000361e8 (84 bytes)\n// \n// 3 xrefs:\n// > CreatorLayer::init @ 0x1000dafb8\n// > CreatorLayer::sceneWillResume @ 0x1000dc79c\n// > sub_1001BFE2C @ 0x1001bfe58\n// \n// This function is hookable on this platform (idp: arm, 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 10:57:32 +0000\n// \n\nbool __fastcall ChallengesPage::canCollectQuests(__int64 Challenge)\n{\n  bool v1; // w20\n  __int64 v2; // x19\n  __int64 v3; // x0\n  int v4; // w8\n\n  v1 = 1;\n  v2 = 1;\n  do\n  {\n    v3 = GameStatsManager::sharedState(Challenge);\n    Challenge = GameStatsManager::getChallenge(v3, v2);\n    if ( Challenge && (*(_BYTE *)(Challenge + 100) & 1) != 0 )\n      break;\n    v4 = v2 + 1;\n    v1 = (unsigned int)v2 < 3;\n    v2 = (unsigned int)(v2 + 1);\n  }\n  while ( v4 != 4 );\n  return v1;\n}", "assembly": "; \n; ChallengesPage::canCollectQuests from 0x100036194 to 0x1000361e8 (84 bytes)\n; \n; 3 xrefs:\n; > CreatorLayer::init @ 0x1000dafb8\n; > CreatorLayer::sceneWillResume @ 0x1000dc79c\n; > sub_1001BFE2C @ 0x1001bfe58\n; \n; This function is hookable on this platform (idp: arm, 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 10:57:32 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100036194\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100036198\nADD             X29, SP, #0x10                                         ; +0x8, 0x10003619c\nMOV             W20, #1                                                ; +0xc, 0x1000361a0\nMOV             W19, #1                                                ; +0x10, 0x1000361a4\nBL              GameStatsManager__sharedState                          ; +0x14, 0x1000361a8\nMOV             X1, X19                                                ; +0x18, 0x1000361ac\nBL              GameStatsManager__getChallenge                         ; +0x1c, 0x1000361b0\nCBZ             X0, loc_1000361C0                                      ; +0x20, 0x1000361b4\nLDRB            W8, [X0,#0x64]                                         ; +0x24, 0x1000361b8\nTBNZ            W8, #0, loc_1000361D8                                  ; +0x28, 0x1000361bc\nCMP             W19, #3                                                ; +0x2c, 0x1000361c0\nADD             W8, W19, #1                                            ; +0x30, 0x1000361c4\nCSET            W20, CC                                                ; +0x34, 0x1000361c8\nMOV             X19, X8                                                ; +0x38, 0x1000361cc\nCMP             W8, #4                                                 ; +0x3c, 0x1000361d0\nB.NE            loc_1000361A8                                          ; +0x40, 0x1000361d4\nAND             W0, W20, #1                                            ; +0x44, 0x1000361d8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x48, 0x1000361dc\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x4c, 0x1000361e0\nRET                                                                    ; +0x50, 0x1000361e4", "xrefs": ["CreatorLayer::init @ 0x1000dafb8", "CreatorLayer::sceneWillResume @ 0x1000dc79c", "sub_1001BFE2C @ 0x1001bfe58"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}