//
// FMOD::Sound::getMusicChannelVolume from 0xb6444 to 0xb64e4 (160 bytes)
//
// 1 xrefs:
// > FMOD::Sound::getMusicChannelVolume @ 0xe06e8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:41:43 +0000
//
int __fastcall FMOD::Sound::getMusicChannelVolume(FMOD::Sound *this, unsigned int a2, float *a3)
{
int v6; // r5
int v7; // r0
int v8; // r0
int v9; // r0
_BYTE v11[256]; // [sp+8h] [bp-120h] BYREF
int v12; // [sp+108h] [bp-20h] BYREF
_DWORD *v13; // [sp+10Ch] [bp-1Ch] BYREF
v12 = 0;
v6 = sub_54E84((int)this, &v13, (int)&v12);
if ( !v6 )
{
v7 = v13[47];
__dmb(0xBu);
if ( !v7 || (v8 = v13[47], __dmb(0xBu), v8 == 7) || (v9 = v13[47], __dmb(0xBu), v9 == 5) )
{
v6 = (*(int (__fastcall **)(_DWORD *, unsigned int, float *))(*v13 + 172))(v13, a2, a3);
if ( !v6 )
{
v6 = 0;
goto LABEL_10;
}
}
else
{
v6 = 46;
}
}
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
sub_AE13C(v11, 256, a2, a3);
sub_BAB40(v6, 5, this, "Sound::getMusicChannelVolume", v11);
}
LABEL_10:
sub_6429C(&v12);
return v6;
}