//
// sub_1005E9A94 from 0x1005e9a94 to 0x1005e9ba8 (276 bytes)
//
// 1 xrefs:
// > FMOD::SoundGroup::setVolume @ 0x1005e8e5c
//
// 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_1005E9A94(__int64 a1, float a2)
{
_QWORD *v3; // x23
__int64 v4; // x8
__int64 v5; // x10
__int64 v6; // x20
__int64 v7; // x24
__int64 v8; // x9
__int64 v10; // [xsp+8h] [xbp-38h] BYREF
*(float *)(a1 + 120) = fminf(fmaxf(a2, 0.0), 1.0);
sub_1005DBDD8(*((pthread_mutex_t **)off_1009DA5E8 + 38));
v3 = *(_QWORD **)(a1 + 40);
if ( v3 != (_QWORD *)(a1 + 40) )
{
v4 = *(_QWORD *)(a1 + 24);
do
{
v5 = *(_QWORD *)(v4 + 872);
if ( v5 )
v6 = v5 - 376;
else
v6 = 0;
if ( v6 != v4 + 496 )
{
v7 = v3[2];
do
{
if ( *(_QWORD *)(v6 + 472) )
{
v10 = 0;
sub_1005851A0(v6, &v10);
if ( v10 == v7 )
(*(void (__fastcall **)(__int64, _QWORD, float))(*(_QWORD *)v6 + 32LL))(v6, 0, *(float *)(v6 + 48));
v4 = *(_QWORD *)(a1 + 24);
}
v8 = *(_QWORD *)(v6 + 376);
if ( v8 )
v6 = v8 - 376;
else
v6 = 0;
}
while ( v6 != v4 + 496 );
}
v3 = (_QWORD *)*v3;
}
while ( v3 != (_QWORD *)(a1 + 40) );
}
sub_1005DBE08(*((pthread_mutex_t **)off_1009DA5E8 + 38));
return 0;
}