//
// cocos2d::CCActionTween::create from 0x18003d6b0 to 0x18003d7bf (271 bytes)
//
// 5 xrefs:
// > cocos2d::CCActionTween::create @ 0x18003d69f
// > cocos2d::CCActionTween::reverse @ 0x18003d863
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bb224
// > ??> @ 0x1801bb230
//
// 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 11:21:37 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCActionTween *__fastcall cocos2d::CCActionTween::create(float a1, const char *a2, float a3, float a4)
{
cocos2d::CCAction *v5; // rax
cocos2d::CCAction *v6; // rbx
cocos2d::CCAction *(__fastcall *v7)(cocos2d::CCAction *, char); // r8
v5 = (cocos2d::CCAction *)sub_1800E4AC0(0x90u);
v6 = v5;
if ( v5 )
{
*(_OWORD *)v5 = 0;
*((_OWORD *)v5 + 1) = 0;
*((_OWORD *)v5 + 2) = 0;
*((_OWORD *)v5 + 3) = 0;
*((_OWORD *)v5 + 4) = 0;
*((_OWORD *)v5 + 5) = 0;
*((_OWORD *)v5 + 6) = 0;
*((_OWORD *)v5 + 7) = 0;
*((_OWORD *)v5 + 8) = 0;
cocos2d::CCAction::CCAction(v5);
*((_DWORD *)v6 + 20) = 0;
*(_QWORD *)v6 = &cocos2d::CCActionTween::`vftable';
*((_OWORD *)v6 + 6) = 0;
*((_QWORD *)v6 + 14) = 0;
*((_QWORD *)v6 + 15) = 15;
*((_BYTE *)v6 + 96) = 0;
}
else
{
v6 = nullptr;
}
if ( v6 )
{
if ( cocos2d::CCActionTween::initWithDuration(v6, a1, a2, a3, a4) )
{
cocos2d::CCObject::autorelease(v6);
}
else
{
v7 = *(cocos2d::CCAction *(__fastcall **)(cocos2d::CCAction *, char))(*(_QWORD *)v6 + 8LL);
if ( v7 == sub_18003D5E0 )
sub_18003D5E0(v6, 1);
else
v7(v6, 1);
return nullptr;
}
}
return v6;
}