//
// EditorPauseLayer::onSaveAndExit from 0x5091c8 to 0x5091f6 (46 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:51:26 +0000
//
unsigned __int8 *__fastcall EditorPauseLayer::onSaveAndExit(unsigned __int8 *this, cocos2d::CCObject *a2)
{
unsigned __int8 *v2; // r4
cocos2d::CCObject *v3; // r5
v2 = this;
v3 = (cocos2d::CCObject *)*(this + 452);
if ( !*(this + 452) )
{
(*(void (__fastcall **)(unsigned __int8 *, _DWORD))(*(_DWORD *)this + 536))(this, *(this + 452));
v2[452] = 1;
EditorPauseLayer::saveLevel((EditorPauseLayer *)v2);
return (unsigned __int8 *)EditorPauseLayer::onExitEditor((LevelEditorLayer **)v2, v3);
}
return this;
}