\begin{aligned}
a &\leftarrow a + b + m_{\sigma_r[2i]} \\
d &\leftarrow \text{ROTR}^{16}(d \oplus a) \\
c &\leftarrow c+d \\
b &\leftarrow \text{ROTR}^{12}(b \oplus c)
\end{aligned}
\begin{aligned}
a &\leftarrow a + b + m_{\sigma_r[2i+1]} \\
d &\leftarrow \text{ROTR}^{8}(d \oplus a) \\
c &\leftarrow c+d \\
b &\leftarrow \text{ROTR}^{7}(b \oplus c) \\
\end{aligned}
We need the following operations to be performed in the circuit