{"type": "func", "start": 5370292224, "end": 5370292519, "name": "EditorPauseLayer::onSave", "pseudocode": "// \n// EditorPauseLayer::onSave from 0x140182800 to 0x140182927 (295 bytes)\n// \n// 2 xrefs:\n// > EditorPauseLayer::customSetup @ 0x140181759\n// > <???> @ 0x140918c5c\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::onSave(__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    v1 = a1 + 552;\n    if ( !a1 )\n      v1 = 0;\n    v4 = 0;\n    *(_QWORD *)&v4 = sub_14003D460(0x20u);\n    v5 = 23;\n    v6 = 31;\n    strcpy((char *)v4, \"<cy>Save</c> the level?\");\n    v2 = sub_14003F4F0((__int64)v7, (__int64)&v4);\n    v3 = FLAlertLayer::create(\n           v1,\n           (int)\"Save\",\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, 3);\n    (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v3 + 1064LL))(v3);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onSave from 0x140182800 to 0x140182927 (295 bytes)\n; \n; 2 xrefs:\n; > EditorPauseLayer::customSetup @ 0x140181759\n; > <???> @ 0x140918c5c\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, 0x140182800\nsub     rsp, 90h                                                       ; +0x2, 0x140182802\ncmp     byte ptr [rcx+238h], 0                                         ; +0x9, 0x140182809\njnz     loc_14018291E                                                  ; +0x10, 0x140182810\nlea     rbx, [rcx+228h]                                                ; +0x16, 0x140182816\nxor     eax, eax                                                       ; +0x1d, 0x14018281d\ntest    rcx, rcx                                                       ; +0x1f, 0x14018281f\ncmovz   rbx, rax                                                       ; +0x22, 0x140182822\nxorps   xmm0, xmm0                                                     ; +0x26, 0x140182826\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x29, 0x140182829\nmov     [rsp+98h+var_38], rax                                          ; +0x2e, 0x14018282e\nmov     [rsp+98h+var_30], rax                                          ; +0x33, 0x140182833\nmov     ecx, 20h ; ' '                                                 ; +0x38, 0x140182838\ncall    sub_14003D460                                                  ; +0x3d, 0x14018283d\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x42, 0x140182842\nmov     [rsp+98h+var_38], 17h                                          ; +0x47, 0x140182847\nmov     [rsp+98h+var_30], 1Fh                                          ; +0x50, 0x140182850\nmovups  xmm0, cs:xmmword_14074A648                                     ; +0x59, 0x140182859\nmovups  xmmword ptr [rax], xmm0                                        ; +0x60, 0x140182860\nmov     ecx, cs:dword_14074A658                                        ; +0x63, 0x140182863\nmov     [rax+10h], ecx                                                 ; +0x69, 0x140182869\nmovzx   ecx, cs:word_14074A65C                                         ; +0x6c, 0x14018286c\nmov     [rax+14h], cx                                                  ; +0x73, 0x140182873\nmovzx   ecx, cs:byte_14074A65E                                         ; +0x77, 0x140182877\nmov     [rax+16h], cl                                                  ; +0x7e, 0x14018287e\nmov     byte ptr [rax+17h], 0                                          ; +0x81, 0x140182881\nlea     rax, [rsp+98h+var_48]                                          ; +0x85, 0x140182885\nmov     [rsp+98h+arg_0], rax                                           ; +0x8a, 0x14018288a\nlea     rdx, [rsp+98h+var_48]                                          ; +0x92, 0x140182892\nlea     rcx, [rsp+98h+var_28]                                          ; +0x97, 0x140182897\ncall    sub_14003F4F0                                                  ; +0x9c, 0x14018289c\nmovss   xmm0, cs:flt_140835080                                         ; +0xa1, 0x1401828a1\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xa9, 0x1401828a9\nxorps   xmm1, xmm1                                                     ; +0xaf, 0x1401828af\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xb2, 0x1401828b2\nmov     [rsp+98h+var_68], 0                                            ; +0xb8, 0x1401828b8\nmovss   xmm0, cs:dword_1408359A4                                       ; +0xbd, 0x1401828bd\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xc5, 0x1401828c5\nlea     rcx, aYes_0; \"YES\"                                             ; +0xcb, 0x1401828cb\nmov     [rsp+98h+var_78], rcx                                          ; +0xd2, 0x1401828d2\nlea     r9, unk_14073A058                                              ; +0xd7, 0x1401828d7\nmov     r8, rax                                                        ; +0xde, 0x1401828de\nlea     rdx, aSave; \"Save\"                                             ; +0xe1, 0x1401828e1\nmov     rcx, rbx                                                       ; +0xe8, 0x1401828e8\ncall    FLAlertLayer__create                                           ; +0xeb, 0x1401828eb\nmov     rbx, rax                                                       ; +0xf0, 0x1401828f0\nlea     rcx, [rsp+98h+var_48]                                          ; +0xf3, 0x1401828f3\ncall    sub_14003D310                                                  ; +0xf8, 0x1401828f8\nmov     rcx, [rbx]                                                     ; +0xfd, 0x1401828fd\nmov     r8, [rcx+40h]                                                  ; +0x100, 0x140182900\nmov     edx, 3                                                         ; +0x104, 0x140182904\nmov     rcx, rbx                                                       ; +0x109, 0x140182909\ncall    r8                                                             ; +0x10c, 0x14018290c\nmov     rcx, [rbx]                                                     ; +0x10f, 0x14018290f\nmov     rdx, [rcx+428h]                                                ; +0x112, 0x140182912\nmov     rcx, rbx                                                       ; +0x119, 0x140182919\ncall    rdx                                                            ; +0x11c, 0x14018291c\nadd     rsp, 90h                                                       ; +0x11e, 0x14018291e\npop     rbx                                                            ; +0x125, 0x140182925\nretn                                                                   ; +0x126, 0x140182926", "xrefs": ["EditorPauseLayer::customSetup @ 0x140181759", "<???> @ 0x140918c5c"], "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"}