//
// cocos2d::CCEaseInOut::update from 0x100516030 to 0x10051609a (106 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b6bc70
//
// This function is hookable on this platform (idp: pc, 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 12:31:38 +0000
//
__int64 __fastcall cocos2d::CCEaseInOut::update(__int64 a1, double a2)
{
float v2; // xmm0_4
__int64 v3; // rbx
v2 = *(float *)&a2 + *(float *)&a2;
v3 = *(_QWORD *)(a1 + 96);
if ( v2 >= 1.0 )
{
HIDWORD(a2) = 0;
*(float *)&a2 = (float)(powf(2.0 - v2, *(float *)(a1 + 104)) * -0.5) + 1.0;
}
else
{
*(float *)&a2 = powf(v2, *(float *)(a1 + 104)) * 0.5;
}
return (*(__int64 (__fastcall **)(__int64, double))(*(_QWORD *)v3 + 40LL))(v3, a2);
}