The supreme court may reverse, affirm or modify the judgment appealed from, and may grant a new trial or render any judgment or make any order which is consistent with the justice and the rights of the state and the defendant. On an appeal from an order made after judgment, it may set aside, affirm or modify the order or any proceeding subsequent to or dependent upon such order.
A.R.S. § 13-4036