Caledonian Railway '66' class 4-4-0 no. 1083 at Hurlford shed on 22/5/1928 not long before the engine's withdrawal at Carstairs mpd in that same year. Built to a D. Drummond design at St. Rollox in January 1891, she was allocated the number 14305 by the LMSR but it was never applied. 1083 had been Carstairs based for many years and was largely used on Muirkirk services.
The same viewer who kindly corrected my original caption also sent me this useful background to the location:
"The location is Hurlford shed, with the Barlieth Yard signal box in the background. Barlieth station and its extensive goods yard were adjacent to Hurlford shed, Barlieth station being on the Darvel branch. Hurlford station was about 1½ miles nearer to Kilmarnock and on the main Glasgow-Carlisle line whilst Hurlford shed lay in the 'Y' junction between the Darvel branch and the main line south."
[Mike Morant collection]
From Scotland Caledonian