crossbars chewed through the galleon 's mainsail , parting it into two flapping remnants , while the rigging on the foremast was blown by the boards , tangling and taking with it a party of musketmen stationed in the foretop .