You can go to Macau during your first transit, by taking the 930p ferry from HKG. But that means not checking in to a hotel until 1100p the earliest, a good 4 hour after arrival to HKG. After a long flight, you'd be much better off going to a hotel in HK, clean up and then wander around HK for a late supper instead.