//
// GhostTrailEffect::stopTrail from 0x6c645c to 0x6c64b0 (84 bytes)
//
// 4 xrefs:
// > PlayerObject::toggleGhostEffect @ 0x75334c
// > ??> @ 0xbfe00
// > GhostTrailEffect::runWithTarget @ 0x6c6610
// > ??> @ 0x1545978
//
// 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
//
__int64 __fastcall GhostTrailEffect::stopTrail(GhostTrailEffect *this)
{
void (__fastcall ***v2)(_QWORD, GhostTrailEffect *); // x0
v2 = *((void (__fastcall ****)(_QWORD, GhostTrailEffect *))this + 47);
if ( v2 )
(**v2)(v2, this);
cocos2d::CCNode::unscheduleAllSelectors(this);
cocos2d::CCNode::stopAllActions(this);
return (*(__int64 (__fastcall **)(GhostTrailEffect *))(*(_QWORD *)this + 536LL))(this);
}