Structure of final states with a high transverse momentum π0 in proton-proton collisions