{"type": "func", "start": 5371292208, "end": 5371292489, "name": "GameManager::fadeInMusic", "pseudocode": "// \n// GameManager::fadeInMusic from 0x140276a30 to 0x140276b49 (281 bytes)\n// \n// 11 xrefs:\n// > GameManager::fadeInMenuMusic @ 0x140276a20\n// > GJShopLayer::onBack @ 0x1403b3284\n// > LevelAreaLayer::init @ 0x1403dd778\n// > LevelAreaInnerLayer::tryResumeTowerMusic @ 0x1403e14dd\n// > SecretRewardsLayer::init @ 0x140568277\n// > SecretLayer::init @ 0x140572553\n// > SecretLayer2::init @ 0x140577f21\n// > SecretLayer3::init @ 0x14057fb8e\n// > SecretLayer4::init @ 0x140585442\n// > SecretLayer5::init @ 0x1405897f0\n// > <???> @ 0x14091cd84\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=5\nvoid __fastcall GameManager::fadeInMusic(__int64 a1, __int64 a2)\n{\n  _QWORD *v3; // rdi\n  _QWORD *v4; // rcx\n  __int64 v5; // rdi\n  _QWORD *v6; // rcx\n  void *v7; // [rsp+30h] [rbp-48h]\n  void *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_14003F4F0((__int64)v9, a2);\n    v4 = (_QWORD *)qword_14090BF60;\n    if ( !qword_14090BF60 )\n    {\n      v8 = operator new(0x8A8u);\n      qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v8);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);\n      v4 = (_QWORD *)qword_14090BF60;\n    }\n    if ( !FMODAudioEngine::isMusicPlaying(v4, v3) )\n    {\n      v5 = sub_14003F4F0((__int64)v9, a2);\n      v6 = (_QWORD *)qword_14090BF60;\n      if ( !qword_14090BF60 )\n      {\n        v7 = operator new(0x8A8u);\n        qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v7);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);\n        v6 = (_QWORD *)qword_14090BF60;\n      }\n      FMODAudioEngine::playMusic(v6, v5, 1, 1.0);\n    }\n  }\n  sub_14003D310(a2);\n}", "assembly": "; \n; GameManager::fadeInMusic from 0x140276a30 to 0x140276b49 (281 bytes)\n; \n; 11 xrefs:\n; > GameManager::fadeInMenuMusic @ 0x140276a20\n; > GJShopLayer::onBack @ 0x1403b3284\n; > LevelAreaLayer::init @ 0x1403dd778\n; > LevelAreaInnerLayer::tryResumeTowerMusic @ 0x1403e14dd\n; > SecretRewardsLayer::init @ 0x140568277\n; > SecretLayer::init @ 0x140572553\n; > SecretLayer2::init @ 0x140577f21\n; > SecretLayer3::init @ 0x14057fb8e\n; > SecretLayer4::init @ 0x140585442\n; > SecretLayer5::init @ 0x1405897f0\n; > <???> @ 0x14091cd84\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; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140276a30\npush    rdi                                                            ; +0x5, 0x140276a35\nsub     rsp, 70h                                                       ; +0x6, 0x140276a36\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x140276a3a\nxor     rax, rsp                                                       ; +0x11, 0x140276a41\nmov     [rsp+78h+var_10], rax                                          ; +0x14, 0x140276a44\nmov     rbx, rdx                                                       ; +0x19, 0x140276a49\nmov     [rsp+78h+var_18], rdx                                          ; +0x1c, 0x140276a4c\ncmp     qword ptr [rdx+10h], 0                                         ; +0x21, 0x140276a51\njz      loc_140276B26                                                  ; +0x26, 0x140276a56\nlea     rax, [rsp+78h+var_38]                                          ; +0x2c, 0x140276a5c\nmov     [rsp+78h+var_48], rax                                          ; +0x31, 0x140276a61\nlea     rcx, [rsp+78h+var_38]                                          ; +0x36, 0x140276a66\ncall    sub_14003F4F0                                                  ; +0x3b, 0x140276a6b\nmov     rdi, rax                                                       ; +0x40, 0x140276a70\nmov     rcx, cs:qword_14090BF60                                        ; +0x43, 0x140276a73\ntest    rcx, rcx                                                       ; +0x4a, 0x140276a7a\njnz     short loc_140276AB1                                            ; +0x4d, 0x140276a7d\nmov     ecx, 8A8h; Size                                                ; +0x4f, 0x140276a7f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x54, 0x140276a84\nmov     [rsp+78h+var_40], rax                                          ; +0x59, 0x140276a89\nmov     rcx, rax                                                       ; +0x5e, 0x140276a8e\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x61, 0x140276a91\nnop                                                                    ; +0x66, 0x140276a96\nmov     cs:qword_14090BF60, rax                                        ; +0x67, 0x140276a97\nmov     rcx, [rax]                                                     ; +0x6e, 0x140276a9e\nmov     rdx, [rcx+48h]                                                 ; +0x71, 0x140276aa1\nmov     rcx, rax                                                       ; +0x75, 0x140276aa5\ncall    rdx                                                            ; +0x78, 0x140276aa8\nmov     rcx, cs:qword_14090BF60                                        ; +0x7a, 0x140276aaa\nmov     rdx, rdi                                                       ; +0x81, 0x140276ab1\ncall    FMODAudioEngine__isMusicPlaying                                ; +0x84, 0x140276ab4\ntest    al, al                                                         ; +0x89, 0x140276ab9\njnz     short loc_140276B26                                            ; +0x8b, 0x140276abb\nlea     rax, [rsp+78h+var_38]                                          ; +0x8d, 0x140276abd\nmov     [rsp+78h+var_40], rax                                          ; +0x92, 0x140276ac2\nmov     rdx, rbx                                                       ; +0x97, 0x140276ac7\nlea     rcx, [rsp+78h+var_38]                                          ; +0x9a, 0x140276aca\ncall    sub_14003F4F0                                                  ; +0x9f, 0x140276acf\nmov     rdi, rax                                                       ; +0xa4, 0x140276ad4\nmov     rcx, cs:qword_14090BF60                                        ; +0xa7, 0x140276ad7\ntest    rcx, rcx                                                       ; +0xae, 0x140276ade\njnz     short loc_140276B12                                            ; +0xb1, 0x140276ae1\nmov     ecx, 8A8h; Size                                                ; +0xb3, 0x140276ae3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xb8, 0x140276ae8\nmov     [rsp+78h+var_48], rax                                          ; +0xbd, 0x140276aed\nmov     rcx, rax                                                       ; +0xc2, 0x140276af2\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0xc5, 0x140276af5\nnop                                                                    ; +0xca, 0x140276afa\nmov     cs:qword_14090BF60, rax                                        ; +0xcb, 0x140276afb\nmov     rdx, [rax]                                                     ; +0xd2, 0x140276b02\nmov     rcx, rax                                                       ; +0xd5, 0x140276b05\ncall    qword ptr [rdx+48h]                                            ; +0xd8, 0x140276b08\nmov     rcx, cs:qword_14090BF60                                        ; +0xdb, 0x140276b0b\nmovss   xmm3, cs:flt_140835080                                         ; +0xe2, 0x140276b12\nmov     r8b, 1                                                         ; +0xea, 0x140276b1a\nmov     rdx, rdi                                                       ; +0xed, 0x140276b1d\ncall    FMODAudioEngine__playMusic                                     ; +0xf0, 0x140276b20\nnop                                                                    ; +0xf5, 0x140276b25\nmov     rcx, rbx                                                       ; +0xf6, 0x140276b26\ncall    sub_14003D310                                                  ; +0xf9, 0x140276b29\nmov     rcx, [rsp+78h+var_10]                                          ; +0xfe, 0x140276b2e\nxor     rcx, rsp; StackCookie                                          ; +0x103, 0x140276b33\ncall    __security_check_cookie                                        ; +0x106, 0x140276b36\nmov     rbx, [rsp+78h+arg_0]                                           ; +0x10b, 0x140276b3b\nadd     rsp, 70h                                                       ; +0x113, 0x140276b43\npop     rdi                                                            ; +0x117, 0x140276b47\nretn                                                                   ; +0x118, 0x140276b48", "xrefs": ["GameManager::fadeInMenuMusic @ 0x140276a20", "GJShopLayer::onBack @ 0x1403b3284", "LevelAreaLayer::init @ 0x1403dd778", "LevelAreaInnerLayer::tryResumeTowerMusic @ 0x1403e14dd", "SecretRewardsLayer::init @ 0x140568277", "SecretLayer::init @ 0x140572553", "SecretLayer2::init @ 0x140577f21", "SecretLayer3::init @ 0x14057fb8e", "SecretLayer4::init @ 0x140585442", "SecretLayer5::init @ 0x1405897f0", "<???> @ 0x14091cd84"], "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"}