{"type": "func", "start": 5369086816, "end": 5369086945, "name": "FMODAudioEngine::getMusicLengthMS", "pseudocode": "// \n// FMODAudioEngine::getMusicLengthMS from 0x14005c360 to 0x14005c3e1 (129 bytes)\n// \n// 4 xrefs:\n// > MusicBrowser::update @ 0x140339606\n// > MusicBrowser::sliderEnded @ 0x140339b69\n// > SetupSongTriggerPopup::init @ 0x14045d467\n// > <???> @ 0x1406c53f4\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\nunsigned int FMODAudioEngine::getMusicLengthMS(FMODAudioEngine *a1, int a2)\n{\n  __int64 v3; // rax\n  FMOD::Channel *v4; // rax\n  int v6; // [rsp+20h] [rbp-28h] BYREF\n  _BYTE v7[32]; // [rsp+28h] [rbp-20h] BYREF\n  struct FMOD::Sound *v8; // [rsp+50h] [rbp+8h] BYREF\n  unsigned int v9; // [rsp+58h] [rbp+10h] BYREF\n\n  v6 = 0;\n  v9 = 0;\n  v3 = sub_140061560(&a1->m_fmodMusic, v7, &v6);\n  v4 = FMODAudioEngine::channelForChannelID(a1, *(_DWORD *)(*(_QWORD *)v3 + 24LL));\n  if ( v4 )\n  {\n    v8 = nullptr;\n    FMOD::Channel::getCurrentSound(v4, &v8);\n    if ( v8 )\n      FMOD::Sound::getLength(v8, &v9, 1u);\n  }\n  return v9;\n}", "assembly": "; \n; FMODAudioEngine::getMusicLengthMS from 0x14005c360 to 0x14005c3e1 (129 bytes)\n; \n; 4 xrefs:\n; > MusicBrowser::update @ 0x140339606\n; > MusicBrowser::sliderEnded @ 0x140339b69\n; > SetupSongTriggerPopup::init @ 0x14045d467\n; > <???> @ 0x1406c53f4\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_8], edx                                               ; +0x0, 0x14005c360\npush    rbx                                                            ; +0x4, 0x14005c364\nsub     rsp, 40h                                                       ; +0x5, 0x14005c365\nmov     rbx, rcx                                                       ; +0x9, 0x14005c369\nmov     [rsp+48h+var_28], 0                                            ; +0xc, 0x14005c36c\nadd     rcx, 140h                                                      ; +0x14, 0x14005c374\nmov     [rsp+48h+arg_8], 0                                             ; +0x1b, 0x14005c37b\nlea     r8, [rsp+48h+var_28]                                           ; +0x23, 0x14005c383\nlea     rdx, [rsp+48h+var_20]                                          ; +0x28, 0x14005c388\ncall    sub_140061560                                                  ; +0x2d, 0x14005c38d\nmov     rcx, rbx                                                       ; +0x32, 0x14005c392\nmov     rdx, [rax]                                                     ; +0x35, 0x14005c395\nmov     edx, [rdx+18h]                                                 ; +0x38, 0x14005c398\ncall    FMODAudioEngine__channelForChannelID                           ; +0x3b, 0x14005c39b\ntest    rax, rax                                                       ; +0x40, 0x14005c3a0\njz      short loc_14005C3D7                                            ; +0x43, 0x14005c3a3\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x45, 0x14005c3a5\nmov     [rsp+48h+arg_0], 0                                             ; +0x4a, 0x14005c3aa\nmov     rcx, rax                                                       ; +0x53, 0x14005c3b3\ncall    cs:?getCurrentSound@Channel@FMOD@@QEAA?AW4FMOD_RESULT@@PEAPEAVSound@2@@Z; FMOD::Channel::getCurrentSound(FMOD::Sound * *) ; +0x56, 0x14005c3b6\nmov     rcx, [rsp+48h+arg_0]                                           ; +0x5c, 0x14005c3bc\ntest    rcx, rcx                                                       ; +0x61, 0x14005c3c1\njz      short loc_14005C3D7                                            ; +0x64, 0x14005c3c4\nmov     r8d, 1                                                         ; +0x66, 0x14005c3c6\nlea     rdx, [rsp+48h+arg_8]                                           ; +0x6c, 0x14005c3cc\ncall    cs:?getLength@Sound@FMOD@@QEAA?AW4FMOD_RESULT@@PEAII@Z; FMOD::Sound::getLength(uint *,uint) ; +0x71, 0x14005c3d1\nmov     eax, [rsp+48h+arg_8]                                           ; +0x77, 0x14005c3d7\nadd     rsp, 40h                                                       ; +0x7b, 0x14005c3db\npop     rbx                                                            ; +0x7f, 0x14005c3df\nretn                                                                   ; +0x80, 0x14005c3e0", "xrefs": ["MusicBrowser::update @ 0x140339606", "MusicBrowser::sliderEnded @ 0x140339b69", "SetupSongTriggerPopup::init @ 0x14045d467", "<???> @ 0x1406c53f4"], "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"}