If an arrest under § 23A-3-17 is made in obedience to a warrant, the disposition of the prisoner shall be as in other cases of arrest under a warrant; if the arrest is without a warrant, the prisoner shall without unnecessary delay be taken before a magistrate of the county where the arrest was made, and the court shall admit the prisoner to bail, if the offense is bailable, by taking security by way of recognizance for the appearance of the prisoner before the court having jurisdiction of the criminal offense.
SDCL 23A-3-18