//
// GhostTrailEffect::create from 0x5a5db8 to 0x5a5e94 (220 bytes)
//
// 3 xrefs:
// > PlayerObject::toggleGhostEffect @ 0x628cb4
// > PlayerObject::toggleGhostEffect @ 0x628d40
// > ??> @ 0xa22d0
//
// 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
//
GhostTrailEffect *GhostTrailEffect::create()
{
__int64 v0; // x19
__int64 v1; // x1
v0 = operator new(0x190u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v0);
*(_BYTE *)(v0 + 328) = 0;
*(_QWORD *)(v0 + 344) = 0;
*(_QWORD *)v0 = &off_1141550;
*(_QWORD *)(v0 + 352) = 0;
*(_QWORD *)(v0 + 360) = 0;
*(_QWORD *)(v0 + 376) = 0;
*(_DWORD *)(v0 + 316) = 0;
*(_DWORD *)(v0 + 320) = 0;
*(_DWORD *)(v0 + 324) = 0;
*(_DWORD *)(v0 + 332) = 0;
*(_DWORD *)(v0 + 368) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 388));
v1 = *(_QWORD *)v0;
*(_BYTE *)(v0 + 396) = 0;
if ( (*(unsigned __int8 (__fastcall **)(__int64))(v1 + 80))(v0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
return (GhostTrailEffect *)v0;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
}