{"type": "func", "start": 4297668832, "end": 4297669014, "name": "EditorPauseLayer::onSave", "pseudocode": "// \n// EditorPauseLayer::onSave from 0x1002938e0 to 0x100293996 (182 bytes)\n// \n// 1 xrefs:\n// > EditorPauseLayer::customSetup @ 0x100291b8a\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\nvoid __fastcall EditorPauseLayer::onSave(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v2; // rbx\n  _QWORD v3[2]; // [rsp+0h] [rbp-20h] BYREF\n  void *__p; // [rsp+10h] [rbp-10h]\n\n  if ( !a1->m_saved )\n  {\n    __p = operator new(0x1Au);\n    v3[0] = 27;\n    v3[1] = 23;\n    strcpy((char *)__p, \"<cy>Save</c> the level?\");\n    v2 = FLAlertLayer::create_1(&a1->FLAlertLayerProtocol, \"Save\", v3, \"NO\", \"YES\", 300.0);\n    if ( (v3[0] & 1) != 0 )\n      operator delete(__p);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 72LL))(v2, 3);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1288LL))(v2);\n  }\n}", "assembly": "; \n; EditorPauseLayer::onSave from 0x1002938e0 to 0x100293996 (182 bytes)\n; \n; 1 xrefs:\n; > EditorPauseLayer::customSetup @ 0x100291b8a\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    rbp                                                            ; +0x0, 0x1002938e0\nmov     rbp, rsp                                                       ; +0x1, 0x1002938e1\npush    rbx                                                            ; +0x4, 0x1002938e4\nsub     rsp, 18h                                                       ; +0x5, 0x1002938e5\ncmp     byte ptr [rdi+230h], 0                                         ; +0x9, 0x1002938e9\njnz     loc_10029398F                                                  ; +0x10, 0x1002938f0\nadd     rdi, 228h                                                      ; +0x16, 0x1002938f6\nmov     rbx, rdi                                                       ; +0x1d, 0x1002938fd\nmov     edi, 1Ah; __sz                                                 ; +0x20, 0x100293900\ncall    __Znwm; operator new(ulong)                                    ; +0x25, 0x100293905\nmov     [rbp+__p], rax                                                 ; +0x2a, 0x10029390a\nmov     [rbp+var_20], 1Bh                                              ; +0x2e, 0x10029390e\nmov     [rbp+var_18], 17h                                              ; +0x36, 0x100293916\nmov     rcx, 3F6C6576656C2065h                                         ; +0x3e, 0x10029391e\nmov     [rax+0Fh], rcx                                                 ; +0x48, 0x100293928\nmovups  xmm0, xmmword ptr cs:aCySaveCTheLeve; \"<cy>Save</c> the level?\" ; +0x4c, 0x10029392c\nmovups  xmmword ptr [rax], xmm0                                        ; +0x53, 0x100293933\nmov     byte ptr [rax+17h], 0                                          ; +0x56, 0x100293936\nlea     rsi, aSave; \"Save\"                                             ; +0x5a, 0x10029393a\nlea     rcx, aNo; \"NO\"                                                 ; +0x61, 0x100293941\nlea     r8, aYes_0; \"YES\"                                              ; +0x68, 0x100293948\nlea     rdx, [rbp+var_20]                                              ; +0x6f, 0x10029394f\nmovss   xmm0, cs:dword_1008152B4                                       ; +0x73, 0x100293953\nmov     rdi, rbx                                                       ; +0x7b, 0x10029395b\ncall    FLAlertLayer__create_1                                         ; +0x7e, 0x10029395e\nmov     rbx, rax                                                       ; +0x83, 0x100293963\ntest    byte ptr [rbp+var_20], 1                                       ; +0x86, 0x100293966\njz      short loc_100293975                                            ; +0x8a, 0x10029396a\nmov     rdi, [rbp+__p]; __p                                            ; +0x8c, 0x10029396c\ncall    __ZdlPv; operator delete(void *)                               ; +0x90, 0x100293970\nmov     rax, [rbx]                                                     ; +0x95, 0x100293975\nmov     rdi, rbx                                                       ; +0x98, 0x100293978\nmov     esi, 3                                                         ; +0x9b, 0x10029397b\ncall    qword ptr [rax+48h]                                            ; +0xa0, 0x100293980\nmov     rax, [rbx]                                                     ; +0xa3, 0x100293983\nmov     rdi, rbx                                                       ; +0xa6, 0x100293986\ncall    qword ptr [rax+508h]                                           ; +0xa9, 0x100293989\nadd     rsp, 18h                                                       ; +0xaf, 0x10029398f\npop     rbx                                                            ; +0xb3, 0x100293993\npop     rbp                                                            ; +0xb4, 0x100293994\nretn                                                                   ; +0xb5, 0x100293995", "xrefs": ["EditorPauseLayer::customSetup @ 0x100291b8a"], "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"}