AMENDED AND RESTATED MASTER REPURCHASE AGREEMENT AND SECURITIES CONTRACT among BANK OF MONTREAL, as Buyer LOANDEPOT BMO WAREHOUSE, LLC, as Seller, and LOANDEPOT.COM, LLC, as Guarantor, Dated as of April 25, 2025