as follows: (i) Immediately following the denial of an asylum application by an asylum officer, unless the case is referred to an immigration judge. (ii) 30 days after the date on which an immigration judge denies an asylum application, unless the alien timely appeals to the Board of Immigration Appeals. (iii) Immediately following the denial by the Board of Immigration Appeals of an appeal of a denial of an asylum application. (C) Renewal The Secretary of Homeland Security may not grant, renew, or extend employment authorization to an alien if the alien was previously granted employment authorization under subparagraph (A), and the employment authorization was terminated pursuant to a circumstance described in subparagraph (B)(i), (ii), or (iii), unless a Federal court of appeals remands the alien’s case to the Board of Immigration Appeals. (D) Ineligibility The Secretary of Homeland Security may not grant employment authorization to an alien under this paragraph if the alien— (i) is ineligible for asylum under subsection (b)(2)(A)