{"type": "func", "start": 9137848, "end": 9138128, "name": "EditorPauseLayer::onExitNoSave", "pseudocode": "// \n// EditorPauseLayer::onExitNoSave from 0x8b6eb8 to 0x8b6fd0 (280 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xf8cf8\n// > EditorPauseLayer::customSetup @ 0x8b581c\n// > <???> @ 0x15478d8\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::onExitNoSave(LevelEditorLayer **this, cocos2d::CCObject *a2)\n{\n  __int64 v4; // x20\n  __int64 v5[2]; // [xsp+30h] [xbp+30h] BYREF\n  void *v6; // [xsp+40h] [xbp+40h]\n\n  if ( !*((_BYTE *)this + 568) )\n  {\n    if ( *(_DWORD *)(*((_QWORD *)*(this + 72) + 242) + 1140LL) == 2 )\n    {\n      v5[0] = 0;\n      v5[1] = 0;\n      v6 = nullptr;\n      std::string::__init(v5, \"<cy>Exit</c> without saving? All unsaved changes will be <cr>lost</c>!\", 0x46u);\n      v4 = FLAlertLayer::create(\n             (__int64)(this + 69),\n             (cocos2d::CCLabelBMFont *)\"Exit\",\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, 1);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);\n    }\n    else\n    {\n      EditorPauseLayer::onExitEditor(this, nullptr);\n    }\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; EditorPauseLayer::onExitNoSave from 0x8b6eb8 to 0x8b6fd0 (280 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xf8cf8\n; > EditorPauseLayer::customSetup @ 0x8b581c\n; > <???> @ 0x15478d8\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_50]!                                ; +0x0, 0x8b6eb8\nMOV             X29, SP                                                ; +0x4, 0x8b6ebc\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x8b6ec0\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x8b6ec4\nSTR             X21, [SP,#0x50+var_30]                                 ; +0x10, 0x8b6ec8\nMOV             X20, X0                                                ; +0x14, 0x8b6ecc\nLDRB            W1, [X0,#0x238]                                        ; +0x18, 0x8b6ed0\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x8b6ed4\nLDR             X2, [X2]                                               ; +0x20, 0x8b6ed8\nSTR             X2, [X29,#0x50+var_8]                                  ; +0x24, 0x8b6edc\nCBNZ            W1, loc_8B6F00                                         ; +0x28, 0x8b6ee0\nLDR             X1, [X0,#0x240]                                        ; +0x2c, 0x8b6ee4\nLDR             X1, [X1,#0x790]                                        ; +0x30, 0x8b6ee8\nLDR             W1, [X1,#0x474]                                        ; +0x34, 0x8b6eec\nCMP             W1, #2                                                 ; +0x38, 0x8b6ef0\nB.EQ            loc_8B6F24                                             ; +0x3c, 0x8b6ef4\nMOV             X1, #0; cocos2d::CCObject *                            ; +0x40, 0x8b6ef8\nBL              _ZN16EditorPauseLayer12onExitEditorEPN7cocos2d8CCObjectE; EditorPauseLayer::onExitEditor(cocos2d::CCObject *) ; +0x44, 0x8b6efc\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x48, 0x8b6f00\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x4c, 0x8b6f04\nLDR             X0, [X19]                                              ; +0x50, 0x8b6f08\nCMP             X1, X0                                                 ; +0x54, 0x8b6f0c\nB.NE            loc_8B6FB0                                             ; +0x58, 0x8b6f10\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x5c, 0x8b6f14\nLDR             X21, [SP,#0x50+var_30]                                 ; +0x60, 0x8b6f18\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x64, 0x8b6f1c\nRET                                                                    ; +0x68, 0x8b6f20\nADD             X21, X29, #0x50+var_20                                 ; +0x6c, 0x8b6f24\nADRP            X1, #aCyExitCWithout@PAGE; \"<cy>Exit</c> without saving? All unsave\"... ; +0x70, 0x8b6f28\nMOV             X0, X21                                                ; +0x74, 0x8b6f2c\nADD             X1, X1, #aCyExitCWithout@PAGEOFF; \"<cy>Exit</c> without saving? All unsave\"... ; +0x78, 0x8b6f30\nMOV             X2, #0x46 ; 'F'                                        ; +0x7c, 0x8b6f34\nSTR             XZR, [X29,#0x50+var_20]                                ; +0x80, 0x8b6f38\nSTR             XZR, [X29,#0x50+var_18]                                ; +0x84, 0x8b6f3c\nSTR             XZR, [X29,#0x50+var_10]                                ; +0x88, 0x8b6f40\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0x8c, 0x8b6f44\nLDR             S0, =0x43960000                                        ; +0x90, 0x8b6f48\nADRP            X1, #(aConfirmExit+8)@PAGE; \"Exit\"                     ; +0x94, 0x8b6f4c\nADRP            X3, #aNo_0@PAGE; \"NO\"                                  ; +0x98, 0x8b6f50\nADRP            X4, #aYes_0@PAGE; \"YES\"                                ; +0x9c, 0x8b6f54\nADD             X0, X20, #0x228                                        ; +0xa0, 0x8b6f58\nADD             X1, X1, #(aConfirmExit+8)@PAGEOFF; \"Exit\"              ; +0xa4, 0x8b6f5c\nMOV             X2, X21                                                ; +0xa8, 0x8b6f60\nADD             X3, X3, #aNo_0@PAGEOFF; \"NO\"                           ; +0xac, 0x8b6f64\nADD             X4, X4, #aYes_0@PAGEOFF; \"YES\"                         ; +0xb0, 0x8b6f68\nBL              _ZN12FLAlertLayer6createEP20FLAlertLayerProtocolPKcNSt6__ndk112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEES3_S3_f; FLAlertLayer::create(FLAlertLayerProtocol *,char const*,std::string,char const*,char const*,float) ; +0xb4, 0x8b6f6c\nMOV             X20, X0                                                ; +0xb8, 0x8b6f70\nLDRB            W0, [X29,#0x50+var_20]                                 ; +0xbc, 0x8b6f74\nTBNZ            W0, #0, loc_8B6FA4                                     ; +0xc0, 0x8b6f78\nLDR             X2, [X20]                                              ; +0xc4, 0x8b6f7c\nMOV             X0, X20                                                ; +0xc8, 0x8b6f80\nMOV             W1, #1                                                 ; +0xcc, 0x8b6f84\nLDR             X2, [X2,#0x48]                                         ; +0xd0, 0x8b6f88\nBLR             X2                                                     ; +0xd4, 0x8b6f8c\nLDR             X1, [X20]                                              ; +0xd8, 0x8b6f90\nMOV             X0, X20                                                ; +0xdc, 0x8b6f94\nLDR             X1, [X1,#0x520]                                        ; +0xe0, 0x8b6f98\nBLR             X1                                                     ; +0xe4, 0x8b6f9c\nB               loc_8B6F00                                             ; +0xe8, 0x8b6fa0\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0xec, 0x8b6fa4\nBL              _ZdlPv; operator delete(void *)                        ; +0xf0, 0x8b6fa8\nB               loc_8B6F7C                                             ; +0xf4, 0x8b6fac\nBL              .__stack_chk_fail                                      ; +0xf8, 0x8b6fb0\nLDRB            W1, [X29,#0x50+var_20]                                 ; +0xfc, 0x8b6fb4\nMOV             X19, X0                                                ; +0x100, 0x8b6fb8\nTBZ             W1, #0, loc_8B6FC8                                     ; +0x104, 0x8b6fbc\nLDR             X0, [X29,#0x50+var_10]; void *                         ; +0x108, 0x8b6fc0\nBL              _ZdlPv; operator delete(void *)                        ; +0x10c, 0x8b6fc4\nMOV             X0, X19                                                ; +0x110, 0x8b6fc8\nBL              _Unwind_Resume                                         ; +0x114, 0x8b6fcc", "xrefs": ["<???> @ 0xf8cf8", "EditorPauseLayer::customSetup @ 0x8b581c", "<???> @ 0x15478d8"], "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"}