//
// FMOD::ChannelControl::getFadePoints from 0xaed88 to 0xaee2a (162 bytes)
//
// 1 xrefs:
// > FMOD::ChannelControl::getFadePoints @ 0xe0938
//
// 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::getFadePoints(
FMOD::ChannelControl *this,
unsigned int *a2,
unsigned __int64 *a3,
float *a4)
{
int v8; // r5
int v9; // r0
unsigned int v10; // r0
int v11; // r3
_BYTE v13[256]; // [sp+8h] [bp-120h] BYREF
int v14; // [sp+108h] [bp-20h] BYREF
int v15; // [sp+10Ch] [bp-1Ch]
v14 = 0;
v8 = sub_47C34((int)this);
if ( !v8 )
{
v9 = (*(int (__fastcall **)(int, unsigned int *, unsigned __int64 *, float *))(*(_DWORD *)v15 + 132))(
v15,
a2,
a3,
a4);
v8 = v9;
if ( !a3 || v9 )
{
if ( v9 )
goto LABEL_2;
}
else
{
v10 = *a2;
while ( v10 )
{
--v10;
v11 = *((_DWORD *)a3 + 1) >> 20;
*(_DWORD *)a3 = (__int64)*a3 >> 20;
*((_DWORD *)a3++ + 1) = v11;
}
}
v8 = 0;
goto LABEL_11;
}
LABEL_2:
if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )
{
sub_AEE34(v13, 256, a2, a3, a4);
sub_BAB40(v8, 4, this, "ChannelControl::getFadePoints", v13);
}
LABEL_11:
sub_444C0(&v14);
return v8;
}