I doubt China will intervene militarily in a direct way. Pakistan is a close Chinese ally and it makes more sense to pull on diplomatic and economic levers to get Pakistan to act. Maybe training and joint counter terror ops are on the table, but certainly not a full Iraq scale invasion.