//
// sub_1004C392C from 0x1004c392c to 0x1004c3a40 (276 bytes)
//
// 1 xrefs:
// > FMOD::SoundGroup::setVolume @ 0x1004c2cf4
//
// 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_1004C392C(__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_1004B5C70(*((pthread_mutex_t **)off_1008524C8 + 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_10045F038(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_1004B5CA0(*((pthread_mutex_t **)off_1008524C8 + 38));
return 0;
}