// // GameManager::fadeInMenuMusic from 0x14017bab0 to 0x14017bb9a (234 bytes) // // 14 xrefs: // > GameManager::returnToLastScene @ 0x14018a305 // > GJShopLayer::onBack @ 0x1402acf7c // > LevelAreaLayer::onBack @ 0x1402c631c // > LoadingLayer::loadAssets @ 0x14032f767 // > MenuLayer::init @ 0x140333b32 // > OptionsLayer::onMenuMusic @ 0x140372983 // > MoreOptionsLayer::dropDownLayerWillClose @ 0x1403765a3 // > PlayLayer::onQuit @ 0x1403bada3 // > SecretRewardsLayer::onBack @ 0x1403d7dad // > SecretLayer::onBack @ 0x1403e1ee4 // > SecretLayer2::onBack @ 0x1403e98b8 // > SecretLayer4::onBack @ 0x1403f36d8 // > SongInfoLayer::onMenuMusic @ 0x14049436a // > @ 0x1406cb364 // // 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 // // Hidden C++ exception states: #wind=3 void GameManager::fadeInMenuMusic(GameManager *a1) { GameManager *v2; // rcx __int64 v3; // rbx __int64 MenuMusicFile; // rax __int64 v5; // rcx _BYTE v6[40]; // [rsp+20h] [rbp-28h] BYREF void *v7; // [rsp+58h] [rbp+10h] FMODAudioEngine *v8; // [rsp+58h] [rbp+10h] v2 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v7 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v7); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v2 = (GameManager *)qword_1406C2ED8; } if ( GameManager::getGameVariable(v2, "0122") ) { v3 = qword_1406C2E88; if ( !qword_1406C2E88 ) { v8 = (FMODAudioEngine *)operator new(0x888u); qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v8); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88); v3 = qword_1406C2E88; } if ( *(_QWORD *)(v3 + 552) ) FMOD::ChannelControl::stop(*(FMOD::ChannelControl **)(v3 + 552)); sub_14005E0D0((_QWORD *)(v3 + 1064)); sub_14005E0D0((_QWORD *)(v3 + 1128)); sub_14005E0D0((_QWORD *)(v3 + 1192)); } else { MenuMusicFile = GameManager::getMenuMusicFile((__int64)a1, (__int64)v6); GameManager::fadeInMusic(v5, MenuMusicFile); } }