//
// cocos2d::CCActionTween::create from 0x1007a5390 to 0x1007a547b (235 bytes)
//
// 2 xrefs:
// > SecretLayer5::animateHead @ 0x10047c3a4
// > SecretLayer5::animateHead @ 0x10047c3c4
//
// 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::CCActionTween *__fastcall cocos2d::CCActionTween::create(float a1, int a2, float a3, float a4)
{
void *v4; // r14
v4 = operator new(0x88u);
*(_OWORD *)v4 = 0;
*((_OWORD *)v4 + 1) = 0;
*((_OWORD *)v4 + 2) = 0;
*((_OWORD *)v4 + 3) = 0;
*((_OWORD *)v4 + 4) = 0;
*((_OWORD *)v4 + 5) = 0;
*((_OWORD *)v4 + 6) = 0;
*((_OWORD *)v4 + 7) = 0;
*((_QWORD *)v4 + 16) = 0;
cocos2d::CCAction::CCAction((__int64)v4);
*((_DWORD *)v4 + 20) = 0;
*(_QWORD *)v4 = off_100991008;
*((_OWORD *)v4 + 6) = 0;
*((_QWORD *)v4 + 14) = 0;
if ( cocos2d::CCActionInterval::initWithDuration((cocos2d::CCActionInterval *)v4, a1) )
{
std::string::assign((std::string *)v4 + 4, "");
*((float *)v4 + 32) = a4;
*((float *)v4 + 31) = a3;
*((_DWORD *)v4 + 30) = 0;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v4 + 16LL))(v4);
v4 = nullptr;
}
*((_DWORD *)v4 + 30) = a2;
return (cocos2d::CCActionTween *)v4;
}