REVISED AND RESTATED SECURED PROMISSORY NOTE AND GUARANTEE