An appeal under section 82(1) is pending during the period—
An appeal under section 82(1) is not finally determined for the purpose of subsection (1)(b) while—
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
An appeal under section 82(1) brought by a person while he is in the United Kingdom shall be treated as abandoned if the appellant is granted leave to enter or remain in the United Kingdom (subject to subsection (4B)).
Subsection (4A) shall not apply to an appeal in so far as it is brought on a ground specified in section 84(1)(a) or (b) or 84(3) (asylum or humanitarian protection) where the appellant—
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .