//
// cocos2d::CCSpeed::create from 0xab4058 to 0xab40e8 (144 bytes)
//
// 2 xrefs:
// > cocos2d::CCSpeed::reverse @ 0xab4118
// > ??> @ 0x412b0
//
// 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
//
cocos2d::CCSpeed *cocos2d::CCSpeed::create(cocos2d::CCActionInterval *a1, float a2)
{
__int64 v2; // x19
v2 = operator new(0x60u);
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v2);
*(_QWORD *)(v2 + 88) = 0;
*(_QWORD *)v2 = &off_11FB3C0;
*(_DWORD *)(v2 + 80) = 0;
if ( cocos2d::CCSpeed::initWithAction((cocos2d::CCSpeed *)v2, a1, a2) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);
return (cocos2d::CCSpeed *)v2;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2);
return nullptr;
}
}