//
// sub_1004C3B94 from 0x1004c3b94 to 0x1004c3c2c (152 bytes)
//
// 1 xrefs:
// > FMOD::SoundGroup::getSound @ 0x1004c317c
//
// 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_1004C3B94(__int64 a1, int a2, _QWORD *a3)
{
_QWORD *v6; // x8
_QWORD *v7; // x20
_QWORD *v8; // t1
int v9; // w9
__int64 v10; // x20
if ( !a3 )
return 31;
*a3 = 0;
sub_1004B5C70(*((pthread_mutex_t **)off_1008524C8 + 38));
v8 = *(_QWORD **)(a1 + 40);
v7 = (_QWORD *)(a1 + 40);
v6 = v8;
if ( v8 == v7 )
{
LABEL_6:
v10 = 31;
}
else
{
v9 = a2 + 1;
while ( --v9 )
{
v6 = (_QWORD *)*v6;
if ( v6 == v7 )
goto LABEL_6;
}
v10 = 0;
*a3 = v6[2];
}
sub_1004B5CA0(*((pthread_mutex_t **)off_1008524C8 + 38));
return v10;
}