AK 5173 then FM 864 at Kuala Lumpur
Labuan → Kuala Lumpur → Shanghai
Timetable, Kuala Lumpur time
19:30AK 5173 from Labuan at the gate
07:40FM 864 to Shanghai leaves the gate
12 h 10 apart on the timetable, overnight
FM 864 leaves 12 h 10 after AK 5173 arrives on the timetable: more than half a day, so not a connection we count.