{"type": "func", "start": 5371359984, "end": 5371360892, "name": "GameManager::returnToLastScene", "pseudocode": "// \n// GameManager::returnToLastScene from 0x1402872f0 to 0x14028767c (908 bytes)\n// \n// 3 xrefs:\n// > EditorPauseLayer::onExitEditor @ 0x140182c79\n// > PlayLayer::onQuit @ 0x14051b2de\n// > <???> @ 0x14091d120\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 11:29:02 +0000\n// \n\n// Hidden C++ exception states: #wind=6\nchar __fastcall GameManager::returnToLastScene(__int64 a1, _DWORD *a2)\n{\n  struct cocos2d::CCScene *v2; // rbx\n  __int64 v3; // rax\n  int v4; // ecx\n  __int64 v5; // rax\n  struct cocos2d::CCScene *v6; // rax\n  struct cocos2d::CCScene *v7; // rbx\n  __int64 v8; // rcx\n  cocos2d::CCDirector *v9; // rax\n  int v10; // eax\n  struct cocos2d::CCScene *v11; // rax\n  struct cocos2d::CCScene *v12; // rbx\n  __int64 v13; // rcx\n  cocos2d::CCDirector *v14; // rax\n  __int64 v16; // rdx\n  _BYTE *v17; // rdi\n  __int64 v18; // rax\n  struct cocos2d::CCScene *v19; // rdx\n  __int64 v20; // rdx\n  _BYTE *v21; // rcx\n  __int64 v22; // rax\n  struct cocos2d::CCScene *v23; // rbx\n  __int64 v24; // rcx\n  cocos2d::CCDirector *v25; // rax\n  __int64 v26; // rcx\n  void *v27; // [rsp+20h] [rbp-38h]\n  void *v28; // [rsp+20h] [rbp-38h]\n  void *v29; // [rsp+20h] [rbp-38h]\n  void *v30; // [rsp+20h] [rbp-38h]\n  void *v31; // [rsp+20h] [rbp-38h]\n  _QWORD v32[3]; // [rsp+28h] [rbp-30h] BYREF\n  unsigned __int64 v33; // [rsp+40h] [rbp-18h]\n\n  v2 = nullptr;\n  switch ( *(_DWORD *)(a1 + 740) )\n  {\n    case 1:\n      v3 = (__int64)CreatorLayer::scene();\n      goto LABEL_40;\n    case 2:\n      v4 = 98;\n      goto LABEL_4;\n    case 3:\n      if ( a2 )\n      {\n        if ( a2[305] == 2 )\n          v3 = EditLevelLayer::scene((__int64)a2, (__int64)a2, (__int64)a2, 0x140000000LL);\n        else\n          v3 = LevelInfoLayer::scene(a2, a2);\nLABEL_40:\n        v19 = (struct cocos2d::CCScene *)v3;\n      }\n      else\n      {\n        if ( !*(_BYTE *)(a1 + 744) )\n          goto LABEL_27;\n        *(_BYTE *)(a1 + 744) = 0;\n        v16 = *(_QWORD *)&qword_14090BFB0;\n        if ( !*(_QWORD *)&qword_14090BFB0 )\n        {\n          v27 = operator new(0x690u);\n          *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v27);\n          (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n          v16 = *(_QWORD *)&qword_14090BFB0;\n        }\n        sub_14003F4F0((__int64)v32, v16 + 1272);\n        v17 = v32;\n        if ( v33 > 0xF )\n          v17 = (_BYTE *)v32[0];\n        if ( !*(_QWORD *)&qword_14090BFB0 )\n        {\n          v28 = operator new(0x690u);\n          *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v28);\n          (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n        }\n        v18 = GJSearchObject::createFromKey(v17);\n        if ( v18 )\n          v2 = (struct cocos2d::CCScene *)LevelBrowserLayer::scene(v18);\n        sub_14003D310((__int64)v32);\n        if ( !v2 )\nLABEL_27:\n          v2 = (struct cocos2d::CCScene *)CreatorLayer::scene();\nLABEL_28:\n        v19 = v2;\n      }\nLABEL_41:\n      v23 = cocos2d::CCTransitionFade::create(0.5, v19);\n      v25 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v24);\n      cocos2d::CCDirector::replaceScene(v25, v23);\nLABEL_42:\n      v26 = qword_14090BFD0;\n      if ( !qword_14090BFD0 )\n      {\n        v31 = operator new(0x6E8u);\n        qword_14090BFD0 = GameManager::GameManager((__int64)v31);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n        v26 = qword_14090BFD0;\n      }\n      return GameManager::fadeInMenuMusic(v26);\n    case 7:\n      v20 = *(_QWORD *)&qword_14090BFB0;\n      if ( !*(_QWORD *)&qword_14090BFB0 )\n      {\n        v29 = operator new(0x690u);\n        *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v29);\n        (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n        v20 = *(_QWORD *)&qword_14090BFB0;\n      }\n      sub_14003F4F0((__int64)v32, v20 + 1272);\n      if ( !*(_QWORD *)&qword_14090BFB0 )\n      {\n        v30 = operator new(0x690u);\n        *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v30);\n        (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n      }\n      v21 = v32;\n      if ( v33 > 0xF )\n        v21 = (_BYTE *)v32[0];\n      v22 = GJSearchObject::createFromKey(v21);\n      if ( v22 )\n        v2 = (struct cocos2d::CCScene *)LevelBrowserLayer::scene(v22);\n      sub_14003D310((__int64)v32);\n      if ( v2 )\n        goto LABEL_28;\n      v19 = (struct cocos2d::CCScene *)MenuLayer::scene(0);\n      goto LABEL_41;\n    case 9:\n      if ( a2 )\n      {\n        v10 = a2[82] - a2[83] - 1;\n        if ( v10 < 0 )\n          v10 = 0;\n        LODWORD(v2) = v10;\n      }\n      v3 = LevelSelectLayer::scene((unsigned int)v2, a2, a2);\n      goto LABEL_40;\n    case 0xC:\n      v11 = (struct cocos2d::CCScene *)SecretLayer2::scene(a1, a2, a2);\n      v12 = cocos2d::CCTransitionFade::create(0.5, v11);\n      v14 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v13);\n      return cocos2d::CCDirector::replaceScene(v14, v12);\n    case 0xE:\n      v4 = 102;\nLABEL_4:\n      v5 = GJSearchObject::create_2(v4);\n      v6 = (struct cocos2d::CCScene *)LevelBrowserLayer::scene(v5);\n      v7 = cocos2d::CCTransitionFade::create(0.5, v6);\n      v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);\n      cocos2d::CCDirector::pushScene(v9, v7);\n      goto LABEL_42;\n    case 0xF:\n      LOBYTE(a1) = 1;\n      v3 = LevelAreaInnerLayer::scene(a1, a2, a2);\n      goto LABEL_40;\n    default:\n      v3 = MenuLayer::scene(0);\n      goto LABEL_40;\n  }\n}", "assembly": "; \n; GameManager::returnToLastScene from 0x1402872f0 to 0x14028767c (908 bytes)\n; \n; 3 xrefs:\n; > EditorPauseLayer::onExitEditor @ 0x140182c79\n; > PlayLayer::onQuit @ 0x14051b2de\n; > <???> @ 0x14091d120\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 11:29:02 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1402872f0\npush    rdi                                                            ; +0x5, 0x1402872f5\nsub     rsp, 50h                                                       ; +0x6, 0x1402872f6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1402872fa\nxor     rax, rsp                                                       ; +0x11, 0x140287301\nmov     [rsp+58h+var_10], rax                                          ; +0x14, 0x140287304\nmov     r8, rdx                                                        ; +0x19, 0x140287309\nxor     ebx, ebx                                                       ; +0x1c, 0x14028730c\nmov     eax, [rcx+2E4h]                                                ; +0x1e, 0x14028730e\ndec     eax; switch 15 cases                                           ; +0x24, 0x140287314\ncmp     eax, 0Eh                                                       ; +0x26, 0x140287316\nja      def_140287333; jumptable 0000000140287333 default case, cases 4-6,8,10,11,13 ; +0x29, 0x140287319\ncdqe                                                                   ; +0x2f, 0x14028731f\nlea     r9, cs:140000000h                                              ; +0x31, 0x140287321\nmov     edx, ds:(jpt_140287333 - 140000000h)[r9+rax*4]                 ; +0x38, 0x140287328\nadd     rdx, r9                                                        ; +0x40, 0x140287330\njmp     rdx; switch jump                                               ; +0x43, 0x140287333\ncall    CreatorLayer__scene; jumptable 0000000140287333 case 1         ; +0x45, 0x140287335\njmp     loc_1402875BC                                                  ; +0x4a, 0x14028733a\nmov     ecx, 62h ; 'b'; jumptable 0000000140287333 case 2              ; +0x4f, 0x14028733f\ncall    GJSearchObject__create_2                                       ; +0x54, 0x140287344\nmov     rcx, rax                                                       ; +0x59, 0x140287349\ncall    LevelBrowserLayer__scene                                       ; +0x5c, 0x14028734c\nmov     rdx, rax                                                       ; +0x61, 0x140287351\nmovss   xmm0, cs:dword_140834F20                                       ; +0x64, 0x140287354\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x6c, 0x14028735c\nmov     rbx, rax                                                       ; +0x72, 0x140287362\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x75, 0x140287365\nmov     rcx, rax                                                       ; +0x7b, 0x14028736b\nmov     rdx, rbx                                                       ; +0x7e, 0x14028736e\ncall    cs:?pushScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0x81, 0x140287371\njmp     loc_1402875E2                                                  ; +0x87, 0x140287377\nmov     ecx, 66h ; 'f'; jumptable 0000000140287333 case 14             ; +0x8c, 0x14028737c\njmp     short loc_140287344                                            ; +0x91, 0x140287381\ntest    r8, r8; jumptable 0000000140287333 case 9                      ; +0x93, 0x140287383\njz      short loc_14028739E                                            ; +0x96, 0x140287386\nmov     eax, [r8+148h]                                                 ; +0x98, 0x140287388\nsub     eax, [r8+14Ch]                                                 ; +0x9f, 0x14028738f\nsub     eax, 1                                                         ; +0xa6, 0x140287396\ncmovs   eax, ebx                                                       ; +0xa9, 0x140287399\nmov     ebx, eax                                                       ; +0xac, 0x14028739c\nmov     ecx, ebx                                                       ; +0xae, 0x14028739e\ncall    LevelSelectLayer__scene                                        ; +0xb0, 0x1402873a0\njmp     loc_1402875BC                                                  ; +0xb5, 0x1402873a5\nmov     cl, 1; jumptable 0000000140287333 case 15                      ; +0xba, 0x1402873aa\ncall    LevelAreaInnerLayer__scene                                     ; +0xbc, 0x1402873ac\njmp     loc_1402875BC                                                  ; +0xc1, 0x1402873b1\ncall    SecretLayer2__scene; jumptable 0000000140287333 case 12        ; +0xc6, 0x1402873b6\nmov     rdx, rax                                                       ; +0xcb, 0x1402873bb\nmovss   xmm0, cs:dword_140834F20                                       ; +0xce, 0x1402873be\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0xd6, 0x1402873c6\nmov     rbx, rax                                                       ; +0xdc, 0x1402873cc\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xdf, 0x1402873cf\nmov     rcx, rax                                                       ; +0xe5, 0x1402873d5\nmov     rdx, rbx                                                       ; +0xe8, 0x1402873d8\ncall    cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0xeb, 0x1402873db\njmp     loc_140287625                                                  ; +0xf1, 0x1402873e1\ntest    r8, r8; jumptable 0000000140287333 case 3                      ; +0xf6, 0x1402873e6\njz      short loc_14028740C                                            ; +0xf9, 0x1402873e9\nmov     rcx, r8                                                        ; +0xfb, 0x1402873eb\ncmp     dword ptr [r8+4C4h], 2                                         ; +0xfe, 0x1402873ee\njnz     short loc_140287402                                            ; +0x106, 0x1402873f6\ncall    EditLevelLayer__scene                                          ; +0x108, 0x1402873f8\njmp     loc_1402875BC                                                  ; +0x10d, 0x1402873fd\ncall    LevelInfoLayer__scene                                          ; +0x112, 0x140287402\njmp     loc_1402875BC                                                  ; +0x117, 0x140287407\ncmp     [rcx+2E8h], bl                                                 ; +0x11c, 0x14028740c\njz      loc_1402874D8                                                  ; +0x122, 0x140287412\nmov     [rcx+2E8h], bl                                                 ; +0x128, 0x140287418\nmov     rdx, cs:qword_14090BFB0                                        ; +0x12e, 0x14028741e\ntest    rdx, rdx                                                       ; +0x135, 0x140287425\njnz     short loc_14028745C                                            ; +0x138, 0x140287428\nmov     ecx, 690h; Size                                                ; +0x13a, 0x14028742a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x13f, 0x14028742f\nmov     [rsp+58h+var_38], rax                                          ; +0x144, 0x140287434\nmov     rcx, rax                                                       ; +0x149, 0x140287439\ncall    GameLevelManager__GameLevelManager                             ; +0x14c, 0x14028743c\nnop                                                                    ; +0x151, 0x140287441\nmov     cs:qword_14090BFB0, rax                                        ; +0x152, 0x140287442\nmov     rcx, [rax]                                                     ; +0x159, 0x140287449\nmov     rdx, [rcx+48h]                                                 ; +0x15c, 0x14028744c\nmov     rcx, rax                                                       ; +0x160, 0x140287450\ncall    rdx                                                            ; +0x163, 0x140287453\nmov     rdx, cs:qword_14090BFB0                                        ; +0x165, 0x140287455\nadd     rdx, 4F8h                                                      ; +0x16c, 0x14028745c\nlea     rcx, [rsp+58h+var_30]                                          ; +0x173, 0x140287463\ncall    sub_14003F4F0                                                  ; +0x178, 0x140287468\nnop                                                                    ; +0x17d, 0x14028746d\nlea     rdi, [rsp+58h+var_30]                                          ; +0x17e, 0x14028746e\ncmp     [rsp+58h+var_18], 0Fh                                          ; +0x183, 0x140287473\ncmova   rdi, [rsp+58h+var_30]                                          ; +0x189, 0x140287479\ncmp     cs:qword_14090BFB0, 0                                          ; +0x18f, 0x14028747f\njnz     short loc_1402874B1                                            ; +0x197, 0x140287487\nmov     ecx, 690h; Size                                                ; +0x199, 0x140287489\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x19e, 0x14028748e\nmov     [rsp+58h+var_38], rax                                          ; +0x1a3, 0x140287493\nmov     rcx, rax                                                       ; +0x1a8, 0x140287498\ncall    GameLevelManager__GameLevelManager                             ; +0x1ab, 0x14028749b\nnop                                                                    ; +0x1b0, 0x1402874a0\nmov     cs:qword_14090BFB0, rax                                        ; +0x1b1, 0x1402874a1\nmov     rdx, [rax]                                                     ; +0x1b8, 0x1402874a8\nmov     rcx, rax                                                       ; +0x1bb, 0x1402874ab\ncall    qword ptr [rdx+48h]                                            ; +0x1be, 0x1402874ae\nmov     rcx, rdi                                                       ; +0x1c1, 0x1402874b1\ncall    GJSearchObject__createFromKey                                  ; +0x1c4, 0x1402874b4\ntest    rax, rax                                                       ; +0x1c9, 0x1402874b9\njz      short loc_1402874C9                                            ; +0x1cc, 0x1402874bc\nmov     rcx, rax                                                       ; +0x1ce, 0x1402874be\ncall    LevelBrowserLayer__scene                                       ; +0x1d1, 0x1402874c1\nmov     rbx, rax                                                       ; +0x1d6, 0x1402874c6\nlea     rcx, [rsp+58h+var_30]                                          ; +0x1d9, 0x1402874c9\ncall    sub_14003D310                                                  ; +0x1de, 0x1402874ce\ntest    rbx, rbx                                                       ; +0x1e3, 0x1402874d3\njnz     short loc_1402874E0                                            ; +0x1e6, 0x1402874d6\ncall    CreatorLayer__scene                                            ; +0x1e8, 0x1402874d8\nmov     rbx, rax                                                       ; +0x1ed, 0x1402874dd\nmov     rdx, rbx                                                       ; +0x1f0, 0x1402874e0\njmp     loc_1402875BF                                                  ; +0x1f3, 0x1402874e3\nmov     rdx, cs:qword_14090BFB0; jumptable 0000000140287333 case 7     ; +0x1f8, 0x1402874e8\ntest    rdx, rdx                                                       ; +0x1ff, 0x1402874ef\njnz     short loc_140287526                                            ; +0x202, 0x1402874f2\nmov     ecx, 690h; Size                                                ; +0x204, 0x1402874f4\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x209, 0x1402874f9\nmov     [rsp+58h+var_38], rax                                          ; +0x20e, 0x1402874fe\nmov     rcx, rax                                                       ; +0x213, 0x140287503\ncall    GameLevelManager__GameLevelManager                             ; +0x216, 0x140287506\nnop                                                                    ; +0x21b, 0x14028750b\nmov     cs:qword_14090BFB0, rax                                        ; +0x21c, 0x14028750c\nmov     rcx, [rax]                                                     ; +0x223, 0x140287513\nmov     rdx, [rcx+48h]                                                 ; +0x226, 0x140287516\nmov     rcx, rax                                                       ; +0x22a, 0x14028751a\ncall    rdx                                                            ; +0x22d, 0x14028751d\nmov     rdx, cs:qword_14090BFB0                                        ; +0x22f, 0x14028751f\nadd     rdx, 4F8h                                                      ; +0x236, 0x140287526\nlea     rcx, [rsp+58h+var_30]                                          ; +0x23d, 0x14028752d\ncall    sub_14003F4F0                                                  ; +0x242, 0x140287532\nnop                                                                    ; +0x247, 0x140287537\ncmp     cs:qword_14090BFB0, 0                                          ; +0x248, 0x140287538\njnz     short loc_14028756D                                            ; +0x250, 0x140287540\nmov     ecx, 690h; Size                                                ; +0x252, 0x140287542\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x257, 0x140287547\nmov     [rsp+58h+var_38], rax                                          ; +0x25c, 0x14028754c\nmov     rcx, rax                                                       ; +0x261, 0x140287551\ncall    GameLevelManager__GameLevelManager                             ; +0x264, 0x140287554\nnop                                                                    ; +0x269, 0x140287559\nmov     cs:qword_14090BFB0, rax                                        ; +0x26a, 0x14028755a\nmov     rcx, [rax]                                                     ; +0x271, 0x140287561\nmov     rdx, [rcx+48h]                                                 ; +0x274, 0x140287564\nmov     rcx, rax                                                       ; +0x278, 0x140287568\ncall    rdx                                                            ; +0x27b, 0x14028756b\nlea     rcx, [rsp+58h+var_30]                                          ; +0x27d, 0x14028756d\ncmp     [rsp+58h+var_18], 0Fh                                          ; +0x282, 0x140287572\ncmova   rcx, [rsp+58h+var_30]                                          ; +0x288, 0x140287578\ncall    GJSearchObject__createFromKey                                  ; +0x28e, 0x14028757e\ntest    rax, rax                                                       ; +0x293, 0x140287583\njz      short loc_140287593                                            ; +0x296, 0x140287586\nmov     rcx, rax                                                       ; +0x298, 0x140287588\ncall    LevelBrowserLayer__scene                                       ; +0x29b, 0x14028758b\nmov     rbx, rax                                                       ; +0x2a0, 0x140287590\nlea     rcx, [rsp+58h+var_30]                                          ; +0x2a3, 0x140287593\ncall    sub_14003D310                                                  ; +0x2a8, 0x140287598\ntest    rbx, rbx                                                       ; +0x2ad, 0x14028759d\njnz     loc_1402874E0                                                  ; +0x2b0, 0x1402875a0\nxor     ecx, ecx                                                       ; +0x2b6, 0x1402875a6\ncall    MenuLayer__scene                                               ; +0x2b8, 0x1402875a8\nmov     rbx, rax                                                       ; +0x2bd, 0x1402875ad\nmov     rdx, rax                                                       ; +0x2c0, 0x1402875b0\njmp     short loc_1402875BF                                            ; +0x2c3, 0x1402875b3\nxor     ecx, ecx; jumptable 0000000140287333 default case, cases 4-6,8,10,11,13 ; +0x2c5, 0x1402875b5\ncall    MenuLayer__scene                                               ; +0x2c7, 0x1402875b7\nmov     rdx, rax                                                       ; +0x2cc, 0x1402875bc\nmovss   xmm0, cs:dword_140834F20                                       ; +0x2cf, 0x1402875bf\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x2d7, 0x1402875c7\nmov     rbx, rax                                                       ; +0x2dd, 0x1402875cd\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x2e0, 0x1402875d0\nmov     rdx, rbx                                                       ; +0x2e6, 0x1402875d6\nmov     rcx, rax                                                       ; +0x2e9, 0x1402875d9\ncall    cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0x2ec, 0x1402875dc\nmov     rcx, cs:qword_14090BFD0                                        ; +0x2f2, 0x1402875e2\ntest    rcx, rcx                                                       ; +0x2f9, 0x1402875e9\njnz     short loc_140287620                                            ; +0x2fc, 0x1402875ec\nmov     ecx, 6E8h; Size                                                ; +0x2fe, 0x1402875ee\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x303, 0x1402875f3\nmov     [rsp+58h+var_38], rax                                          ; +0x308, 0x1402875f8\nmov     rcx, rax                                                       ; +0x30d, 0x1402875fd\ncall    GameManager__GameManager                                       ; +0x310, 0x140287600\nnop                                                                    ; +0x315, 0x140287605\nmov     cs:qword_14090BFD0, rax                                        ; +0x316, 0x140287606\nmov     rcx, [rax]                                                     ; +0x31d, 0x14028760d\nmov     rdx, [rcx+48h]                                                 ; +0x320, 0x140287610\nmov     rcx, rax                                                       ; +0x324, 0x140287614\ncall    rdx                                                            ; +0x327, 0x140287617\nmov     rcx, cs:qword_14090BFD0                                        ; +0x329, 0x140287619\ncall    GameManager__fadeInMenuMusic                                   ; +0x330, 0x140287620\nmov     rcx, [rsp+58h+var_10]                                          ; +0x335, 0x140287625\nxor     rcx, rsp; StackCookie                                          ; +0x33a, 0x14028762a\ncall    __security_check_cookie                                        ; +0x33d, 0x14028762d\nmov     rbx, [rsp+58h+arg_10]                                          ; +0x342, 0x140287632\nadd     rsp, 50h                                                       ; +0x347, 0x140287637\npop     rdi                                                            ; +0x34b, 0x14028763b\nretn                                                                   ; +0x34c, 0x14028763c\nalign 20h                                                              ; +0x34d, 0x14028763d\ndd offset loc_140287335 - 140000000h; jump table for switch statement  ; +0x350, 0x140287640", "xrefs": ["EditorPauseLayer::onExitEditor @ 0x140182c79", "PlayLayer::onQuit @ 0x14051b2de", "<???> @ 0x14091d120"], "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"}