//
// FMOD::ChannelControl::getFadePoints from 0xd0954 to 0xd0a40 (236 bytes)
//
// 4 xrefs:
// > FMOD::ChannelControl::getFadePoints @ 0x10755c
// > ??> @ 0x3e38
// > FMOD::ChannelControl::getFadePoints @ 0x107554
// > ??> @ 0x110370
//
// 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::getFadePoints(
FMOD::ChannelControl *this,
unsigned int *a2,
unsigned __int64 *a3,
float *a4)
{
unsigned int v8; // w21
__int64 v9; // x0
char v10; // w8
__int64 v11; // x8
_QWORD v13[33]; // [xsp+0h] [xbp-140h] BYREF
__int64 v14; // [xsp+108h] [xbp-38h]
v13[32] = 0;
v8 = sub_55F6C((char)this);
if ( v8 )
{
LABEL_2:
v9 = sub_D1CCC();
if ( v10 < 0 )
{
sub_D0A40(v13, 256, a2, a3, a4);
v9 = sub_DF504(v8, 4, this, "ChannelControl::getFadePoints", v13);
}
goto LABEL_10;
}
v9 = (*(__int64 (__fastcall **)(__int64, unsigned int *, unsigned __int64 *, float *))(*(_QWORD *)v14 + 264LL))(
v14,
a2,
a3,
a4);
v8 = v9;
if ( !a3 || (_DWORD)v9 )
{
if ( !(_DWORD)v9 )
goto LABEL_10;
goto LABEL_2;
}
v11 = *a2;
if ( *a2 )
{
do
{
--v11;
*a3++ >>= 20;
}
while ( v11 );
}
v8 = 0;
LABEL_10:
sub_D1E80(v9);
return v8;
}