//
// cocos2d::CCSpeed::create from 0x1800241d0 to 0x180024273 (163 bytes)
//
// 3 xrefs:
// > cocos2d::CCSpeed::reverse @ 0x180024490
// > ??> @ 0x1801438a8
// > ??> @ 0x1801af130
//
// 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::CCSpeed *__fastcall cocos2d::CCSpeed::create(struct cocos2d::CCActionInterval *this, float a2)
{
cocos2d::CCObject *v3; // rax
cocos2d::CCObject *v4; // rbx
v3 = (cocos2d::CCObject *)operator new(0x60u);
v4 = v3;
if ( v3 )
{
cocos2d::CCObject::CCObject(v3);
v4[1].__vftable = nullptr;
*(_QWORD *)&v4[1].m_uID = 0;
v4[1].m_nTag = -1;
*(_QWORD *)&v4[1].m_uReference = 1065353216;
v4->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCSpeed::`vftable';
*(_QWORD *)&v4[1].m_uIndexInArray = 0;
}
else
{
v4 = nullptr;
}
if ( !v4 )
return nullptr;
cocos2d::CCObject::retain(this);
*(_QWORD *)&v4[1].m_uIndexInArray = this;
*(float *)&v4[1].m_uAutoReleaseCount = a2;
cocos2d::CCObject::autorelease(v4);
return (struct cocos2d::CCSpeed *)v4;
}