//
// GameManager::fadeInMenuMusic from 0x1003122dc to 0x100312350 (116 bytes)
//
// 14 xrefs:
// > OptionsLayer::onMenuMusic @ 0x1000ed434
// > MoreOptionsLayer::dropDownLayerWillClose @ 0x1000ef9b0
// > sub_1000EF9B4 @ 0x1000ef9c4
// > PlayLayer::onQuit @ 0x1001195a8
// > GJShopLayer::onBack @ 0x10014bcdc
// > LoadingLayer::loadAssets @ 0x1001d6aa8
// > MenuLayer::init @ 0x10026653c
// > SecretRewardsLayer::onBack @ 0x1002e99c8
// > SecretLayer2::onBack @ 0x10030a728
// > GameManager::returnToLastScene @ 0x10031d7d8
// > LevelAreaLayer::onBack @ 0x1003446f0
// > SecretLayer4::onBack @ 0x100354e68
// > SongInfoLayer::onMenuMusic @ 0x1003a8a08
// > SecretLayer::onBack @ 0x1003bddc8
//
// 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 __fastcall GameManager::fadeInMenuMusic(GameManager *a1)
{
GameManager *v2; // x0
FMODAudioEngine *v3; // x0
__int64 v4; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v6; // [xsp+1Fh] [xbp-11h]
v2 = GameManager::sharedState();
if ( GameManager::getGameVariable(v2, "0122") )
{
v3 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::stopAllMusic(v3, 1);
}
else
{
GameManager::getMenuMusicFile((__int64)a1, __p);
GameManager::fadeInMusic(v4, __p);
if ( v6 < 0 )
operator delete(__p[0]);
}
}