AMENDED AND RESTATED CREDIT AGREEMENT Dated as of November 29, 2021 among NMI HOLDINGS, INC., as the Company, JPMORGAN CHASE BANK, N.A., as the Agent, and THE LENDERS PARTY HERETO JPMORGAN CHASE BANK, N.A., as Lead Arranger and Bookrunner