//
// PauseLayer::onQuit from 0x1003d7970 to 0x1003d79e7 (119 bytes)
//
// 3 xrefs:
// > PauseLayer::tryQuit @ 0x1003d7496
// > PauseLayer::FLAlert_Clicked @ 0x1003d7a3b
// > sub_1003D7A60 @ 0x1003d7a9b
//
// 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 __fastcall PauseLayer::onQuit(PauseLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v2; // rax
FMODAudioEngine *v3; // rax
void *v4[4]; // [rsp+0h] [rbp-20h] BYREF
CCBlockLayer::decrementForcePrio(a1);
cocos2d::CCNode::unscheduleAllSelectors(a1);
v2 = GameManager::sharedState();
PlayLayer::onQuit(v2->m_playLayer);
v3 = FMODAudioEngine::sharedEngine();
strcpy((char *)v4, " quitSound_01.ogg");
FMODAudioEngine::playEffect(v3, v4, 1.0, 0.0, 0.69999999);
if ( ((__int64)v4[0] & 1) != 0 )
operator delete(v4[2]);
}