Each part played twice, as you can see there is an ending for each part for each time its played, displayed underneath the last bar of the first and second parts.
X:1
K:D
DFA DGB| Adf a2 g| fga f dCd| eCA GFE| DFA DGB| Adf a2 g| fga f geC| edC d2:|
afd dCC| BGG GFF| EGB efe d| CeC A2 a| fdA DFA| GBd g2 a| fga f geC| edC D:|