ScrumMaster Responsibilities During Sprint

What does a Scrum Master do during the Sprint? After the Sprint Planning meeting an ideal development team will leverage self-organization and self-management to deliver the sprint backlog. If the team is highly motivated and understands scrum well, then what does the scrum master during the sprint? I have broken it down to three sections