//
// sub_674BC from 0x674bc to 0x675a4 (232 bytes)
//
// 1 xrefs:
// > FMOD::SoundGroup::setVolume @ 0xda994
//
// 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_674BC(__int64 a1, float a2)
{
__int64 v3; // x0
_QWORD *v4; // x23
__int64 v5; // x8
__int64 v6; // x24
__int64 *i; // x9
__int64 v8; // x9
__int64 v9; // x20
__int64 v11; // [xsp+8h] [xbp-38h] BYREF
*(float *)(a1 + 120) = fminf(fmaxf(a2, 0.0), 1.0);
v3 = sub_677DC(a1);
v4 = (_QWORD *)(a1 + 40);
while ( 1 )
{
v4 = (_QWORD *)*v4;
if ( v4 == (_QWORD *)(a1 + 40) )
break;
v5 = *(_QWORD *)(a1 + 24);
v6 = v4[2];
for ( i = (__int64 *)(v5 + 872); ; i = (__int64 *)(v9 + 376) )
{
v8 = *i;
v9 = v8 ? v8 - 376 : 0LL;
if ( v9 == v5 + 496 )
break;
if ( *(_QWORD *)(v9 + 472) )
{
v11 = 0;
v3 = sub_5C1B0(v9, &v11);
if ( v11 == v6 )
v3 = (*(__int64 (__fastcall **)(__int64, _QWORD, float))(*(_QWORD *)v9 + 32LL))(v9, 0, *(float *)(v9 + 48));
v5 = *(_QWORD *)(a1 + 24);
}
}
}
sub_677C8(v3);
return 0;
}