//
// GhostTrailEffect::runWithTarget from 0x1006d09d0 to 0x1006d0a6f (159 bytes)
//
// 1 xrefs:
// > PlayerObject::toggleGhostEffect @ 0x10040042b
//
// This function is hookable on this platform (idp: pc, 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:35:38 +0000
//
__int64 __fastcall GhostTrailEffect::runWithTarget(
__int64 a1,
__int64 a2,
char a3,
double a4,
float a5,
float a6,
float a7)
{
__int64 result; // rax
_OWORD *v8; // r14
__int64 v9; // rax
__int64 v10; // rax
*(_QWORD *)(a1 + 344) = a2;
*(_DWORD *)(a1 + 316) = LODWORD(a4);
*(float *)(a1 + 320) = a5;
*(float *)(a1 + 324) = fmaxf(a7, 0.1);
*(_BYTE *)(a1 + 328) = a3;
result = cocos2d::CCNode::schedule_1(a1, (__int64)GhostTrailEffect::trailSnapshot, 0, a4);
if ( a6 > 0.0 )
{
v8 = cocos2d::CCDelayTime::create((__m128)LODWORD(a6));
v9 = cocos2d::CCCallFunc::create(a1, GhostTrailEffect::stopTrail, 0);
v10 = sub_10039EB60((__int64)v8, v9, 0);
return cocos2d::CCNode::runAction(a1, v10);
}
return result;
}