//
// FMODAudioEngine::updateChannelTweens from 0x3ef0e4 to 0x3ef1c0 (220 bytes)
//
// 1 xrefs:
// > sub_3F1D80 @ 0x3f1df2
//
// 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:47:12 +0000
//
float **__fastcall FMODAudioEngine::updateChannelTweens(FMODAudioEngine *this, float a2)
{
int i; // r5
float **result; // r0
float *v5; // r4
int v6; // r7
int v7; // r1
int v8; // r3
float v9; // s15
float v10; // s14
float v11; // s15
float v12; // s14
float *v13; // r8
for ( i = 0; i != 3; ++i )
{
result = (float **)FMODAudioEngine::getTweenContainer((int)this, i);
v5 = *result;
v6 = (int)result;
while ( v5 != (float *)(v6 + 4) )
{
v7 = *((_DWORD *)v5 + 4);
v8 = *((_DWORD *)v5 + 5);
v9 = v5[6] + *((float *)this + 106);
v10 = v5[7];
v5[6] = v9;
v11 = v9 / v10;
if ( v11 >= 1.0 )
{
v11 = 1.0;
}
else if ( v11 <= 0.0 )
{
v11 = 0.0;
}
v12 = v5[8] + (float)((float)(v5[9] - v5[8]) * v11);
v5[10] = v12;
*((_BYTE *)v5 + 44) = v11 == 1.0;
if ( v8 )
{
if ( v8 == 1 )
FMODAudioEngine::setChannelPitch(this, v7, i, v12);
}
else
{
FMODAudioEngine::setChannelVolume((int)this, v7, i, v12);
}
if ( *((_BYTE *)v5 + 44) )
{
v13 = (float *)std::__tree_next *>(v5);
result = (float **)std::__tree,FMODSoundTween>,std::__map_value_compare,std::__value_type,FMODSoundTween>,std::less>,true>,std::allocator,FMODSoundTween>>>::erase(
v6,
(int *)v5);
v5 = v13;
}
else
{
result = (float **)std::__tree_next *>(v5);
v5 = (float *)result;
}
}
}
return result;
}