That is one of my favourite local rides.
I usually take the coast road down past Dunure and return home via the B743 through Mauchline. Runs like that make the cost of petrol seem cheap.
The entire A77's crap in all respects these days but at least you can ignore the SPECS cameras on the bike.