{"type": "func", "start": 5370264480, "end": 5370264758, "name": "GameManager::fadeInMusic", "pseudocode": "// \n// GameManager::fadeInMusic from 0x14017bba0 to 0x14017bcb6 (278 bytes)\n// \n// 11 xrefs:\n// > GameManager::fadeInMenuMusic @ 0x14017bb8f\n// > GJShopLayer::onBack @ 0x1402acf31\n// > LevelAreaLayer::init @ 0x1402c44c5\n// > LevelAreaInnerLayer::tryResumeTowerMusic @ 0x1402c81ba\n// > SecretRewardsLayer::init @ 0x1403d289e\n// > SecretLayer::init @ 0x1403dcb30\n// > SecretLayer2::init @ 0x1403e23e3\n// > SecretLayer3::init @ 0x1403e9fa1\n// > SecretLayer4::init @ 0x1403efc23\n// > SecretLayer5::init @ 0x1403f4182\n// > <???> @ 0x1406cb370\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=5\nvoid __fastcall GameManager::fadeInMusic(__int64 a1, __int64 a2)\n{\n  _QWORD *v3; // rdi\n  FMODAudioEngine *v4; // rcx\n  __int64 v5; // rdi\n  FMODAudioEngine *v6; // rcx\n  FMODAudioEngine *v7; // [rsp+30h] [rbp-48h]\n  FMODAudioEngine *v8; // [rsp+38h] [rbp-40h]\n  _BYTE v9[32]; // [rsp+40h] [rbp-38h] BYREF\n  __int64 v10; // [rsp+60h] [rbp-18h]\n\n  v10 = a2;\n  if ( *(_QWORD *)(a2 + 16) )\n  {\n    v3 = (_QWORD *)sub_14003BDB0((__int64)v9, a2);\n    v4 = (FMODAudioEngine *)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      v4 = (FMODAudioEngine *)qword_1406C2E88;\n    }\n    if ( !FMODAudioEngine::isMusicPlaying(v4, v3) )\n    {\n      v5 = sub_14003BDB0((__int64)v9, a2);\n      v6 = (FMODAudioEngine *)qword_1406C2E88;\n      if ( !qword_1406C2E88 )\n      {\n        v7 = (FMODAudioEngine *)operator new(0x888u);\n        qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v7);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n        v6 = (FMODAudioEngine *)qword_1406C2E88;\n      }\n      FMODAudioEngine::playMusic(v6, v5, 1, 1.0);\n    }\n  }\n  sub_14003A830(a2);\n}", "assembly": "; \n; GameManager::fadeInMusic from 0x14017bba0 to 0x14017bcb6 (278 bytes)\n; \n; 11 xrefs:\n; > GameManager::fadeInMenuMusic @ 0x14017bb8f\n; > GJShopLayer::onBack @ 0x1402acf31\n; > LevelAreaLayer::init @ 0x1402c44c5\n; > LevelAreaInnerLayer::tryResumeTowerMusic @ 0x1402c81ba\n; > SecretRewardsLayer::init @ 0x1403d289e\n; > SecretLayer::init @ 0x1403dcb30\n; > SecretLayer2::init @ 0x1403e23e3\n; > SecretLayer3::init @ 0x1403e9fa1\n; > SecretLayer4::init @ 0x1403efc23\n; > SecretLayer5::init @ 0x1403f4182\n; > <???> @ 0x1406cb370\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14017bba0\npush    rdi                                                            ; +0x5, 0x14017bba5\nsub     rsp, 70h                                                       ; +0x6, 0x14017bba6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x14017bbaa\nxor     rax, rsp                                                       ; +0x11, 0x14017bbb1\nmov     [rsp+78h+var_10], rax                                          ; +0x14, 0x14017bbb4\nmov     rbx, rdx                                                       ; +0x19, 0x14017bbb9\nmov     [rsp+78h+var_18], rdx                                          ; +0x1c, 0x14017bbbc\ncmp     qword ptr [rdx+10h], 0                                         ; +0x21, 0x14017bbc1\njz      loc_14017BC93                                                  ; +0x26, 0x14017bbc6\nlea     rax, [rsp+78h+var_38]                                          ; +0x2c, 0x14017bbcc\nmov     [rsp+78h+var_48], rax                                          ; +0x31, 0x14017bbd1\nlea     rcx, [rsp+78h+var_38]                                          ; +0x36, 0x14017bbd6\ncall    sub_14003BDB0                                                  ; +0x3b, 0x14017bbdb\nmov     rdi, rax                                                       ; +0x40, 0x14017bbe0\nmov     rcx, cs:qword_1406C2E88                                        ; +0x43, 0x14017bbe3\ntest    rcx, rcx                                                       ; +0x4a, 0x14017bbea\njnz     short loc_14017BC1E                                            ; +0x4d, 0x14017bbed\nmov     ecx, 888h; Size                                                ; +0x4f, 0x14017bbef\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x54, 0x14017bbf4\nmov     [rsp+78h+var_40], rax                                          ; +0x59, 0x14017bbf9\nmov     rcx, rax                                                       ; +0x5e, 0x14017bbfe\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x61, 0x14017bc01\nnop                                                                    ; +0x66, 0x14017bc06\nmov     cs:qword_1406C2E88, rax                                        ; +0x67, 0x14017bc07\nmov     rdx, [rax]                                                     ; +0x6e, 0x14017bc0e\nmov     rcx, rax                                                       ; +0x71, 0x14017bc11\ncall    qword ptr [rdx+48h]                                            ; +0x74, 0x14017bc14\nmov     rcx, cs:qword_1406C2E88                                        ; +0x77, 0x14017bc17\nmov     rdx, rdi                                                       ; +0x7e, 0x14017bc1e\ncall    FMODAudioEngine__isMusicPlaying                                ; +0x81, 0x14017bc21\ntest    al, al                                                         ; +0x86, 0x14017bc26\njnz     short loc_14017BC93                                            ; +0x88, 0x14017bc28\nlea     rax, [rsp+78h+var_38]                                          ; +0x8a, 0x14017bc2a\nmov     [rsp+78h+var_40], rax                                          ; +0x8f, 0x14017bc2f\nmov     rdx, rbx                                                       ; +0x94, 0x14017bc34\nlea     rcx, [rsp+78h+var_38]                                          ; +0x97, 0x14017bc37\ncall    sub_14003BDB0                                                  ; +0x9c, 0x14017bc3c\nmov     rdi, rax                                                       ; +0xa1, 0x14017bc41\nmov     rcx, cs:qword_1406C2E88                                        ; +0xa4, 0x14017bc44\ntest    rcx, rcx                                                       ; +0xab, 0x14017bc4b\njnz     short loc_14017BC7F                                            ; +0xae, 0x14017bc4e\nmov     ecx, 888h; Size                                                ; +0xb0, 0x14017bc50\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb5, 0x14017bc55\nmov     [rsp+78h+var_48], rax                                          ; +0xba, 0x14017bc5a\nmov     rcx, rax                                                       ; +0xbf, 0x14017bc5f\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0xc2, 0x14017bc62\nnop                                                                    ; +0xc7, 0x14017bc67\nmov     cs:qword_1406C2E88, rax                                        ; +0xc8, 0x14017bc68\nmov     rdx, [rax]                                                     ; +0xcf, 0x14017bc6f\nmov     rcx, rax                                                       ; +0xd2, 0x14017bc72\ncall    qword ptr [rdx+48h]                                            ; +0xd5, 0x14017bc75\nmov     rcx, cs:qword_1406C2E88                                        ; +0xd8, 0x14017bc78\nmovss   xmm3, cs:flt_140622C24                                         ; +0xdf, 0x14017bc7f\nmov     r8b, 1                                                         ; +0xe7, 0x14017bc87\nmov     rdx, rdi                                                       ; +0xea, 0x14017bc8a\ncall    FMODAudioEngine__playMusic                                     ; +0xed, 0x14017bc8d\nnop                                                                    ; +0xf2, 0x14017bc92\nmov     rcx, rbx                                                       ; +0xf3, 0x14017bc93\ncall    sub_14003A830                                                  ; +0xf6, 0x14017bc96\nmov     rcx, [rsp+78h+var_10]                                          ; +0xfb, 0x14017bc9b\nxor     rcx, rsp; StackCookie                                          ; +0x100, 0x14017bca0\ncall    __security_check_cookie                                        ; +0x103, 0x14017bca3\nmov     rbx, [rsp+78h+arg_0]                                           ; +0x108, 0x14017bca8\nadd     rsp, 70h                                                       ; +0x110, 0x14017bcb0\npop     rdi                                                            ; +0x114, 0x14017bcb4\nretn                                                                   ; +0x115, 0x14017bcb5", "xrefs": ["GameManager::fadeInMenuMusic @ 0x14017bb8f", "GJShopLayer::onBack @ 0x1402acf31", "LevelAreaLayer::init @ 0x1402c44c5", "LevelAreaInnerLayer::tryResumeTowerMusic @ 0x1402c81ba", "SecretRewardsLayer::init @ 0x1403d289e", "SecretLayer::init @ 0x1403dcb30", "SecretLayer2::init @ 0x1403e23e3", "SecretLayer3::init @ 0x1403e9fa1", "SecretLayer4::init @ 0x1403efc23", "SecretLayer5::init @ 0x1403f4182", "<???> @ 0x1406cb370"], "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"}