Use a function for repeated AltiVec output and condition check.