//
// cocos2d::CCMotionStreak::create from 0x18005eb90 to 0x18005ec3f (175 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801bd3a8
//
// 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:50 +0000
//
// Hidden C++ exception states: #wind=1
struct cocos2d::CCMotionStreak *__fastcall cocos2d::CCMotionStreak::create(
float a1,
float a2,
float a3,
const struct cocos2d::_ccColor3B *a4,
struct cocos2d::CCTexture2D *a5)
{
cocos2d::CCMotionStreak *v6; // rax
cocos2d::CCObject *v7; // rbx
v6 = (cocos2d::CCMotionStreak *)sub_1800E4AC0(0x1E0u);
if ( v6 )
v7 = cocos2d::CCMotionStreak::CCMotionStreak(v6);
else
v7 = nullptr;
if ( v7 )
{
if ( cocos2d::CCMotionStreak::initWithFade(v7, a1, a2, a3, a4, a5) )
{
cocos2d::CCObject::autorelease(v7);
return v7;
}
(*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1);
}
return nullptr;
}