What is the meaning of Deranged?

Disturbed or upset, especially mentally.

Insane.

Malfunctioning or inoperative.

simple past and past participle of derange

Source: wiktionary.org