Towards a Global Springer Theory III: Endoscopy and Langlands duality