{"type": "func", "start": 5371291968, "end": 5371292203, "name": "GameManager::fadeInMenuMusic", "pseudocode": "// \n// GameManager::fadeInMenuMusic from 0x140276940 to 0x140276a2b (235 bytes)\n// \n// 15 xrefs:\n// > GameManager::returnToLastScene @ 0x140287620\n// > GameSettingsLayer::dropDownLayerWillClose @ 0x1402c7e6a\n// > GauntletSelectLayer::unlockAnimationStep3 @ 0x140301024\n// > GJShopLayer::onBack @ 0x1403b32d2\n// > LevelAreaLayer::onBack @ 0x1403df64f\n// > LoadingLayer::loadAssets @ 0x14046a3f7\n// > MenuLayer::init @ 0x14047215b\n// > OptionsLayer::onMenuMusic @ 0x1404cbb17\n// > PlayLayer::onQuit @ 0x14051b326\n// > SecretRewardsLayer::onBack @ 0x14056d890\n// > SecretLayer::onBack @ 0x140577a27\n// > SecretLayer2::onBack @ 0x14057f49b\n// > SecretLayer4::onBack @ 0x140588d6b\n// > SongInfoLayer::onMenuMusic @ 0x1406362f2\n// > <???> @ 0x14091cd78\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:28:56 +0000\n// \n\n// Hidden C++ exception states: #wind=3\n__int64 __fastcall GameManager::fadeInMenuMusic(__int64 a1)\n{\n  __int64 v2; // rcx\n  _QWORD *v3; // rbx\n  __int64 v4; // rcx\n  __int64 MenuMusicFile; // rax\n  __int64 v7; // rcx\n  _BYTE v8[40]; // [rsp+20h] [rbp-28h] BYREF\n  void *v9; // [rsp+58h] [rbp+10h]\n  void *v10; // [rsp+58h] [rbp+10h]\n\n  v2 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v9 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v9);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v2 = qword_14090BFD0;\n  }\n  if ( (unsigned __int8)GameManager::getGameVariable(v2, \"0122\") )\n  {\n    v3 = (_QWORD *)qword_14090BF60;\n    if ( !qword_14090BF60 )\n    {\n      v10 = operator new(0x8A8u);\n      qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v10);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);\n      v3 = (_QWORD *)qword_14090BF60;\n    }\n    v4 = v3[69];\n    if ( v4 )\n      FMOD::ChannelControl::stop(v4);\n    sub_14003EB60(v3 + 137);\n    sub_14003EB60(v3 + 145);\n    return sub_14003EB60(v3 + 153);\n  }\n  else\n  {\n    MenuMusicFile = GameManager::getMenuMusicFile(a1, (__int64)v8);\n    return GameManager::fadeInMusic(v7, MenuMusicFile);\n  }\n}", "assembly": "; \n; GameManager::fadeInMenuMusic from 0x140276940 to 0x140276a2b (235 bytes)\n; \n; 15 xrefs:\n; > GameManager::returnToLastScene @ 0x140287620\n; > GameSettingsLayer::dropDownLayerWillClose @ 0x1402c7e6a\n; > GauntletSelectLayer::unlockAnimationStep3 @ 0x140301024\n; > GJShopLayer::onBack @ 0x1403b32d2\n; > LevelAreaLayer::onBack @ 0x1403df64f\n; > LoadingLayer::loadAssets @ 0x14046a3f7\n; > MenuLayer::init @ 0x14047215b\n; > OptionsLayer::onMenuMusic @ 0x1404cbb17\n; > PlayLayer::onQuit @ 0x14051b326\n; > SecretRewardsLayer::onBack @ 0x14056d890\n; > SecretLayer::onBack @ 0x140577a27\n; > SecretLayer2::onBack @ 0x14057f49b\n; > SecretLayer4::onBack @ 0x140588d6b\n; > SongInfoLayer::onMenuMusic @ 0x1406362f2\n; > <???> @ 0x14091cd78\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:28:56 +0000\n; \npush    rbx                                                            ; +0x0, 0x140276940\nsub     rsp, 40h                                                       ; +0x2, 0x140276942\nmov     rbx, rcx                                                       ; +0x6, 0x140276946\nmov     rcx, cs:qword_14090BFD0                                        ; +0x9, 0x140276949\ntest    rcx, rcx                                                       ; +0x10, 0x140276950\njnz     short loc_140276987                                            ; +0x13, 0x140276953\nmov     ecx, 6E8h; Size                                                ; +0x15, 0x140276955\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x14027695a\nmov     [rsp+48h+arg_8], rax                                           ; +0x1f, 0x14027695f\nmov     rcx, rax                                                       ; +0x24, 0x140276964\ncall    GameManager__GameManager                                       ; +0x27, 0x140276967\nnop                                                                    ; +0x2c, 0x14027696c\nmov     cs:qword_14090BFD0, rax                                        ; +0x2d, 0x14027696d\nmov     rcx, [rax]                                                     ; +0x34, 0x140276974\nmov     rdx, [rcx+48h]                                                 ; +0x37, 0x140276977\nmov     rcx, rax                                                       ; +0x3b, 0x14027697b\ncall    rdx                                                            ; +0x3e, 0x14027697e\nmov     rcx, cs:qword_14090BFD0                                        ; +0x40, 0x140276980\nlea     rdx, a0122; \"0122\"                                             ; +0x47, 0x140276987\ncall    GameManager__getGameVariable                                   ; +0x4e, 0x14027698e\ntest    al, al                                                         ; +0x53, 0x140276993\njz      short loc_140276A10                                            ; +0x55, 0x140276995\nmov     rbx, cs:qword_14090BF60                                        ; +0x57, 0x140276997\ntest    rbx, rbx                                                       ; +0x5e, 0x14027699e\njnz     short loc_1402769D5                                            ; +0x61, 0x1402769a1\nmov     ecx, 8A8h; Size                                                ; +0x63, 0x1402769a3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x68, 0x1402769a8\nmov     [rsp+48h+arg_8], rax                                           ; +0x6d, 0x1402769ad\nmov     rcx, rax                                                       ; +0x72, 0x1402769b2\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x75, 0x1402769b5\nnop                                                                    ; +0x7a, 0x1402769ba\nmov     cs:qword_14090BF60, rax                                        ; +0x7b, 0x1402769bb\nmov     rcx, [rax]                                                     ; +0x82, 0x1402769c2\nmov     rdx, [rcx+48h]                                                 ; +0x85, 0x1402769c5\nmov     rcx, rax                                                       ; +0x89, 0x1402769c9\ncall    rdx                                                            ; +0x8c, 0x1402769cc\nmov     rbx, cs:qword_14090BF60                                        ; +0x8e, 0x1402769ce\nmov     rcx, [rbx+228h]                                                ; +0x95, 0x1402769d5\ntest    rcx, rcx                                                       ; +0x9c, 0x1402769dc\njz      short loc_1402769E7                                            ; +0x9f, 0x1402769df\ncall    cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0xa1, 0x1402769e1\nlea     rcx, [rbx+448h]                                                ; +0xa7, 0x1402769e7\ncall    sub_14003EB60                                                  ; +0xae, 0x1402769ee\nlea     rcx, [rbx+488h]                                                ; +0xb3, 0x1402769f3\ncall    sub_14003EB60                                                  ; +0xba, 0x1402769fa\nlea     rcx, [rbx+4C8h]                                                ; +0xbf, 0x1402769ff\nadd     rsp, 40h                                                       ; +0xc6, 0x140276a06\npop     rbx                                                            ; +0xca, 0x140276a0a\njmp     sub_14003EB60                                                  ; +0xcb, 0x140276a0b\nlea     rdx, [rsp+48h+var_28]                                          ; +0xd0, 0x140276a10\nmov     rcx, rbx                                                       ; +0xd5, 0x140276a15\ncall    GameManager__getMenuMusicFile                                  ; +0xd8, 0x140276a18\nmov     rdx, rax                                                       ; +0xdd, 0x140276a1d\ncall    GameManager__fadeInMusic                                       ; +0xe0, 0x140276a20\nadd     rsp, 40h                                                       ; +0xe5, 0x140276a25\npop     rbx                                                            ; +0xe9, 0x140276a29\nretn                                                                   ; +0xea, 0x140276a2a", "xrefs": ["GameManager::returnToLastScene @ 0x140287620", "GameSettingsLayer::dropDownLayerWillClose @ 0x1402c7e6a", "GauntletSelectLayer::unlockAnimationStep3 @ 0x140301024", "GJShopLayer::onBack @ 0x1403b32d2", "LevelAreaLayer::onBack @ 0x1403df64f", "LoadingLayer::loadAssets @ 0x14046a3f7", "MenuLayer::init @ 0x14047215b", "OptionsLayer::onMenuMusic @ 0x1404cbb17", "PlayLayer::onQuit @ 0x14051b326", "SecretRewardsLayer::onBack @ 0x14056d890", "SecretLayer::onBack @ 0x140577a27", "SecretLayer2::onBack @ 0x14057f49b", "SecretLayer4::onBack @ 0x140588d6b", "SongInfoLayer::onMenuMusic @ 0x1406362f2", "<???> @ 0x14091cd78"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}