Is petition to be active and NOT Revoked can then only the new employer in India file can file H1B CAP Exempt?

I worked in a Employer A from May 2014 to Mar 2016 and moved to Employer B which has visa till Mar 2017. Employer A has revoked by H1 already

Now I am planning to move back to India with employer B. If Employer B revokes my visa and at that point of time I don’t have any petition active with employer A and B(as both A and B revoked already) and ifever I wants to come back to US with employer C in future will I be H1B Cap-exempt for the using rest of the H1B petition or I need to go through lottery process.

You will be eligible for cap-exempt petition through C even if B’s petition has been withdrawn or expired.