//
// sub_AB5BC from 0xab5bc to 0xab642 (134 bytes)
//
// 1 xrefs:
// > FMOD::DSP::getParameterInt @ 0xb1b72
//
// 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_AB5BC(_DWORD *a1, int a2, _DWORD *a3, int a4, int a5)
{
_DWORD *v6; // r2
int (__fastcall *v8)(_DWORD *, int, int *, char *); // r6
char *v9; // r8
int result; // r0
char v11; // [sp+4h] [bp-34h] BYREF
int v12; // [sp+24h] [bp-14h] BYREF
v12 = 0;
if ( a2 < 0 )
return 31;
v6 = (_DWORD *)a1[41];
if ( !v6 || v6[18] <= a2 )
return 31;
v8 = (int (__fastcall *)(_DWORD *, int, int *, char *))v6[25];
if ( !v8 )
return 68;
if ( **(_DWORD **)(v6[19] + 4 * a2) != 1 )
return 31;
a1[33] = a1;
v11 = 0;
if ( a4 || !a1[45] )
v9 = &v11;
else
v9 = nullptr;
result = v8(a1 + 33, a2, &v12, v9);
if ( !result )
{
if ( a3 )
*a3 = v12;
if ( a4 )
sub_BE220(a4, v9, a5);
return 0;
}
return result;
}