Discernment occurs as a result of Wise Attention (Yoniso Manasikara), which sees without involvement.
The Perception of this is understanding.
Dependent on this discernment, through the Attention faculty, a Mind Consciousness arises.
The mental object here is Freedom of the Mind itself.