At the time file your H1B extension, and if you are requesting time beyond the allowed 6 years, you either need to provide a I-140 approval, OR to establish that you have a PERM pending more than 365 days. Going out the U.S. may help recapture some days.