{"type": "func", "start": 5369086720, "end": 5369086813, "name": "FMODAudioEngine::getMusicTimeMS", "pseudocode": "// \n// FMODAudioEngine::getMusicTimeMS from 0x14005c300 to 0x14005c35d (93 bytes)\n// \n// 4 xrefs:\n// > DrawGridLayer::update @ 0x1402e917a\n// > MusicBrowser::update @ 0x1403395c4\n// > SetupSongTriggerPopup::onSavePlaybackPos @ 0x14045da6b\n// > <???> @ 0x1406c53e8\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::getMusicTimeMS(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  unsigned int v8; // [rsp+58h] [rbp+10h] BYREF\n\n  v6 = 0;\n  v8 = 0;\n  v3 = sub_140061560(&a1->m_fmodMusic, v7, &v6);\n  v4 = FMODAudioEngine::channelForChannelID(a1, *(_DWORD *)(*(_QWORD *)v3 + 24LL));\n  if ( v4 )\n    FMOD::Channel::getPosition(v4, &v8, 1u);\n  return v8;\n}", "assembly": "; \n; FMODAudioEngine::getMusicTimeMS from 0x14005c300 to 0x14005c35d (93 bytes)\n; \n; 4 xrefs:\n; > DrawGridLayer::update @ 0x1402e917a\n; > MusicBrowser::update @ 0x1403395c4\n; > SetupSongTriggerPopup::onSavePlaybackPos @ 0x14045da6b\n; > <???> @ 0x1406c53e8\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, 0x14005c300\npush    rbx                                                            ; +0x4, 0x14005c304\nsub     rsp, 40h                                                       ; +0x5, 0x14005c305\nxor     eax, eax                                                       ; +0x9, 0x14005c309\nlea     r8, [rsp+48h+var_28]                                           ; +0xb, 0x14005c30b\nmov     rbx, rcx                                                       ; +0x10, 0x14005c310\nmov     [rsp+48h+var_28], eax                                          ; +0x13, 0x14005c313\nadd     rcx, 140h                                                      ; +0x17, 0x14005c317\nmov     [rsp+48h+arg_8], eax                                           ; +0x1e, 0x14005c31e\nlea     rdx, [rsp+48h+var_20]                                          ; +0x22, 0x14005c322\ncall    sub_140061560                                                  ; +0x27, 0x14005c327\nmov     rcx, rbx                                                       ; +0x2c, 0x14005c32c\nmov     rdx, [rax]                                                     ; +0x2f, 0x14005c32f\nmov     edx, [rdx+18h]                                                 ; +0x32, 0x14005c332\ncall    FMODAudioEngine__channelForChannelID                           ; +0x35, 0x14005c335\ntest    rax, rax                                                       ; +0x3a, 0x14005c33a\njz      short loc_14005C353                                            ; +0x3d, 0x14005c33d\nmov     r8d, 1                                                         ; +0x3f, 0x14005c33f\nlea     rdx, [rsp+48h+arg_8]                                           ; +0x45, 0x14005c345\nmov     rcx, rax                                                       ; +0x4a, 0x14005c34a\ncall    cs:?getPosition@Channel@FMOD@@QEAA?AW4FMOD_RESULT@@PEAII@Z; FMOD::Channel::getPosition(uint *,uint) ; +0x4d, 0x14005c34d\nmov     eax, [rsp+48h+arg_8]                                           ; +0x53, 0x14005c353\nadd     rsp, 40h                                                       ; +0x57, 0x14005c357\npop     rbx                                                            ; +0x5b, 0x14005c35b\nretn                                                                   ; +0x5c, 0x14005c35c", "xrefs": ["DrawGridLayer::update @ 0x1402e917a", "MusicBrowser::update @ 0x1403395c4", "SetupSongTriggerPopup::onSavePlaybackPos @ 0x14045da6b", "<???> @ 0x1406c53e8"], "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"}