{"type": "func", "start": 5369361952, "end": 5369362238, "name": "CreatorLayer::checkQuestsStatus", "pseudocode": "// \n// CreatorLayer::checkQuestsStatus from 0x14009f620 to 0x14009f73e (286 bytes)\n// \n// 3 xrefs:\n// > CreatorLayer::init @ 0x14009ca1f\n// > CreatorLayer::sceneWillResume @ 0x14009f9b8\n// > <???> @ 0x1406c7644\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\n// Hidden C++ exception states: #wind=1\nvoid CreatorLayer::checkQuestsStatus(CreatorLayer *a1)\n{\n  cocos2d::CCSprite *m_questsSprite; // rcx\n  int v3; // ebx\n  GameStatsManager *v4; // rcx\n  GJChallengeItem *Challenge; // rax\n  struct cocos2d::CCSprite *v6; // rdi\n  cocos2d::CCSprite_vtbl *v7; // rbx\n  __int64 v8; // rax\n  const cocos2d::CCPoint *v9; // rax\n  void *v10; // [rsp+30h] [rbp+8h] BYREF\n  cocos2d::CCPoint v11; // [rsp+38h] [rbp+10h] BYREF\n\n  m_questsSprite = a1->m_questsSprite;\n  if ( m_questsSprite )\n  {\n    m_questsSprite->removeAllChildren(m_questsSprite);\n    v3 = 1;\n    while ( 1 )\n    {\n      v4 = (GameStatsManager *)qword_1406C2EE8;\n      if ( !qword_1406C2EE8 )\n      {\n        v10 = operator new(0x3E0u);\n        qword_1406C2EE8 = sub_1401D0AE0(v10);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);\n        v4 = (GameStatsManager *)qword_1406C2EE8;\n      }\n      Challenge = GameStatsManager::getChallenge(v4, v3);\n      if ( Challenge )\n      {\n        if ( Challenge->m_canClaim )\n          break;\n      }\n      if ( ++v3 > 3 )\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 *)(struct cocos2d::CCSprite *))v6->setScale_0)(v6);\n    v7 = v6->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v8 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, void **))a1->m_questsSprite->getScaledContentSize)(\n           a1->m_questsSprite,\n           &v10);\n    cocos2d::CCPoint::CCPoint(&v11, 20.0, *(float *)(v8 + 4));\n    v7->setPosition_0(v6, v9);\n  }\n}", "assembly": "; \n; CreatorLayer::checkQuestsStatus from 0x14009f620 to 0x14009f73e (286 bytes)\n; \n; 3 xrefs:\n; > CreatorLayer::init @ 0x14009ca1f\n; > CreatorLayer::sceneWillResume @ 0x14009f9b8\n; > <???> @ 0x1406c7644\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14009f620\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x14009f625\npush    rdi                                                            ; +0xa, 0x14009f62a\nsub     rsp, 20h                                                       ; +0xb, 0x14009f62b\nmov     rsi, rcx                                                       ; +0xf, 0x14009f62f\nmov     rcx, [rcx+1B0h]                                                ; +0x12, 0x14009f632\ntest    rcx, rcx                                                       ; +0x19, 0x14009f639\njz      loc_14009F72E                                                  ; +0x1c, 0x14009f63c\nmov     rax, [rcx]                                                     ; +0x22, 0x14009f642\ncall    qword ptr [rax+228h]                                           ; +0x25, 0x14009f645\nmov     ebx, 1                                                         ; +0x2b, 0x14009f64b\nmov     rcx, cs:qword_1406C2EE8                                        ; +0x30, 0x14009f650\ntest    rcx, rcx                                                       ; +0x37, 0x14009f657\njnz     short loc_14009F68B                                            ; +0x3a, 0x14009f65a\nmov     ecx, 3E0h; Size                                                ; +0x3c, 0x14009f65c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x41, 0x14009f661\nmov     [rsp+28h+arg_0], rax                                           ; +0x46, 0x14009f666\nmov     rcx, rax                                                       ; +0x4b, 0x14009f66b\ncall    sub_1401D0AE0                                                  ; +0x4e, 0x14009f66e\nnop                                                                    ; +0x53, 0x14009f673\nmov     cs:qword_1406C2EE8, rax                                        ; +0x54, 0x14009f674\nmov     rdx, [rax]                                                     ; +0x5b, 0x14009f67b\nmov     rcx, rax                                                       ; +0x5e, 0x14009f67e\ncall    qword ptr [rdx+48h]                                            ; +0x61, 0x14009f681\nmov     rcx, cs:qword_1406C2EE8                                        ; +0x64, 0x14009f684\nmov     edx, ebx                                                       ; +0x6b, 0x14009f68b\ncall    GameStatsManager__getChallenge                                 ; +0x6d, 0x14009f68d\ntest    rax, rax                                                       ; +0x72, 0x14009f692\njz      short loc_14009F69D                                            ; +0x75, 0x14009f695\ncmp     byte ptr [rax+64h], 0                                          ; +0x77, 0x14009f697\njnz     short loc_14009F6B4                                            ; +0x7b, 0x14009f69b\ninc     ebx                                                            ; +0x7d, 0x14009f69d\ncmp     ebx, 3                                                         ; +0x7f, 0x14009f69f\njle     short loc_14009F650                                            ; +0x82, 0x14009f6a2\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x84, 0x14009f6a4\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x89, 0x14009f6a9\nadd     rsp, 20h                                                       ; +0x8e, 0x14009f6ae\npop     rdi                                                            ; +0x92, 0x14009f6b2\nretn                                                                   ; +0x93, 0x14009f6b3\nlea     rcx, aExmark001Png; \"exMark_001.png\"                           ; +0x94, 0x14009f6b4\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x9b, 0x14009f6bb\nmov     rdi, rax                                                       ; +0xa1, 0x14009f6c1\nmov     rcx, [rsi+1B0h]                                                ; +0xa4, 0x14009f6c4\nmov     r9, [rcx]                                                      ; +0xab, 0x14009f6cb\nmov     r8d, 0Ah                                                       ; +0xae, 0x14009f6ce\nmov     rdx, rax                                                       ; +0xb4, 0x14009f6d4\ncall    qword ptr [r9+1B8h]                                            ; +0xb7, 0x14009f6d7\nmov     rdx, [rdi]                                                     ; +0xbe, 0x14009f6de\nmovss   xmm1, cs:dword_140622BA4                                       ; +0xc1, 0x14009f6e1\nmov     rcx, rdi                                                       ; +0xc9, 0x14009f6e9\ncall    qword ptr [rdx+0A0h]                                           ; +0xcc, 0x14009f6ec\nmov     rbx, [rdi]                                                     ; +0xd2, 0x14009f6f2\nmov     rcx, [rsi+1B0h]                                                ; +0xd5, 0x14009f6f5\nmov     rax, [rcx]                                                     ; +0xdc, 0x14009f6fc\nlea     rdx, [rsp+28h+arg_0]                                           ; +0xdf, 0x14009f6ff\ncall    qword ptr [rax+138h]                                           ; +0xe4, 0x14009f704\nmovss   xmm2, dword ptr [rax+4]                                        ; +0xea, 0x14009f70a\nmovss   xmm1, cs:dword_140623120                                       ; +0xef, 0x14009f70f\nlea     rcx, [rsp+28h+arg_8]                                           ; +0xf7, 0x14009f717\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xfc, 0x14009f71c\nmov     rdx, rax                                                       ; +0x102, 0x14009f722\nmov     rcx, rdi                                                       ; +0x105, 0x14009f725\ncall    qword ptr [rbx+0B8h]                                           ; +0x108, 0x14009f728\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x10e, 0x14009f72e\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x113, 0x14009f733\nadd     rsp, 20h                                                       ; +0x118, 0x14009f738\npop     rdi                                                            ; +0x11c, 0x14009f73c\nretn                                                                   ; +0x11d, 0x14009f73d", "xrefs": ["CreatorLayer::init @ 0x14009ca1f", "CreatorLayer::sceneWillResume @ 0x14009f9b8", "<???> @ 0x1406c7644"], "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"}