//
// FMODAudioEngine::isPersistentMatchPlaying from 0x6d7f20 to 0x6d7ff4 (212 bytes)
//
// 4 xrefs:
// > FMODAudioEngine::queueStartMusic @ 0x6d8428
// > FMODAudioEngine::loadMusic @ 0x6d88f0
// > FMODAudioEngine::updateQueuedMusic @ 0x6d9454
// > ??> @ 0x95320
//
// 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::isPersistentMatchPlaying(FMODAudioEngine *a1, __int64 a2, int a3)
{
bool isMusicPlaying; // w0
unsigned int v6; // w20
bool v8; // w0
int v9; // [xsp+3Ch] [xbp+3Ch] BYREF
__int64 v10[3]; // [xsp+40h] [xbp+40h] BYREF
v9 = a3;
isMusicPlaying = FMODAudioEngine::isMusicPlaying(a1, a3);
v6 = isMusicPlaying;
if ( isMusicPlaying )
{
FMODAudioEngine::getActiveMusic(a1, v9, v10);
v8 = sub_6C9F44((__int64)v10, a2);
v6 = v8;
if ( v8 )
v6 = *(unsigned __int8 *)(std::unordered_map::operator[]((__int64)a1 + 320, &v9) + 41);
if ( (v10[0] & 1) != 0 )
operator delete((void *)v10[2]);
}
return v6;
}