//
// sub_AB782 from 0xab782 to 0xab7b0 (46 bytes)
//
// 1 xrefs:
// > FMOD::DSP::getParameterInfo @ 0xb1eba
//
// 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_AB782(int a1, int a2, _DWORD *a3)
{
int v3; // r3
int result; // r0
int v5; // r0
if ( a2 < 0 )
return 31;
v3 = *(_DWORD *)(a1 + 164);
if ( !v3 )
return 31;
result = 31;
if ( a3 && *(_DWORD *)(v3 + 72) > a2 )
{
v5 = *(_DWORD *)(v3 + 76);
if ( v5 )
{
*a3 = *(_DWORD *)(v5 + 4 * a2);
return 0;
}
else
{
return 53;
}
}
return result;
}