//
// FMODAudioEngine::isPersistentMatchPlaying from 0x10013d32c to 0x10013d3dc (176 bytes)
//
// 3 xrefs:
// > FMODAudioEngine::updateQueuedMusic @ 0x100139320
// > FMODAudioEngine::loadMusic @ 0x10013a268
// > FMODAudioEngine::queueStartMusic @ 0x10013da04
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall FMODAudioEngine::isPersistentMatchPlaying(FMODAudioEngine *a1, _QWORD *a2, int a3)
{
char v6; // w19
void *__p[2]; // [xsp+8h] [xbp-48h] BYREF
char v9; // [xsp+1Fh] [xbp-31h]
int v10; // [xsp+20h] [xbp-30h] BYREF
char v11; // [xsp+27h] [xbp-29h] BYREF
int *v12; // [xsp+28h] [xbp-28h] BYREF
v10 = a3;
if ( FMODAudioEngine::isMusicPlaying_1(a1, a3) )
{
FMODAudioEngine::getActiveMusic((__int64)a1, a3, __p);
if ( sub_1000045BC(__p, a2) )
{
v12 = &v10;
v6 = *(_BYTE *)(sub_1001418C4(&a1->m_fmodMusic, &v10, &unk_100637FD3, &v12, &v11) + 65);
}
else
{
v6 = 0;
}
if ( v9 < 0 )
operator delete(__p[0]);
}
else
{
v6 = 0;
}
return v6 & 1;
}