//
// GhostTrailEffect::create from 0x6c64b0 to 0x6c659c (236 bytes)
//
// 3 xrefs:
// > PlayerObject::toggleGhostEffect @ 0x75339c
// > PlayerObject::toggleGhostEffect @ 0x753430
// > ??> @ 0xd53e8
//
// 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 12:51:21 +0000
//
__int64 __fastcall GhostTrailEffect::create(GhostTrailEffect *this)
{
__int64 v1; // x19
__int64 v2; // x1
v1 = operator new(0x190u);
memset((void *)v1, 0, 0x190u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v1);
*(_BYTE *)(v1 + 328) = 0;
*(_QWORD *)(v1 + 344) = 0;
*(_QWORD *)v1 = &off_1420150;
*(_QWORD *)(v1 + 352) = 0;
*(_QWORD *)(v1 + 360) = 0;
*(_QWORD *)(v1 + 376) = 0;
*(_DWORD *)(v1 + 316) = 0;
*(_DWORD *)(v1 + 320) = 0;
*(_DWORD *)(v1 + 324) = 0;
*(_DWORD *)(v1 + 332) = 0;
*(_DWORD *)(v1 + 368) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 388));
v2 = *(_QWORD *)v1;
*(_BYTE *)(v1 + 396) = 0;
if ( (*(unsigned __int8 (__fastcall **)(__int64))(v2 + 80))(v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
return v1;
}
else
{
(*(void (__fastcall **)(__int64))(*(_QWORD *)v1 + 16LL))(v1);
return 0;
}
}