//
// GhostTrailEffect::create from 0x10039183c to 0x10039190c (208 bytes)
//
// 1 xrefs:
// > PlayerObject::toggleGhostEffect @ 0x1002c41b4
//
// 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 11:03:38 +0000
//
char *GhostTrailEffect::create()
{
char *v0; // x19
v0 = (char *)operator new(0x190u);
*(_OWORD *)v0 = 0u;
*((_OWORD *)v0 + 1) = 0u;
*((_OWORD *)v0 + 2) = 0u;
*((_OWORD *)v0 + 3) = 0u;
*((_OWORD *)v0 + 4) = 0u;
*((_OWORD *)v0 + 5) = 0u;
*((_OWORD *)v0 + 6) = 0u;
*((_OWORD *)v0 + 7) = 0u;
*((_OWORD *)v0 + 8) = 0u;
*((_OWORD *)v0 + 9) = 0u;
*((_OWORD *)v0 + 10) = 0u;
*((_OWORD *)v0 + 11) = 0u;
*((_OWORD *)v0 + 12) = 0u;
*((_OWORD *)v0 + 13) = 0u;
*((_OWORD *)v0 + 14) = 0u;
*((_OWORD *)v0 + 15) = 0u;
*((_OWORD *)v0 + 16) = 0u;
*((_OWORD *)v0 + 17) = 0u;
*((_OWORD *)v0 + 18) = 0u;
*((_OWORD *)v0 + 19) = 0u;
*((_OWORD *)v0 + 20) = 0u;
*((_OWORD *)v0 + 21) = 0u;
*((_OWORD *)v0 + 22) = 0u;
*((_OWORD *)v0 + 23) = 0u;
*((_OWORD *)v0 + 24) = 0u;
cocos2d::CCNode::CCNode((__int64)v0);
*(_QWORD *)v0 = &off_100940D18;
*((_DWORD *)v0 + 83) = 0;
*((_QWORD *)v0 + 47) = 0;
*(_QWORD *)(v0 + 316) = 0;
*(_QWORD *)(v0 + 321) = 0;
*((_QWORD *)v0 + 44) = 0;
*((_QWORD *)v0 + 45) = 0;
*((_QWORD *)v0 + 43) = 0;
*((_DWORD *)v0 + 92) = 0;
sub_1000262EC(v0 + 388);
v0[396] = 0;
if ( (*(unsigned int (__fastcall **)(char *))(*(_QWORD *)v0 + 80LL))(v0) )
{
cocos2d::CCObject::autorelease((__int64)v0);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v0 + 16LL))(v0);
return nullptr;
}
return v0;
}