SECOND AMENDMENT TO AMENDED AND RESTATED SECURED PROMISSORY NOTE September 30, 2024