//
// sub_5A39C from 0x5a39c to 0x5a3de (66 bytes)
//
// 1 xrefs:
// > FMOD::System::getDSPInfoByType @ 0xb9b54
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:40:48 +0000
//
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;
}