{"type": "func", "start": 4297581776, "end": 4297582105, "name": "EditorPauseLayer::onExitNoSave", "pseudocode": "// \n// EditorPauseLayer::onExitNoSave from 0x10027e4d0 to 0x10027e619 (329 bytes)\n// \n// 1 xrefs:\n// > EditorPauseLayer::customSetup @ 0x10027d4f0\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:42 +0000\n// \n\nvoid __fastcall EditorPauseLayer::onExitNoSave(__int64 a1, double a2)\n{\n  __int64 v2; // rbx\n  __int64 v3; // rax\n  __int64 v4; // rax\n  __int64 v5; // rdx\n  double v6; // xmm0_8\n  __int64 v7; // rax\n  _QWORD v8[2]; // [rsp+0h] [rbp-20h] BYREF\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  if ( !*(_BYTE *)(a1 + 568) )\n  {\n    if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 576) + 1936LL) + 1140LL) == 2 )\n    {\n      __p = operator new(0x48u);\n      v8[0] = 73;\n      v8[1] = 70;\n      strcpy((char *)__p, \"<cy>Exit</c> without saving? All unsaved changes will be <cr>lost</c>!\");\n      v2 = FLAlertLayer::create_1(a1 + 552, \"Exit\", v8, \"NO\", \"YES\", 300.0);\n      if ( (v8[0] & 1) != 0 )\n        operator delete(__p);\n      (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 72LL))(v2, 1);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1312LL))(v2);\n    }\n    else\n    {\n      v3 = EditorSFXManager::sharedState(a1);\n      EditorSFXManager::playAction_1(v3, 224);\n      sub_1000A9AF0(a2);\n      v4 = FMODAudioEngine::sharedEngine(a2);\n      FMODAudioEngine::unloadAllEffects(v4);\n      CCBlockLayer::decrementForcePrio(a1);\n      *(_QWORD *)&v6 = GameManager::sharedState(a1, 224, v5).u64[0];\n      GameManager::returnToLastScene(v7, *(_QWORD *)(*(_QWORD *)(a1 + 576) + 1936LL), v6);\n    }\n  }\n}", "assembly": "; \n; EditorPauseLayer::onExitNoSave from 0x10027e4d0 to 0x10027e619 (329 bytes)\n; \n; 1 xrefs:\n; > EditorPauseLayer::customSetup @ 0x10027d4f0\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:42 +0000\n; \npush    rbp                                                            ; +0x0, 0x10027e4d0\nmov     rbp, rsp                                                       ; +0x1, 0x10027e4d1\npush    rbx                                                            ; +0x4, 0x10027e4d4\nsub     rsp, 18h                                                       ; +0x5, 0x10027e4d5\ncmp     byte ptr [rdi+238h], 0                                         ; +0x9, 0x10027e4d9\njnz     loc_10027E5BB                                                  ; +0x10, 0x10027e4e0\nmov     rax, [rdi+240h]                                                ; +0x16, 0x10027e4e6\nmov     rax, [rax+790h]                                                ; +0x1d, 0x10027e4ed\ncmp     dword ptr [rax+474h], 2                                        ; +0x24, 0x10027e4f4\njnz     loc_10027E5C2                                                  ; +0x2b, 0x10027e4fb\nadd     rdi, 228h                                                      ; +0x31, 0x10027e501\nmov     rbx, rdi                                                       ; +0x38, 0x10027e508\nmov     edi, 48h ; 'H'; __sz                                           ; +0x3b, 0x10027e50b\ncall    __Znwm; operator new(ulong)                                    ; +0x40, 0x10027e510\nmov     [rbp+__p], rax                                                 ; +0x45, 0x10027e515\nmov     [rbp+var_20], 49h ; 'I'                                        ; +0x49, 0x10027e519\nmov     [rbp+var_18], 46h ; 'F'                                        ; +0x51, 0x10027e521\nmov     rcx, 213E632F3C74736Fh                                         ; +0x59, 0x10027e529\nmov     [rax+3Eh], rcx                                                 ; +0x63, 0x10027e533\nmovups  xmm0, xmmword ptr cs:aCyExitCWithout+30h; \" will be <cr>lost</c>!\" ; +0x67, 0x10027e537\nmovups  xmmword ptr [rax+30h], xmm0                                    ; +0x6e, 0x10027e53e\nmovups  xmm0, xmmword ptr cs:aCyExitCWithout+20h; \" unsaved changes will be <cr>lost</c>!\" ; +0x72, 0x10027e542\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x79, 0x10027e549\nmovups  xmm0, xmmword ptr cs:aCyExitCWithout+10h; \"hout saving? All unsaved changes will b\"... ; +0x7d, 0x10027e54d\nmovups  xmmword ptr [rax+10h], xmm0                                    ; +0x84, 0x10027e554\nmovups  xmm0, xmmword ptr cs:aCyExitCWithout; \"<cy>Exit</c> without saving? All unsave\"... ; +0x88, 0x10027e558\nmovups  xmmword ptr [rax], xmm0                                        ; +0x8f, 0x10027e55f\nmov     byte ptr [rax+46h], 0                                          ; +0x92, 0x10027e562\nlea     rsi, aExit; \"Exit\"                                             ; +0x96, 0x10027e566\nlea     rcx, aNo; \"NO\"                                                 ; +0x9d, 0x10027e56d\nlea     r8, aYes_0; \"YES\"                                              ; +0xa4, 0x10027e574\nlea     rdx, [rbp+var_20]                                              ; +0xab, 0x10027e57b\nmovss   xmm0, cs:dword_100A03734                                       ; +0xaf, 0x10027e57f\nmov     rdi, rbx                                                       ; +0xb7, 0x10027e587\ncall    FLAlertLayer__create_1                                         ; +0xba, 0x10027e58a\nmov     rbx, rax                                                       ; +0xbf, 0x10027e58f\ntest    byte ptr [rbp+var_20], 1                                       ; +0xc2, 0x10027e592\njz      short loc_10027E5A1                                            ; +0xc6, 0x10027e596\nmov     rdi, [rbp+__p]; __p                                            ; +0xc8, 0x10027e598\ncall    __ZdlPv; operator delete(void *)                               ; +0xcc, 0x10027e59c\nmov     rax, [rbx]                                                     ; +0xd1, 0x10027e5a1\nmov     rdi, rbx                                                       ; +0xd4, 0x10027e5a4\nmov     esi, 1                                                         ; +0xd7, 0x10027e5a7\ncall    qword ptr [rax+48h]                                            ; +0xdc, 0x10027e5ac\nmov     rax, [rbx]                                                     ; +0xdf, 0x10027e5af\nmov     rdi, rbx                                                       ; +0xe2, 0x10027e5b2\ncall    qword ptr [rax+520h]                                           ; +0xe5, 0x10027e5b5\nadd     rsp, 18h                                                       ; +0xeb, 0x10027e5bb\npop     rbx                                                            ; +0xef, 0x10027e5bf\npop     rbp                                                            ; +0xf0, 0x10027e5c0\nretn                                                                   ; +0xf1, 0x10027e5c1\nmov     rbx, rdi                                                       ; +0xf2, 0x10027e5c2\ncall    EditorSFXManager__sharedState                                  ; +0xf5, 0x10027e5c5\nmov     rdi, rax                                                       ; +0xfa, 0x10027e5ca\nmov     esi, 0E0h                                                      ; +0xfd, 0x10027e5cd\ncall    EditorSFXManager__playAction_1                                 ; +0x102, 0x10027e5d2\nmov     rdi, [rbx+240h]                                                ; +0x107, 0x10027e5d7\ncall    sub_1000A9AF0                                                  ; +0x10e, 0x10027e5de\ncall    FMODAudioEngine__sharedEngine                                  ; +0x113, 0x10027e5e3\nmov     rdi, rax                                                       ; +0x118, 0x10027e5e8\ncall    FMODAudioEngine__unloadAllEffects                              ; +0x11b, 0x10027e5eb\nmov     rdi, rbx                                                       ; +0x120, 0x10027e5f0\ncall    CCBlockLayer__decrementForcePrio                               ; +0x123, 0x10027e5f3\ncall    GameManager__sharedState                                       ; +0x128, 0x10027e5f8\nmov     rcx, [rbx+240h]                                                ; +0x12d, 0x10027e5fd\nmov     rsi, [rcx+790h]                                                ; +0x134, 0x10027e604\nmov     rdi, rax                                                       ; +0x13b, 0x10027e60b\nadd     rsp, 18h                                                       ; +0x13e, 0x10027e60e\npop     rbx                                                            ; +0x142, 0x10027e612\npop     rbp                                                            ; +0x143, 0x10027e613\njmp     GameManager__returnToLastScene                                 ; +0x144, 0x10027e614", "xrefs": ["EditorPauseLayer::customSetup @ 0x10027d4f0"], "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"}