//
// cocos2d::CCEaseInOut::update from 0xd28728 to 0xd287b0 (136 bytes)
//
// 2 xrefs:
// > ??> @ 0xfd090
// > ??> @ 0x15116c8
//
// 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:15 +0000
//
__int64 __fastcall cocos2d::CCEaseInOut::update(cocos2d::CCEaseInOut *this, float a2)
{
float v2; // s0
__int64 v3; // x19
float v4; // s1
__int64 (__fastcall *v5)(__int64, float); // x20
float v6; // s0
float v8; // s0
v2 = a2 + a2;
v3 = *((_QWORD *)this + 12);
v4 = *((float *)this + 26);
v5 = *(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v3 + 40LL);
if ( v2 < 1.0 )
{
v8 = powf(v2, v4);
return v5(v3, v8 * 0.5);
}
else
{
v6 = powf(2.0 - v2, v4);
return v5(v3, 1.0 - (float)(v6 * 0.5));
}
}