{"type": "func", "start": 5370293040, "end": 5370293133, "name": "EditorPauseLayer::onSaveAndExit", "pseudocode": "// \n// EditorPauseLayer::onSaveAndExit from 0x140182b30 to 0x140182b8d (93 bytes)\n// \n// 3 xrefs:\n// > EditorPauseLayer::customSetup @ 0x1401816f9\n// > <???> @ 0x140918c68\n// > <???> @ 0x140918c74\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:27:37 +0000\n// \n\nvoid __fastcall EditorPauseLayer::onSaveAndExit(__int64 a1)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rax\n\n  if ( !*(_BYTE *)(a1 + 568) )\n  {\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);\n    *(_BYTE *)(a1 + 568) = 1;\n    v3 = LocalLevelManager::sharedState(v2);\n    GManager::waitForSave(v3, 30.0);\n    if ( *(_QWORD *)(a1 + 576) )\n      LevelEditorLayer::saveLevel();\n    EditorPauseLayer::onExitEditor(a1);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onSaveAndExit from 0x140182b30 to 0x140182b8d (93 bytes)\n; \n; 3 xrefs:\n; > EditorPauseLayer::customSetup @ 0x1401816f9\n; > <???> @ 0x140918c68\n; > <???> @ 0x140918c74\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:27:37 +0000\n; \npush    rbx                                                            ; +0x0, 0x140182b30\nsub     rsp, 20h                                                       ; +0x2, 0x140182b32\ncmp     byte ptr [rcx+238h], 0                                         ; +0x6, 0x140182b36\nmov     rbx, rcx                                                       ; +0xd, 0x140182b3d\njnz     short loc_140182B87                                            ; +0x10, 0x140182b40\nmov     rax, [rcx]                                                     ; +0x12, 0x140182b42\nxor     edx, edx                                                       ; +0x15, 0x140182b45\ncall    qword ptr [rax+3E0h]                                           ; +0x17, 0x140182b47\nmov     byte ptr [rbx+238h], 1                                         ; +0x1d, 0x140182b4d\ncall    LocalLevelManager__sharedState                                 ; +0x24, 0x140182b54\nmovsd   xmm1, cs:qword_140835380                                       ; +0x29, 0x140182b59\nmov     rcx, rax                                                       ; +0x31, 0x140182b61\ncall    GManager__waitForSave                                          ; +0x34, 0x140182b64\nmov     rcx, [rbx+240h]                                                ; +0x39, 0x140182b69\ntest    rcx, rcx                                                       ; +0x40, 0x140182b70\njz      short loc_140182B7A                                            ; +0x43, 0x140182b73\ncall    LevelEditorLayer__saveLevel                                    ; +0x45, 0x140182b75\nmov     rcx, rbx                                                       ; +0x4a, 0x140182b7a\nadd     rsp, 20h                                                       ; +0x4d, 0x140182b7d\npop     rbx                                                            ; +0x51, 0x140182b81\njmp     EditorPauseLayer__onExitEditor                                 ; +0x52, 0x140182b82\nadd     rsp, 20h                                                       ; +0x57, 0x140182b87\npop     rbx                                                            ; +0x5b, 0x140182b8b\nretn                                                                   ; +0x5c, 0x140182b8c", "xrefs": ["EditorPauseLayer::customSetup @ 0x1401816f9", "<???> @ 0x140918c68", "<???> @ 0x140918c74"], "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"}