{"type": "func", "start": 4297607360, "end": 4297607579, "name": "CreatorLayer::sceneWillResume", "pseudocode": "// \n// CreatorLayer::sceneWillResume from 0x1002848c0 to 0x10028499b (219 bytes)\n// \n// 2 xrefs:\n// > sub_1002849A0 @ 0x1002849ac\n// > <???> @ 0x100afe718\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:27:44 +0000\n// \n\n__int64 __fastcall CreatorLayer::sceneWillResume(_QWORD *a1, __int64 a2, __int64 a3)\n{\n  __int64 v3; // rdx\n  double v4; // xmm0_8\n  __int64 v5; // rax\n  __int64 v6; // rax\n  __int64 v7; // r14\n  char canCollectQuests; // al\n  char v9; // r15\n  char *v10; // r15\n  float v12; // [rsp+8h] [rbp-28h] BYREF\n  _BYTE v13[4]; // [rsp+10h] [rbp-20h] BYREF\n  float v14; // [rsp+14h] [rbp-1Ch]\n\n  *(_QWORD *)&v4 = GameManager::sharedState(a1, a2, a3).u64[0];\n  if ( *(_QWORD *)(v5 + 1072) )\n  {\n    *(_QWORD *)&v4 = GameManager::sharedState(a1, a2, v3).u64[0];\n    DailyLevelPage::refreshDailyPage(*(_QWORD *)(v6 + 1072), v4);\n  }\n  v7 = a1[55];\n  canCollectQuests = ChallengesPage::canCollectQuests(v4);\n  if ( v7 )\n  {\n    v9 = canCollectQuests;\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 576LL))(v7);\n    if ( v9 )\n    {\n      v10 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)\"exMark_001.png\", v4);\n      (*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)v7 + 464LL))(v7, v10, 10);\n      (*(void (__fastcall **)(char *, float))(*(_QWORD *)v10 + 160LL))(v10, 0.80000001);\n      (*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v7 + 336LL))(v13, v7);\n      sub_100278250(&v12, 20.0, v14);\n      v4 = (*(double (__fastcall **)(char *, float *))(*(_QWORD *)v10 + 184LL))(v10, &v12);\n    }\n  }\n  return CreatorLayer::checkTimedStatus(a1, v4);\n}", "assembly": "; \n; CreatorLayer::sceneWillResume from 0x1002848c0 to 0x10028499b (219 bytes)\n; \n; 2 xrefs:\n; > sub_1002849A0 @ 0x1002849ac\n; > <???> @ 0x100afe718\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:27:44 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002848c0\nmov     rbp, rsp                                                       ; +0x1, 0x1002848c1\npush    r15                                                            ; +0x4, 0x1002848c4\npush    r14                                                            ; +0x6, 0x1002848c6\npush    rbx                                                            ; +0x8, 0x1002848c8\nsub     rsp, 18h                                                       ; +0x9, 0x1002848c9\nmov     rbx, rdi                                                       ; +0xd, 0x1002848cd\ncall    GameManager__sharedState                                       ; +0x10, 0x1002848d0\ncmp     qword ptr [rax+430h], 0                                        ; +0x15, 0x1002848d5\njz      short loc_1002848F0                                            ; +0x1d, 0x1002848dd\ncall    GameManager__sharedState                                       ; +0x1f, 0x1002848df\nmov     rdi, [rax+430h]                                                ; +0x24, 0x1002848e4\ncall    DailyLevelPage__refreshDailyPage                               ; +0x2b, 0x1002848eb\nmov     r14, [rbx+1B8h]                                                ; +0x30, 0x1002848f0\ncall    ChallengesPage__canCollectQuests                               ; +0x37, 0x1002848f7\ntest    r14, r14                                                       ; +0x3c, 0x1002848fc\njz      loc_100284988                                                  ; +0x3f, 0x1002848ff\nmov     r15d, eax                                                      ; +0x45, 0x100284905\nmov     rax, [r14]                                                     ; +0x48, 0x100284908\nmov     rdi, r14                                                       ; +0x4b, 0x10028490b\ncall    qword ptr [rax+240h]                                           ; +0x4e, 0x10028490e\ntest    r15b, r15b                                                     ; +0x54, 0x100284914\njz      short loc_100284988                                            ; +0x57, 0x100284917\nlea     rdi, aExmark001Png; \"exMark_001.png\"                           ; +0x59, 0x100284919\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0x60, 0x100284920\nmov     r15, rax                                                       ; +0x65, 0x100284925\nmov     rax, [r14]                                                     ; +0x68, 0x100284928\nmov     rdi, r14                                                       ; +0x6b, 0x10028492b\nmov     rsi, r15                                                       ; +0x6e, 0x10028492e\nmov     edx, 0Ah                                                       ; +0x71, 0x100284931\ncall    qword ptr [rax+1D0h]                                           ; +0x76, 0x100284936\nmov     rax, [r15]                                                     ; +0x7c, 0x10028493c\nmovss   xmm0, cs:dword_100A03588                                       ; +0x7f, 0x10028493f\nmov     rdi, r15                                                       ; +0x87, 0x100284947\ncall    qword ptr [rax+0A0h]                                           ; +0x8a, 0x10028494a\nmov     rax, [r14]                                                     ; +0x90, 0x100284950\nlea     rdi, [rbp+var_20]                                              ; +0x93, 0x100284953\nmov     rsi, r14                                                       ; +0x97, 0x100284957\ncall    qword ptr [rax+150h]                                           ; +0x9a, 0x10028495a\nmovss   xmm1, [rbp+var_1C]                                             ; +0xa0, 0x100284960\nlea     r14, [rbp+var_28]                                              ; +0xa5, 0x100284965\nmovss   xmm0, cs:dword_100A0359C                                       ; +0xa9, 0x100284969\nmov     rdi, r14                                                       ; +0xb1, 0x100284971\ncall    sub_100278250                                                  ; +0xb4, 0x100284974\nmov     rax, [r15]                                                     ; +0xb9, 0x100284979\nmov     rdi, r15                                                       ; +0xbc, 0x10028497c\nmov     rsi, r14                                                       ; +0xbf, 0x10028497f\ncall    qword ptr [rax+0B8h]                                           ; +0xc2, 0x100284982\nmov     rdi, rbx                                                       ; +0xc8, 0x100284988\ncall    CreatorLayer__checkTimedStatus                                 ; +0xcb, 0x10028498b\nadd     rsp, 18h                                                       ; +0xd0, 0x100284990\npop     rbx                                                            ; +0xd4, 0x100284994\npop     r14                                                            ; +0xd5, 0x100284995\npop     r15                                                            ; +0xd7, 0x100284997\npop     rbp                                                            ; +0xd9, 0x100284999\nretn                                                                   ; +0xda, 0x10028499a", "xrefs": ["sub_1002849A0 @ 0x1002849ac", "<???> @ 0x100afe718"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}