//
// OptionsLayer::onMenuMusic from 0x8ee058 to 0x8ee094 (60 bytes)
//
// 3 xrefs:
// > ??> @ 0xc58d8
// > OptionsLayer::customSetup @ 0x8f4708
// > ??> @ 0x1545c68
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:56:56 +0000
//
__int64 __fastcall OptionsLayer::onMenuMusic(OptionsLayer *this, cocos2d::CCObject *a2)
{
GameManager *v2; // x0
FMODAudioEngine *v3; // x0
GameManager *v4; // x0
FMODAudioEngine *v6; // x0
v2 = (GameManager *)GameManager::sharedState(this);
v3 = (FMODAudioEngine *)(unsigned __int8)GameManager::toggleGameVariable(v2, "0122");
if ( (_BYTE)v3 )
{
v6 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v3);
return FMODAudioEngine::stopAllMusic(v6, 1);
}
else
{
v4 = (GameManager *)GameManager::sharedState(v3);
return GameManager::fadeInMenuMusic(v4);
}
}