How the heart works in emergency resuscitation