Hi,
A network diagram might be helpful to understand.
However, for hairpin I believe you may have to logically separate the 2 next-hops [internal v/s external], either with routing-instances [virtual router, vrf] or logical systems. MPLS label transport possible with logical systems but not RIs.
Cheers,
Ashvin