//
// FMOD::ChannelControl::removeFadePoints from 0x18000c660 to 0x18000c79d (317 bytes)
//
// 6 xrefs:
// > FMOD_ChannelGroup_RemoveFadePoints @ 0x1800c51c9
// > FMOD_Channel_RemoveFadePoints @ 0x1800c57d9
// > ??> @ 0x18017e13c
// > ??> @ 0x18017e170
// > ??> @ 0x180194348
// > ??> @ 0x1801f68a0
//
// 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 FMOD::ChannelControl::removeFadePoints(__int64 a1, __int64 a2, __int64 a3)
{
int v5; // r14d
unsigned int v6; // esi
int v7; // ebx
int v8; // eax
__int64 v10; // [rsp+30h] [rbp-148h] BYREF
__int64 v11; // [rsp+38h] [rbp-140h] BYREF
_BYTE v12[256]; // [rsp+40h] [rbp-138h] BYREF
v10 = 0;
v5 = a1;
v6 = sub_180012360(a1, &v11, &v10);
if ( v6
|| (a2 <<= 20,
a3 <<= 20,
(v6 = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v11 + 256LL))(v11, a2, a3)) != 0) )
{
if ( *((char *)off_1801AED20 + 16) < 0 )
{
v7 = sub_1800F3310(v12, 256, a2);
v8 = sub_1800F2F70(&v12[v7]);
sub_1800F3310(&v12[v8 + v7], (unsigned int)(256 - (v8 + v7)), a3);
sub_1800B20E0(v6, 4, v5, (unsigned int)"ChannelControl::removeFadePoints", (__int64)v12);
}
}
if ( v10 )
sub_180102320();
return v6;
}