//
// GhostTrailEffect::create from 0x1005f9aa0 to 0x1005f9b42 (162 bytes)
//
// 1 xrefs:
// > PlayerObject::toggleGhostEffect @ 0x100413285
//
// 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 *__fastcall GhostTrailEffect::create()
{
char *v0; // rbx
v0 = (char *)operator new(0x190u);
cocos2d::CCNode::CCNode((__int64)v0);
*(_QWORD *)v0 = off_10097C9B8;
*((_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_10028CC30(v0 + 388);
v0[396] = 0;
if ( (*(unsigned __int8 (__fastcall **)(char *))(*(_QWORD *)v0 + 80LL))(v0) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v0);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
return (GhostTrailEffect *)v0;
}