//
// FMOD::Sound::setMusicChannelVolume from 0xd9ff0 to 0xda0ac (188 bytes)
//
// 4 xrefs:
// > FMOD::Sound::setMusicChannelVolume @ 0x10738c
// > ??> @ 0x2980
// > FMOD::Sound::setMusicChannelVolume @ 0x107384
// > ??> @ 0x110288
//
// 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 12:14:54 +0000
//
__int64 __fastcall FMOD::Sound::setMusicChannelVolume(FMOD::Sound *this, unsigned int a2, long double a3)
{
unsigned int v5; // w21
__int64 v6; // x0
int v7; // w8
__int64 v8; // x0
char v9; // zf
__int64 v10; // x0
char v11; // w8
_BYTE *v12; // x0
__int64 v13; // x1
__int64 v14; // x0
_BYTE v16[8]; // [xsp+108h] [xbp-38h] BYREF
__int64 v17; // [xsp+118h] [xbp-28h] BYREF
v5 = sub_DA46C(this, &v17, v16);
if ( !v5 )
{
v6 = sub_DA368();
if ( !v7 || (v8 = sub_DA358(v6), v9) || (sub_DA410(v8), v9) )
{
v10 = (*(__int64 (__fastcall **)(__int64, _QWORD, long double))(*(_QWORD *)v17 + 336LL))(v17, a2, a3);
v5 = v10;
if ( !(_DWORD)v10 )
goto LABEL_9;
}
else
{
v5 = 46;
}
}
v10 = sub_DA344();
if ( v11 < 0 )
{
v12 = (_BYTE *)sub_DA5E4(v10);
v14 = sub_CF9F8(v12, v13, a2, *(float *)&a3);
v10 = sub_DA388(v14);
}
LABEL_9:
sub_DA4E8(v10);
return v5;
}