//
// FMODAudioEngine::getActiveMusic from 0x6d7d90 to 0x6d7e60 (208 bytes)
//
// 4 xrefs:
// > FMODAudioEngine::isMusicPlaying @ 0x6d7e98
// > FMODAudioEngine::isPersistentMatchPlaying @ 0x6d7f94
// > FMODAudioEngine::preloadMusic @ 0x6d8114
// > ??> @ 0xf8590
//
// 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 *__usercall FMODAudioEngine::getActiveMusic@(FMODAudioEngine *this@, int a2@, __int64 *a3@)
{
char *v3; // x21
__int64 v5; // x0
__int64 v6; // x1
int v8; // [xsp+3Ch] [xbp+3Ch] BYREF
v3 = (char *)this + 320;
v8 = 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,
&v8) )
{
v5 = std::unordered_map::operator[]((__int64)v3, &v8);
*a3 = 0;
a3[1] = 0;
a3[2] = 0;
if ( (*(_BYTE *)(v5 + 16) & 1) != 0 )
{
std::string::__init(a3, *(void **)(v5 + 32), *(_QWORD *)(v5 + 24));
}
else
{
v6 = *(_QWORD *)(v5 + 24);
*a3 = *(_QWORD *)(v5 + 16);
a3[1] = v6;
a3[2] = *(_QWORD *)(v5 + 32);
}
return a3;
}
else
{
*a3 = 0;
a3[1] = 0;
a3[2] = 0;
std::string::__init(a3, &byte_11B8890, 0);
return a3;
}
}