{"type": "func", "start": 4297690704, "end": 4297690958, "name": "CreatorLayer::checkQuestsStatus", "pseudocode": "// \n// CreatorLayer::checkQuestsStatus from 0x100298e50 to 0x100298f4e (254 bytes)\n// \n// 3 xrefs:\n// > CreatorLayer::init @ 0x100297c11\n// > CreatorLayer::sceneWillResume @ 0x100299972\n// > sub_100299980 @ 0x1002999b9\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; // rdi\n  GameStatsManager *v3; // rax\n  GJChallengeItem *Challenge; // rax\n  GameStatsManager *v5; // rax\n  GJChallengeItem *v6; // rax\n  GameStatsManager *v7; // rax\n  GJChallengeItem *v8; // rax\n  cocos2d::CCSprite *v9; // r14\n  float v10; // [rsp+0h] [rbp-20h] BYREF\n  _BYTE v11[4]; // [rsp+8h] [rbp-18h] BYREF\n  float v12; // [rsp+Ch] [rbp-14h]\n\n  m_questsSprite = a1->m_questsSprite;\n  if ( m_questsSprite )\n  {\n    if ( (((void (__fastcall *)(cocos2d::CCSprite *))m_questsSprite->removeAllChildren)(m_questsSprite),\n          v3 = GameStatsManager::sharedState(),\n          (Challenge = GameStatsManager::getChallenge(v3, 1)) != nullptr)\n      && Challenge->m_canClaim\n      || (v5 = GameStatsManager::sharedState(), (v6 = GameStatsManager::getChallenge(v5, 2)) != nullptr)\n      && v6->m_canClaim\n      || (v7 = GameStatsManager::sharedState(), (v8 = GameStatsManager::getChallenge(v7, 3)) != nullptr)\n      && v8->m_canClaim )\n    {\n      v9 = cocos2d::CCSprite::createWithSpriteFrameName(\"exMark_001.png\");\n      ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *, __int64))a1->m_questsSprite->addChild_0)(\n        a1->m_questsSprite,\n        v9,\n        10);\n      ((void (__fastcall *)(cocos2d::CCSprite *, float))v9->setScale)(v9, 0.80000001);\n      ((void (__fastcall *)(_BYTE *))a1->m_questsSprite->getScaledContentSize)(v11);\n      sub_10028CBE0(&v10, 20.0, v12);\n      ((void (__fastcall *)(cocos2d::CCSprite *, float *))v9->setPosition)(v9, &v10);\n    }\n  }\n}", "assembly": "; \n; CreatorLayer::checkQuestsStatus from 0x100298e50 to 0x100298f4e (254 bytes)\n; \n; 3 xrefs:\n; > CreatorLayer::init @ 0x100297c11\n; > CreatorLayer::sceneWillResume @ 0x100299972\n; > sub_100299980 @ 0x1002999b9\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\npush    rbp                                                            ; +0x0, 0x100298e50\nmov     rbp, rsp                                                       ; +0x1, 0x100298e51\npush    r14                                                            ; +0x4, 0x100298e54\npush    rbx                                                            ; +0x6, 0x100298e56\nsub     rsp, 10h                                                       ; +0x7, 0x100298e57\nmov     rbx, rdi                                                       ; +0xb, 0x100298e5b\nmov     rdi, [rdi+1B0h]                                                ; +0xe, 0x100298e5e\ntest    rdi, rdi                                                       ; +0x15, 0x100298e65\njz      loc_100298F45                                                  ; +0x18, 0x100298e68\nmov     rax, [rdi]                                                     ; +0x1e, 0x100298e6e\ncall    qword ptr [rax+230h]                                           ; +0x21, 0x100298e71\ncall    GameStatsManager__sharedState                                  ; +0x27, 0x100298e77\nmov     rdi, rax                                                       ; +0x2c, 0x100298e7c\nmov     esi, 1                                                         ; +0x2f, 0x100298e7f\ncall    GameStatsManager__getChallenge                                 ; +0x34, 0x100298e84\ntest    rax, rax                                                       ; +0x39, 0x100298e89\njz      short loc_100298E94                                            ; +0x3c, 0x100298e8c\ncmp     byte ptr [rax+64h], 0                                          ; +0x3e, 0x100298e8e\njnz     short loc_100298ECE                                            ; +0x42, 0x100298e92\ncall    GameStatsManager__sharedState                                  ; +0x44, 0x100298e94\nmov     rdi, rax                                                       ; +0x49, 0x100298e99\nmov     esi, 2                                                         ; +0x4c, 0x100298e9c\ncall    GameStatsManager__getChallenge                                 ; +0x51, 0x100298ea1\ntest    rax, rax                                                       ; +0x56, 0x100298ea6\njz      short loc_100298EB1                                            ; +0x59, 0x100298ea9\ncmp     byte ptr [rax+64h], 0                                          ; +0x5b, 0x100298eab\njnz     short loc_100298ECE                                            ; +0x5f, 0x100298eaf\ncall    GameStatsManager__sharedState                                  ; +0x61, 0x100298eb1\nmov     rdi, rax                                                       ; +0x66, 0x100298eb6\nmov     esi, 3                                                         ; +0x69, 0x100298eb9\ncall    GameStatsManager__getChallenge                                 ; +0x6e, 0x100298ebe\ntest    rax, rax                                                       ; +0x73, 0x100298ec3\njz      short loc_100298F45                                            ; +0x76, 0x100298ec6\ncmp     byte ptr [rax+64h], 1                                          ; +0x78, 0x100298ec8\njnz     short loc_100298F45                                            ; +0x7c, 0x100298ecc\nlea     rdi, aExmark001Png; \"exMark_001.png\"                           ; +0x7e, 0x100298ece\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0x85, 0x100298ed5\nmov     r14, rax                                                       ; +0x8a, 0x100298eda\nmov     rdi, [rbx+1B0h]                                                ; +0x8d, 0x100298edd\nmov     rax, [rdi]                                                     ; +0x94, 0x100298ee4\nmov     rsi, r14                                                       ; +0x97, 0x100298ee7\nmov     edx, 0Ah                                                       ; +0x9a, 0x100298eea\ncall    qword ptr [rax+1C0h]                                           ; +0x9f, 0x100298eef\nmov     rax, [r14]                                                     ; +0xa5, 0x100298ef5\nmovss   xmm0, cs:dword_100814FE4                                       ; +0xa8, 0x100298ef8\nmov     rdi, r14                                                       ; +0xb0, 0x100298f00\ncall    qword ptr [rax+0A0h]                                           ; +0xb3, 0x100298f03\nmov     rsi, [rbx+1B0h]                                                ; +0xb9, 0x100298f09\nmov     rax, [rsi]                                                     ; +0xc0, 0x100298f10\nlea     rdi, [rbp+var_18]                                              ; +0xc3, 0x100298f13\ncall    qword ptr [rax+140h]                                           ; +0xc7, 0x100298f17\nmovss   xmm1, [rbp+var_14]                                             ; +0xcd, 0x100298f1d\nlea     rbx, [rbp+var_20]                                              ; +0xd2, 0x100298f22\nmovss   xmm0, cs:dword_100814FF0                                       ; +0xd6, 0x100298f26\nmov     rdi, rbx                                                       ; +0xde, 0x100298f2e\ncall    sub_10028CBE0                                                  ; +0xe1, 0x100298f31\nmov     rax, [r14]                                                     ; +0xe6, 0x100298f36\nmov     rdi, r14                                                       ; +0xe9, 0x100298f39\nmov     rsi, rbx                                                       ; +0xec, 0x100298f3c\ncall    qword ptr [rax+0B8h]                                           ; +0xef, 0x100298f3f\nadd     rsp, 10h                                                       ; +0xf5, 0x100298f45\npop     rbx                                                            ; +0xf9, 0x100298f49\npop     r14                                                            ; +0xfa, 0x100298f4a\npop     rbp                                                            ; +0xfc, 0x100298f4c\nretn                                                                   ; +0xfd, 0x100298f4d", "xrefs": ["CreatorLayer::init @ 0x100297c11", "CreatorLayer::sceneWillResume @ 0x100299972", "sub_100299980 @ 0x1002999b9"], "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"}