//
// FMODAudioEngine::getMusicChannelID from 0x3024a8 to 0x3024c6 (30 bytes)
//
// 5 xrefs:
// > FMODAudioEngine::setChannelVolume @ 0x30256c
// > FMODAudioEngine::setChannelVolumeMod @ 0x30267c
// > FMODAudioEngine::setChannelPitch @ 0x302736
// > FMODAudioEngine::stopChannel @ 0x303f7e
// > FMODAudioEngine::playEffectAdvanced @ 0x30551a
//
// 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
//
int FMODAudioEngine::getMusicChannelID(FMODAudioEngine *a1, int a2)
{
std::unordered_map *p_m_fmodMusic; // r4
int result; // r0
int v4; // [sp+4h] [bp-4h] BYREF
p_m_fmodMusic = &a1->m_fmodMusic;
v4 = a2;
result = (int)sub_2FE5B6(&a1->m_fmodMusic._M_h._M_buckets, a2);
if ( result )
return *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[](
p_m_fmodMusic,
(unsigned int *)&v4);
return result;
}