October 27, 2023
Page 2

Subject to the foregoing and the other matters set forth herein, it is our opinion that, as of the date hereof:
1. When the Shares shall have been duly registered on the books of the transfer agent and registrar therefor in the name or on behalf of the purchasers, and have been issued by the Company against payment therefor (not less than par value) in the circumstances contemplated by the Underwriting Agreement, the issue and sale of the Shares will have been duly authorized by all necessary corporate action of the Company, and the Shares will be validly issued, fully paid and nonassessable. In rendering the foregoing opinion, we have assumed that the Company will comply with all applicable notice requirements regarding uncertificated shares provided in the DGCL.
2. When the Pre-Funded Warrants have been duly issued by the Company against payment therefor in the circumstances contemplated by Underwriting Agreement, the issue and sale of the Pre-Funded Warrants will have been duly authorized by all necessary corporate action of the Company, and the Pre-Funded Warrants will be legally valid and binding obligations of the Company, enforceable against the Company in accordance with their terms.
3. When the shares of Common Stock initially issuable upon exercise of the Pre-Funded Warrants (the “Warrant Shares”) shall have been duly registered on the books of the transfer agent and registrar therefor in the name or on behalf of the Pre-Funded Warrant holders, and have been issued by the Company against payment therefor (not less than par value) in the circumstances contemplated by the Pre-Funded Warrants, the issue of the Warrant Shares will have been duly authorized by all necessary corporate action of the Company, and the Warrant Shares will have been validly reserved by all necessary corporate action of the Company, and the Warrant Shares will be validly issued, fully paid and nonassessable.
In rendering the foregoing opinions, we have assumed that (i) the Company will comply with all applicable notice requirements regarding uncertificated shares provided in the DGCL and (ii) upon the issue of any of the Warrant Shares, the total number of shares of Common Stock issued and outstanding will not exceed the total number of shares of Common Stock that the Company is then authorized to issue under its Amended and Restated Certificate of Incorporation and by the board of directors of the Company in connection with the offering contemplated by the Registration Statement and the Prospectus.
With your consent, we have assumed that the status of the Pre-Funded Warrants as legally valid and binding obligations of the Company is not affected by any (i) breaches of, or defaults under, agreements or instruments, (ii) violations of statutes, rules, regulations or court or governmental orders, or (iii) failures to obtain required consents, approvals or authorizations from, or make required registrations, declarations or filings with, governmental authorities.
Our opinions are subject to: (i) the effect of bankruptcy, insolvency, reorganization, preference, fraudulent transfer, moratorium or other similar laws relating to or affecting the rights and remedies of creditors; (ii) (a) the effect of general principles of equity, whether considered in a proceeding in equity or at law (including the possible unavailability of specific performance or injunctive relief), (b) concepts of materiality, reasonableness, good faith and fair dealing, and (c) the discretion of the court before which a proceeding is brought; and (iii) the invalidity under