How did atheist masons pave the way for the collap

How did atheist masons pave the way for the collapse of the Ottoman Empire?