//
// FMODAudioEngine::getActiveMusic from 0x3ef758 to 0x3ef79c (68 bytes)
//
// 3 xrefs:
// > FMODAudioEngine::isMusicPlaying @ 0x3ef7ba
// > FMODAudioEngine::isPersistentMatchPlaying @ 0x3ef828
// > FMODAudioEngine::preloadMusic @ 0x3ef910
//
// 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
//
FMODAudioEngine *__fastcall FMODAudioEngine::getActiveMusic(FMODAudioEngine *this, int a2, unsigned int a3)
{
int v3; // r6
int *v5; // r0
unsigned int v7; // [sp+4h] [bp-4h] BYREF
v3 = a2 + 264;
v7 = a3;
if ( std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
(_DWORD *)(a2 + 264),
&v7) )
{
v5 = std::unordered_map::operator[](v3, &v7);
std::string::basic_string((int *)this, (int)(v5 + 2));
}
else
{
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
std::string::__init((int *)this, &unk_B6B226, 0);
}
return this;
}