(a) Except as provided by Subsection (b), a sheriff shall place in jail a defendant committed to jail by a warrant from a magistrate or court.
(b) A sheriff may permit a defendant committed to jail by a warrant from a magistrate or court to remain out of jail for a reasonable time to procure bail if the defendant:
(1) was committed for want of bail; or
(2) was arrested in a bailable case.
(c) A sheriff shall guard a defendant permitted to remain out of jail under Subsection (b) to prevent escape.