//
// GhostTrailEffect::runWithTarget from 0x6c659c to 0x6c6648 (172 bytes)
//
// 2 xrefs:
// > PlayerObject::toggleGhostEffect @ 0x7533ec
// > ??> @ 0x8ee10
//
// 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 12:51:21 +0000
//
cocos2d::CCDelayTime *__fastcall GhostTrailEffect::runWithTarget(
GhostTrailEffect *this,
cocos2d::CCSprite *a2,
float a3,
float a4,
float a5,
float a6,
char a7)
{
cocos2d::CCDelayTime *result; // x0
cocos2d::CCSequence *v9; // x20
cocos2d::CCFiniteTimeAction *v10; // x0
cocos2d::CCAction *v11; // x0
*((_QWORD *)this + 43) = a2;
*((float *)this + 79) = a3;
*((float *)this + 80) = a4;
if ( a6 <= 0.1 )
a6 = 0.1;
*((_BYTE *)this + 328) = a7;
*((float *)this + 81) = a6;
result = (cocos2d::CCDelayTime *)cocos2d::CCNode::schedule(this, GhostTrailEffect::trailSnapshot, 0, a3);
if ( a5 > 0.0 )
{
v9 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(result, a5);
v10 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, GhostTrailEffect::stopTrail, 0);
v11 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v9, v10, 0);
return (cocos2d::CCDelayTime *)cocos2d::CCNode::runAction(this, v11);
}
return result;
}