Complex sentence: At the end, if he survived, he would be rich and free; if he died during the time, the devil would have him.
Split into simpler sentences: At the end, if he survived, he would be rich and free. If he died during the time, the devil would have him.