xtea: invert branch and loop precedence