//
// FMODAudioEngine::getActiveMusicChannel from 0x6d79b0 to 0x6d7a10 (96 bytes)
//
// 10 xrefs:
// > FMODAudioEngine::isMusicPlaying @ 0x6d7a34
// > FMODAudioEngine::pauseMusic @ 0x6d7a78
// > FMODAudioEngine::resumeMusic @ 0x6d7a9c
// > FMODAudioEngine::fadeInMusic @ 0x6d7ae4
// > FMODAudioEngine::fadeOutMusic @ 0x6d7bd0
// > FMODAudioEngine::fadeMusic @ 0x6d7ccc
// > FMODAudioEngine::playMusic @ 0x6d8f58
// > PlayLayer::showCompleteEffect @ 0x6f7f80
// > GJBaseGameLayer::processSongState @ 0x9ab32c
// > ??> @ 0x86c50
//
// 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:31 +0000
//
__int64 __fastcall FMODAudioEngine::getActiveMusicChannel(FMODAudioEngine *this, int a2)
{
char *v2; // x21
int *v4; // x0
int v6; // [xsp+3Ch] [xbp+3Ch] BYREF
v2 = (char *)this + 320;
v6 = 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,
&v6) )
return 0;
v4 = (int *)std::unordered_map::operator[]((__int64)v2, &v6);
return FMODAudioEngine::channelForChannelID(this, *v4);
}