//
// OptionsLayer::onMenuMusic from 0x7c7360 to 0x7c739c (60 bytes)
//
// 3 xrefs:
// > ??> @ 0x95868
// > OptionsLayer::customSetup @ 0x7c8890
// > ??> @ 0x122d1b0
//
// 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 OptionsLayer::onMenuMusic(OptionsLayer *a1, cocos2d::CCObject *a2)
{
GameManager *v2; // x0
GameManager *v3; // x0
FMODAudioEngine *v4; // x0
v2 = GameManager::sharedState();
if ( GameManager::toggleGameVariable(v2, "0122") )
{
v4 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::stopAllMusic(v4, 1);
}
else
{
v3 = GameManager::sharedState();
GameManager::fadeInMenuMusic(v3);
}
}