//
// FMODAudioEngine::getMusicChannelID from 0x6d6b54 to 0x6d6ba8 (84 bytes)
//
// 6 xrefs:
// > FMODAudioEngine::setChannelVolume @ 0x6d6c84
// > FMODAudioEngine::setChannelVolumeMod @ 0x6d6fe8
// > FMODAudioEngine::setChannelPitch @ 0x6d72ec
// > FMODAudioEngine::stopChannel @ 0x6da560
// > FMODAudioEngine::playEffectAdvanced @ 0x6da670
// > ??> @ 0xbbdb0
//
// 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::getMusicChannelID(FMODAudioEngine *this, int a2)
{
char *v2; // x20
int v4; // [xsp+2Ch] [xbp+2Ch] BYREF
v2 = (char *)this + 320;
v4 = a2;
if ( std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
(_QWORD *)this + 40,
&v4) )
{
return *(unsigned int *)std::unordered_map::operator[]((__int64)v2, &v4);
}
else
{
return 0;
}
}