//
// sub_1005CE174 from 0x1005ce174 to 0x1005ce280 (268 bytes)
//
// 1 xrefs:
// > FMOD::DSP::getParameterBool @ 0x1005ac9b4
//
// 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_1005CE174(__int64 a1, unsigned int a2, _BYTE *a3, __int64 a4, __int64 a5)
{
__int64 v5; // x8
__int64 (__fastcall *v6)(__int64); // x9
char *v10; // x22
__int64 result; // x0
char v12; // [xsp+8h] [xbp-48h] BYREF
if ( (a2 & 0x80000000) != 0 )
return 31;
v5 = *(_QWORD *)(a1 + 232);
if ( !v5 || *(_DWORD *)(v5 + 96) <= (signed int)a2 )
return 31;
v6 = *(__int64 (__fastcall **)(__int64))(v5 + 160);
if ( !v6 )
return 68;
if ( **(_DWORD **)(*(_QWORD *)(v5 + 104) + 8LL * a2) != 2 )
return 31;
*(_QWORD *)(a1 + 176) = a1;
v12 = 0;
if ( a4 || !*(_DWORD *)(a1 + 256) )
v10 = &v12;
else
v10 = nullptr;
result = v6(a1 + 176);
if ( !(_DWORD)result )
{
if ( a3 )
*a3 = 0;
if ( a4 )
sub_1005ECD38(a4, v10, a5);
return 0;
}
return result;
}