[guided]Starting from the four-side identity, we isolate the right vertical side because this is the integral appearing on the left-hand side of the theorem:
\begin{align*}
\int_{c-iT}^{c+iT} G(s)\,ds
&=
2\pi i
\sum_{\rho \in R_{\alpha,c,T}^{\circ}}
\operatorname{Res}_{s=\rho} G(s)
-
\int_{\alpha-iT}^{c-iT} G(s)\,ds
-
\int_{c+iT}^{\alpha+iT} G(s)\,ds
-
\int_{\alpha+iT}^{\alpha-iT} G(s)\,ds.
\end{align*}
Each minus sign is converted into a reversal of orientation. For a directed line segment, reversing the endpoints changes the sign of the line integral. Hence
\begin{align*}
-\int_{\alpha-iT}^{c-iT} G(s)\,ds
&=
\int_{c-iT}^{\alpha-iT} G(s)\,ds, \\
-\int_{c+iT}^{\alpha+iT} G(s)\,ds
&=
\int_{\alpha+iT}^{c+iT} G(s)\,ds, \\
-\int_{\alpha+iT}^{\alpha-iT} G(s)\,ds
&=
\int_{\alpha-iT}^{\alpha+iT} G(s)\,ds.
\end{align*}
Substituting these three orientation reversals gives
\begin{align*}
\int_{c-iT}^{c+iT} G(s)\,ds
&=
2\pi i
\sum_{\rho \in R_{\alpha,c,T}^{\circ}}
\operatorname{Res}_{s=\rho} G(s)
+
\int_{\alpha-iT}^{\alpha+iT} G(s)\,ds
\\
&\qquad
+
\int_{\alpha+iT}^{c+iT} G(s)\,ds
+
\int_{c-iT}^{\alpha-iT} G(s)\,ds.
\end{align*}
Finally divide by $2\pi i$ and use the definition $G(s)=F(s)x^s/s$. The first reversed integral is the left vertical integral, and the two remaining reversed integrals are exactly the horizontal contribution $E_{\mathrm{hor}}(x,T)$ as defined in the theorem statement. This is the claimed identity.[/guided]