//
// cocos2d::CCMotionStreak::create from 0xd686dc to 0xd68768 (140 bytes)
//
// 2 xrefs:
// > PlayerObject::setupStreak @ 0x766ea8
// > ??> @ 0x82ab0
//
// 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:55 +0000
//
cocos2d::CCMotionStreak *__fastcall cocos2d::CCMotionStreak::create(
__int64 a1,
__int64 a2,
float a3,
float a4,
float a5)
{
cocos2d::CCMotionStreak *v6; // x19
v6 = (cocos2d::CCMotionStreak *)operator new(0x1E0u);
cocos2d::CCMotionStreak::CCMotionStreak(v6);
if ( (unsigned __int8)cocos2d::CCMotionStreak::initWithFade((cocos2d::CCScheduler **)v6, a1, a2, a3, a4, a5) )
{
cocos2d::CCObject::autorelease(v6);
return v6;
}
else
{
(*(void (__fastcall **)(cocos2d::CCMotionStreak *))(*(_QWORD *)v6 + 16LL))(v6);
return nullptr;
}
}