Automatic Debiased Machine Learning for Smooth Functionals of Nonparametric M-Estimands