//
// sub_1005C73AC from 0x1005c73ac to 0x1005c741c (112 bytes)
//
// 2 xrefs:
// > FMOD::DSP::getDataParameterIndex @ 0x1005aceb8
// > sub_10062F108 @ 0x10062f30c
//
// 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:25 +0000
//
__int64 __fastcall sub_1005C73AC(__int64 a1, int a2, _DWORD *a3)
{
__int64 v3; // x8
__int64 v4; // x9
_DWORD *v5; // x10
__int64 result; // x0
v3 = 0;
v4 = *(_QWORD *)(a1 + 232);
while ( v4 )
{
if ( v3 >= *(int *)(v4 + 96) )
goto LABEL_11;
LABEL_7:
v5 = *(_DWORD **)(*(_QWORD *)(v4 + 104) + 8 * v3);
if ( *v5 == 3 && v5[12] == a2 )
{
result = 0;
if ( !a3 )
return result;
goto LABEL_13;
}
++v3;
}
if ( v3 < 0 )
goto LABEL_7;
LABEL_11:
result = 31;
if ( !a3 )
return result;
LODWORD(v3) = -1;
LABEL_13:
*a3 = v3;
return result;
}