//
// PauseLayer::onQuit from 0x3a8ec0 to 0x3a8f2c (108 bytes)
//
// 2 xrefs:
// > PauseLayer::tryQuit @ 0x3a8fa4
// > PauseLayer::FLAlert_Clicked @ 0x3a908c
//
// 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 PauseLayer::onQuit(PauseLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
FMODAudioEngine *v4; // r6
_BYTE v5[4]; // [sp+10h] [bp-8h] BYREF
CCBlockLayer::decrementForcePrio(a1);
cocos2d::CCNode::unscheduleAllSelectors(a1);
v3 = GameManager::sharedState();
PlayLayer::onQuit(v3->m_playLayer);
v4 = FMODAudioEngine::sharedEngine();
sub_776584((int)v5, "quitSound_01.ogg");
FMODAudioEngine::playEffect(v4, (int)v5, 1.0, 0, 1060320051);
sub_774008(v5);
}