Amended and Restated Guaranty Agreement