//
// GhostTrailEffect::stopTrail from 0x2fba7c to 0x2fbaa8 (44 bytes)
//
// 1 xrefs:
// > PlayerObject::toggleGhostEffect @ 0x34160e
//
// 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 *); // r0
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);
}