//
// FMOD::ChannelControl::removeFadePoints from 0xd0870 to 0xd08f0 (128 bytes)
//
// 4 xrefs:
// > FMOD::ChannelControl::removeFadePoints @ 0x10754c
// > ??> @ 0x6748
// > FMOD::ChannelControl::removeFadePoints @ 0x107544
// > ??> @ 0x110368
//
// 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:50 +0000
//
__int64 __fastcall FMOD::ChannelControl::removeFadePoints(FMOD::ChannelControl *this, __int64 a2, __int64 a3)
{
unsigned int v5; // w0
unsigned int v6; // w20
__int64 v7; // x0
char v8; // w8
__int64 v9; // x0
__int64 v10; // x0
__int64 v12; // [xsp+118h] [xbp-28h]
v5 = sub_D1D2C(this);
if ( v5 )
{
v6 = v5;
}
else
{
v7 = (*(__int64 (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v12 + 256LL))(v12, a2 << 20, a3 << 20);
v6 = v7;
if ( !(_DWORD)v7 )
goto LABEL_6;
}
v7 = sub_D1CCC();
if ( v8 < 0 )
{
v9 = sub_D1E20(v7);
v10 = sub_D08F0(v9);
v7 = sub_D1CE0(v10);
}
LABEL_6:
sub_D1DD4(v7);
return v6;
}