//
// sub_A72FA from 0xa72fa to 0xa733a (64 bytes)
//
// 3 xrefs:
// > sub_480B4 @ 0x481f0
// > sub_A7158 @ 0xa721c
// > FMOD::DSP::getDataParameterIndex @ 0xb1f66
//
// 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
//
int __fastcall sub_A72FA(int a1, int a2, _DWORD *a3)
{
int v3; // r3
int i; // r0
int v5; // r4
_DWORD *v6; // r4
bool v7; // zf
v3 = *(_DWORD *)(a1 + 164);
for ( i = 0; ; ++i )
{
v5 = v3 ? *(_DWORD *)(v3 + 72) : 0;
if ( i >= v5 )
break;
v6 = *(_DWORD **)(*(_DWORD *)(v3 + 76) + 4 * i);
v7 = *v6 == 3;
if ( *v6 == 3 )
v7 = v6[10] == a2;
if ( v7 )
{
if ( a3 )
*a3 = i;
return 0;
}
}
if ( a3 )
*a3 = -1;
return 31;
}