//
// cocos2d::CCCatmullRomBy::create from 0x180026340 to 0x18002641c (220 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801b9460
//
// 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=1
struct cocos2d::CCCatmullRomBy *__fastcall cocos2d::CCCatmullRomBy::create(float a1, struct cocos2d::CCPointArray *a2)
{
__int64 v3; // rbx
cocos2d::CCObject *v4; // rcx
v3 = sub_1800E4AC0(0x88u);
if ( v3 )
{
*(_OWORD *)v3 = 0;
*(_OWORD *)(v3 + 16) = 0;
*(_OWORD *)(v3 + 32) = 0;
*(_OWORD *)(v3 + 48) = 0;
*(_OWORD *)(v3 + 64) = 0;
*(_OWORD *)(v3 + 80) = 0;
*(_OWORD *)(v3 + 96) = 0;
*(_OWORD *)(v3 + 112) = 0;
*(_QWORD *)(v3 + 128) = 0;
cocos2d::CCCardinalSplineBy::CCCardinalSplineBy((cocos2d::CCCardinalSplineBy *)v3);
*(_QWORD *)v3 = &cocos2d::CCCatmullRomBy::`vftable';
}
else
{
v3 = 0;
}
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 + 96);
if ( v4 )
cocos2d::CCObject::release(v4);
*(_QWORD *)(v3 + 96) = a2;
*(_DWORD *)(v3 + 108) = 1056964608;
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
return (struct cocos2d::CCCatmullRomBy *)v3;
}
cocos2d::CCObject::release((cocos2d::CCObject *)v3);
return nullptr;
}