//
// FMODAudioEngine::getMusicTimeMS from 0x6d6a2c to 0x6d6aa4 (120 bytes)
//
// 4 xrefs:
// > FMODAudioEngine::getMusicTime @ 0x6d6aac
// > SetupSongTriggerPopup::onSavePlaybackPos @ 0xaea29c
// > MusicBrowser::update @ 0xb83930
// > ??> @ 0x104b78
//
// This function is hookable on this platform (idp: arm, 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 12:51:30 +0000
//
__int64 __fastcall FMODAudioEngine::getMusicTimeMS(FMODAudioEngine *this, int a2)
{
int *v3; // x0
FMOD::Channel *v4; // x0
int v6; // [xsp+2Ch] [xbp+2Ch] BYREF
unsigned int v7; // [xsp+34h] [xbp+34h] BYREF
v6 = a2;
v7 = 0;
v3 = (int *)std::unordered_map::operator[]((__int64)this + 320, &v6);
v4 = (FMOD::Channel *)FMODAudioEngine::channelForChannelID(this, *v3);
if ( v4 )
FMOD::Channel::getPosition(v4, &v7, 1u);
return v7;
}