If a verdict of guilty or "guilty but mentally ill" is returned against the defendant, he shall be remanded, if in custody, to the proper officer of the county to await the judgment of the court upon the verdict. When the jury has returned a verdict acquitting the defendant upon the ground of insanity, the court shall order that the defendant be committed to the human services center until such time as he is eligible for release pursuant to § 23A-26-12.5.
SDCL 23A-26-12