An the way out
A person who is near death. An means 'on'.
Heard in Kilkenny
Sure the poor fellah is an the way out

Good evening. Sherry?
Here it is in posh English.
Good heavens the poor fellow is standing upon the very threshold of eternity.
Updated