//
// sub_1005E9C84 from 0x1005e9c84 to 0x1005e9cfc (120 bytes)
//
// 1 xrefs:
// > FMOD::SoundGroup::getNumSounds @ 0x1005e91fc
//
// 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_1005E9C84(__int64 a1, int *a2)
{
int v4; // w8
_QWORD *v5; // x10
if ( !a2 )
return 31;
sub_1005DBDD8(*((pthread_mutex_t **)off_1009DA5E8 + 38));
v4 = -1;
v5 = (_QWORD *)(a1 + 40);
do
{
v5 = (_QWORD *)*v5;
++v4;
}
while ( v5 != (_QWORD *)(a1 + 40) );
*a2 = v4;
sub_1005DBE08(*((pthread_mutex_t **)off_1009DA5E8 + 38));
return 0;
}