The county's legal staff is preparing a challenge to the state, possibly forcing the city to reinstall a dam near Ceitus Parkway.