//
// FMOD::ChannelControl::setVolume from 0x18000e480 to 0x18000e55b (219 bytes)
//
// 5 xrefs:
// > FMOD_ChannelGroup_SetVolume @ 0x1800c53b9
// > FMOD_Channel_SetVolume @ 0x1800c5a29
// > ??> @ 0x180194348
// > ??> @ 0x1801f6c3c
// > ??> @ 0x1801f6c48
//
// This function is hookable on this platform (idp: pc, 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 10:52:44 +0000
//
__int64 __fastcall FMOD::ChannelControl::setVolume(__int64 a1)
{
int v1; // edi
__int64 v2; // rdx
unsigned int v3; // ebx
__int64 v5; // [rsp+30h] [rbp-138h] BYREF
__int64 v6; // [rsp+38h] [rbp-130h] BYREF
_BYTE v7[256]; // [rsp+40h] [rbp-128h] BYREF
v5 = 0;
v1 = a1;
v3 = sub_180012360(a1, &v6, &v5);
if ( (v3 || (v3 = (*(__int64 (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v6 + 32LL))(v6, v2, 0)) != 0)
&& *((char *)off_1801AED20 + 16) < 0 )
{
sub_1800F2F20(v7, 256);
sub_1800B20E0(v3, 4, v1, (unsigned int)"ChannelControl::setVolume", (__int64)v7);
}
if ( v5 )
sub_180102320();
return v3;
}