//
// GameManager::fadeInMenuMusic from 0x71e288 to 0x71e344 (188 bytes)
//
// 18 xrefs:
// > MenuLayer::init @ 0x6eb4c8
// > LoadingLayer::loadAssets @ 0x6ee130
// > PlayLayer::onQuit @ 0x70372c
// > GameManager::returnToLastScene @ 0x71e39c
// > MoreOptionsLayer::dropDownLayerWillClose @ 0x8ed698
// > OptionsLayer::onMenuMusic @ 0x8ee080
// > SongInfoLayer::onMenuMusic @ 0x904024
// > SongInfoLayer::onMenuMusic @ 0x904058
// > SecretLayer::onBack @ 0xa5e390
// > GauntletSelectLayer::unlockAnimationStep3 @ 0xa745e8
// > GJShopLayer::onBack @ 0xa7ced4
// > SecretLayer2::onBack @ 0xa8a4b8
// > SecretLayer4::onBack @ 0xa93d94
// > LevelAreaLayer::onBack @ 0xb5a010
// > SecretRewardsLayer::onBack @ 0xb9a808
// > SecretLayer6::onBack @ 0xbc34b8
// > GameSettingsLayer::dropDownLayerWillClose @ 0xc04a90
// > ??> @ 0x48f10
//
// 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:52:22 +0000
//
__int64 __fastcall GameManager::fadeInMenuMusic(GameManager *this)
{
GameManager *v2; // x0
FMODAudioEngine *GameVariable; // x0
FMODAudioEngine *v5; // x0
__int64 v6[3]; // [xsp+30h] [xbp+30h] BYREF
v2 = (GameManager *)GameManager::sharedState(_stack_chk_guard);
GameVariable = (FMODAudioEngine *)(unsigned __int8)GameManager::getGameVariable(v2, "0122");
if ( (_BYTE)GameVariable )
{
v5 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(GameVariable);
FMODAudioEngine::stopAllMusic(v5, 1);
}
else
{
GameManager::getMenuMusicFile(this, v6);
GameManager::fadeInMusic((__int64)this, (unsigned __int8 *)v6);
if ( (v6[0] & 1) != 0 )
operator delete((void *)v6[2]);
}
return _stack_chk_guard;
}