单项选择题

Mr. Smith stayed up late on Friday, _____ a long speech for the president.

A.prepared
B.to prepare
C.preparing
D.prepare