If, after the hearing, the court fails to find by the standard specified in § 23A-26-12.3 that the person's release would not create a substantial risk of bodily injury to another person or serious damage to property of another due to a present mental disease or defect, the court shall order that the defendant be committed to the human services center for treatment until the person's mental condition is such that his release, or his conditional release under a prescribed regimen of medical, psychiatric, or psychological care or treatment, would not create a substantial risk of bodily injury to another person or serious damage to property of another.
SDCL 23A-26-12.4