Inside out (adverb), according to the Merriam-Webster dictionary can mean -
1: In such a manner that the inner surface becomes the outer e.g. turned the shirt inside out.
2: To a thorough degree e.g. knows the subject inside out.
3: In or into a state of disarray often involving drastic reorganisation e.g. turned the business inside out.