Make an appointment at US embassy around your hometown
and renew your H1b at the resignated date. If 2-3 weeks' background check is not a problem for you, just go and enjoy the feeling at home. You can apply for AP when you come back. Remember to bring the necessary documentations for your visa renewal.