//
// GhostTrailEffect::runWithTarget from 0x10039198c to 0x100391a3c (176 bytes)
//
// 1 xrefs:
// > PlayerObject::toggleGhostEffect @ 0x1002c424c
//
// 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
//
_DWORD *__fastcall GhostTrailEffect::runWithTarget(
__int64 a1,
__int64 a2,
char a3,
float a4,
float a5,
float a6,
float a7)
{
_DWORD *result; // x0
float *v10; // x20
char v11; // w0
__int64 v12; // x1
__int64 v13; // x2
__int64 v14; // x3
__int64 v15; // x4
__int64 v16; // x5
__int64 v17; // x6
__int64 v18; // x7
__int64 v19; // x1
*(_QWORD *)(a1 + 344) = a2;
*(float *)(a1 + 316) = a4;
*(float *)(a1 + 320) = a5;
*(float *)(a1 + 324) = fmaxf(a7, 0.1);
*(_BYTE *)(a1 + 328) = a3;
result = cocos2d::CCNode::schedule(a1, (unsigned __int64)GhostTrailEffect::trailSnapshot, 0, a4);
if ( a6 > 0.0 )
{
v10 = cocos2d::CCDelayTime::create(a6);
v11 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, (__int64)GhostTrailEffect::stopTrail, 0);
v19 = sub_10021D420((__int64)v10, v12, v13, v14, v15, v16, v17, v18, v11);
return (_DWORD *)cocos2d::CCNode::runAction(a1, v19);
}
return result;
}