Go large. I'm 5'9", ride a medium and I'm just about ready for a large. I own a 2015 Enduro 650b. Then throw on a 780mm bar with a 40mm stem and tear up the trails. Great bike!
Large for sure. Specialized changed the frame specs. My large 2014 enduro fit perfectly but it broke sadly. Was replaced with a 650b frame and the top tube is almost a inch shorter. I'm 6'2" as well.