"get myself together" meaning!

What does this phrase mean?
“I get myself together”

It means to mentally and physically prepare oneself for something. In this example, they were out drinking and partying, so he needs a little time to get himself together, which might mean taking a shower, changing to fresh clothes, combing his hair, brushing his teeth, etc.