{"type": "func", "start": 4299441208, "end": 4299441284, "name": "EditorPauseLayer::onSaveAndExit", "pseudocode": "// \n// EditorPauseLayer::onSaveAndExit from 0x100444438 to 0x100444484 (76 bytes)\n// \n// 1 xrefs:\n// > EditorPauseLayer::customSetup @ 0x100443910\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_BYTE *__fastcall EditorPauseLayer::onSaveAndExit(_BYTE *result)\n{\n  _BYTE *v1; // x19\n\n  if ( (result[568] & 1) == 0 )\n  {\n    v1 = result;\n    (*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)result + 1072LL))(result, 0);\n    v1[568] = 1;\n    EditorPauseLayer::saveLevel(v1);\n    return (_BYTE *)EditorPauseLayer::onExitEditor(v1);\n  }\n  return result;\n}", "assembly": "; \n; EditorPauseLayer::onSaveAndExit from 0x100444438 to 0x100444484 (76 bytes)\n; \n; 1 xrefs:\n; > EditorPauseLayer::customSetup @ 0x100443910\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; \nLDRB            W8, [X0,#0x238]                                        ; +0x0, 0x100444438\nTBZ             W8, #0, loc_100444444                                  ; +0x4, 0x10044443c\nRET                                                                    ; +0x8, 0x100444440\nSTP             X20, X19, [SP,#var_20]!                                ; +0xc, 0x100444444\nSTP             X29, X30, [SP,#0x20+var_10]                            ; +0x10, 0x100444448\nADD             X29, SP, #0x20+var_10                                  ; +0x14, 0x10044444c\nMOV             X19, X0                                                ; +0x18, 0x100444450\nLDR             X8, [X0]                                               ; +0x1c, 0x100444454\nLDR             X8, [X8,#0x430]                                        ; +0x20, 0x100444458\nMOV             W1, #0                                                 ; +0x24, 0x10044445c\nBLR             X8                                                     ; +0x28, 0x100444460\nMOV             W8, #1                                                 ; +0x2c, 0x100444464\nSTRB            W8, [X19,#0x238]                                       ; +0x30, 0x100444468\nMOV             X0, X19                                                ; +0x34, 0x10044446c\nBL              EditorPauseLayer__saveLevel                            ; +0x38, 0x100444470\nMOV             X0, X19                                                ; +0x3c, 0x100444474\nLDP             X29, X30, [SP,#0x20+var_10]                            ; +0x40, 0x100444478\nLDP             X20, X19, [SP+0x20+var_20],#0x20                       ; +0x44, 0x10044447c\nB               EditorPauseLayer__onExitEditor                         ; +0x48, 0x100444480", "xrefs": ["EditorPauseLayer::customSetup @ 0x100443910"], "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"}