{"type": "func", "start": 7126568, "end": 7126840, "name": "CreatorLayer::checkQuestsStatus", "pseudocode": "// \n// CreatorLayer::checkQuestsStatus from 0x6cbe28 to 0x6cbf38 (272 bytes)\n// \n// 3 xrefs:\n// > CreatorLayer::sceneWillResume @ 0x6cbf70\n// > CreatorLayer::init @ 0x6cca9c\n// > <???> @ 0xa4e50\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 CreatorLayer::checkQuestsStatus(CreatorLayer *a1)\n{\n  cocos2d::CCSprite *m_questsSprite; // x0\n  int v3; // w19\n  GameStatsManager *v4; // x0\n  GJChallengeItem *Challenge; // x0\n  cocos2d::CCSprite *v6; // x19\n  cocos2d::CCSprite *v7; // x0\n  void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x21\n  cocos2d::CCPoint v9; // [xsp+48h] [xbp+48h] BYREF\n  __int64 v10; // [xsp+50h] [xbp+50h] BYREF\n\n  m_questsSprite = a1->m_questsSprite;\n  if ( m_questsSprite )\n  {\n    v3 = 1;\n    m_questsSprite->removeAllChildren(m_questsSprite);\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    a1->m_questsSprite->addChild_0(a1->m_questsSprite, v6, 10);\n    v6->setScale(v6, 0.8);\n    v7 = a1->m_questsSprite;\n    setPosition = v6->setPosition;\n    ((void (__fastcall *)(__int64 *__return_ptr, cocos2d::CCSprite *))v7->getScaledContentSize)(&v10, v7);\n    cocos2d::CCPoint::CCPoint(&v9, 20.0, *((float *)&v10 + 1));\n    setPosition(v6, &v9);\n  }\n}", "assembly": "; \n; CreatorLayer::checkQuestsStatus from 0x6cbe28 to 0x6cbf38 (272 bytes)\n; \n; 3 xrefs:\n; > CreatorLayer::sceneWillResume @ 0x6cbf70\n; > CreatorLayer::init @ 0x6cca9c\n; > <???> @ 0xa4e50\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             X29, X30, [SP,#var_60]!                                ; +0x0, 0x6cbe28\nMOV             X29, SP                                                ; +0x4, 0x6cbe2c\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x6cbe30\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6cbe34\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x10, 0x6cbe38\nMOV             X21, X0                                                ; +0x14, 0x6cbe3c\nLDR             X0, [X0,#0x1B0]                                        ; +0x18, 0x6cbe40\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x6cbe44\nLDR             X1, [X1]                                               ; +0x20, 0x6cbe48\nSTR             X1, [X29,#0x60+var_8]                                  ; +0x24, 0x6cbe4c\nCBZ             X0, loc_6CBE88                                         ; +0x28, 0x6cbe50\nLDR             X1, [X0]                                               ; +0x2c, 0x6cbe54\nMOV             W19, #1                                                ; +0x30, 0x6cbe58\nLDR             X1, [X1,#0x230]                                        ; +0x34, 0x6cbe5c\nBLR             X1                                                     ; +0x38, 0x6cbe60\nBL              _ZN16GameStatsManager11sharedStateEv; GameStatsManager::sharedState(void) ; +0x3c, 0x6cbe64\nMOV             W1, W19; int                                           ; +0x40, 0x6cbe68\nBL              _ZN16GameStatsManager12getChallengeEi; GameStatsManager::getChallenge(int) ; +0x44, 0x6cbe6c\nCBZ             X0, loc_6CBE7C                                         ; +0x48, 0x6cbe70\nLDRB            W0, [X0,#0x64]                                         ; +0x4c, 0x6cbe74\nCBNZ            W0, loc_6CBEAC                                         ; +0x50, 0x6cbe78\nADD             W19, W19, #1                                           ; +0x54, 0x6cbe7c\nCMP             W19, #4                                                ; +0x58, 0x6cbe80\nB.NE            loc_6CBE64                                             ; +0x5c, 0x6cbe84\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x60, 0x6cbe88\nLDR             X1, [X29,#0x60+var_8]                                  ; +0x64, 0x6cbe8c\nLDR             X0, [X20]                                              ; +0x68, 0x6cbe90\nCMP             X1, X0                                                 ; +0x6c, 0x6cbe94\nB.NE            loc_6CBF34                                             ; +0x70, 0x6cbe98\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x74, 0x6cbe9c\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x78, 0x6cbea0\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x7c, 0x6cbea4\nRET                                                                    ; +0x80, 0x6cbea8\nADRP            X0, #aExmark001Png@PAGE; \"exMark_001.png\"              ; +0x84, 0x6cbeac\nADD             X22, X29, #0x60+var_18                                 ; +0x88, 0x6cbeb0\nADD             X0, X0, #aExmark001Png@PAGEOFF; \"exMark_001.png\"       ; +0x8c, 0x6cbeb4\nBL              _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x90, 0x6cbeb8\nMOV             X19, X0                                                ; +0x94, 0x6cbebc\nLDR             X3, [X21,#0x1B0]                                       ; +0x98, 0x6cbec0\nMOV             X1, X0                                                 ; +0x9c, 0x6cbec4\nMOV             W2, #0xA                                               ; +0xa0, 0x6cbec8\nMOV             X0, X3                                                 ; +0xa4, 0x6cbecc\nLDR             X3, [X3]                                               ; +0xa8, 0x6cbed0\nLDR             X3, [X3,#0x1C0]                                        ; +0xac, 0x6cbed4\nBLR             X3                                                     ; +0xb0, 0x6cbed8\nLDR             X1, [X19]                                              ; +0xb4, 0x6cbedc\nMOV             X0, X19                                                ; +0xb8, 0x6cbee0\nLDR             S0, =0x3F4CCCCD                                        ; +0xbc, 0x6cbee4\nLDR             X1, [X1,#0xA0]                                         ; +0xc0, 0x6cbee8\nBLR             X1                                                     ; +0xc4, 0x6cbeec\nLDR             X1, [X21,#0x1B0]                                       ; +0xc8, 0x6cbef0\nADD             X8, X29, #0x60+var_10                                  ; +0xcc, 0x6cbef4\nLDR             X2, [X19]                                              ; +0xd0, 0x6cbef8\nMOV             X0, X1                                                 ; +0xd4, 0x6cbefc\nLDR             X1, [X1]                                               ; +0xd8, 0x6cbf00\nLDR             X21, [X2,#0xB8]                                        ; +0xdc, 0x6cbf04\nLDR             X1, [X1,#0x140]                                        ; +0xe0, 0x6cbf08\nBLR             X1                                                     ; +0xe4, 0x6cbf0c\nSTR             X22, [X29,#0x60+var_28]                                ; +0xe8, 0x6cbf10\nLDR             S1, [X29,#0x60+var_C]; float                           ; +0xec, 0x6cbf14\nMOV             X0, X22; this                                          ; +0xf0, 0x6cbf18\nFMOV            S0, #20.0; float                                       ; +0xf4, 0x6cbf1c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xf8, 0x6cbf20\nLDR             X1, [X29,#0x60+var_28]                                 ; +0xfc, 0x6cbf24\nMOV             X0, X19                                                ; +0x100, 0x6cbf28\nBLR             X21                                                    ; +0x104, 0x6cbf2c\nB               loc_6CBE88                                             ; +0x108, 0x6cbf30\nBL              .__stack_chk_fail                                      ; +0x10c, 0x6cbf34", "xrefs": ["CreatorLayer::sceneWillResume @ 0x6cbf70", "CreatorLayer::init @ 0x6cca9c", "<???> @ 0xa4e50"], "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"}