{"type": "func", "start": 9136376, "end": 9136672, "name": "EditorPauseLayer::onSave", "pseudocode": "// \n// EditorPauseLayer::onSave from 0x8b68f8 to 0x8b6a20 (296 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xf2fb0\n// > EditorPauseLayer::customSetup @ 0x8b57c4\n// > <???> @ 0x15475c0\n// \n// This function is hookable on this platform (idp: arm, 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:56:25 +0000\n// \n\n__int64 __fastcall EditorPauseLayer::onSave(EditorPauseLayer *this, cocos2d::CCObject *a2)\n{\n  __int64 v4; // x20\n  _QWORD v5[2]; // [xsp+20h] [xbp+20h] BYREF\n  void *v6; // [xsp+30h] [xbp+30h]\n\n  if ( !*((_BYTE *)this + 568) )\n  {\n    v6 = (void *)operator new(0x20u);\n    v5[0] = 33;\n    v5[1] = 23;\n    strcpy((char *)v6, \"<cy>Save</c> the level?\");\n    v4 = FLAlertLayer::create(\n           (__int64)this + 552,\n           (cocos2d::CCLabelBMFont *)\"Save\",\n           (char *)v5,\n           (ButtonSprite *)\"NO\",\n           (ButtonSprite *)\"YES\",\n           300.0);\n    if ( (v5[0] & 1) != 0 )\n      operator delete(v6);\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 72LL))(v4, 3);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorPauseLayer::onSave from 0x8b68f8 to 0x8b6a20 (296 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xf2fb0\n; > EditorPauseLayer::customSetup @ 0x8b57c4\n; > <???> @ 0x15475c0\n; \n; This function is hookable on this platform (idp: arm, 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:56:25 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x8b68f8\nMOV             X29, SP                                                ; +0x4, 0x8b68fc\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x8b6900\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x8b6904\nMOV             X20, X0                                                ; +0x10, 0x8b6908\nLDRB            W0, [X0,#0x238]                                        ; +0x14, 0x8b690c\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x8b6910\nLDR             X1, [X1]                                               ; +0x1c, 0x8b6914\nSTR             X1, [X29,#0x40+var_8]                                  ; +0x20, 0x8b6918\nCBZ             W0, loc_8B6940                                         ; +0x24, 0x8b691c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x28, 0x8b6920\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x2c, 0x8b6924\nLDR             X0, [X19]                                              ; +0x30, 0x8b6928\nCMP             X1, X0                                                 ; +0x34, 0x8b692c\nB.NE            loc_8B6A00                                             ; +0x38, 0x8b6930\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x3c, 0x8b6934\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x40, 0x8b6938\nRET                                                                    ; +0x44, 0x8b693c\nMOV             X0, #0x20 ; ' '; unsigned __int64                      ; +0x48, 0x8b6940\nSTR             XZR, [X29,#0x40+var_20]                                ; +0x4c, 0x8b6944\nSTR             XZR, [X29,#0x40+var_18]                                ; +0x50, 0x8b6948\nSTR             XZR, [X29,#0x40+var_10]                                ; +0x54, 0x8b694c\nBL              _Znwm; operator new(ulong)                             ; +0x58, 0x8b6950\nADRP            X1, #aCySaveCTheLeve@PAGE; \"<cy>Save</c> the level?\"   ; +0x5c, 0x8b6954\nMOV             X5, X0                                                 ; +0x60, 0x8b6958\nADD             X1, X1, #aCySaveCTheLeve@PAGEOFF; \"<cy>Save</c> the level?\" ; +0x64, 0x8b695c\nSTR             X0, [X29,#0x40+var_10]                                 ; +0x68, 0x8b6960\nMOV             X3, #0x17                                              ; +0x6c, 0x8b6964\nMOV             X2, #0x21 ; '!'                                        ; +0x70, 0x8b6968\nLDR             S0, =0x43960000                                        ; +0x74, 0x8b696c\nSTR             X2, [X29,#0x40+var_20]                                 ; +0x78, 0x8b6970\nLDR             W4, [X1,#(aCySaveCTheLeve+0x10 - 0x114C600)]; \" level?\" ; +0x7c, 0x8b6974\nADD             X0, X20, #0x228                                        ; +0x80, 0x8b6978\nLDP             X6, X7, [X1]; \"<cy>Save</c> the level?\"                ; +0x84, 0x8b697c\nLDRH            W9, [X1,#(aCySaveCTheLeve+0x14 - 0x114C600)]; \"el?\"    ; +0x88, 0x8b6980\nADD             X2, X29, #0x40+var_20                                  ; +0x8c, 0x8b6984\nLDRB            W8, [X1,#(aCySaveCTheLeve+0x16 - 0x114C600)]; \"?\"      ; +0x90, 0x8b6988\nADRP            X1, #aSave@PAGE; \"Save\"                                ; +0x94, 0x8b698c\nSTR             X3, [X29,#0x40+var_18]                                 ; +0x98, 0x8b6990\nADRP            X3, #aNo_0@PAGE; \"NO\"                                  ; +0x9c, 0x8b6994\nSTR             W4, [X5,#0x10]                                         ; +0xa0, 0x8b6998\nADRP            X4, #aYes_0@PAGE; \"YES\"                                ; +0xa4, 0x8b699c\nADD             X1, X1, #aSave@PAGEOFF; \"Save\"                         ; +0xa8, 0x8b69a0\nADD             X3, X3, #aNo_0@PAGEOFF; \"NO\"                           ; +0xac, 0x8b69a4\nADD             X4, X4, #aYes_0@PAGEOFF; \"YES\"                         ; +0xb0, 0x8b69a8\nSTRH            W9, [X5,#0x14]                                         ; +0xb4, 0x8b69ac\nSTRB            W8, [X5,#0x16]                                         ; +0xb8, 0x8b69b0\nSTRB            WZR, [X5,#0x17]                                        ; +0xbc, 0x8b69b4\nSTP             X6, X7, [X5]                                           ; +0xc0, 0x8b69b8\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0xc4, 0x8b69bc\nMOV             X20, X0                                                ; +0xc8, 0x8b69c0\nLDRB            W0, [X29,#0x40+var_20]                                 ; +0xcc, 0x8b69c4\nTBNZ            W0, #0, loc_8B69F4                                     ; +0xd0, 0x8b69c8\nLDR             X2, [X20]                                              ; +0xd4, 0x8b69cc\nMOV             X0, X20                                                ; +0xd8, 0x8b69d0\nMOV             W1, #3                                                 ; +0xdc, 0x8b69d4\nLDR             X2, [X2,#0x48]                                         ; +0xe0, 0x8b69d8\nBLR             X2                                                     ; +0xe4, 0x8b69dc\nLDR             X1, [X20]                                              ; +0xe8, 0x8b69e0\nMOV             X0, X20                                                ; +0xec, 0x8b69e4\nLDR             X1, [X1,#0x520]                                        ; +0xf0, 0x8b69e8\nBLR             X1                                                     ; +0xf4, 0x8b69ec\nB               loc_8B6920                                             ; +0xf8, 0x8b69f0\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0xfc, 0x8b69f4\nBL              _ZdlPv; operator delete(void *)                        ; +0x100, 0x8b69f8\nB               loc_8B69CC                                             ; +0x104, 0x8b69fc\nBL              .__stack_chk_fail                                      ; +0x108, 0x8b6a00\nLDRB            W1, [X29,#0x40+var_20]                                 ; +0x10c, 0x8b6a04\nMOV             X19, X0                                                ; +0x110, 0x8b6a08\nTBZ             W1, #0, loc_8B6A18                                     ; +0x114, 0x8b6a0c\nLDR             X0, [X29,#0x40+var_10]; void *                         ; +0x118, 0x8b6a10\nBL              _ZdlPv; operator delete(void *)                        ; +0x11c, 0x8b6a14\nMOV             X0, X19                                                ; +0x120, 0x8b6a18\nBL              _Unwind_Resume                                         ; +0x124, 0x8b6a1c", "xrefs": ["<???> @ 0xf2fb0", "EditorPauseLayer::customSetup @ 0x8b57c4", "<???> @ 0x15475c0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}