(1) is not for an offense for which release is prohibited under state law; and
(2) (a) is for a misdemeanor offense, and the sentencing judge has not entered an order prohibiting release under this section; or (b) is part of a probation agreement for a felony offense, and the sentencing district judge has not entered an order prohibiting release under this section.
(a) is for a misdemeanor offense, and the sentencing judge has not entered an order prohibiting release under this section; or
(b) is part of a probation agreement for a felony offense, and the sentencing district judge has not entered an order prohibiting release under this section.