Assuming the post is sitting on a post base, you could loosen the base and twist the post back into place with some bolts through the beam. This would move the twisty part to the bottom.
Or another option... you could swap it out with a new post.
Or another option... you could swap it out with a new post.