SECOND AMENDED and RESTATED TERM LOAN AND Revolving credit AGREEMENT dated as of May 26, 2023 between