Transition from chaotic to regular motion via autoresonance entrainment