Hugh Hunter was born 1817 Kilwinning - no parents stated.
Unless there is a supporting record, or a DNA match, I would say that is a total guess.
If you look at the census in 1841 and 1851 for possible Hugh Hunters of the approx. age in Kilwinning and neighbouring parishes, there are
scores to choose from.
Parents of an illegitimate birth might be mentioned in the kirk sessions, but from my recollection, I looked, and there were not any for the time period in question.