(a) Reputation or Opinion Evidence. In a prosecution for sexual assault or aggravated sexual assault, or attempt to commit sexual assault or aggravated sexual assault, reputation or opinion evidence of the past sexual behavior of an alleged victim of such crime is not admissible.
(b) Evidence of Specific Instances. In a prosecution for sexual assault or aggravated sexual assault, or attempt to commit sexual assault or aggravated sexual assault, evidence of specific instances of an alleged victim’s past sexual behavior is also not admissible, unless:
(1) such evidence is admitted in accordance with paragraphs (c) and (d) of this rule;
(2) it is evidence:
(A) that is necessary to rebut or explain scientific or medical evidence offered by the State;
(B) of past sexual behavior with the accused and is offered by the accused upon the issue of whether the alleged victim consented to the sexual behavior which is the basis of the offense charged;
(C) that relates to the motive or bias of the alleged victim;
(D) is admissible under Rule 609; or
(E) that is constitutionally required to be admitted; and
(3) its probative value outweighs the danger of unfair prejudice.
(c) Procedure for Offering Evidence. If the defendant proposes to introduce any documentary evidence or to ask any question, either by direct examination or cross-examination of any witness, concerning specific instances of the alleged victim’s past sexual behavior, the defendant must inform the court out of the hearing of the jury prior to introducing any such evidence or asking any such question. After this notice, the court shall conduct an in camera hearing, recorded by the court reporter, to determine whether the proposed evidence is admissible under paragraph (b) of this rule. The court shall determine what evidence is admissible and shall accordingly limit the questioning. The defendant shall not go outside these limits or refer to any evidence ruled inadmissible in camera without prior approval of the court without the presence of the jury.
(d) Record Sealed. The court shall seal the record of the in camera hearing required in paragraph (c) of this rule for delivery to the appellate court in the event of an appeal.