It also means descendent of the keeper of the hounds. It was first given to Madaghain (d.1008),
Ireland, of the tribe Ui Maine, who can be traced back (because of the etymology of the name O Madagain funny enough) to pre-Gaelic
Ireland, so they were in
Ireland before the Gael came (a few thousand years ago)!