//
// cocos2d::CCActionTween::create from 0x100888630 to 0x10088871b (235 bytes)
//
// 2 xrefs:
// > SecretLayer5::animateHead @ 0x100470d04
// > SecretLayer5::animateHead @ 0x100470d24
//
// 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:36:59 +0000
//
void *__fastcall cocos2d::CCActionTween::create(int a1, float 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_100BA6710;
*((_OWORD *)v4 + 6) = 0;
*((_QWORD *)v4 + 14) = 0;
if ( cocos2d::CCActionInterval::initWithDuration((__int64)v4, (__m128)LODWORD(a2)) )
{
std::string::assign((std::string *)v4 + 4, "");
*((float *)v4 + 32) = a4;
*((float *)v4 + 31) = a3;
*((_DWORD *)v4 + 30) = 0;
cocos2d::CCObject::autorelease((__int64)v4);
}
else
{
(*(void (__fastcall **)(void *))(*(_QWORD *)v4 + 16LL))(v4);
v4 = nullptr;
}
*((_DWORD *)v4 + 30) = a1;
return v4;
}