//
// sub_180096FA0 from 0x180096fa0 to 0x18009707d (221 bytes)
//
// 3 xrefs:
// > FMOD::DSP::getInfo @ 0x1800a1d0c
// > sub_1800DB2E0 @ 0x1800db5dd
// > ??> @ 0x1801fa9b0
//
// 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
//
__int64 __fastcall sub_180096FA0(__int64 a1, __int64 a2, _DWORD *a3, _DWORD *a4, _DWORD *a5, _DWORD *a6)
{
const char *v10; // rdx
__int64 v11; // rdx
__int64 v12; // rax
int v13; // ecx
int v14; // eax
__int64 (__fastcall *v15)(__int64, __int64); // rax
__int64 result; // rax
if ( a2 )
{
v10 = *(const char **)(a1 + 240);
if ( !v10 )
{
v11 = *(_QWORD *)(a1 + 232);
if ( v11 )
v10 = (const char *)(v11 + 4);
else
v10 = &byte_18014572F;
}
sub_1800B7D20(a2, v10, 32);
}
if ( a3 )
{
v12 = *(_QWORD *)(a1 + 232);
if ( v12 )
v13 = *(_DWORD *)(v12 + 36);
else
v13 = 0;
*a3 = v13;
}
if ( a4 )
{
if ( *(_QWORD *)(a1 + 232) )
v14 = *(unsigned __int16 *)(a1 + 280);
else
v14 = 0;
*a4 = v14;
}
if ( a5 )
*a5 = 0;
if ( a6 )
*a6 = 0;
v15 = *(__int64 (__fastcall **)(__int64, __int64))(a1 + 288);
if ( !v15 )
return 0;
if ( (*(_BYTE *)(a1 + 282) & 0x20) == 0 )
return 0;
result = v15(a1 + 176, 32);
if ( !(_DWORD)result )
return 0;
return result;
}