{"type": "func", "start": 5369618736, "end": 5369619030, "name": "EditorPauseLayer::onSave", "pseudocode": "// \n// EditorPauseLayer::onSave from 0x1400de130 to 0x1400de256 (294 bytes)\n// \n// 2 xrefs:\n// > EditorPauseLayer::customSetup @ 0x1400da72e\n// > <???> @ 0x1406c8a78\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nvoid EditorPauseLayer::onSave(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  int v2; // ebx\n  __int64 v3; // rax\n  FLAlertLayer *v4; // rbx\n  __int128 v5; // [rsp+50h] [rbp-48h] BYREF\n  __int64 v6; // [rsp+60h] [rbp-38h]\n  __int64 v7; // [rsp+68h] [rbp-30h]\n  _BYTE v8[40]; // [rsp+70h] [rbp-28h] BYREF\n\n  if ( !a1->m_saved )\n  {\n    v2 = (_DWORD)a1 + 552;\n    if ( !a1 )\n      v2 = 0;\n    v5 = 0;\n    *(_QWORD *)&v5 = sub_14003AA10(0x20u);\n    v6 = 23;\n    v7 = 31;\n    strcpy((char *)v5, \"<cy>Save</c> the level?\");\n    v3 = sub_14003BDB0((__int64)v8, (__int64)&v5);\n    v4 = FLAlertLayer::create(\n           v2,\n           (int)\"Save\",\n           v3,\n           (__int64)&unk_140547160,\n           (__int64)\"YES\",\n           1133903872,\n           0,\n           0,\n           1065353216);\n    sub_14003A830((__int64)&v5);\n    v4->setTag(v4, 3);\n    v4->show(v4);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onSave from 0x1400de130 to 0x1400de256 (294 bytes)\n; \n; 2 xrefs:\n; > EditorPauseLayer::customSetup @ 0x1400da72e\n; > <???> @ 0x1406c8a78\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x1400de130\nsub     rsp, 90h                                                       ; +0x2, 0x1400de132\ncmp     byte ptr [rcx+230h], 0                                         ; +0x9, 0x1400de139\njnz     loc_1400DE24D                                                  ; +0x10, 0x1400de140\nlea     rbx, [rcx+228h]                                                ; +0x16, 0x1400de146\nxor     eax, eax                                                       ; +0x1d, 0x1400de14d\ntest    rcx, rcx                                                       ; +0x1f, 0x1400de14f\ncmovz   rbx, rax                                                       ; +0x22, 0x1400de152\nxorps   xmm0, xmm0                                                     ; +0x26, 0x1400de156\nmovups  [rsp+98h+var_48], xmm0                                         ; +0x29, 0x1400de159\nmov     [rsp+98h+var_38], rax                                          ; +0x2e, 0x1400de15e\nmov     [rsp+98h+var_30], 0Fh                                          ; +0x33, 0x1400de163\nlea     ecx, [rax+20h]                                                 ; +0x3c, 0x1400de16c\ncall    sub_14003AA10                                                  ; +0x3f, 0x1400de16f\nmov     rdx, rax                                                       ; +0x44, 0x1400de174\nmov     qword ptr [rsp+98h+var_48], rax                                ; +0x47, 0x1400de177\nmov     [rsp+98h+var_38], 17h                                          ; +0x4c, 0x1400de17c\nmov     [rsp+98h+var_30], 1Fh                                          ; +0x55, 0x1400de185\nmovups  xmm0, cs:xmmword_140551FD8                                     ; +0x5e, 0x1400de18e\nmovups  xmmword ptr [rax], xmm0                                        ; +0x65, 0x1400de195\nmov     ecx, cs:dword_140551FE8                                        ; +0x68, 0x1400de198\nmov     [rax+10h], ecx                                                 ; +0x6e, 0x1400de19e\nmovzx   ecx, cs:word_140551FEC                                         ; +0x71, 0x1400de1a1\nmov     [rax+14h], cx                                                  ; +0x78, 0x1400de1a8\nmovzx   eax, cs:byte_140551FEE                                         ; +0x7c, 0x1400de1ac\nmov     [rdx+16h], al                                                  ; +0x83, 0x1400de1b3\nmov     byte ptr [rdx+17h], 0                                          ; +0x86, 0x1400de1b6\nlea     rax, [rsp+98h+var_48]                                          ; +0x8a, 0x1400de1ba\nmov     [rsp+98h+arg_0], rax                                           ; +0x8f, 0x1400de1bf\nlea     rdx, [rsp+98h+var_48]                                          ; +0x97, 0x1400de1c7\nlea     rcx, [rsp+98h+var_28]                                          ; +0x9c, 0x1400de1cc\ncall    sub_14003BDB0                                                  ; +0xa1, 0x1400de1d1\nmovss   xmm0, cs:flt_140622C24                                         ; +0xa6, 0x1400de1d6\nmovss   [rsp+98h+var_58], xmm0                                         ; +0xae, 0x1400de1de\nxorps   xmm1, xmm1                                                     ; +0xb4, 0x1400de1e4\nmovss   [rsp+98h+var_60], xmm1                                         ; +0xb7, 0x1400de1e7\nmov     [rsp+98h+var_68], 0                                            ; +0xbd, 0x1400de1ed\nmovss   xmm0, cs:dword_14062343C                                       ; +0xc2, 0x1400de1f2\nmovss   [rsp+98h+var_70], xmm0                                         ; +0xca, 0x1400de1fa\nlea     rcx, aYes_0; \"YES\"                                             ; +0xd0, 0x1400de200\nmov     [rsp+98h+var_78], rcx                                          ; +0xd7, 0x1400de207\nlea     r9, unk_140547160                                              ; +0xdc, 0x1400de20c\nmov     r8, rax                                                        ; +0xe3, 0x1400de213\nlea     rdx, aSave; \"Save\"                                             ; +0xe6, 0x1400de216\nmov     rcx, rbx                                                       ; +0xed, 0x1400de21d\ncall    FLAlertLayer__create                                           ; +0xf0, 0x1400de220\nmov     rbx, rax                                                       ; +0xf5, 0x1400de225\nlea     rcx, [rsp+98h+var_48]                                          ; +0xf8, 0x1400de228\ncall    sub_14003A830                                                  ; +0xfd, 0x1400de22d\nmov     r8, [rbx]                                                      ; +0x102, 0x1400de232\nmov     edx, 3                                                         ; +0x105, 0x1400de235\nmov     rcx, rbx                                                       ; +0x10a, 0x1400de23a\ncall    qword ptr [r8+40h]                                             ; +0x10d, 0x1400de23d\nmov     rdx, [rbx]                                                     ; +0x111, 0x1400de241\nmov     rcx, rbx                                                       ; +0x114, 0x1400de244\ncall    qword ptr [rdx+410h]                                           ; +0x117, 0x1400de247\nadd     rsp, 90h                                                       ; +0x11d, 0x1400de24d\npop     rbx                                                            ; +0x124, 0x1400de254\nretn                                                                   ; +0x125, 0x1400de255", "xrefs": ["EditorPauseLayer::customSetup @ 0x1400da72e", "<???> @ 0x1406c8a78"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}