//
// sub_C7AC4 from 0xc7ac4 to 0xc7b34 (112 bytes)
//
// 3 xrefs:
// > sub_56490 @ 0x56674
// > sub_C78B0 @ 0xc7994
// > FMOD::DSP::getDataParameterIndex @ 0xd4608
//
// 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_C7AC4(__int64 a1, int a2, _DWORD *a3)
{
__int64 v3; // x9
__int64 v4; // x8
int i; // w10
_DWORD *v6; // x10
__int64 result; // x0
v3 = *(_QWORD *)(a1 + 232);
v4 = 0;
if ( !v3 )
goto LABEL_3;
LABEL_2:
for ( i = *(_DWORD *)(v3 + 96); v4 < i; i = 0 )
{
v6 = *(_DWORD **)(*(_QWORD *)(v3 + 104) + 8 * v4);
if ( *v6 == 3 && v6[12] == a2 )
{
result = 0;
if ( a3 )
*a3 = v4;
return result;
}
++v4;
if ( v3 )
goto LABEL_2;
LABEL_3:
;
}
if ( a3 )
*a3 = -1;
return 31;
}