//
// sub_1005CE280 from 0x1005ce280 to 0x1005ce3a4 (292 bytes)
//
// 2 xrefs:
// > FMOD::DSP::getParameterData @ 0x1005acb40
// > sub_10062E858 @ 0x10062e974
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:09:29 +0000
//
__int64 __fastcall sub_1005CE280(__int64 a1, unsigned int a2, _QWORD *a3, _DWORD *a4, __int64 a5, __int64 a6)
{
__int64 v6; // x8
__int64 (__fastcall *v7)(__int64); // x9
char *v12; // x23
__int64 result; // x0
char v14; // [xsp+18h] [xbp-58h] BYREF
if ( (a2 & 0x80000000) != 0 )
return 31;
v6 = *(_QWORD *)(a1 + 232);
if ( !v6 || *(_DWORD *)(v6 + 96) <= (signed int)a2 )
return 31;
v7 = *(__int64 (__fastcall **)(__int64))(v6 + 168);
if ( !v7 )
return 68;
if ( **(_DWORD **)(*(_QWORD *)(v6 + 104) + 8LL * a2) != 3 )
return 31;
*(_QWORD *)(a1 + 176) = a1;
v14 = 0;
if ( a5 || !*(_DWORD *)(a1 + 256) )
v12 = &v14;
else
v12 = nullptr;
result = v7(a1 + 176);
if ( !(_DWORD)result )
{
if ( a3 )
*a3 = 0;
if ( a4 )
*a4 = 0;
if ( a5 )
sub_1005ECD38(a5, v12, a6);
return 0;
}
return result;
}