{"type": "func", "start": 5369362528, "end": 5369362877, "name": "CreatorLayer::sceneWillResume", "pseudocode": "// \n// CreatorLayer::sceneWillResume from 0x14009f860 to 0x14009f9bd (349 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405432f8\n// > <???> @ 0x1406c7668\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=3\nvoid CreatorLayer::sceneWillResume(CreatorLayer *a1)\n{\n  __int64 v2; // rax\n  DailyLevelPage *v3; // rsi\n  DailyLevelNode *m_dailyNode; // rdi\n  GJGameLevel *m_level; // rdi\n  GameLevelManager *v6; // rcx\n  GJGameLevel *SavedGauntletLevel; // rax\n  int v8; // edx\n  DailyLevelNode *v9; // rbx\n  void *v10; // [rsp+40h] [rbp+8h]\n  void *v11; // [rsp+40h] [rbp+8h]\n\n  v2 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v10 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00(v10);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v2 = qword_1406C2ED8;\n  }\n  v3 = *(DailyLevelPage **)(v2 + 1040);\n  if ( v3 )\n  {\n    m_dailyNode = v3->m_dailyNode;\n    if ( m_dailyNode )\n    {\n      if ( !m_dailyNode->m_needsDownloading )\n      {\n        m_level = m_dailyNode->m_level;\n        if ( m_level )\n        {\n          v6 = (GameLevelManager *)qword_1406C2EC0;\n          if ( !qword_1406C2EC0 )\n          {\n            v11 = operator new(0x3D0u);\n            qword_1406C2EC0 = sub_140141280(v11);\n            (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n            v6 = (GameLevelManager *)qword_1406C2EC0;\n          }\n          if ( m_level->m_dailyID.random - m_level->m_dailyID.seed <= 0 )\n          {\n            v8 = m_level->m_levelID.random - m_level->m_levelID.seed;\n            if ( m_level->m_gauntletLevel )\n              SavedGauntletLevel = GameLevelManager::getSavedGauntletLevel(v6, v8);\n            else\n              SavedGauntletLevel = GameLevelManager::getSavedLevel(v6, v8);\n          }\n          else\n          {\n            SavedGauntletLevel = GameLevelManager::getSavedDailyLevel(\n                                   v6,\n                                   m_level->m_dailyID.random - m_level->m_dailyID.seed);\n          }\n          if ( SavedGauntletLevel )\n            m_level = SavedGauntletLevel;\n          v9 = v3->m_dailyNode;\n          v3->m_dailyNode = nullptr;\n          DailyLevelPage::createDailyNode(v3, m_level, 1, 0.0, 0);\n          v9->removeMeAndCleanup(v9);\n        }\n      }\n    }\n  }\n  CreatorLayer::checkQuestsStatus((CreatorLayer *)((char *)a1 - 408));\n}", "assembly": "; \n; CreatorLayer::sceneWillResume from 0x14009f860 to 0x14009f9bd (349 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405432f8\n; > <???> @ 0x1406c7668\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_8], rbx                                               ; +0x0, 0x14009f860\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x14009f865\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x14009f86a\npush    rdi                                                            ; +0xf, 0x14009f86f\nsub     rsp, 30h                                                       ; +0x10, 0x14009f870\nmov     rbp, rcx                                                       ; +0x14, 0x14009f874\nmov     rax, cs:qword_1406C2ED8                                        ; +0x17, 0x14009f877\ntest    rax, rax                                                       ; +0x1e, 0x14009f87e\njnz     short loc_14009F8B2                                            ; +0x21, 0x14009f881\nmov     ecx, 668h; Size                                                ; +0x23, 0x14009f883\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x28, 0x14009f888\nmov     [rsp+38h+arg_0], rax                                           ; +0x2d, 0x14009f88d\nmov     rcx, rax                                                       ; +0x32, 0x14009f892\ncall    sub_14017AB00                                                  ; +0x35, 0x14009f895\nnop                                                                    ; +0x3a, 0x14009f89a\nmov     cs:qword_1406C2ED8, rax                                        ; +0x3b, 0x14009f89b\nmov     rdx, [rax]                                                     ; +0x42, 0x14009f8a2\nmov     rcx, rax                                                       ; +0x45, 0x14009f8a5\ncall    qword ptr [rdx+48h]                                            ; +0x48, 0x14009f8a8\nmov     rax, cs:qword_1406C2ED8                                        ; +0x4b, 0x14009f8ab\nmov     rsi, [rax+410h]                                                ; +0x52, 0x14009f8b2\ntest    rsi, rsi                                                       ; +0x59, 0x14009f8b9\njz      loc_14009F99D                                                  ; +0x5c, 0x14009f8bc\nmov     rdi, [rsi+2B0h]                                                ; +0x62, 0x14009f8c2\ntest    rdi, rdi                                                       ; +0x69, 0x14009f8c9\njz      loc_14009F99D                                                  ; +0x6c, 0x14009f8cc\ncmp     byte ptr [rdi+171h], 0                                         ; +0x72, 0x14009f8d2\njnz     loc_14009F99D                                                  ; +0x79, 0x14009f8d9\nmov     rdi, [rdi+148h]                                                ; +0x7f, 0x14009f8df\ntest    rdi, rdi                                                       ; +0x86, 0x14009f8e6\njz      loc_14009F99D                                                  ; +0x89, 0x14009f8e9\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x8f, 0x14009f8ef\ntest    rcx, rcx                                                       ; +0x96, 0x14009f8f6\njnz     short loc_14009F92A                                            ; +0x99, 0x14009f8f9\nmov     ecx, 3D0h; Size                                                ; +0x9b, 0x14009f8fb\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xa0, 0x14009f900\nmov     [rsp+38h+arg_0], rax                                           ; +0xa5, 0x14009f905\nmov     rcx, rax                                                       ; +0xaa, 0x14009f90a\ncall    sub_140141280                                                  ; +0xad, 0x14009f90d\nnop                                                                    ; +0xb2, 0x14009f912\nmov     cs:qword_1406C2EC0, rax                                        ; +0xb3, 0x14009f913\nmov     rdx, [rax]                                                     ; +0xba, 0x14009f91a\nmov     rcx, rax                                                       ; +0xbd, 0x14009f91d\ncall    qword ptr [rdx+48h]                                            ; +0xc0, 0x14009f920\nmov     rcx, cs:qword_1406C2EC0                                        ; +0xc3, 0x14009f923\nmov     edx, [rdi+36Ch]                                                ; +0xca, 0x14009f92a\nsub     edx, [rdi+370h]                                                ; +0xd0, 0x14009f930\ntest    edx, edx                                                       ; +0xd6, 0x14009f936\njle     short loc_14009F941                                            ; +0xd8, 0x14009f938\ncall    GameLevelManager__getSavedDailyLevel                           ; +0xda, 0x14009f93a\njmp     short loc_14009F962                                            ; +0xdf, 0x14009f93f\nmov     edx, [rdi+148h]                                                ; +0xe1, 0x14009f941\nsub     edx, [rdi+14Ch]                                                ; +0xe7, 0x14009f947\ncmp     byte ptr [rdi+2C9h], 0                                         ; +0xed, 0x14009f94d\njz      short loc_14009F95D                                            ; +0xf4, 0x14009f954\ncall    GameLevelManager__getSavedGauntletLevel                        ; +0xf6, 0x14009f956\njmp     short loc_14009F962                                            ; +0xfb, 0x14009f95b\ncall    GameLevelManager__getSavedLevel                                ; +0xfd, 0x14009f95d\ntest    rax, rax                                                       ; +0x102, 0x14009f962\ncmovnz  rdi, rax                                                       ; +0x105, 0x14009f965\nmov     rbx, [rsi+2B0h]                                                ; +0x109, 0x14009f969\nmov     qword ptr [rsi+2B0h], 0                                        ; +0x110, 0x14009f970\nmov     [rsp+38h+var_18], 0                                            ; +0x11b, 0x14009f97b\nxorps   xmm3, xmm3                                                     ; +0x120, 0x14009f980\nmov     r8b, 1                                                         ; +0x123, 0x14009f983\nmov     rdx, rdi                                                       ; +0x126, 0x14009f986\nmov     rcx, rsi                                                       ; +0x129, 0x14009f989\ncall    DailyLevelPage__createDailyNode                                ; +0x12c, 0x14009f98c\nmov     rax, [rbx]                                                     ; +0x131, 0x14009f991\nmov     rcx, rbx                                                       ; +0x134, 0x14009f994\ncall    qword ptr [rax+200h]                                           ; +0x137, 0x14009f997\nlea     rcx, [rbp-198h]                                                ; +0x13d, 0x14009f99d\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x144, 0x14009f9a4\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x149, 0x14009f9a9\nmov     rsi, [rsp+38h+arg_18]                                          ; +0x14e, 0x14009f9ae\nadd     rsp, 30h                                                       ; +0x153, 0x14009f9b3\npop     rdi                                                            ; +0x157, 0x14009f9b7\njmp     CreatorLayer__checkQuestsStatus                                ; +0x158, 0x14009f9b8", "xrefs": ["<???> @ 0x1405432f8", "<???> @ 0x1406c7668"], "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"}