For CGST output, go through ITC of IGST first, then CGST.
For SGST output, go through the ITC of IGST first, then SGST.
For IGST Output, go through the IGST ITC first, then the CGST, and finally the SGST.