//
// GhostTrailEffect::create from 0x140076a80 to 0x140076b6c (236 bytes)
//
// 3 xrefs:
// > PlayerObject::toggleGhostEffect @ 0x1404fd22c
// > PlayerObject::toggleGhostEffect @ 0x1404fd301
// > ??> @ 0x140911b4c
//
// 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:25:51 +0000
//
// Hidden C++ exception states: #wind=2
char *GhostTrailEffect::create()
{
char *v0; // rbx
__int64 (__fastcall *v1)(char *); // rdx
char v2; // al
v0 = (char *)operator new(0x198u);
memset(v0, 0, 0x198u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v0);
*(_QWORD *)v0 = &GhostTrailEffect::`vftable';
*((_QWORD *)v0 + 40) = 0;
*((_DWORD *)v0 + 82) = 0;
v0[332] = 0;
*((_DWORD *)v0 + 84) = 0;
*((_QWORD *)v0 + 44) = 0;
*((_QWORD *)v0 + 45) = 0;
*((_QWORD *)v0 + 46) = 0;
*((_DWORD *)v0 + 94) = 0;
*((_QWORD *)v0 + 48) = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v0 + 396));
v0[404] = 0;
v1 = *(__int64 (__fastcall **)(char *))(*(_QWORD *)v0 + 72LL);
if ( (char *)v1 == (char *)GhostTrailEffect::init )
v2 = GhostTrailEffect::init(v0);
else
v2 = v1(v0);
if ( v2 )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
return v0;
}
else
{
(*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v0 + 8LL))(v0, 1);
return nullptr;
}
}