//
// FMODAudioEngine::getActiveMusic from 0x302b20 to 0x302b70 (80 bytes)
//
// 3 xrefs:
// > FMODAudioEngine::isMusicPlaying @ 0x302b92
// > FMODAudioEngine::isPersistentMatchPlaying @ 0x302bfe
// > FMODAudioEngine::preloadMusic @ 0x3033ce
//
// 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
//
FMODAudioEngine *__fastcall FMODAudioEngine::getActiveMusic(
FMODAudioEngine *this,
int a2,
unsigned int a3,
unsigned int a4)
{
_DWORD *v4; // r6
_DWORD *v6; // r0
unsigned int v8[3]; // [sp+4h] [bp-Ch] BYREF
v8[1] = a3;
v8[2] = a4;
v4 = (_DWORD *)(a2 + 264);
v8[0] = a3;
if ( sub_2FE5B6((_DWORD *)(a2 + 264), a3) )
{
v6 = std::__detail::_Map_base,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits,true>::operator[](
v4,
v8);
sub_775C20(this, v6 + 2);
}
else
{
sub_776584((int)this, (char *)&unk_939830);
}
return this;
}