//
// EditorPauseLayer::onExitEditor from 0x8b6e14 to 0x8b6e60 (76 bytes)
//
// 4 xrefs:
// > EditorPauseLayer::onSaveAndExit @ 0x8b6eb4
// > EditorPauseLayer::onExitNoSave @ 0x8b6efc
// > EditorPauseLayer::FLAlert_Clicked @ 0x8b7024
// > ??> @ 0x46b10
//
// 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
//
__int64 __fastcall EditorPauseLayer::onExitEditor(LevelEditorLayer **this, cocos2d::CCObject *a2)
{
EditorSFXManager *v3; // x0
FMODAudioEngine *v4; // x0
FMODAudioEngine *v5; // x0
cocos2d::CCObject *v6; // x0
unsigned __int64 v7; // x0
v3 = (EditorSFXManager *)EditorSFXManager::sharedState((EditorSFXManager *)this);
EditorSFXManager::playAction(v3, 224);
v4 = (FMODAudioEngine *)LevelEditorLayer::waitForAutoSave(*(this + 72));
v5 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v4);
FMODAudioEngine::unloadAllEffects(v5);
v6 = CCBlockLayer::decrementForcePrio((cocos2d::CCObject *)this);
v7 = GameManager::sharedState(v6);
return GameManager::returnToLastScene(v7, *((GJGameLevel **)*(this + 72) + 242));
}