//
// FMOD::SoundGroup::getVolume from 0x1004c2d84 to 0x1004c2e5c (216 bytes)
//
// 1 xrefs:
// > sub_100453F38 @ 0x100453f3c
//
// 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
//
FMOD_RESULT __fastcall FMOD::SoundGroup::getVolume(FMOD::SoundGroup *a1, float *a2)
{
int v4; // w3
int v5; // w4
int v6; // w5
int v7; // w6
int v8; // w7
__int64 v9; // x19
__int64 v11; // [xsp+8h] [xbp-138h] BYREF
__int64 v12; // [xsp+10h] [xbp-130h] BYREF
_BYTE v13[256]; // [xsp+18h] [xbp-128h] BYREF
v11 = 0;
v9 = sub_1004C34D0(a1, &v12, &v11);
if ( (_DWORD)v9 || (v9 = sub_1004C3A40(v12, a2), (_DWORD)v9) )
{
if ( (*((_BYTE *)off_1008524C8 + 32) & 0x80) != 0 )
{
sub_1004361AC((int)v13, 0x100u, (__int64)a2, v4, v5, v6, v7, v8);
sub_10048489C(v9, 6, (__int64)a1, (__int64)"SoundGroup::getVolume", (__int64)v13);
}
}
if ( v11 )
sub_100442D80(v11);
return (unsigned int)v9;
}