EXECUTION VERSION DB1/ 121979154.7 AMENDED AND RESTATED CREDIT AGREEMENT by and among WELLS FARGO BANK, NATIONAL ASSOCIATION, as Agent, THE LENDERS THAT ARE PARTIES HERETO as the Lenders, and NEOPHOTONICS CORPORATION as Borrower Dated as of June 29, 2021