What is the meaning of the word dejection in the context of the excerpt?

The injured captain, lying in the bow, was at this time buried in that
profound DEJECTION and indifference which comes, temporarily at least, to
even the bravest and most enduring when, willy nilly, the firm fails, the
army loses, the ship goes down.

a. deep thought
b. introspection
c. discomfort
d. low spirits