//
// GhostTrailEffect::create from 0x1006d0890 to 0x1006d093f (175 bytes)
//
// 1 xrefs:
// > PlayerObject::toggleGhostEffect @ 0x100400365
//
// 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 12:35:38 +0000
//
char *GhostTrailEffect::create()
{
char *v0; // rbx
v0 = (char *)operator new(0x190u);
__bzero(v0, 400);
cocos2d::CCNode::CCNode((__int64)v0);
*(_QWORD *)v0 = off_100B8FF78;
*((_DWORD *)v0 + 83) = 0;
*((_QWORD *)v0 + 47) = 0;
*(_QWORD *)(v0 + 316) = 0;
*(_QWORD *)(v0 + 321) = 0;
*(_OWORD *)(v0 + 344) = 0;
*(_OWORD *)(v0 + 356) = 0;
sub_1002782A0(v0 + 388);
v0[396] = 0;
if ( (*(unsigned __int8 (__fastcall **)(char *))(*(_QWORD *)v0 + 80LL))(v0) )
{
cocos2d::CCObject::autorelease((__int64)v0);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
return v0;
}