//
// cocos2d::CCCatmullRomTo::create from 0x180026420 to 0x180026527 (263 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b946c
//
// 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:30 +0000
//
// Hidden C++ exception states: #wind=2
struct cocos2d::CCCatmullRomTo *__fastcall cocos2d::CCCatmullRomTo::create(float a1, struct cocos2d::CCPointArray *a2)
{
cocos2d::CCAction *v3; // rax
cocos2d::CCAction *v4; // rbx
cocos2d::CCObject *v5; // rcx
v3 = (cocos2d::CCAction *)sub_1800E4AC0(0x80u);
v4 = v3;
if ( v3 )
{
*(_OWORD *)v3 = 0;
*((_OWORD *)v3 + 1) = 0;
*((_OWORD *)v3 + 2) = 0;
*((_OWORD *)v3 + 3) = 0;
*((_OWORD *)v3 + 4) = 0;
*((_OWORD *)v3 + 5) = 0;
*((_OWORD *)v3 + 6) = 0;
*((_OWORD *)v3 + 7) = 0;
cocos2d::CCAction::CCAction(v3);
*((_DWORD *)v4 + 20) = 0;
*(_QWORD *)v4 = &cocos2d::CCCardinalSplineTo::`vftable';
*((_QWORD *)v4 + 12) = 0;
*((_QWORD *)v4 + 13) = 0;
cocos2d::CCSize::CCSize((cocos2d::CCAction *)((char *)v4 + 112));
cocos2d::CCSize::CCSize((cocos2d::CCAction *)((char *)v4 + 120));
*(_QWORD *)v4 = &cocos2d::CCCatmullRomTo::`vftable';
}
else
{
v4 = nullptr;
}
if ( !v4 )
return v4;
if ( cocos2d::CCActionInterval::initWithDuration(v4, a1) )
{
if ( a2 )
cocos2d::CCObject::retain(a2);
v5 = *((cocos2d::CCObject **)v4 + 12);
if ( v5 )
cocos2d::CCObject::release(v5);
*((_QWORD *)v4 + 12) = a2;
*((_DWORD *)v4 + 27) = 1056964608;
cocos2d::CCObject::autorelease(v4);
return v4;
}
cocos2d::CCObject::release(v4);
return nullptr;
}