{"type": "func", "start": 5372805440, "end": 5372805664, "name": "LevelBrowserLayer::onSavedMode", "pseudocode": "// \n// LevelBrowserLayer::onSavedMode from 0x1403e8140 to 0x1403e8220 (224 bytes)\n// \n// 2 xrefs:\n// > LevelBrowserLayer::init @ 0x1403e32fe\n// > <???> @ 0x140924fd4\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:31:44 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall LevelBrowserLayer::onSavedMode(_QWORD *a1)\n{\n  int v2; // edi\n  int v3; // ebx\n  __int64 v4; // rax\n  __int64 v5; // rax\n  __int64 v6; // rdx\n  __int64 v7; // r8\n  __int64 v8; // r9\n  struct cocos2d::CCScene *v9; // rax\n  struct cocos2d::CCScene *v10; // rbx\n  __int64 v11; // rcx\n  cocos2d::CCDirector *v12; // rax\n  void *v13; // [rsp+30h] [rbp+8h]\n\n  if ( a1[83] )\n  {\n    (*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 992LL))(a1, 0);\n    (*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1008LL))(a1, 0);\n    v2 = *(_DWORD *)(a1[83] + 320LL);\n    v3 = 99;\n    if ( v2 == 99 )\n      v3 = 103;\n    v4 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v13 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v13);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v4 = qword_14090BFD0;\n    }\n    *(_DWORD *)(v4 + 1300) = v3;\n    v5 = GJSearchObject::create_2(v3);\n    if ( v2 == 99 )\n      *(_DWORD *)(v5 + 464) = 1;\n    v9 = (struct cocos2d::CCScene *)LevelBrowserLayer::scene(v5, v6, v7, v8);\n    v10 = cocos2d::CCTransitionFade::create(0.5, v9);\n    v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v11);\n    cocos2d::CCDirector::replaceScene(v12, v10);\n  }\n}", "assembly": "; \n; LevelBrowserLayer::onSavedMode from 0x1403e8140 to 0x1403e8220 (224 bytes)\n; \n; 2 xrefs:\n; > LevelBrowserLayer::init @ 0x1403e32fe\n; > <???> @ 0x140924fd4\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:31:44 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1403e8140\npush    rdi                                                            ; +0x5, 0x1403e8145\nsub     rsp, 20h                                                       ; +0x6, 0x1403e8146\nmov     rbx, rcx                                                       ; +0xa, 0x1403e814a\ncmp     qword ptr [rcx+298h], 0                                        ; +0xd, 0x1403e814d\njz      loc_1403E8215                                                  ; +0x15, 0x1403e8155\nmov     rax, [rcx]                                                     ; +0x1b, 0x1403e815b\nxor     edx, edx                                                       ; +0x1e, 0x1403e815e\ncall    qword ptr [rax+3E0h]                                           ; +0x20, 0x1403e8160\nmov     rax, [rbx]                                                     ; +0x26, 0x1403e8166\nxor     edx, edx                                                       ; +0x29, 0x1403e8169\nmov     rcx, rbx                                                       ; +0x2b, 0x1403e816b\ncall    qword ptr [rax+3F0h]                                           ; +0x2e, 0x1403e816e\nmov     rax, [rbx+298h]                                                ; +0x34, 0x1403e8174\nmov     edi, [rax+140h]                                                ; +0x3b, 0x1403e817b\nmov     ebx, 63h ; 'c'                                                 ; +0x41, 0x1403e8181\nmov     eax, 67h ; 'g'                                                 ; +0x46, 0x1403e8186\ncmp     edi, ebx                                                       ; +0x4b, 0x1403e818b\ncmovz   ebx, eax                                                       ; +0x4d, 0x1403e818d\nmov     rax, cs:qword_14090BFD0                                        ; +0x50, 0x1403e8190\ntest    rax, rax                                                       ; +0x57, 0x1403e8197\njnz     short loc_1403E81CB                                            ; +0x5a, 0x1403e819a\nmov     ecx, 6E8h; Size                                                ; +0x5c, 0x1403e819c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x61, 0x1403e81a1\nmov     [rsp+28h+arg_0], rax                                           ; +0x66, 0x1403e81a6\nmov     rcx, rax                                                       ; +0x6b, 0x1403e81ab\ncall    GameManager__GameManager                                       ; +0x6e, 0x1403e81ae\nnop                                                                    ; +0x73, 0x1403e81b3\nmov     cs:qword_14090BFD0, rax                                        ; +0x74, 0x1403e81b4\nmov     rdx, [rax]                                                     ; +0x7b, 0x1403e81bb\nmov     rcx, rax                                                       ; +0x7e, 0x1403e81be\ncall    qword ptr [rdx+48h]                                            ; +0x81, 0x1403e81c1\nmov     rax, cs:qword_14090BFD0                                        ; +0x84, 0x1403e81c4\nmov     [rax+514h], ebx                                                ; +0x8b, 0x1403e81cb\nmov     ecx, ebx                                                       ; +0x91, 0x1403e81d1\ncall    GJSearchObject__create_2                                       ; +0x93, 0x1403e81d3\ncmp     edi, 63h ; 'c'                                                 ; +0x98, 0x1403e81d8\njnz     short loc_1403E81E7                                            ; +0x9b, 0x1403e81db\nmov     dword ptr [rax+1D0h], 1                                        ; +0x9d, 0x1403e81dd\nmov     rcx, rax                                                       ; +0xa7, 0x1403e81e7\ncall    LevelBrowserLayer__scene                                       ; +0xaa, 0x1403e81ea\nmov     rdx, rax                                                       ; +0xaf, 0x1403e81ef\nmovss   xmm0, cs:dword_140834F20                                       ; +0xb2, 0x1403e81f2\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0xba, 0x1403e81fa\nmov     rbx, rax                                                       ; +0xc0, 0x1403e8200\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xc3, 0x1403e8203\nmov     rcx, rax                                                       ; +0xc9, 0x1403e8209\nmov     rdx, rbx                                                       ; +0xcc, 0x1403e820c\ncall    cs:?replaceScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::replaceScene(cocos2d::CCScene *) ; +0xcf, 0x1403e820f\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xd5, 0x1403e8215\nadd     rsp, 20h                                                       ; +0xda, 0x1403e821a\npop     rdi                                                            ; +0xde, 0x1403e821e\nretn                                                                   ; +0xdf, 0x1403e821f", "xrefs": ["LevelBrowserLayer::init @ 0x1403e32fe", "<???> @ 0x140924fd4"], "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"}