//
// OptionsLayer::onMenuMusic from 0x52c8ec to 0x52c916 (42 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:52:01 +0000
//
char **__fastcall OptionsLayer::onMenuMusic(OptionsLayer *this, cocos2d::CCObject *a2, int a3, int a4)
{
GameManager *v4; // r0
FMODAudioEngine *v5; // r0
FMODAudioEngine *v6; // r0
GameManager *v8; // r0
int v9; // r1
int v10; // r2
v4 = (GameManager *)GameManager::sharedState(this);
v5 = (FMODAudioEngine *)GameManager::toggleGameVariable(v4, "0122");
if ( v5 )
{
v6 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v5);
return FMODAudioEngine::stopAllMusic(v6, 1);
}
else
{
v8 = (GameManager *)GameManager::sharedState(nullptr);
return GameManager::fadeInMenuMusic(v8, v9, v10, a4);
}
}