//
// cocos2d::CCActionTween::create from 0x18003cfa0 to 0x18003d0af (271 bytes)
//
// 5 xrefs:
// > cocos2d::CCActionTween::create @ 0x18003cf8f
// > cocos2d::CCActionTween::reverse @ 0x18003d163
// > ??> @ 0x1801438a8
// > ??> @ 0x1801b1104
// > ??> @ 0x1801b1110
//
// 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
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCActionTween *__fastcall cocos2d::CCActionTween::create(float a1, const char *a2, float a3, float a4)
{
_OWORD *v5; // rax
_OWORD *v6; // rbx
cocos2d::CCActionTween *(__fastcall *v7)(cocos2d::CCActionTween *, char); // r8
v5 = operator new(0x90u);
v6 = v5;
if ( v5 )
{
*v5 = 0;
v5[1] = 0;
v5[2] = 0;
v5[3] = 0;
v5[4] = 0;
v5[5] = 0;
v5[6] = 0;
v5[7] = 0;
v5[8] = 0;
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v5);
*((_DWORD *)v6 + 20) = 0;
*(_QWORD *)v6 = &cocos2d::CCActionTween::`vftable';
v6[6] = 0;
*((_QWORD *)v6 + 14) = 0;
*((_QWORD *)v6 + 15) = 15;
*((_BYTE *)v6 + 96) = 0;
}
else
{
v6 = nullptr;
}
if ( v6 )
{
if ( cocos2d::CCActionTween::initWithDuration((cocos2d::CCActionTween *)v6, a1, a2, a3, a4) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);
}
else
{
v7 = *(cocos2d::CCActionTween *(__fastcall **)(cocos2d::CCActionTween *, char))(*(_QWORD *)v6 + 8LL);
if ( v7 == sub_18003CEF0 )
sub_18003CEF0((cocos2d::CCActionTween *)v6, 1);
else
v7((cocos2d::CCActionTween *)v6, 1);
return nullptr;
}
}
return (struct cocos2d::CCActionTween *)v6;
}