{"type": "func", "start": 5370264240, "end": 5370264474, "name": "GameManager::fadeInMenuMusic", "pseudocode": "// \n// GameManager::fadeInMenuMusic from 0x14017bab0 to 0x14017bb9a (234 bytes)\n// \n// 14 xrefs:\n// > GameManager::returnToLastScene @ 0x14018a305\n// > GJShopLayer::onBack @ 0x1402acf7c\n// > LevelAreaLayer::onBack @ 0x1402c631c\n// > LoadingLayer::loadAssets @ 0x14032f767\n// > MenuLayer::init @ 0x140333b32\n// > OptionsLayer::onMenuMusic @ 0x140372983\n// > MoreOptionsLayer::dropDownLayerWillClose @ 0x1403765a3\n// > PlayLayer::onQuit @ 0x1403bada3\n// > SecretRewardsLayer::onBack @ 0x1403d7dad\n// > SecretLayer::onBack @ 0x1403e1ee4\n// > SecretLayer2::onBack @ 0x1403e98b8\n// > SecretLayer4::onBack @ 0x1403f36d8\n// > SongInfoLayer::onMenuMusic @ 0x14049436a\n// > <???> @ 0x1406cb364\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=3\nvoid GameManager::fadeInMenuMusic(GameManager *a1)\n{\n  GameManager *v2; // rcx\n  __int64 v3; // rbx\n  __int64 MenuMusicFile; // rax\n  __int64 v5; // rcx\n  _BYTE v6[40]; // [rsp+20h] [rbp-28h] BYREF\n  void *v7; // [rsp+58h] [rbp+10h]\n  FMODAudioEngine *v8; // [rsp+58h] [rbp+10h]\n\n  v2 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v7 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v2 = (GameManager *)qword_1406C2ED8;\n  }\n  if ( GameManager::getGameVariable(v2, \"0122\") )\n  {\n    v3 = qword_1406C2E88;\n    if ( !qword_1406C2E88 )\n    {\n      v8 = (FMODAudioEngine *)operator new(0x888u);\n      qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v8);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      v3 = qword_1406C2E88;\n    }\n    if ( *(_QWORD *)(v3 + 552) )\n      FMOD::ChannelControl::stop(*(FMOD::ChannelControl **)(v3 + 552));\n    sub_14005E0D0((_QWORD *)(v3 + 1064));\n    sub_14005E0D0((_QWORD *)(v3 + 1128));\n    sub_14005E0D0((_QWORD *)(v3 + 1192));\n  }\n  else\n  {\n    MenuMusicFile = GameManager::getMenuMusicFile((__int64)a1, (__int64)v6);\n    GameManager::fadeInMusic(v5, MenuMusicFile);\n  }\n}", "assembly": "; \n; GameManager::fadeInMenuMusic from 0x14017bab0 to 0x14017bb9a (234 bytes)\n; \n; 14 xrefs:\n; > GameManager::returnToLastScene @ 0x14018a305\n; > GJShopLayer::onBack @ 0x1402acf7c\n; > LevelAreaLayer::onBack @ 0x1402c631c\n; > LoadingLayer::loadAssets @ 0x14032f767\n; > MenuLayer::init @ 0x140333b32\n; > OptionsLayer::onMenuMusic @ 0x140372983\n; > MoreOptionsLayer::dropDownLayerWillClose @ 0x1403765a3\n; > PlayLayer::onQuit @ 0x1403bada3\n; > SecretRewardsLayer::onBack @ 0x1403d7dad\n; > SecretLayer::onBack @ 0x1403e1ee4\n; > SecretLayer2::onBack @ 0x1403e98b8\n; > SecretLayer4::onBack @ 0x1403f36d8\n; > SongInfoLayer::onMenuMusic @ 0x14049436a\n; > <???> @ 0x1406cb364\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x14017bab0\nsub     rsp, 40h                                                       ; +0x2, 0x14017bab2\nmov     rbx, rcx                                                       ; +0x6, 0x14017bab6\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x9, 0x14017bab9\ntest    rcx, rcx                                                       ; +0x10, 0x14017bac0\njnz     short loc_14017BAF4                                            ; +0x13, 0x14017bac3\nmov     ecx, 668h; Size                                                ; +0x15, 0x14017bac5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x14017baca\nmov     [rsp+48h+arg_8], rax                                           ; +0x1f, 0x14017bacf\nmov     rcx, rax                                                       ; +0x24, 0x14017bad4\ncall    sub_14017AB00                                                  ; +0x27, 0x14017bad7\nnop                                                                    ; +0x2c, 0x14017badc\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2d, 0x14017badd\nmov     rdx, [rax]                                                     ; +0x34, 0x14017bae4\nmov     rcx, rax                                                       ; +0x37, 0x14017bae7\ncall    qword ptr [rdx+48h]                                            ; +0x3a, 0x14017baea\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x3d, 0x14017baed\nlea     rdx, a0122; \"0122\"                                             ; +0x44, 0x14017baf4\ncall    GameManager__getGameVariable                                   ; +0x4b, 0x14017bafb\ntest    al, al                                                         ; +0x50, 0x14017bb00\njz      short loc_14017BB7F                                            ; +0x52, 0x14017bb02\nmov     rbx, cs:qword_1406C2E88                                        ; +0x54, 0x14017bb04\ntest    rbx, rbx                                                       ; +0x5b, 0x14017bb0b\njnz     short loc_14017BB3F                                            ; +0x5e, 0x14017bb0e\nmov     ecx, 888h; Size                                                ; +0x60, 0x14017bb10\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x65, 0x14017bb15\nmov     [rsp+48h+arg_8], rax                                           ; +0x6a, 0x14017bb1a\nmov     rcx, rax                                                       ; +0x6f, 0x14017bb1f\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x72, 0x14017bb22\nnop                                                                    ; +0x77, 0x14017bb27\nmov     cs:qword_1406C2E88, rax                                        ; +0x78, 0x14017bb28\nmov     rdx, [rax]                                                     ; +0x7f, 0x14017bb2f\nmov     rcx, rax                                                       ; +0x82, 0x14017bb32\ncall    qword ptr [rdx+48h]                                            ; +0x85, 0x14017bb35\nmov     rbx, cs:qword_1406C2E88                                        ; +0x88, 0x14017bb38\ncmp     qword ptr [rbx+228h], 0                                        ; +0x8f, 0x14017bb3f\njz      short loc_14017BB56                                            ; +0x97, 0x14017bb47\nmov     rcx, [rbx+228h]                                                ; +0x99, 0x14017bb49\ncall    cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0xa0, 0x14017bb50\nlea     rcx, [rbx+428h]                                                ; +0xa6, 0x14017bb56\ncall    sub_14005E0D0                                                  ; +0xad, 0x14017bb5d\nlea     rcx, [rbx+468h]                                                ; +0xb2, 0x14017bb62\ncall    sub_14005E0D0                                                  ; +0xb9, 0x14017bb69\nlea     rcx, [rbx+4A8h]                                                ; +0xbe, 0x14017bb6e\nadd     rsp, 40h                                                       ; +0xc5, 0x14017bb75\npop     rbx                                                            ; +0xc9, 0x14017bb79\njmp     sub_14005E0D0                                                  ; +0xca, 0x14017bb7a\nlea     rdx, [rsp+48h+var_28]                                          ; +0xcf, 0x14017bb7f\nmov     rcx, rbx                                                       ; +0xd4, 0x14017bb84\ncall    GameManager__getMenuMusicFile                                  ; +0xd7, 0x14017bb87\nmov     rdx, rax                                                       ; +0xdc, 0x14017bb8c\ncall    GameManager__fadeInMusic                                       ; +0xdf, 0x14017bb8f\nadd     rsp, 40h                                                       ; +0xe4, 0x14017bb94\npop     rbx                                                            ; +0xe8, 0x14017bb98\nretn                                                                   ; +0xe9, 0x14017bb99", "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"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}