//
// cocos2d::CCCatmullRomBy::create from 0x180025c40 to 0x180025d1c (220 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801af34c
//
// 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::CCCatmullRomBy *__fastcall cocos2d::CCCatmullRomBy::create(float a1, struct cocos2d::CCPointArray *a2)
{
void *v3; // rbx
cocos2d::CCObject *v4; // rcx
v3 = operator new(0x88u);
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;
*((_QWORD *)v3 + 16) = 0;
cocos2d::CCCardinalSplineBy::CCCardinalSplineBy((cocos2d::CCCardinalSplineBy *)v3);
*(_QWORD *)v3 = &cocos2d::CCCatmullRomBy::`vftable';
}
else
{
v3 = nullptr;
}
if ( !v3 )
return (struct cocos2d::CCCatmullRomBy *)v3;
if ( cocos2d::CCActionInterval::initWithDuration((cocos2d::CCActionInterval *)v3, a1) )
{
if ( a2 )
cocos2d::CCObject::retain(a2);
v4 = *((cocos2d::CCObject **)v3 + 12);
if ( v4 )
cocos2d::CCObject::release(v4);
*((_QWORD *)v3 + 12) = a2;
*((_DWORD *)v3 + 27) = 1056964608;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
return (struct cocos2d::CCCatmullRomBy *)v3;
}
cocos2d::CCObject::release((cocos2d::CCObject *)v3);
return nullptr;
}