//
// cocos2d::CCAccelDeccelAmplitude::update from 0xd2b87c to 0xd2b8bc (64 bytes)
//
// 2 xrefs:
// > ??> @ 0x86dd0
// > ??> @ 0x1512388
//
// 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 13:07:17 +0000
//
__int64 __fastcall cocos2d::CCAccelDeccelAmplitude::update(cocos2d::CCAccelDeccelAmplitude *this, float a2)
{
float v2; // s0
cocos2d::CCActionInterval *v3; // x19
float v4; // s0
v2 = a2 + a2;
if ( v2 > 1.0 )
v2 = 1.0 - (float)(v2 - 1.0);
v3 = *((cocos2d::CCActionInterval **)this + 12);
v4 = powf(v2, *((float *)this + 23));
return cocos2d::CCActionInterval::setAmplitudeRate(v3, v4);
}