//
// EditorPauseLayer::onSaveAndExit from 0x8b6e60 to 0x8b6eb8 (88 bytes)
//
// 3 xrefs:
// > ??> @ 0x7b8b0
// > EditorPauseLayer::customSetup @ 0x8b5768
// > ??> @ 0x15432b0
//
// 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 12:56:25 +0000
//
_BYTE *__fastcall EditorPauseLayer::onSaveAndExit(_BYTE *this, cocos2d::CCObject *a2)
{
__int64 v2; // x19
if ( !*(this + 568) )
{
v2 = (__int64)this;
(*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
*(_BYTE *)(v2 + 568) = 1;
EditorPauseLayer::saveLevel((LevelEditorLayer **)v2);
return (_BYTE *)EditorPauseLayer::onExitEditor((LevelEditorLayer **)v2, nullptr);
}
return this;
}