//
// cocos2d::CCEaseElasticInOut::update from 0x7b7fc8 to 0x7b80ba (242 bytes)
//
// 0 xrefs:
//
// 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 12:00:12 +0000
//
int __fastcall cocos2d::CCEaseElasticInOut::update(cocos2d::CCEaseElasticInOut *this, float a2)
{
float v2; // s15
float v4; // s15
float v5; // s17
float v6; // s16
float v7; // s16
v2 = a2;
if ( a2 != 0.0 && a2 != 1.0 )
{
v4 = (float)(a2 + a2) - 1.0;
if ( *((float *)this + 21) == 0.0 )
*((_DWORD *)this + 21) = 1055286887;
v5 = v4 - (float)(*((float *)this + 21) * 0.25);
if ( v4 >= 0.0 )
{
v7 = powf(2.0, v4 * -10.0);
v2 = (float)((float)(v7 * sinf((float)((float)(v5 * 3.1416) + (float)(v5 * 3.1416)) / *((float *)this + 21))) * 0.5)
+ 1.0;
}
else
{
v6 = powf(2.0, v4 * 10.0);
v2 = (float)(v6 * -0.5) * sinf((float)((float)(v5 * 3.1416) + (float)(v5 * 3.1416)) / *((float *)this + 21));
}
}
return (*(int (__fastcall **)(_DWORD, float))(**((_DWORD **)this + 20) + 20))(
*((_DWORD *)this + 20),
COERCE_FLOAT(LODWORD(v2)));
}