(a) By Attorney for the State. The attorney for the state may file a written dismissal of an indictment or information and the prosecution shall thereupon terminate. Such a dismissal may not be filed during the trial without the consent of the defendant. (b) By Court. The court may dismiss the indictment or information,
(1) If the prosecution does not bring the defendant to trial within such time as the Supreme Court may provide by Administrative Order, or (2) If the court concludes that such dismissal will serve the ends of justice and the effective administration of the court’s business. Unless the court directs that the dismissal is with prejudice, the dismissal shall be without prejudice. (c) Record. If the court over objection of the prosecution dismisses an indictment or information under paragraph (b)(2) of this rule, it shall state, on the record, its findings of fact and reasons for the dismissal.