//
// FMODAudioEngine::getActiveMusic from 0x10013cf64 to 0x10013d008 (164 bytes)
//
// 3 xrefs:
// > FMODAudioEngine::isMusicPlaying @ 0x10013cef4
// > FMODAudioEngine::isPersistentMatchPlaying @ 0x10013d368
// > FMODAudioEngine::preloadMusic @ 0x10013d428
//
// 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
//
_QWORD *__usercall FMODAudioEngine::getActiveMusic@(__int64 a1@, int a2@, _QWORD *a3@)
{
_QWORD *result; // x0
__int128 v6; // q0
int v7; // [xsp+0h] [xbp-30h] BYREF
char v8; // [xsp+7h] [xbp-29h] BYREF
int *v9; // [xsp+8h] [xbp-28h] BYREF
v7 = a2;
if ( !sub_100018814((_QWORD *)(a1 + 320), &v7) )
return sub_100009900(a3, "");
v9 = &v7;
result = (_QWORD *)sub_1001418C4(a1 + 320, &v7, &unk_100637FD3, &v9, &v8);
if ( *((char *)result + 63) < 0 )
return sub_1000097D0(a3, (void *)result[5], result[6]);
v6 = *(_OWORD *)(result + 5);
a3[2] = result[7];
*(_OWORD *)a3 = v6;
return result;
}