//
// GhostTrailEffect::stopTrail from 0x5a5d64 to 0x5a5db8 (84 bytes)
//
// 4 xrefs:
// > PlayerObject::toggleGhostEffect @ 0x628c64
// > ??> @ 0x91140
// > GhostTrailEffect::runWithTarget @ 0x5a5f08
// > ??> @ 0x122cf38
//
// 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 GhostTrailEffect::stopTrail(GhostTrailEffect *a1)
{
void (__fastcall ***m_delegate)(void *, GhostTrailEffect *); // x0
m_delegate = (void (__fastcall ***)(void *, GhostTrailEffect *))a1->m_delegate;
if ( m_delegate )
(**m_delegate)(m_delegate, a1);
cocos2d::CCNode::unscheduleAllSelectors(a1);
cocos2d::CCNode::stopAllActions(a1);
a1->removeMeAndCleanup(a1);
}