{"type": "func", "start": 4299441472, "end": 4299441672, "name": "EditorPauseLayer::onExitNoSave", "pseudocode": "// \n// EditorPauseLayer::onExitNoSave from 0x100444540 to 0x100444608 (200 bytes)\n// \n// 1 xrefs:\n// > EditorPauseLayer::customSetup @ 0x1004439c4\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 11:05:13 +0000\n// \n\n__int64 __fastcall EditorPauseLayer::onExitNoSave(__int64 result)\n{\n  __int64 v1; // x19\n  void *v2; // x19\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v4; // [xsp+1Fh] [xbp-11h]\n\n  if ( (*(_BYTE *)(result + 568) & 1) == 0 )\n  {\n    v1 = result;\n    if ( *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(result + 576) + 1936LL) + 1140LL) == 2 )\n    {\n      sub_100009900(__p, \"<cy>Exit</c> without saving? All unsaved changes will be <cr>lost</c>!\");\n      v2 = FLAlertLayer::create_1(v1 + 552, (__int64)\"Exit\", (__int64)__p, (__int64)\"NO\", (__int64)\"YES\", 300.0);\n      if ( v4 < 0 )\n        operator delete(__p[0]);\n      (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v2 + 72LL))(v2, 1);\n      return (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v2 + 1312LL))(v2);\n    }\n    else\n    {\n      return EditorPauseLayer::onExitEditor(result);\n    }\n  }\n  return result;\n}", "assembly": "; \n; EditorPauseLayer::onExitNoSave from 0x100444540 to 0x100444608 (200 bytes)\n; \n; 1 xrefs:\n; > EditorPauseLayer::customSetup @ 0x1004439c4\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 11:05:13 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x100444540\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x100444544\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x100444548\nADD             X29, SP, #0x30                                         ; +0xc, 0x10044454c\nLDRB            W8, [X0,#0x238]                                        ; +0x10, 0x100444550\nTBNZ            W8, #0, loc_1004445E4                                  ; +0x14, 0x100444554\nMOV             X19, X0                                                ; +0x18, 0x100444558\nLDR             X8, [X0,#0x240]                                        ; +0x1c, 0x10044455c\nLDR             X8, [X8,#0x790]                                        ; +0x20, 0x100444560\nLDR             W8, [X8,#0x474]                                        ; +0x24, 0x100444564\nCMP             W8, #2                                                 ; +0x28, 0x100444568\nB.NE            loc_1004445F4                                          ; +0x2c, 0x10044456c\nADRL            X1, aCyExitCWithout; \"<cy>Exit</c> without saving? All unsave\"... ; +0x30, 0x100444570\nADD             X0, SP, #0x30+__p; int                                 ; +0x38, 0x100444578\nBL              sub_100009900                                          ; +0x3c, 0x10044457c\nADRL            X1, aExit; \"Exit\"                                      ; +0x40, 0x100444580\nADRL            X3, aNo; \"NO\"                                          ; +0x48, 0x100444588\nADRL            X4, aYes; \"YES\"                                        ; +0x50, 0x100444590\nMOV             W8, #0x43960000                                        ; +0x58, 0x100444598\nFMOV            S0, W8                                                 ; +0x5c, 0x10044459c\nADD             X0, X19, #0x228                                        ; +0x60, 0x1004445a0\nADD             X2, SP, #0x30+__p                                      ; +0x64, 0x1004445a4\nBL              FLAlertLayer__create_1                                 ; +0x68, 0x1004445a8\nMOV             X19, X0                                                ; +0x6c, 0x1004445ac\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x70, 0x1004445b0\nTBZ             W8, #0x1F, loc_1004445C0                               ; +0x74, 0x1004445b4\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x78, 0x1004445b8\nBL              __ZdlPv; operator delete(void *)                       ; +0x7c, 0x1004445bc\nLDR             X8, [X19]                                              ; +0x80, 0x1004445c0\nLDR             X8, [X8,#0x48]                                         ; +0x84, 0x1004445c4\nMOV             X0, X19                                                ; +0x88, 0x1004445c8\nMOV             W1, #1                                                 ; +0x8c, 0x1004445cc\nBLR             X8                                                     ; +0x90, 0x1004445d0\nLDR             X8, [X19]                                              ; +0x94, 0x1004445d4\nLDR             X8, [X8,#0x520]                                        ; +0x98, 0x1004445d8\nMOV             X0, X19                                                ; +0x9c, 0x1004445dc\nBLR             X8                                                     ; +0xa0, 0x1004445e0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xa4, 0x1004445e4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa8, 0x1004445e8\nADD             SP, SP, #0x40 ; '@'                                    ; +0xac, 0x1004445ec\nRET                                                                    ; +0xb0, 0x1004445f0\nMOV             X0, X19                                                ; +0xb4, 0x1004445f4\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xb8, 0x1004445f8\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xbc, 0x1004445fc\nADD             SP, SP, #0x40 ; '@'                                    ; +0xc0, 0x100444600\nB               EditorPauseLayer__onExitEditor                         ; +0xc4, 0x100444604", "xrefs": ["EditorPauseLayer::customSetup @ 0x1004439c4"], "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"}