{"type": "func", "start": 4295713816, "end": 4295714036, "name": "CreatorLayer::checkQuestsStatus", "pseudocode": "// \n// CreatorLayer::checkQuestsStatus from 0x1000b6418 to 0x1000b64f4 (220 bytes)\n// \n// 2 xrefs:\n// > CreatorLayer::init @ 0x1000b5618\n// > CreatorLayer::sceneWillResume @ 0x1000b6bfc\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 CreatorLayer::checkQuestsStatus(CreatorLayer *a1)\n{\n  cocos2d::CCSprite *m_questsSprite; // x0\n  int v3; // w20\n  GameStatsManager *v4; // x0\n  GJChallengeItem *Challenge; // x0\n  cocos2d::CCSprite *v6; // x20\n  __n128 v7; // q1\n  __n128 v8; // q0\n  __int64 v9; // [xsp+0h] [xbp-20h] BYREF\n  int v10; // [xsp+8h] [xbp-18h] BYREF\n\n  m_questsSprite = a1->m_questsSprite;\n  if ( m_questsSprite )\n  {\n    ((void (__fastcall *)(cocos2d::CCSprite *))m_questsSprite->removeAllChildren)(m_questsSprite);\n    v3 = 1;\n    while ( 1 )\n    {\n      v4 = GameStatsManager::sharedState();\n      Challenge = GameStatsManager::getChallenge(v4, v3);\n      if ( Challenge )\n      {\n        if ( Challenge->m_canClaim )\n          break;\n      }\n      if ( ++v3 == 4 )\n        return;\n    }\n    v6 = cocos2d::CCSprite::createWithSpriteFrameName(\"exMark_001.png\");\n    ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *, __int64))a1->m_questsSprite->addChild_0)(\n      a1->m_questsSprite,\n      v6,\n      10);\n    ((void (__fastcall *)(cocos2d::CCSprite *, float))v6->setScale)(v6, 0.8);\n    ((void (__fastcall *)(__int64 *__return_ptr))a1->m_questsSprite->getScaledContentSize)(&v9);\n    v7.n128_u32[0] = HIDWORD(v9);\n    v8.n128_u32[0] = 20.0;\n    sub_100022980(v8, v7, &v10);\n    ((void (__fastcall *)(cocos2d::CCSprite *, int *))v6->setPosition)(v6, &v10);\n  }\n}", "assembly": "; \n; CreatorLayer::checkQuestsStatus from 0x1000b6418 to 0x1000b64f4 (220 bytes)\n; \n; 2 xrefs:\n; > CreatorLayer::init @ 0x1000b5618\n; > CreatorLayer::sceneWillResume @ 0x1000b6bfc\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x1000b6418\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1000b641c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1000b6420\nADD             X29, SP, #0x20                                         ; +0xc, 0x1000b6424\nMOV             X19, X0                                                ; +0x10, 0x1000b6428\nLDR             X0, [X0,#0x1B0]                                        ; +0x14, 0x1000b642c\nCBZ             X0, loc_1000B64E4                                      ; +0x18, 0x1000b6430\nLDR             X8, [X0]                                               ; +0x1c, 0x1000b6434\nLDR             X8, [X8,#0x230]                                        ; +0x20, 0x1000b6438\nBLR             X8                                                     ; +0x24, 0x1000b643c\nMOV             W20, #1                                                ; +0x28, 0x1000b6440\nBL              GameStatsManager__sharedState                          ; +0x2c, 0x1000b6444\nMOV             X1, X20                                                ; +0x30, 0x1000b6448\nBL              GameStatsManager__getChallenge                         ; +0x34, 0x1000b644c\nCBZ             X0, loc_1000B645C                                      ; +0x38, 0x1000b6450\nLDRB            W8, [X0,#0x64]                                         ; +0x3c, 0x1000b6454\nTBNZ            W8, #0, loc_1000B646C                                  ; +0x40, 0x1000b6458\nADD             W20, W20, #1                                           ; +0x44, 0x1000b645c\nCMP             W20, #4                                                ; +0x48, 0x1000b6460\nB.NE            loc_1000B6444                                          ; +0x4c, 0x1000b6464\nB               loc_1000B64E4                                          ; +0x50, 0x1000b6468\nADRL            X0, aExmark001Png; \"exMark_001.png\"                    ; +0x54, 0x1000b646c\nBL              cocos2d__CCSprite__createWithSpriteFrameName           ; +0x5c, 0x1000b6474\nMOV             X20, X0                                                ; +0x60, 0x1000b6478\nLDR             X0, [X19,#0x1B0]                                       ; +0x64, 0x1000b647c\nLDR             X8, [X0]                                               ; +0x68, 0x1000b6480\nLDR             X8, [X8,#0x1C0]                                        ; +0x6c, 0x1000b6484\nMOV             X1, X20                                                ; +0x70, 0x1000b6488\nMOV             W2, #0xA                                               ; +0x74, 0x1000b648c\nBLR             X8                                                     ; +0x78, 0x1000b6490\nLDR             X8, [X20]                                              ; +0x7c, 0x1000b6494\nLDR             X8, [X8,#0xA0]                                         ; +0x80, 0x1000b6498\nADRP            X9, #dword_100635340@PAGE                              ; +0x84, 0x1000b649c\nLDR             S0, [X9,#dword_100635340@PAGEOFF]                      ; +0x88, 0x1000b64a0\nMOV             X0, X20                                                ; +0x8c, 0x1000b64a4\nBLR             X8                                                     ; +0x90, 0x1000b64a8\nLDR             X0, [X19,#0x1B0]                                       ; +0x94, 0x1000b64ac\nLDR             X8, [X0]                                               ; +0x98, 0x1000b64b0\nLDR             X9, [X8,#0x140]                                        ; +0x9c, 0x1000b64b4\nMOV             X8, SP                                                 ; +0xa0, 0x1000b64b8\nBLR             X9                                                     ; +0xa4, 0x1000b64bc\nLDR             S1, [SP,#0x20+var_1C]                                  ; +0xa8, 0x1000b64c0\nADD             X0, SP, #0x20+var_18                                   ; +0xac, 0x1000b64c4\nFMOV            S0, #20.0                                              ; +0xb0, 0x1000b64c8\nBL              sub_100022980                                          ; +0xb4, 0x1000b64cc\nLDR             X8, [X20]                                              ; +0xb8, 0x1000b64d0\nLDR             X8, [X8,#0xB8]                                         ; +0xbc, 0x1000b64d4\nADD             X1, SP, #0x20+var_18                                   ; +0xc0, 0x1000b64d8\nMOV             X0, X20                                                ; +0xc4, 0x1000b64dc\nBLR             X8                                                     ; +0xc8, 0x1000b64e0\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xcc, 0x1000b64e4\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xd0, 0x1000b64e8\nADD             SP, SP, #0x30 ; '0'                                    ; +0xd4, 0x1000b64ec\nRET                                                                    ; +0xd8, 0x1000b64f0", "xrefs": ["CreatorLayer::init @ 0x1000b5618", "CreatorLayer::sceneWillResume @ 0x1000b6bfc"], "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"}