//
// FMODAudioEngine::getMusicTimeMS from 0x1400650d0 to 0x14006512d (93 bytes)
//
// 4 xrefs:
// > DrawGridLayer::update @ 0x14040a820
// > MusicBrowser::update @ 0x14047bc3d
// > SetupSongTriggerPopup::onSavePlaybackPos @ 0x1405f3851
// > ??> @ 0x140910d54
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:25:45 +0000
//
__int64 __fastcall FMODAudioEngine::getMusicTimeMS(_QWORD *a1)
{
__int64 v2; // rax
__int64 v3; // rax
int v5; // [rsp+20h] [rbp-28h] BYREF
_BYTE v6[32]; // [rsp+28h] [rbp-20h] BYREF
unsigned int v7; // [rsp+58h] [rbp+10h] BYREF
v5 = 0;
v7 = 0;
v2 = sub_140068620(a1 + 40, v6, &v5);
v3 = FMODAudioEngine::channelForChannelID(a1, *(_DWORD *)(*(_QWORD *)v2 + 24LL));
if ( v3 )
FMOD::Channel::getPosition(v3, &v7, 1);
return v7;
}