//
// GameManager::fadeInMenuMusic from 0x1003aeff0 to 0x1003af064 (116 bytes)
//
// 14 xrefs:
// > OptionsLayer::onMenuMusic @ 0x100113814
// > PlayLayer::onQuit @ 0x100142284
// > GameSettingsLayer::dropDownLayerWillClose @ 0x1001671b0
// > GJShopLayer::onBack @ 0x1001ca5d4
// > GauntletSelectLayer::unlockAnimationStep3 @ 0x1002567ac
// > LoadingLayer::loadAssets @ 0x10026f008
// > MenuLayer::init @ 0x1003038e8
// > SecretRewardsLayer::onBack @ 0x100384b50
// > sub_1003A7408 @ 0x1003a7444
// > GameManager::returnToLastScene @ 0x1003bb474
// > sub_1003E2E3C @ 0x1003e2e6c
// > sub_1003F471C @ 0x1003f4758
// > sub_10044F7A8 @ 0x10044f838
// > sub_100464ABC @ 0x100464af8
//
// 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 11:03:53 +0000
//
void __fastcall GameManager::fadeInMenuMusic(__int64 a1)
{
__int64 v2; // x0
_QWORD *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 = (_QWORD *)FMODAudioEngine::sharedEngine();
FMODAudioEngine::stopAllMusic(v3, 1);
}
else
{
GameManager::getMenuMusicFile(a1, __p);
GameManager::fadeInMusic(v4, __p);
if ( v6 < 0 )
operator delete(__p[0]);
}
}