What if the Mongols sacked Mecca, Medina & Jeddah?
Considering when they sacked Baghdad, which was the educational center of the Islamic world, the Islamic world largely reacted by going ''A logical god wouldn't allow this, let's not bother with science, since god can change the laws of science on a whim, al Ghazali was right, let's just study religious texts and try to understand the universe through that since god is omniscient and omnipresent and reading the Qur'an is the best way to understand him.'' I think many of these Muslims would have become atheist. Public atheism was a thing in the medieval world, the university of Bologna was the center of public Atheism.