Running out of gas is not damaging to an engine......only a bit demeaning to it.
There are a lot of Chinese clones to the OEM petcock. They are a bit inferior as the brass outlet is machined and has a smaller ID than the original which has a formed tube from "drawn" brass.
Yamaha dealers can sell you the OEM petcock, or you can get one from eBay. Be sure the listing has the part number and shows the white box....or you may be sent a Chinese copy.
LkAAOSwmfhX4r09&amdata=enc%3AAQAIAAAAwBIvtCTWWW4DmaJaoQTJSLW2iLsIFja84udjP3MOp%2F4lbvZ1Yj3K5rm47XEHzP35NTp46j77XMRfNOH0vMO2O4DrOCIDRrVuWGl%2FJTC1oClhMPBeyubVkGdFPA6PAMk6%2BG17p8VydJk84NoKVg9ZYHuG5J4%2BuwF1kYmXDJ0aNWjLP6Juhk9g7b1Bb3CD7PM%2BbwKKNj%2F1U%2BQVffFGIKyKoDoio3x7VI6%2FJiY7zwihySmJhZA4sNWdZPcQNpAjNw7DcQ%3D%3D%7Ctkp%3ABk9SR97e6tO4Yg" target="_blank">https://www.ebay.com/itm/273472354220?epid=1023314198&hash=item3fac38f7ac:g
LkAAOSwmfhX4r09&amdata=enc%3AAQAIAAAAwBIvtCTWWW4DmaJaoQTJSLW2iLsIFja84udjP3MOp%2F4lbvZ1Yj3K5rm47XEHzP35NTp46j77XMRfNOH0vMO2O4DrOCIDRrVuWGl%2FJTC1oClhMPBeyubVkGdFPA6PAMk6%2BG17p8VydJk84NoKVg9ZYHuG5J4%2BuwF1kYmXDJ0aNWjLP6Juhk9g7b1Bb3CD7PM%2BbwKKNj%2F1U%2BQVffFGIKyKoDoio3x7VI6%2FJiY7zwihySmJhZA4sNWdZPcQNpAjNw7DcQ%3D%3D%7Ctkp%3ABk9SR97e6tO4Yg