Since he had probably resigned himself to failure from the beginning, he kept up a confident exterior to the end.
He acted confidently because he probably had resigned himself to failure from the beginning.