//
// cocos2d::CCActionTween::reverse from 0x1007a56b0 to 0x1007a5794 (228 bytes)
//
// 1 xrefs:
// > ??> @ 0x100991078
//
// 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
//
cocos2d::CCActionInterval *__fastcall cocos2d::CCActionTween::reverse(cocos2d::CCActionTween *a1)
{
std::array *longStorage; // r14
char *v2; // rbx
__m128 v4; // [rsp+0h] [rbp-30h]
float m_fDuration; // [rsp+1Ch] [rbp-14h]
if ( (a1->m_strKey.m_data.m_short.sizex2 & 1) != 0 )
longStorage = (std::array *)a1->m_strKey.m_data.m_long.longStorage;
else
longStorage = &a1->m_strKey.m_data.m_short.shortStorage;
m_fDuration = a1->m_fDuration;
v4 = (__m128)*(unsigned __int64 *)&a1->m_fFrom;
v2 = (char *)operator new(0x88u);
*(_OWORD *)v2 = 0;
*((_OWORD *)v2 + 1) = 0;
*((_OWORD *)v2 + 2) = 0;
*((_OWORD *)v2 + 3) = 0;
*((_OWORD *)v2 + 4) = 0;
*((_OWORD *)v2 + 5) = 0;
*((_OWORD *)v2 + 6) = 0;
*((_OWORD *)v2 + 7) = 0;
*((_QWORD *)v2 + 16) = 0;
cocos2d::CCAction::CCAction((__int64)v2);
*((_DWORD *)v2 + 20) = 0;
*(_QWORD *)v2 = off_100991008;
*((_OWORD *)v2 + 6) = 0;
*((_QWORD *)v2 + 14) = 0;
if ( cocos2d::CCActionInterval::initWithDuration((cocos2d::CCActionInterval *)v2, m_fDuration) )
{
std::string::assign((std::string *)v2 + 4, longStorage->__elems_);
_mm_storel_ps((double *)(v2 + 124), _mm_shuffle_ps(v4, v4, 225));
*((_DWORD *)v2 + 30) = 0;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
return (cocos2d::CCActionInterval *)v2;
}