{"type": "func", "start": 5369113936, "end": 5369114301, "name": "FMODAudioEngine::playMusic", "pseudocode": "// \n// FMODAudioEngine::playMusic from 0x140062d50 to 0x140062ebd (365 bytes)\n// \n// 7 xrefs:\n// > CustomSongWidget::onPlayback @ 0x14016c0ce\n// > GameManager::playMenuMusic @ 0x140276904\n// > GameManager::fadeInMusic @ 0x140276b20\n// > GJShopLayer::init @ 0x1403b0f18\n// > GJShopLayer::showReactMessage @ 0x1403b3cae\n// > PlayLayer::playPracticeMusic @ 0x14051a33e\n// > <???> @ 0x140910c1c\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:25:44 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall FMODAudioEngine::playMusic(_QWORD *a1, __int64 a2, char a3, float a4)\n{\n  int v7; // eax\n  int v8; // r8d\n  int v9; // r9d\n  __int64 v10; // rax\n  __int64 v11; // rax\n  __int64 v12; // rax\n  _BYTE v13[8]; // [rsp+50h] [rbp-88h] BYREF\n  int v14; // [rsp+58h] [rbp-80h] BYREF\n  _BYTE v15[32]; // [rsp+60h] [rbp-78h] BYREF\n  __int64 v16; // [rsp+80h] [rbp-58h]\n\n  v16 = a2;\n  if ( a1[69] )\n  {\n    v7 = sub_14003F4F0((__int64)v15, a2);\n    FMODAudioEngine::loadMusic((_DWORD)a1, v7, v8, v9, 1065353216, a3, 0, 0, 0);\n    if ( a4 > 0.0 )\n      FMODAudioEngine::fadeInMusic(a1);\n    v14 = 0;\n    if ( sub_140066B50(a1 + 40, &v14) )\n    {\n      v10 = sub_140068620(a1 + 40, v15, &v14);\n      v11 = FMODAudioEngine::channelForChannelID(a1, *(_DWORD *)(*(_QWORD *)v10 + 24LL));\n      if ( v11 )\n        FMOD::ChannelControl::setPaused(v11, 0);\n    }\n    v13[0] = 0;\n    FMOD::ChannelControl::getPaused(a1[69], v13);\n    v14 = 0;\n    if ( sub_140066B50(a1 + 40, &v14) )\n    {\n      v12 = sub_140068620(a1 + 40, v15, &v14);\n      FMODAudioEngine::channelForChannelID(a1, *(_DWORD *)(*(_QWORD *)v12 + 24LL));\n    }\n  }\n  sub_14003D310(a2);\n}", "assembly": "; \n; FMODAudioEngine::playMusic from 0x140062d50 to 0x140062ebd (365 bytes)\n; \n; 7 xrefs:\n; > CustomSongWidget::onPlayback @ 0x14016c0ce\n; > GameManager::playMenuMusic @ 0x140276904\n; > GameManager::fadeInMusic @ 0x140276b20\n; > GJShopLayer::init @ 0x1403b0f18\n; > GJShopLayer::showReactMessage @ 0x1403b3cae\n; > PlayLayer::playPracticeMusic @ 0x14051a33e\n; > <???> @ 0x140910c1c\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:25:44 +0000\n; \nmov     r11, rsp                                                       ; +0x0, 0x140062d50\npush    rbx                                                            ; +0x3, 0x140062d53\npush    rbp                                                            ; +0x4, 0x140062d54\npush    rsi                                                            ; +0x5, 0x140062d55\npush    rdi                                                            ; +0x6, 0x140062d56\nsub     rsp, 0B8h                                                      ; +0x7, 0x140062d57\nmovaps  xmmword ptr [r11-38h], xmm6                                    ; +0xe, 0x140062d5e\nmovaps  xmmword ptr [r11-48h], xmm7                                    ; +0x13, 0x140062d63\nmov     rax, cs:__security_cookie                                      ; +0x18, 0x140062d68\nxor     rax, rsp                                                       ; +0x1f, 0x140062d6f\nmov     [rsp+0D8h+var_50], rax                                         ; +0x22, 0x140062d72\nmovaps  xmm7, xmm3                                                     ; +0x2a, 0x140062d7a\nmovzx   edi, r8b                                                       ; +0x2d, 0x140062d7d\nmov     rsi, rdx                                                       ; +0x31, 0x140062d81\nmov     rbx, rcx                                                       ; +0x34, 0x140062d84\nmov     [r11-58h], rdx                                                 ; +0x37, 0x140062d87\ncmp     qword ptr [rcx+228h], 0                                        ; +0x3b, 0x140062d8b\njz      loc_140062E89                                                  ; +0x43, 0x140062d93\nlea     rcx, [r11-78h]                                                 ; +0x49, 0x140062d99\ncall    sub_14003F4F0                                                  ; +0x4d, 0x140062d9d\nmov     [rsp+0D8h+var_98], 0                                           ; +0x52, 0x140062da2\nxor     ebp, ebp                                                       ; +0x57, 0x140062da7\nmov     [rsp+0D8h+var_A0], ebp                                         ; +0x59, 0x140062da9\nmov     [rsp+0D8h+var_A8], ebp                                         ; +0x5d, 0x140062dad\nmov     [rsp+0D8h+var_B0], dil                                         ; +0x61, 0x140062db1\nmovss   xmm2, cs:flt_140835080                                         ; +0x66, 0x140062db6\nmovss   [rsp+0D8h+var_B8], xmm2                                        ; +0x6e, 0x140062dbe\nxorps   xmm6, xmm6                                                     ; +0x74, 0x140062dc4\nxorps   xmm3, xmm3                                                     ; +0x77, 0x140062dc7\nmov     rdx, rax                                                       ; +0x7a, 0x140062dca\nmov     rcx, rbx                                                       ; +0x7d, 0x140062dcd\ncall    FMODAudioEngine__loadMusic                                     ; +0x80, 0x140062dd0\ncomiss  xmm7, xmm6                                                     ; +0x85, 0x140062dd5\njbe     short loc_140062DE5                                            ; +0x88, 0x140062dd8\nmovaps  xmm1, xmm7                                                     ; +0x8a, 0x140062dda\nmov     rcx, rbx                                                       ; +0x8d, 0x140062ddd\ncall    FMODAudioEngine__fadeInMusic                                   ; +0x90, 0x140062de0\nmov     [rsp+0D8h+var_80], ebp                                         ; +0x95, 0x140062de5\nlea     rdx, [rsp+0D8h+var_80]                                         ; +0x99, 0x140062de9\nlea     rcx, [rbx+140h]                                                ; +0x9e, 0x140062dee\ncall    sub_140066B50                                                  ; +0xa5, 0x140062df5\ntest    rax, rax                                                       ; +0xaa, 0x140062dfa\njz      short loc_140062E33                                            ; +0xad, 0x140062dfd\nlea     r8, [rsp+0D8h+var_80]                                          ; +0xaf, 0x140062dff\nlea     rdx, [rsp+0D8h+var_78]                                         ; +0xb4, 0x140062e04\nlea     rcx, [rbx+140h]                                                ; +0xb9, 0x140062e09\ncall    sub_140068620                                                  ; +0xc0, 0x140062e10\nmov     rdx, [rax]                                                     ; +0xc5, 0x140062e15\nmov     edx, [rdx+18h]                                                 ; +0xc8, 0x140062e18\nmov     rcx, rbx                                                       ; +0xcb, 0x140062e1b\ncall    FMODAudioEngine__channelForChannelID                           ; +0xce, 0x140062e1e\ntest    rax, rax                                                       ; +0xd3, 0x140062e23\njz      short loc_140062E33                                            ; +0xd6, 0x140062e26\nxor     edx, edx                                                       ; +0xd8, 0x140062e28\nmov     rcx, rax                                                       ; +0xda, 0x140062e2a\ncall    cs:?setPaused@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@_N@Z; FMOD::ChannelControl::setPaused(bool) ; +0xdd, 0x140062e2d\nmov     [rsp+0D8h+var_88], bpl                                         ; +0xe3, 0x140062e33\nlea     rdx, [rsp+0D8h+var_88]                                         ; +0xe8, 0x140062e38\nmov     rcx, [rbx+228h]                                                ; +0xed, 0x140062e3d\ncall    cs:?getPaused@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@PEA_N@Z; FMOD::ChannelControl::getPaused(bool *) ; +0xf4, 0x140062e44\nmov     [rsp+0D8h+var_80], ebp                                         ; +0xfa, 0x140062e4a\nlea     rdx, [rsp+0D8h+var_80]                                         ; +0xfe, 0x140062e4e\nlea     rcx, [rbx+140h]                                                ; +0x103, 0x140062e53\ncall    sub_140066B50                                                  ; +0x10a, 0x140062e5a\ntest    rax, rax                                                       ; +0x10f, 0x140062e5f\njz      short loc_140062E89                                            ; +0x112, 0x140062e62\nlea     r8, [rsp+0D8h+var_80]                                          ; +0x114, 0x140062e64\nlea     rdx, [rsp+0D8h+var_78]                                         ; +0x119, 0x140062e69\nlea     rcx, [rbx+140h]                                                ; +0x11e, 0x140062e6e\ncall    sub_140068620                                                  ; +0x125, 0x140062e75\nmov     rdx, [rax]                                                     ; +0x12a, 0x140062e7a\nmov     edx, [rdx+18h]                                                 ; +0x12d, 0x140062e7d\nmov     rcx, rbx                                                       ; +0x130, 0x140062e80\ncall    FMODAudioEngine__channelForChannelID                           ; +0x133, 0x140062e83\nnop                                                                    ; +0x138, 0x140062e88\nmov     rcx, rsi                                                       ; +0x139, 0x140062e89\ncall    sub_14003D310                                                  ; +0x13c, 0x140062e8c\nmov     rcx, [rsp+0D8h+var_50]                                         ; +0x141, 0x140062e91\nxor     rcx, rsp; StackCookie                                          ; +0x149, 0x140062e99\ncall    __security_check_cookie                                        ; +0x14c, 0x140062e9c\nmovaps  xmm6, [rsp+0D8h+var_38]                                        ; +0x151, 0x140062ea1\nmovaps  xmm7, [rsp+0D8h+var_48]                                        ; +0x159, 0x140062ea9\nadd     rsp, 0B8h                                                      ; +0x161, 0x140062eb1\npop     rdi                                                            ; +0x168, 0x140062eb8\npop     rsi                                                            ; +0x169, 0x140062eb9\npop     rbp                                                            ; +0x16a, 0x140062eba\npop     rbx                                                            ; +0x16b, 0x140062ebb\nretn                                                                   ; +0x16c, 0x140062ebc", "xrefs": ["CustomSongWidget::onPlayback @ 0x14016c0ce", "GameManager::playMenuMusic @ 0x140276904", "GameManager::fadeInMusic @ 0x140276b20", "GJShopLayer::init @ 0x1403b0f18", "GJShopLayer::showReactMessage @ 0x1403b3cae", "PlayLayer::playPracticeMusic @ 0x14051a33e", "<???> @ 0x140910c1c"], "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"}