Loss of brain function occurs when the liver is unable to remove toxins from the blood. This is called hepatic encephalopathy (HE). This problem may occur suddenly or it may develop slowly over time.