//
// sub_5A574 from 0x5a574 to 0x5a610 (156 bytes)
//
// 1 xrefs:
// > FMOD::System::playDSP @ 0xb99dc
//
// 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
//
int __fastcall sub_5A574(int a1, int a2, int a3, int a4, _DWORD *a5)
{
int v9; // r6
float *v11; // [sp+Ch] [bp-1Ch] BYREF
v11 = nullptr;
if ( !a2 )
return 31;
if ( a5 )
*a5 = 0;
v9 = sub_60C62(a1, -1, a2, &v11);
if ( !v9 )
{
v9 = sub_617EC(a1, a2);
if ( !v9 )
{
v9 = sub_4AE6C(v11, a2, a3, a4, 1, 0);
if ( v9 )
{
sub_4A9A4(v11, 82);
}
else
{
v9 = sub_4A4F8((int)v11);
if ( !v9 )
{
v9 = sub_4A4B4((int)v11, 1);
if ( !v9 )
{
if ( a5 )
{
*a5 = *((_DWORD *)v11 + 11);
return 0;
}
}
}
}
}
}
return v9;
}