Do you realize that what you wrote is heretical? No person or council is above the pope, but fortunately Bergoglio is not the pope.
So that's the sedevacantist take on the problem. Sounds simple enough, but how can the layman be absolutely sure that the current pope is not in fact pope?
Some quick research showed that in theory, a heretical pope would remove himself from office per canon law, which states that anyone who has publicly defected from the Catholic faith or from the communion of the Church is removed from an ecclesiastical office by the law itself.
But there's no canon law to deal with this emergency situation in the Church (a pope becoming heretical), so what we can deduce from this is that the pope, be it a valid one or not, does not have any authority (the position of +ABL) and we have to wait for a council of bishops and cardinals to take action or simply, a divine intervention. Taking the example of Honorius, who "only" was guilty of promoting heresy in a letter of his, was excommunicated posthumously by a subsequent council, the question whether or not he was a valid pope was not formally answered anyhow.