Aladdin (1992). The Genie is the last survivor of the AI wars and has mental damage. The Cave of Wonders is another remnant. “Magic” is low level AI responding to human intent. Iago is an uplift. Agrabah is literally a generic Middle Eastern county because it was assembled from the fragmented records of what remained of the Middle East.
Right, theocratic fascists. Got it.