//
// sub_180096EF0 from 0x180096ef0 to 0x180096f4a (90 bytes)
//
// 2 xrefs:
// > sub_18000E700 @ 0x18000e93b
// > FMOD::DSP::getDataParameterIndex @ 0x1800a1b14
//
// 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_180096EF0(__int64 a1, int a2, _DWORD *a3)
{
__int64 v3; // r10
int v4; // r9d
__int64 i; // r11
int v6; // eax
_DWORD *v7; // rcx
v3 = *(_QWORD *)(a1 + 232);
v4 = 0;
for ( i = 0; ; i += 8 )
{
v6 = v3 ? *(_DWORD *)(v3 + 96) : 0;
if ( v4 >= v6 )
break;
v7 = *(_DWORD **)(i + *(_QWORD *)(v3 + 104));
if ( *v7 == 3 && v7[12] == a2 )
{
if ( a3 )
*a3 = v4;
return 0;
}
++v4;
}
if ( a3 )
*a3 = -1;
return 31;
}