{"type": "func", "start": 5369077520, "end": 5369077818, "name": "FMODAudioEngine::isMusicPlaying", "pseudocode": "// \n// FMODAudioEngine::isMusicPlaying from 0x140059f10 to 0x14005a03a (298 bytes)\n// \n// 7 xrefs:\n// > CustomSongCell::onDelete @ 0x1400b4970\n// > CustomSongWidget::deleteSong @ 0x1400ca0b0\n// > CustomSongWidget::onPlayback @ 0x1400cb059\n// > CustomSongWidget::updatePlaybackBtn @ 0x1400cb339\n// > GameManager::playMenuMusic @ 0x14017b983\n// > GameManager::fadeInMusic @ 0x14017bc21\n// > <???> @ 0x1406c52a4\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=2\n_BOOL8 __fastcall FMODAudioEngine::isMusicPlaying(FMODAudioEngine *a1, _QWORD *a2)\n{\n  _QWORD *v4; // rax\n  unsigned __int64 v5; // rbx\n  bool v6; // di\n  void *v7; // rcx\n  int v9; // [rsp+20h] [rbp-58h] BYREF\n  int v10; // [rsp+28h] [rbp-50h]\n  _BYTE v11[16]; // [rsp+30h] [rbp-48h] BYREF\n  _QWORD *v12; // [rsp+40h] [rbp-38h]\n  void *Block[2]; // [rsp+48h] [rbp-30h] BYREF\n  __int64 v14; // [rsp+58h] [rbp-20h]\n  __int64 v15; // [rsp+60h] [rbp-18h]\n\n  v12 = a2;\n  v10 = 0;\n  v9 = 0;\n  if ( sub_14005F8D0(&a1->m_fmodMusic, &v9) )\n  {\n    v4 = (_QWORD *)sub_140061560(&a1->m_fmodMusic, v11, &v9);\n    sub_14003BDB0((__int64)Block, *v4 + 40LL);\n    v5 = v15;\n  }\n  else\n  {\n    *(_OWORD *)Block = 0;\n    v14 = 0;\n    v5 = 15;\n    v15 = 15;\n    LOBYTE(Block[0]) = 0;\n  }\n  v10 = 3;\n  v6 = !sub_14003A760(Block, a2) && FMODAudioEngine::isMusicPlaying_1(a1, 0);\n  if ( v5 > 0xF )\n  {\n    v7 = Block[0];\n    if ( v5 + 1 >= 0x1000 )\n    {\n      v7 = *((void **)Block[0] - 1);\n      if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v7);\n  }\n  sub_14003A830((__int64)a2);\n  return v6;\n}", "assembly": "; \n; FMODAudioEngine::isMusicPlaying from 0x140059f10 to 0x14005a03a (298 bytes)\n; \n; 7 xrefs:\n; > CustomSongCell::onDelete @ 0x1400b4970\n; > CustomSongWidget::deleteSong @ 0x1400ca0b0\n; > CustomSongWidget::onPlayback @ 0x1400cb059\n; > CustomSongWidget::updatePlaybackBtn @ 0x1400cb339\n; > GameManager::playMenuMusic @ 0x14017b983\n; > GameManager::fadeInMusic @ 0x14017bc21\n; > <???> @ 0x1406c52a4\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_10], rbx                                              ; +0x0, 0x140059f10\nmov     [rsp+arg_18], rsi                                              ; +0x5, 0x140059f15\npush    rdi                                                            ; +0xa, 0x140059f1a\nsub     rsp, 70h                                                       ; +0xb, 0x140059f1b\nmov     rax, cs:__security_cookie                                      ; +0xf, 0x140059f1f\nxor     rax, rsp                                                       ; +0x16, 0x140059f26\nmov     [rsp+78h+var_10], rax                                          ; +0x19, 0x140059f29\nmov     rsi, rdx                                                       ; +0x1e, 0x140059f2e\nmov     rdi, rcx                                                       ; +0x21, 0x140059f31\nmov     [rsp+78h+var_38], rdx                                          ; +0x24, 0x140059f34\nxor     ebx, ebx                                                       ; +0x29, 0x140059f39\nmov     [rsp+78h+var_50], ebx                                          ; +0x2b, 0x140059f3b\nmov     [rsp+78h+var_58], ebx                                          ; +0x2f, 0x140059f3f\nlea     rdx, [rsp+78h+var_58]                                          ; +0x33, 0x140059f43\nadd     rcx, 140h                                                      ; +0x38, 0x140059f48\ncall    sub_14005F8D0                                                  ; +0x3f, 0x140059f4f\ntest    rax, rax                                                       ; +0x44, 0x140059f54\njz      short loc_140059F87                                            ; +0x47, 0x140059f57\nlea     r8, [rsp+78h+var_58]                                           ; +0x49, 0x140059f59\nlea     rdx, [rsp+78h+var_48]                                          ; +0x4e, 0x140059f5e\nlea     rcx, [rdi+140h]                                                ; +0x53, 0x140059f63\ncall    sub_140061560                                                  ; +0x5a, 0x140059f6a\nmov     rdx, [rax]                                                     ; +0x5f, 0x140059f6f\nadd     rdx, 28h ; '('                                                 ; +0x62, 0x140059f72\nlea     rcx, [rsp+78h+Block]                                           ; +0x66, 0x140059f76\ncall    sub_14003BDB0                                                  ; +0x6b, 0x140059f7b\nmov     rbx, [rsp+78h+var_18]                                          ; +0x70, 0x140059f80\njmp     short loc_140059FA3                                            ; +0x75, 0x140059f85\nxorps   xmm0, xmm0                                                     ; +0x77, 0x140059f87\nmovups  xmmword ptr [rsp+78h+Block], xmm0                              ; +0x7a, 0x140059f8a\nmov     [rsp+78h+var_20], rbx                                          ; +0x7f, 0x140059f8f\nmov     ebx, 0Fh                                                       ; +0x84, 0x140059f94\nmov     [rsp+78h+var_18], rbx                                          ; +0x89, 0x140059f99\nmov     byte ptr [rsp+78h+Block], 0                                    ; +0x8e, 0x140059f9e\nmov     [rsp+78h+var_50], 3                                            ; +0x93, 0x140059fa3\nmov     rdx, rsi; Buf2                                                 ; +0x9b, 0x140059fab\nlea     rcx, [rsp+78h+Block]; Buf1                                     ; +0x9e, 0x140059fae\ncall    sub_14003A760                                                  ; +0xa3, 0x140059fb3\ntest    eax, eax                                                       ; +0xa8, 0x140059fb8\njnz     short loc_140059FCF                                            ; +0xaa, 0x140059fba\nxor     edx, edx                                                       ; +0xac, 0x140059fbc\nmov     rcx, rdi                                                       ; +0xae, 0x140059fbe\ncall    FMODAudioEngine__isMusicPlaying_1                              ; +0xb1, 0x140059fc1\ntest    al, al                                                         ; +0xb6, 0x140059fc6\njz      short loc_140059FCF                                            ; +0xb8, 0x140059fc8\nmov     dil, 1                                                         ; +0xba, 0x140059fca\njmp     short loc_140059FD2                                            ; +0xbd, 0x140059fcd\nxor     dil, dil                                                       ; +0xbf, 0x140059fcf\ncmp     rbx, 0Fh                                                       ; +0xc2, 0x140059fd2\njbe     short loc_14005A00F                                            ; +0xc6, 0x140059fd6\nlea     rdx, [rbx+1]                                                   ; +0xc8, 0x140059fd8\nmov     rcx, [rsp+78h+Block]; Block                                    ; +0xcc, 0x140059fdc\nmov     rax, rcx                                                       ; +0xd1, 0x140059fe1\ncmp     rdx, 1000h                                                     ; +0xd4, 0x140059fe4\njb      short loc_14005A009                                            ; +0xdb, 0x140059feb\nadd     rdx, 27h ; '''                                                 ; +0xdd, 0x140059fed\nmov     rcx, [rcx-8]                                                   ; +0xe1, 0x140059ff1\nsub     rax, rcx                                                       ; +0xe5, 0x140059ff5\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xe8, 0x140059ff8\ncmp     rax, 1Fh                                                       ; +0xec, 0x140059ffc\njbe     short loc_14005A009                                            ; +0xf0, 0x14005a000\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xf2, 0x14005a002\ndb 0CCh                                                                ; +0xf8, 0x14005a008\ncall    j_j_free                                                       ; +0xf9, 0x14005a009\nnop                                                                    ; +0xfe, 0x14005a00e\nmov     rcx, rsi                                                       ; +0xff, 0x14005a00f\ncall    sub_14003A830                                                  ; +0x102, 0x14005a012\nmovzx   eax, dil                                                       ; +0x107, 0x14005a017\nmov     rcx, [rsp+78h+var_10]                                          ; +0x10b, 0x14005a01b\nxor     rcx, rsp; StackCookie                                          ; +0x110, 0x14005a020\ncall    __security_check_cookie                                        ; +0x113, 0x14005a023\nlea     r11, [rsp+78h+var_8]                                           ; +0x118, 0x14005a028\nmov     rbx, [r11+20h]                                                 ; +0x11d, 0x14005a02d\nmov     rsi, [r11+28h]                                                 ; +0x121, 0x14005a031\nmov     rsp, r11                                                       ; +0x125, 0x14005a035\npop     rdi                                                            ; +0x128, 0x14005a038\nretn                                                                   ; +0x129, 0x14005a039", "xrefs": ["CustomSongCell::onDelete @ 0x1400b4970", "CustomSongWidget::deleteSong @ 0x1400ca0b0", "CustomSongWidget::onPlayback @ 0x1400cb059", "CustomSongWidget::updatePlaybackBtn @ 0x1400cb339", "GameManager::playMenuMusic @ 0x14017b983", "GameManager::fadeInMusic @ 0x14017bc21", "<???> @ 0x1406c52a4"], "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"}