If things are on time, should be OK to clear customs/ immigration/ check in again. Early in the morning, 30-40 minutes should be more than enough even without HKID card/ priority tags etc.
But if they are not, then, well, that's the downside of separate tickets.
Can you go hand carry only?