SECOND AMENDED AND RESTATED SENIOR SECURED CREDIT AGREEMENT dated as of December 26, 2024