//
// sub_5A39C from 0x5a39c to 0x5a3de (66 bytes)
//
// 1 xrefs:
// > FMOD::System::getDSPInfoByType @ 0xb9b54
//
// 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_5A39C(int a1, int a2, _DWORD *a3, _DWORD *a4)
{
int result; // r0
_DWORD *v7; // [sp+4h] [bp-Ch] BYREF
v7 = a4;
if ( !*(_DWORD *)(a1 + 68272) )
return 67;
if ( !a3 )
return 31;
*a3 = 0;
result = 31;
if ( (unsigned int)a2 >= 2 && a2 <= 36 )
{
v7 = nullptr;
result = sub_51BCE(*(_DWORD *)(a1 + 68272), a2, &v7);
if ( !result )
*a3 = *v7;
}
return result;
}