I like how you play it, nice voice separation.
I will suggest just one thing to help prevent mishaps with the chord on the 1st beat of measure 3, as happens to you the second time around (during the repeat). The trick is to change the fingering on the previous chord (2nd beat of measure 2), so that the transition to the next chord is made a lot easier.
Try doing the chord on the 2nd beat of measure 2 with fingers 1, 2 and 3 (instead of 1, 3 and 4). This may seem very hard at first, but it can be done. The trick is to bring the thumb down almost to the lower edge of the neck, or even detach the thumb completely from the neck by pressing the guitar against your chest with your right arm. This will eventually allow you to obtain enough separation between fingers 1 and 2, such that finger 2 can be on G# while finger 1 is on E on the fourth string, while finger 3 is on E on the second string. Once you can do this, the transition to the next chord (1st beat of measure 3) is so much easier, because finger 3 is already where it should be, on the second string E, and acts as an anchor and pivot to place 1 and 4 where they need to be without any trouble, whereas the way you do it you need to reposition all the fingers.
Before I figure out how to do this, I was messing up the transition to measure 3 more often than not, or else I had to do it too slowly.
2014 Yamaha GC42S