{"type": "func", "start": 3846660, "end": 3846810, "name": "CreatorLayer::checkQuestsStatus", "pseudocode": "// \n// CreatorLayer::checkQuestsStatus from 0x3ab204 to 0x3ab29a (150 bytes)\n// \n// 2 xrefs:\n// > CreatorLayer::sceneWillResume @ 0x3ab2cc\n// > CreatorLayer::init @ 0x3ab71e\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; // r0\n  int v3; // r4\n  GameStatsManager *v4; // r0\n  GJChallengeItem *Challenge; // r0\n  cocos2d::CCSprite *v6; // r4\n  void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7\n  cocos2d::CCPoint v8; // [sp+4h] [bp-18h] BYREF\n  _BYTE v9[4]; // [sp+Ch] [bp-10h] BYREF\n  float v10; // [sp+10h] [bp-Ch]\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    ((void (__fastcall *)(cocos2d::CCSprite *, int))v6->setScale)(v6, 1061997773);\n    setPosition = v6->setPosition;\n    ((void (__fastcall *)(_BYTE *))a1->m_questsSprite->getScaledContentSize)(v9);\n    cocos2d::CCPoint::CCPoint(&v8, 20.0, v10);\n    setPosition(v6, &v8);\n  }\n}", "assembly": "; \n; CreatorLayer::checkQuestsStatus from 0x3ab204 to 0x3ab29a (150 bytes)\n; \n; 2 xrefs:\n; > CreatorLayer::sceneWillResume @ 0x3ab2cc\n; > CreatorLayer::init @ 0x3ab71e\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x3AB20C)                ; +0x0, 0x3ab204\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x3ab206\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x3ab208\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x3ab20a\nMOV             R6, R0                                                 ; +0x8, 0x3ab20c\nLDR.W           R0, [R0,#0x148]                                        ; +0xa, 0x3ab20e\nLDR             R2, [R3]                                               ; +0xe, 0x3ab212\nSUB             SP, SP, #0x1C                                          ; +0x10, 0x3ab214\nMOV             R5, R3                                                 ; +0x12, 0x3ab216\nSTR             R2, [SP,#0x1C+var_8]                                   ; +0x14, 0x3ab218\nCMP             R0, #0                                                 ; +0x16, 0x3ab21a\nBEQ             loc_3AB28A                                             ; +0x18, 0x3ab21c\nLDR             R3, [R0]                                               ; +0x1a, 0x3ab21e\nMOVS            R4, #1                                                 ; +0x1c, 0x3ab220\nLDR.W           R3, [R3,#0x118]                                        ; +0x1e, 0x3ab222\nBLX             R3                                                     ; +0x22, 0x3ab226\nBL              _ZN16GameStatsManager11sharedStateEv; GameStatsManager::sharedState(void) ; +0x24, 0x3ab228\nMOV             R1, R4; int                                            ; +0x28, 0x3ab22c\nBL              _ZN16GameStatsManager12getChallengeEi; GameStatsManager::getChallenge(int) ; +0x2a, 0x3ab22e\nCBZ             R0, loc_3AB284                                         ; +0x2e, 0x3ab232\nLDRB.W          R3, [R0,#0x60]                                         ; +0x30, 0x3ab234\nCBZ             R3, loc_3AB284                                         ; +0x34, 0x3ab238\nLDR             R0, =(aExmark001Png - 0x3AB240); \"exMark_001.png\"      ; +0x36, 0x3ab23a\nADD             R0, PC; \"exMark_001.png\"                               ; +0x38, 0x3ab23c\nBL              _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x3a, 0x3ab23e\nMOVS            R2, #0xA                                               ; +0x3e, 0x3ab242\nMOV             R4, R0                                                 ; +0x40, 0x3ab244\nLDR.W           R0, [R6,#0x148]                                        ; +0x42, 0x3ab246\nMOV             R1, R4                                                 ; +0x46, 0x3ab24a\nLDR             R3, [R0]                                               ; +0x48, 0x3ab24c\nLDR.W           R3, [R3,#0xE0]                                         ; +0x4a, 0x3ab24e\nBLX             R3                                                     ; +0x4e, 0x3ab252\nLDR             R3, [R4]                                               ; +0x50, 0x3ab254\nMOV             R0, R4                                                 ; +0x52, 0x3ab256\nLDR             R1, =0x3F4CCCCD                                        ; +0x54, 0x3ab258\nLDR             R3, [R3,#0x50]                                         ; +0x56, 0x3ab25a\nBLX             R3                                                     ; +0x58, 0x3ab25c\nLDR             R3, [R4]                                               ; +0x5a, 0x3ab25e\nLDR.W           R1, [R6,#0x148]                                        ; +0x5c, 0x3ab260\nADD             R6, SP, #0x1C+var_18                                   ; +0x60, 0x3ab264\nADD             R0, SP, #0x1C+var_10                                   ; +0x62, 0x3ab266\nLDR             R7, [R3,#0x5C]                                         ; +0x64, 0x3ab268\nLDR             R3, [R1]                                               ; +0x66, 0x3ab26a\nLDR.W           R3, [R3,#0xA0]                                         ; +0x68, 0x3ab26c\nBLX             R3                                                     ; +0x6c, 0x3ab270\nMOV             R0, R6; this                                           ; +0x6e, 0x3ab272\nLDR             R1, flt_3AB2A0; float                                  ; +0x70, 0x3ab274\nLDR             R2, [SP,#0x1C+var_C]; float                            ; +0x72, 0x3ab276\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x74, 0x3ab278\nMOV             R0, R4                                                 ; +0x78, 0x3ab27c\nMOV             R1, R6                                                 ; +0x7a, 0x3ab27e\nBLX             R7                                                     ; +0x7c, 0x3ab280\nB               loc_3AB28A                                             ; +0x7e, 0x3ab282\nADDS            R4, #1                                                 ; +0x80, 0x3ab284\nCMP             R4, #4                                                 ; +0x82, 0x3ab286\nBNE             loc_3AB228                                             ; +0x84, 0x3ab288\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x86, 0x3ab28a\nLDR             R3, [R5]                                               ; +0x88, 0x3ab28c\nCMP             R2, R3                                                 ; +0x8a, 0x3ab28e\nBEQ             loc_3AB296                                             ; +0x8c, 0x3ab290\nBLX             __stack_chk_fail                                       ; +0x8e, 0x3ab292\nADD             SP, SP, #0x1C                                          ; +0x92, 0x3ab296\nPOP             {R4-R7,PC}                                             ; +0x94, 0x3ab298", "xrefs": ["CreatorLayer::sceneWillResume @ 0x3ab2cc", "CreatorLayer::init @ 0x3ab71e"], "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"}