I came across this tune when Norman Hayes introduced a dance called Corelli's Maggot in a session of dances at Halsway Manor last year. The dance was new from America and was set to an adaptation of the Gavot from Corelli's Sonata Opus 5 of 1700. Now the dance published by Wright, or as Playford has it Mr Cosgill's Delight, used the Gavot from Corelli's Trio Sonata Opus 2 of 1685. It did not seem unreasonable to try the dance to the later tune. A turn single has been added at the beginning of each A music and a set and turn single at the start of the B2. The version of the tune is I believe how Arcangelo Corelli wrote it.
You are welcome to download this dance (PDF) for your private use. Ken Sheffield has made this dance available under the Creative Commons Licence and you will be asked to agree to the terms of that license before you download the dance.