//
// OptionsLayer::onMenuMusic from 0x1000ed400 to 0x1000ed438 (56 bytes)
//
// 1 xrefs:
// > OptionsLayer::customSetup @ 0x1000ed070
//
// 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 OptionsLayer::onMenuMusic(OptionsLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v2; // x0
FMODAudioEngine *v3; // x0
GameManager *v4; // x0
v2 = GameManager::sharedState();
if ( GameManager::toggleGameVariable(v2, "0122") )
{
v3 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::stopAllMusic(v3, 1);
}
else
{
v4 = GameManager::sharedState();
GameManager::fadeInMenuMusic(v4);
}
}