The instances of "if" here have the meaning of "since"; Job is speaking as if all these things were true. "Since the only home ... and since I have spread"
Here Job speaks of being prepared to die as having laid his bed in the darkness. Alternate translation: "have prepared myself to go and sleep among the dead" (See: [[rc://en/ta/man/jit/figs-metaphor]])