A 39-year-old man in hospice is evaluated for depressed mood. He has progressive amyotrophic lateral sclerosis, with an estimated life expectancy of weeks to months. His wife is his primary caregiver, and he has two teenage sons still at home. The patient is tearful and reports feeling sad and overwhelmed at times. He is fatigued, his appetite is poor, and he has lost weight. He admits to sometimes wishing death would come quickly but has no plan to act on these feelings. He attributes his illness to past illicit drug use and feels guilty that his sons will come of age without their father.

Which of the following is the most likely diagnosis?