{"type": "func", "start": 10888564, "end": 10888648, "name": "ChallengesPage::canCollectQuests", "pseudocode": "// \n// ChallengesPage::canCollectQuests from 0xa62574 to 0xa625c8 (84 bytes)\n// \n// 3 xrefs:\n// > PauseLayer::checkQuestsStatus @ 0x7d5834\n// > CreatorLayer::checkQuestsStatus @ 0x7dbc9c\n// > <???> @ 0xa8b80\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 13:00:15 +0000\n// \n\n__int64 __fastcall ChallengesPage::canCollectQuests(ChallengesPage *this)\n{\n  unsigned int v1; // w19\n  GameStatsManager *v2; // x0\n  const char *v3; // x1\n\n  v1 = 1;\n  while ( 1 )\n  {\n    v2 = (GameStatsManager *)GameStatsManager::sharedState(this);\n    v3 = (const char *)v1++;\n    this = (ChallengesPage *)GameStatsManager::getChallenge(v2, v3);\n    if ( this )\n    {\n      this = (ChallengesPage *)*((unsigned __int8 *)this + 100);\n      if ( (_DWORD)this )\n        break;\n    }\n    if ( v1 == 4 )\n      return 0;\n  }\n  return 1;\n}", "assembly": "; \n; ChallengesPage::canCollectQuests from 0xa62574 to 0xa625c8 (84 bytes)\n; \n; 3 xrefs:\n; > PauseLayer::checkQuestsStatus @ 0x7d5834\n; > CreatorLayer::checkQuestsStatus @ 0x7dbc9c\n; > <???> @ 0xa8b80\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 13:00:15 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xa62574\nMOV             X29, SP                                                ; +0x4, 0xa62578\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xa6257c\nMOV             W19, #1                                                ; +0xc, 0xa62580\nBL              _ZN16GameStatsManager11sharedStateEv; GameStatsManager::sharedState(void) ; +0x10, 0xa62584\nMOV             W1, W19; int                                           ; +0x14, 0xa62588\nADD             W19, W19, #1                                           ; +0x18, 0xa6258c\nBL              _ZN16GameStatsManager12getChallengeEi; GameStatsManager::getChallenge(int) ; +0x1c, 0xa62590\nCMP             W19, #4                                                ; +0x20, 0xa62594\nCBZ             X0, loc_A625A4                                         ; +0x24, 0xa62598\nLDRB            W0, [X0,#0x64]                                         ; +0x28, 0xa6259c\nCBNZ            W0, loc_A625B8                                         ; +0x2c, 0xa625a0\nB.NE            loc_A62584                                             ; +0x30, 0xa625a4\nMOV             W0, #0                                                 ; +0x34, 0xa625a8\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x38, 0xa625ac\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x3c, 0xa625b0\nRET                                                                    ; +0x40, 0xa625b4\nMOV             W0, #1                                                 ; +0x44, 0xa625b8\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x48, 0xa625bc\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x4c, 0xa625c0\nRET                                                                    ; +0x50, 0xa625c4", "xrefs": ["PauseLayer::checkQuestsStatus @ 0x7d5834", "CreatorLayer::checkQuestsStatus @ 0x7dbc9c", "<???> @ 0xa8b80"], "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"}