If the arrest is for an offense for which the child is subject to proceedings as a delinquent child as defined in § 26-8C-2, the child shall be taken directly before the circuit court. If the child is taken before a magistrate upon a complaint sworn out in that court or for any other reason, the magistrate shall transfer the case to the circuit court and the officer in charge of the child shall take the child before the circuit court. The circuit court may proceed to hear and dispose of the case as if the petition had originally been filed in that court as provided in chapter 26-8C.
SDCL 26-11-2