Energy stability theory of decelerating swirl flows