The officer, after taking possession of such animals, or implements or other property, pursuant to NRS 574.080, shall apply to the magistrate, before whom the complaint is made against the offender violating such provision of law, for the order mentioned in subsection 2, and shall make and file an affidavit with such magistrate, stating therein: