The heart represents thoughts and attitudes. Setting it right represents correcting it. Zophar did not believe that Job had done this. Alternate translation: "if you had corrected your attitude" (See: [[rc://en/ta/man/translate/figs-metaphor]] and [[rc://en/ta/man/translate/figs-hypo]])
This is a symbolic action representing asking God for help. Alternate translation: "had made an appeal and prayed to God" (See: [[rc://en/ta/man/translate/translate-symaction]])