//
// cocos2d::CCEaseElasticInOut::update from 0xab6e08 to 0xab6f28 (288 bytes)
//
// 2 xrefs:
// > ??> @ 0x7fb78
// > ??> @ 0x11fc358
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
void cocos2d::CCEaseElasticInOut::update(cocos2d::CCEaseElasticInOut *a1, float a2)
{
float v2; // s1
float v3; // s0
float v4; // s11
float v5; // s8
float v6; // s9
float v7; // s0
float v8; // s10
float v9; // s0
float v10; // s10
float v11; // s0
cocos2d::CCEaseElasticInOut *v12; // [xsp+38h] [xbp+38h]
if ( a2 != 1.0 && a2 != 0.0 )
{
v2 = *(float *)&a1[1].m_uID;
v3 = a2 + a2;
if ( v2 == 0.0 )
{
v4 = 1.0;
v12 = a1;
v5 = v3 - 1.0;
v6 = 0.1125;
v7 = 2.0;
a1[1].m_uID = 1055286887;
if ( v5 >= 0.0 )
goto LABEL_5;
}
else
{
v4 = 1.0;
v12 = a1;
v5 = v3 - 1.0;
v6 = v2 * 0.25;
v7 = 2.0;
if ( v5 >= 0.0 )
{
LABEL_5:
v8 = powf(v7, v5 * -10.0);
v9 = sinf(
(float)((float)((float)(v5 - v6) * 3.1416) + (float)((float)(v5 - v6) * 3.1416))
/ *(float *)&v12[1].m_uID);
a1 = v12;
a2 = v4 + (float)((float)(v8 * v9) * 0.5);
goto LABEL_6;
}
}
v10 = powf(v7, v5 * 10.0);
v11 = sinf((float)((float)((float)(v5 - v6) * 3.1416) + (float)((float)(v5 - v6) * 3.1416)) / *(float *)&v12[1].m_uID);
a1 = v12;
a2 = (float)(v10 * -0.5) * v11;
}
LABEL_6:
(*((void (__fastcall **)(cocos2d::CCEaseElasticInOut_vtbl *, long double))a1[1].copyWithZone + 5))(
a1[1].__vftable,
*(long double *)&a2);
}