//
// sub_1004C3B1C from 0x1004c3b1c to 0x1004c3b94 (120 bytes)
//
// 1 xrefs:
// > FMOD::SoundGroup::getNumSounds @ 0x1004c3094
//
// 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_1004C3B1C(__int64 a1, int *a2)
{
int v4; // w8
_QWORD *v5; // x10
if ( !a2 )
return 31;
sub_1004B5C70(*((pthread_mutex_t **)off_1008524C8 + 38));
v4 = -1;
v5 = (_QWORD *)(a1 + 40);
do
{
v5 = (_QWORD *)*v5;
++v4;
}
while ( v5 != (_QWORD *)(a1 + 40) );
*a2 = v4;
sub_1004B5CA0(*((pthread_mutex_t **)off_1008524C8 + 38));
return 0;
}