Great work, Steve.
But even if the song refers to the 17th century, it may not have been written or at least in circulation till much later. (That would explain "anchor/ spanker.")
In any case it's surprising that such a good song should have existed from at least 1769 and have left so little trace for so long.