//
// EditorPauseLayer::onExitEditor from 0x401614 to 0x40163a (38 bytes)
//
// 3 xrefs:
// > EditorPauseLayer::onSaveAndExit @ 0x401662
// > EditorPauseLayer::FLAlert_Clicked @ 0x40169e
// > EditorPauseLayer::onExitNoSave @ 0x4016f2
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void EditorPauseLayer::onExitEditor(EditorPauseLayer *a1, cocos2d::CCObject *a2)
{
FMODAudioEngine *v3; // r0
GameManager *v4; // r0
v3 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::unloadAllEffects(v3);
CCBlockLayer::decrementForcePrio(a1);
v4 = GameManager::sharedState();
GameManager::returnToLastScene(v4, a1->m_editorLayer->m_level);
}