//
// GameManager::fadeInMenuMusic from 0x323fa8 to 0x324004 (92 bytes)
//
// 14 xrefs:
// > MenuLayer::init @ 0x30a764
// > LoadingLayer::loadAssets @ 0x30bb10
// > PlayLayer::onQuit @ 0x3130c6
// > GameManager::returnToLastScene @ 0x32475a
// > MoreOptionsLayer::dropDownLayerWillClose @ 0x421842
// > OptionsLayer::onMenuMusic @ 0x422416
// > SongInfoLayer::onMenuMusic @ 0x42d950
// > SecretLayer::onBack @ 0x4c953e
// > GJShopLayer::onBack @ 0x4e1cf2
// > SecretLayer2::onBack @ 0x4eb252
// > SecretLayer4::onBack @ 0x4f016a
// > LevelAreaLayer::onBack @ 0x56bf6a
// > SecretRewardsLayer::onBack @ 0x5856fa
// > SecretLayer6::onBack @ 0x59c36c
//
// 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 GameManager::fadeInMenuMusic(GameManager *a1)
{
GameManager *v2; // r0
FMODAudioEngine *v3; // r0
int v4; // r2
int v5; // r3
GameManager *v6; // [sp+0h] [bp-8h] BYREF
v6 = a1;
v2 = GameManager::sharedState();
if ( GameManager::getGameVariable(v2, "0122") )
{
v3 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::stopAllMusic(v3, (bool)&dword_0 + 1);
}
else
{
GameManager::getMenuMusicFile((GameManager *)&v6, (int)a1);
GameManager::fadeInMusic((int)a1, &v6, v4, v5);
sub_774008(&v6);
}
}