//
// sub_AB538 from 0xab538 to 0xab5bc (132 bytes)
//
// 1 xrefs:
// > FMOD::DSP::getParameterFloat @ 0xb1a82
//
// 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:41:38 +0000
//
int __fastcall sub_AB538(_DWORD *a1, int a2, _DWORD *a3, int a4, int a5)
{
_DWORD *v6; // r2
int (__fastcall *v8)(_DWORD *, int, int *, char *); // r6
int result; // r0
char *v10; // r8
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[24];
if ( !v8 )
return 68;
if ( **(_DWORD **)(v6[19] + 4 * a2) )
return 31;
a1[33] = a1;
v11 = 0;
if ( a4 || !a1[45] )
v10 = &v11;
else
v10 = nullptr;
result = v8(a1 + 33, a2, &v12, v10);
if ( !result )
{
if ( a3 )
*a3 = v12;
if ( a4 )
sub_BE220(a4, v10, a5);
return 0;
}
return result;
}