It's the only example I've ever come across of a registration later than 3 months after the birth.
There is a first registration in Lesmahagow, -
http://talkingscot.com/gallery/displayi ... p?pos=-749
After 3 months a birth could only be registered on the authority of a Sheriff, hence his involvement here. (Between 21 days and 3 months the Registrar had the option to proceed on his own authority, including, possibly, levying a fine of 21s.)
The registration was required to be made in the parish of birth but if the father's domicile, or in the case on an illegitimate birth as here, the mother's domicile was elsewhere, then the first registrar was required to send a copy to the other registrar for engrossing into that Register of Births, hence the messy last column in this case.
Here, the Lesmahagow, for some reason, considered Margaret to have her domicile back home with her parents, - Troqueer in this case.
It did also happen that the registrations were the other way round, wrongly first in the district of domicile rather birth, and then transmited to the other registrar.
David