{"type": "func", "start": 4297581568, "end": 4297581750, "name": "EditorPauseLayer::onSave", "pseudocode": "// \n// EditorPauseLayer::onSave from 0x10027e400 to 0x10027e4b6 (182 bytes)\n// \n// 1 xrefs:\n// > EditorPauseLayer::customSetup @ 0x10027d491\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::onSave(__int64 a1)\n{\n  __int64 v1; // rbx\n  _QWORD v2[2]; // [rsp+0h] [rbp-20h] BYREF\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  if ( !*(_BYTE *)(a1 + 568) )\n  {\n    __p = operator new(0x1Au);\n    v2[0] = 27;\n    v2[1] = 23;\n    strcpy((char *)__p, \"<cy>Save</c> the level?\");\n    v1 = FLAlertLayer::create_1(a1 + 552, \"Save\", v2, \"NO\", \"YES\", 300.0);\n    if ( (v2[0] & 1) != 0 )\n      operator delete(__p);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v1 + 72LL))(v1, 3);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 1312LL))(v1);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onSave from 0x10027e400 to 0x10027e4b6 (182 bytes)\n; \n; 1 xrefs:\n; > EditorPauseLayer::customSetup @ 0x10027d491\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, 0x10027e400\nmov     rbp, rsp                                                       ; +0x1, 0x10027e401\npush    rbx                                                            ; +0x4, 0x10027e404\nsub     rsp, 18h                                                       ; +0x5, 0x10027e405\ncmp     byte ptr [rdi+238h], 0                                         ; +0x9, 0x10027e409\njnz     loc_10027E4AF                                                  ; +0x10, 0x10027e410\nadd     rdi, 228h                                                      ; +0x16, 0x10027e416\nmov     rbx, rdi                                                       ; +0x1d, 0x10027e41d\nmov     edi, 1Ah; __sz                                                 ; +0x20, 0x10027e420\ncall    __Znwm; operator new(ulong)                                    ; +0x25, 0x10027e425\nmov     [rbp+__p], rax                                                 ; +0x2a, 0x10027e42a\nmov     [rbp+var_20], 1Bh                                              ; +0x2e, 0x10027e42e\nmov     [rbp+var_18], 17h                                              ; +0x36, 0x10027e436\nmov     rcx, 3F6C6576656C2065h                                         ; +0x3e, 0x10027e43e\nmov     [rax+0Fh], rcx                                                 ; +0x48, 0x10027e448\nmovups  xmm0, xmmword ptr cs:aCySaveCTheLeve; \"<cy>Save</c> the level?\" ; +0x4c, 0x10027e44c\nmovups  xmmword ptr [rax], xmm0                                        ; +0x53, 0x10027e453\nmov     byte ptr [rax+17h], 0                                          ; +0x56, 0x10027e456\nlea     rsi, aSave; \"Save\"                                             ; +0x5a, 0x10027e45a\nlea     rcx, aNo; \"NO\"                                                 ; +0x61, 0x10027e461\nlea     r8, aYes_0; \"YES\"                                              ; +0x68, 0x10027e468\nlea     rdx, [rbp+var_20]                                              ; +0x6f, 0x10027e46f\nmovss   xmm0, cs:dword_100A03734                                       ; +0x73, 0x10027e473\nmov     rdi, rbx                                                       ; +0x7b, 0x10027e47b\ncall    FLAlertLayer__create_1                                         ; +0x7e, 0x10027e47e\nmov     rbx, rax                                                       ; +0x83, 0x10027e483\ntest    byte ptr [rbp+var_20], 1                                       ; +0x86, 0x10027e486\njz      short loc_10027E495                                            ; +0x8a, 0x10027e48a\nmov     rdi, [rbp+__p]; __p                                            ; +0x8c, 0x10027e48c\ncall    __ZdlPv; operator delete(void *)                               ; +0x90, 0x10027e490\nmov     rax, [rbx]                                                     ; +0x95, 0x10027e495\nmov     rdi, rbx                                                       ; +0x98, 0x10027e498\nmov     esi, 3                                                         ; +0x9b, 0x10027e49b\ncall    qword ptr [rax+48h]                                            ; +0xa0, 0x10027e4a0\nmov     rax, [rbx]                                                     ; +0xa3, 0x10027e4a3\nmov     rdi, rbx                                                       ; +0xa6, 0x10027e4a6\ncall    qword ptr [rax+520h]                                           ; +0xa9, 0x10027e4a9\nadd     rsp, 18h                                                       ; +0xaf, 0x10027e4af\npop     rbx                                                            ; +0xb3, 0x10027e4b3\npop     rbp                                                            ; +0xb4, 0x10027e4b4\nretn                                                                   ; +0xb5, 0x10027e4b5", "xrefs": ["EditorPauseLayer::customSetup @ 0x10027d491"], "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"}