//
// FMODAudioEngine::getMusicTimeMS from 0x14005c300 to 0x14005c35d (93 bytes)
//
// 4 xrefs:
// > DrawGridLayer::update @ 0x1402e917a
// > MusicBrowser::update @ 0x1403395c4
// > SetupSongTriggerPopup::onSavePlaybackPos @ 0x14045da6b
// > ??> @ 0x1406c53e8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
unsigned int FMODAudioEngine::getMusicTimeMS(FMODAudioEngine *a1, int a2)
{
__int64 v3; // rax
FMOD::Channel *v4; // rax
int v6; // [rsp+20h] [rbp-28h] BYREF
_BYTE v7[32]; // [rsp+28h] [rbp-20h] BYREF
unsigned int v8; // [rsp+58h] [rbp+10h] BYREF
v6 = 0;
v8 = 0;
v3 = sub_140061560(&a1->m_fmodMusic, v7, &v6);
v4 = FMODAudioEngine::channelForChannelID(a1, *(_DWORD *)(*(_QWORD *)v3 + 24LL));
if ( v4 )
FMOD::Channel::getPosition(v4, &v8, 1u);
return v8;
}