//
// GhostTrailEffect::runWithTarget from 0x1005f9bd0 to 0x1005f9c6f (159 bytes)
//
// 1 xrefs:
// > PlayerObject::toggleGhostEffect @ 0x100413345
//
// 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
//
void __fastcall GhostTrailEffect::runWithTarget(
GhostTrailEffect *a1,
cocos2d::CCSprite *a2,
float a3,
float a4,
float a5,
float a6,
bool a7)
{
cocos2d::CCDelayTime *v7; // r14
cocos2d::CCCallFunc *v8; // rax
cocos2d::CCSequence *v9; // rax
a1->m_iconSprite = a2;
a1->m_snapshotInterval = a3;
a1->m_fadeInterval = a4;
a1->m_ghostScale = fmaxf(a6, 0.1);
a1->m_scaleTwice = a7;
cocos2d::CCNode::schedule_1(a1, (cocos2d::SEL_SCHEDULE)(unsigned __int64)GhostTrailEffect::trailSnapshot, a3);
if ( a5 > 0.0 )
{
v7 = cocos2d::CCDelayTime::create(a5);
v8 = cocos2d::CCCallFunc::create(a1, (cocos2d::SEL_CallFunc)(unsigned __int64)GhostTrailEffect::stopTrail);
v9 = sub_1003B5760(v7, v8, 0);
cocos2d::CCNode::runAction(a1, v9);
}
}