//
// cocos2d::CCSpeed::create from 0xd25b90 to 0xd25c20 (144 bytes)
//
// 2 xrefs:
// > cocos2d::CCSpeed::reverse @ 0xd25c50
// > ??> @ 0x5d7c0
//
// This function is hookable on this platform (idp: arm, 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 13:07:14 +0000
//
__int64 __fastcall cocos2d::CCSpeed::create(cocos2d::CCSpeed *this, cocos2d::CCActionInterval *a2, float a3)
{
__int64 v3; // x19
v3 = operator new(0x60u);
cocos2d::CCAction::CCAction((cocos2d::CCAction *)v3);
*(_QWORD *)(v3 + 88) = 0;
*(_QWORD *)v3 = &off_1510CD0;
*(_DWORD *)(v3 + 80) = 0;
if ( (unsigned __int8)cocos2d::CCSpeed::initWithAction((cocos2d::CCSpeed *)v3, this, a3) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v3);
return v3;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 16LL))(v3);
return 0;
}
}