//
// sub_1005E9CFC from 0x1005e9cfc to 0x1005e9d94 (152 bytes)
//
// 1 xrefs:
// > FMOD::SoundGroup::getSound @ 0x1005e92e4
//
// 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:44 +0000
//
__int64 __fastcall sub_1005E9CFC(__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_1005DBDD8(*((pthread_mutex_t **)off_1009DA5E8 + 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_1005DBE08(*((pthread_mutex_t **)off_1009DA5E8 + 38));
return v10;
}