//
// GhostTrailEffect::create from 0x3e4fe4 to 0x3e5078 (148 bytes)
//
// 2 xrefs:
// > PlayerObject::toggleGhostEffect @ 0x4388cc
// > PlayerObject::toggleGhostEffect @ 0x438912
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:04 +0000
//
int *__fastcall GhostTrailEffect::create(GhostTrailEffect *this)
{
int *v1; // r4
int v2; // r3
int v3; // r3
int *v4; // r0
v1 = (int *)operator new(0x148u);
memset(v1, 0, 0x148u);
cocos2d::CCNode::CCNode((cocos2d::CCNode *)v1);
v1[66] = 0;
v1[67] = 0;
v1[68] = 0;
*v1 = (int)&off_C89AF8;
v1[70] = 0;
*((_BYTE *)v1 + 276) = 0;
v1[73] = 0;
v1[74] = 0;
v1[75] = 0;
v1[76] = 0;
v1[77] = 0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v1 + 79));
v2 = *v1;
*((_BYTE *)v1 + 324) = 0;
if ( (*(int (__fastcall **)(int *))(v2 + 40))(v1) )
{
cocos2d::CCObject::autorelease((cocos2d::CCObject *)v1);
}
else
{
v3 = *v1;
v4 = v1;
v1 = nullptr;
(*(void (__fastcall **)(int *))(v3 + 8))(v4);
}
return v1;
}