//
// GhostTrailEffect::stopTrail from 0x1005fa0c0 to 0x1005fa0ff (63 bytes)
//
// 2 xrefs:
// > PlayerObject::toggleGhostEffect @ 0x10041324c
// > GhostTrailEffect::runWithTarget @ 0x1005f9c33
//
// 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 __fastcall GhostTrailEffect::stopTrail(GhostTrailEffect *a1)
{
void (__fastcall ***m_delegate)(void *, GhostTrailEffect *); // rdi
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);
((void (__fastcall *)(GhostTrailEffect *))a1->removeMeAndCleanup)(a1);
}