//
// FMOD::ChannelControl::removeFadePoints from 0xaecb0 to 0xaed48 (152 bytes)
//
// 1 xrefs:
// > FMOD::ChannelControl::removeFadePoints @ 0xe0928
//
// 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:39 +0000
//
int __fastcall FMOD::ChannelControl::removeFadePoints(
FMOD::ChannelControl *this,
unsigned __int64 a2,
unsigned __int64 a3)
{
unsigned int v4; // r11
int v6; // r10
int v7; // r0
unsigned __int64 v8; // kr00_8
int v9; // r4
_BYTE v11[256]; // [sp+Ch] [bp-124h] BYREF
int v12; // [sp+10Ch] [bp-24h] BYREF
int v13; // [sp+110h] [bp-20h]
v4 = a2;
v12 = 0;
v6 = HIDWORD(a2);
v7 = sub_47C34((int)this);
v8 = a3;
if ( v7
|| (v6 = (v6 << 20) | (v4 >> 12),
v4 <<= 20,
v7 = (*(int (__fastcall **)(int, _DWORD, unsigned int, int, _DWORD, _DWORD))(*(_DWORD *)v13 + 128))(
v13,
*(_DWORD *)(*(_DWORD *)v13 + 128),
v4,
v6,
(_DWORD)a3 << 20,
a3 >> 12),
v8 = a3 << 20,
v7) )
{
v9 = v7;
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
sub_AED50(v11, 256, v4, v6, v8, HIDWORD(v8));
sub_BAB40(v9, 4, this, "ChannelControl::removeFadePoints", v11);
}
}
else
{
v9 = 0;
}
sub_444C0(&v12);
return v9;
}