//
// GhostTrailEffect::runWithTarget from 0x3e507c to 0x3e511e (162 bytes)
//
// 1 xrefs:
// > PlayerObject::toggleGhostEffect @ 0x438954
//
// 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::runWithTarget(
GhostTrailEffect *this,
cocos2d::CCSprite *a2,
float a3,
float a4,
cocos2d::CCDelayTime *a5,
float a6,
bool a7)
{
float v8; // s15
int result; // r0
float v10; // r1
cocos2d::CCSequence *v11; // r6
cocos2d::CCFiniteTimeAction *v12; // r0
int v13; // r3
cocos2d::CCAction *v14; // r0
*((float *)this + 67) = a4;
*((_DWORD *)this + 73) = a2;
v8 = a6;
*((_BYTE *)this + 276) = a7;
*((float *)this + 66) = a3;
if ( a6 <= 0.1 )
v8 = 0.1;
*((float *)this + 68) = v8;
result = cocos2d::CCNode::schedule(this, GhostTrailEffect::trailSnapshot, 0, LODWORD(a3));
if ( *(float *)&a5 > 0.0 )
{
v11 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(a5, v10);
v12 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, GhostTrailEffect::stopTrail, 0);
v14 = (cocos2d::CCAction *)cocos2d::CCSequence::create(
v11,
v12,
0,
v13,
GhostTrailEffect::trailSnapshot,
0,
GhostTrailEffect::stopTrail,
0);
return cocos2d::CCNode::runAction(this, v14);
}
return result;
}