//
// FMODAudioEngine::getActiveMusicChannel from 0x3ef47c to 0x3ef4aa (46 bytes)
//
// 9 xrefs:
// > FMODAudioEngine::isMusicPlaying @ 0x3ef4be
// > FMODAudioEngine::pauseMusic @ 0x3ef4ea
// > FMODAudioEngine::resumeMusic @ 0x3ef4fe
// > FMODAudioEngine::fadeInMusic @ 0x3ef52a
// > FMODAudioEngine::fadeOutMusic @ 0x3ef5ec
// > FMODAudioEngine::fadeMusic @ 0x3ef6b2
// > FMODAudioEngine::playMusic @ 0x3f0004
// > PlayLayer::showCompleteEffect @ 0x4035ca
// > GJBaseGameLayer::processSongState @ 0x597e76
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:47:12 +0000
//
_DWORD *__fastcall FMODAudioEngine::getActiveMusicChannel(FMODAudioEngine *this, unsigned int a2)
{
char *v2; // r6
_DWORD *result; // r0
int *v5; // r0
unsigned int v6; // [sp+4h] [bp-4h] BYREF
v2 = (char *)this + 264;
v6 = a2;
result = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
(_DWORD *)this + 66,
&v6);
if ( result )
{
v5 = std::unordered_map::operator[]((int)v2, &v6);
return FMODAudioEngine::channelForChannelID(this, *v5);
}
return result;
}