Here's the answer:
“s'il s'était occupé de ses problèmes il se serait senti mieux”
Watch a real native speaker say it:
Here's how it sounds in a textbook:
Fun fact: the hundreds of thousands of people learning French with Memrise get this phrase correct 90.1% of the time!