(a) If an arrest is made in this state by an officer of another state in accordance with § 40-7-203, the officer shall, without unnecessary delay, take the person arrested before a magistrate who shall conduct a hearing for the purpose of determining the lawfulness of the arrest.
(b) If the magistrate determines that the arrest was lawful, the magistrate shall commit the person arrested to await for a reasonable time the issuance of an extradition warrant by the governor of this state, or admit the person to bail for that purpose.
(c) If the magistrate determines that the arrest was unlawful, the magistrate shall discharge the person arrested.