{"type": "func", "start": 5370293376, "end": 5370293733, "name": "EditorPauseLayer::onExitNoSave", "pseudocode": "// \n// EditorPauseLayer::onExitNoSave from 0x140182c80 to 0x140182de5 (357 bytes)\n// \n// 2 xrefs:\n// > EditorPauseLayer::customSetup @ 0x1401817bf\n// > <???> @ 0x140918c8c\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\n// Hidden C++ exception states: #wind=1\nvoid __fastcall EditorPauseLayer::onExitNoSave(__int64 a1)\n{\n  int v1; // ebx\n  __int64 v2; // rax\n  cocos2d::CCObject *v3; // rbx\n  __int128 v4; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v5; // [rsp+60h] [rbp-38h]\n  __int64 v6; // [rsp+68h] [rbp-30h]\n  _BYTE v7[40]; // [rsp+70h] [rbp-28h] BYREF\n\n  if ( !*(_BYTE *)(a1 + 568) )\n  {\n    if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 576) + 2168LL) + 1220LL) == 2 )\n    {\n      v1 = a1 + 552;\n      if ( !a1 )\n        v1 = 0;\n      v4 = 0;\n      *(_QWORD *)&v4 = sub_14003D460(0x50u);\n      v5 = 70;\n      v6 = 79;\n      strcpy((char *)v4, \"<cy>Exit</c> without saving? All unsaved changes will be <cr>lost</c>!\");\n      v2 = sub_14003F4F0((__int64)v7, (__int64)&v4);\n      v3 = FLAlertLayer::create(\n             v1,\n             (int)\"Exit\",\n             v2,\n             (__int64)&unk_14073A058,\n             (__int64)\"YES\",\n             1133903872,\n             0,\n             0,\n             1065353216);\n      sub_14003D310((__int64)&v4);\n      (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 64LL))(v3, 1);\n      (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);\n    }\n    else\n    {\n      EditorPauseLayer::onExitEditor(a1);\n    }\n  }\n}", "assembly": "; \n; EditorPauseLayer::onExitNoSave from 0x140182c80 to 0x140182de5 (357 bytes)\n; \n; 2 xrefs:\n; > EditorPauseLayer::customSetup @ 0x1401817bf\n; > <???> @ 0x140918c8c\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, 0x140182c80\nsub     rsp, 90h                                                       ; +0x2, 0x140182c82\ncmp     byte ptr [rcx+238h], 0                                         ; +0x9, 0x140182c89\njnz     loc_140182DDC                                                  ; +0x10, 0x140182c90\nmov     rax, [rcx+240h]                                                ; +0x16, 0x140182c96\nmov     rdx, [rax+878h]                                                ; +0x1d, 0x140182c9d\ncmp     dword ptr [rdx+4C4h], 2                                        ; +0x24, 0x140182ca4\njz      short loc_140182CBA                                            ; +0x2b, 0x140182cab\nadd     rsp, 90h                                                       ; +0x2d, 0x140182cad\npop     rbx                                                            ; +0x34, 0x140182cb4\njmp     EditorPauseLayer__onExitEditor                                 ; +0x35, 0x140182cb5\nlea     rbx, [rcx+228h]                                                ; +0x3a, 0x140182cba\nxor     eax, eax                                                       ; +0x41, 0x140182cc1\ntest    rcx, rcx                                                       ; +0x43, 0x140182cc3\ncmovz   rbx, rax                                                       ; +0x46, 0x140182cc6\nxorps   xmm0, xmm0                                                     ; +0x4a, 0x140182cca\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x4d, 0x140182ccd\nmov     [rsp+98h+var_38], rax                                          ; +0x52, 0x140182cd2\nmov     [rsp+98h+var_30], rax                                          ; +0x57, 0x140182cd7\nmov     ecx, 50h ; 'P'                                                 ; +0x5c, 0x140182cdc\ncall    sub_14003D460                                                  ; +0x61, 0x140182ce1\nmov     rcx, rax                                                       ; +0x66, 0x140182ce6\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x69, 0x140182ce9\nmov     [rsp+98h+var_38], 46h ; 'F'                                    ; +0x6e, 0x140182cee\nmov     [rsp+98h+var_30], 4Fh ; 'O'                                    ; +0x77, 0x140182cf7\nmovaps  xmm0, cs:xmmword_14074A5F0                                     ; +0x80, 0x140182d00\nmovups  xmmword ptr [rax], xmm0                                        ; +0x87, 0x140182d07\nmovaps  xmm1, cs:xmmword_14074A600                                     ; +0x8a, 0x140182d0a\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x91, 0x140182d11\nmovaps  xmm0, cs:xmmword_14074A610                                     ; +0x95, 0x140182d15\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x9c, 0x140182d1c\nmovaps  xmm1, cs:xmmword_14074A620                                     ; +0xa0, 0x140182d20\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0xa7, 0x140182d27\nmov     eax, cs:dword_14074A630                                        ; +0xab, 0x140182d2b\nmov     [rcx+40h], eax                                                 ; +0xb1, 0x140182d31\nmovzx   eax, cs:word_14074A634                                         ; +0xb4, 0x140182d34\nmov     [rcx+44h], ax                                                  ; +0xbb, 0x140182d3b\nmov     byte ptr [rcx+46h], 0                                          ; +0xbf, 0x140182d3f\nlea     rax, [rsp+98h+var_48]                                          ; +0xc3, 0x140182d43\nmov     [rsp+98h+arg_0], rax                                           ; +0xc8, 0x140182d48\nlea     rdx, [rsp+98h+var_48]                                          ; +0xd0, 0x140182d50\nlea     rcx, [rsp+98h+var_28]                                          ; +0xd5, 0x140182d55\ncall    sub_14003F4F0                                                  ; +0xda, 0x140182d5a\nmovss   xmm0, cs:flt_140835080                                         ; +0xdf, 0x140182d5f\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xe7, 0x140182d67\nxorps   xmm1, xmm1                                                     ; +0xed, 0x140182d6d\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xf0, 0x140182d70\nmov     [rsp+98h+var_68], 0                                            ; +0xf6, 0x140182d76\nmovss   xmm0, cs:dword_1408359A4                                       ; +0xfb, 0x140182d7b\nmovss   [rsp+98h+var_70], xmm0                                         ; +0x103, 0x140182d83\nlea     rcx, aYes_0; \"YES\"                                             ; +0x109, 0x140182d89\nmov     [rsp+98h+var_78], rcx                                          ; +0x110, 0x140182d90\nlea     r9, unk_14073A058                                              ; +0x115, 0x140182d95\nmov     r8, rax                                                        ; +0x11c, 0x140182d9c\nlea     rdx, aExit; \"Exit\"                                             ; +0x11f, 0x140182d9f\nmov     rcx, rbx                                                       ; +0x126, 0x140182da6\ncall    FLAlertLayer__create                                           ; +0x129, 0x140182da9\nmov     rbx, rax                                                       ; +0x12e, 0x140182dae\nlea     rcx, [rsp+98h+var_48]                                          ; +0x131, 0x140182db1\ncall    sub_14003D310                                                  ; +0x136, 0x140182db6\nmov     rcx, [rbx]                                                     ; +0x13b, 0x140182dbb\nmov     r8, [rcx+40h]                                                  ; +0x13e, 0x140182dbe\nmov     edx, 1                                                         ; +0x142, 0x140182dc2\nmov     rcx, rbx                                                       ; +0x147, 0x140182dc7\ncall    r8                                                             ; +0x14a, 0x140182dca\nmov     rcx, [rbx]                                                     ; +0x14d, 0x140182dcd\nmov     rdx, [rcx+428h]                                                ; +0x150, 0x140182dd0\nmov     rcx, rbx                                                       ; +0x157, 0x140182dd7\ncall    rdx                                                            ; +0x15a, 0x140182dda\nadd     rsp, 90h                                                       ; +0x15c, 0x140182ddc\npop     rbx                                                            ; +0x163, 0x140182de3\nretn                                                                   ; +0x164, 0x140182de4", "xrefs": ["EditorPauseLayer::customSetup @ 0x1401817bf", "<???> @ 0x140918c8c"], "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"}