If you come back with AP before your H-1b approval, your status will be AOS first, and then become H-1B after your H-1b approval and you do not need to do anything. If you come back after your H-1b approval, you need to renew your H-1b, not COS, if you want to reinstate your H-1b status.