//
// EditorPauseLayer::onSaveAndExit from 0x100444438 to 0x100444484 (76 bytes)
//
// 1 xrefs:
// > EditorPauseLayer::customSetup @ 0x100443910
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:05:13 +0000
//
_BYTE *__fastcall EditorPauseLayer::onSaveAndExit(_BYTE *result)
{
_BYTE *v1; // x19
if ( (result[568] & 1) == 0 )
{
v1 = result;
(*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)result + 1072LL))(result, 0);
v1[568] = 1;
EditorPauseLayer::saveLevel(v1);
return (_BYTE *)EditorPauseLayer::onExitEditor(v1);
}
return result;
}