It's hard to gauge whether the failed sieges of Vienna or the Reconquista had the Muslim world end up more buck-broken, but there's strong arguments for both. Either way, their historic incursion into Europe ended there and their future attempts will end there, too.
It's interesting to read the Muslim accounts of how Pelagius began the Reconquista in early 8th century.
They write how "a vicious infidel called Balayo" took refuge in the mountains with other warriors who survived eating wild honey and fiercely resisted Muslim attacks:
"Ibn Hayyan said, In the days of ['Anbasa b. Suhaim al-Kalbi] there arose in Jilliqiyya (Northern Spain) a vicious infidel called Balayo (Pelayo) who criticized the infidels throughout the period of their flight, and kindled their spirits until he encouraged them to rise in revolt and defend his land. From that time the Christians of al-Andalus began to defend what land remained in their hands and to protect their families against the Muslims, which they had not previously aspired to do. It is said that no single village, nor anything larger, remained unconquered in the territory of Galicia, except a rocky outcrop on which this infidel took refuge. His companions died of starvation until only thirty men and about ten women were left. They had nothing to live on except the honey from some bees in hives that were there with them in the fissures of the rocks. They continued to defend their rugged ground until their efforts exhausted the Muslims, who viewed them scornfully and said, "Thirty infidels what could possibly come from them?" [But] after that they grew in power, numbers and control of territory in such a way that it cannot be hidden. After Pelayo their king was Alfonso, ancestor of the greatest and most celebrated kings of that name.
Ibn Sa'id said, Contempt for that rocky outcrop and those who crawled about on it ended up with their descendants gaining possession of great cities; even the capital city of Cordova, which had been the centre of 'Anbasa's government, is now in their hands (may God restore it [to Islam]!).
The people of Christian Spain rose in revolt against the Muslims and the position ofthe unbeliever Pelayo became strong. He left his rocky outcrop and conquered the district of Asturias. Then the Muslims of Galicia and the people of Astorga attacked him over a long period, until the time of the civil war between Abu'l-Khattar and Thawaba. In the year (1)33/750-51 he [Pelayo] defeated them and expelled them from the whole ofGalicia. Everyone who was wavering in his faith or was too weak to pay tribute converted to Christianity; those who were killed were killed and the defeated survivors went over the mountains towards Astorga, until the famine took a finn hold. [The Christians] also expelled the Muslims from Astorga and elsewhere, and in (1)36/753-54 the people became concentrated in the region beyond the last mountain pass [beyond the Duero basin] and in Quriya (Coria) and Merida. The scarcity intensified and the people of al-Andalus left for Tangiers and Asila and the Berber Rif, moving away and emigrating. They crossed over a wadi in the district of Sidonia known as the Wadi Barbat (no Barbate). These years were called the Years of Barbate [during which] the population of al-Andalus was diminished, and the enemy could almost have overcome them, had not the famine encompassed them also."
Source: Charles Melville & Ahmad Ubaydli, Christians and Moors in Spain, Volume III: Arabic Sources (Oxbow Books, 1992), 18-21.