In 205 BC, native Egyptians, emboldened by their performance at Raphia and discontented with the current state of Egypt and continued Hellenic rule over the country, revolted under a leader known as Hugronaphor, and won back 80% of the country from the Ptolemies. Hugronaphor died in 197 BC, and was succeeded by Ankhmakis, but the revolt was eventually crushed, and the rest is history. Polybius described the revolt as having "no pitched battle, no naval battle, no siege", but there has to be a POD somewhere. Let's say Ptolemy V gets poisoned early on, leading to power struggles in the court at Alexandria, or Antiochus pushes on after Panium. What happens to Egypt as a result of indigenous rule being restored? What happens to the Seleucids? What happens to the Romans?