//
// sub_180097B50 from 0x180097b50 to 0x180097c2e (222 bytes)
//
// 2 xrefs:
// > FMOD::DSP::getParameterBool @ 0x1800a294b
// > ??> @ 0x1801faa28
//
// This function is hookable on this platform (idp: pc, 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 10:53:47 +0000
//
__int64 __fastcall sub_180097B50(__int64 a1, int a2, bool *a3, __int64 a4, unsigned int a5)
{
__int64 v5; // r11
char *v6; // rdi
__int64 v10; // r10
__int64 result; // rax
__int64 v12; // rcx
int v13; // [rsp+20h] [rbp-48h] BYREF
char v14; // [rsp+28h] [rbp-40h] BYREF
v5 = a2;
v6 = nullptr;
v13 = 0;
if ( (int)v5 < 0 )
return 31;
v10 = *(_QWORD *)(a1 + 232);
if ( !v10 || (int)v5 >= *(_DWORD *)(v10 + 96) )
return 31;
if ( !*(_QWORD *)(v10 + 160) )
return 68;
if ( **(_DWORD **)(*(_QWORD *)(v10 + 104) + 8 * v5) != 2 )
return 31;
v14 = 0;
v12 = a1 + 176;
*(_QWORD *)(a1 + 176) = a1;
if ( a4 || !*(_DWORD *)(a1 + 256) )
v6 = &v14;
result = (*(__int64 (__fastcall **)(__int64, _QWORD, int *, char *))(v10 + 160))(v12, (unsigned int)v5, &v13, v6);
if ( !(_DWORD)result )
{
if ( a3 )
*a3 = v13 != 0;
if ( a4 )
sub_1800B7D20(a4, v6, a5);
return 0;
}
return result;
}