What would happen if AI created an AI more advanced than itself?

That’s what happens ad infinitum after the AI singularity if that occurs. Possibly AI will take pity on us and treat us like children, or AI might mistreat us more like cattle after seeing the way we treat our own factory farm cattle.