AMENDED AND RESTATED MASTER GUARANTEE REIMBURSEMENT AND LOAN AGREEMENT