Building on Emil Jeřábek's answer, the whole reversed continued fraction expansion of a rational number $b/d$ can be obtained from the inverse of $b$ modulo $d$, as the continued fraction expansion of whichever of $b^{-1} \bmod d/d$ or $(d-b^{-1}\bmod d)/d$ is smaller (except that if the reversed continued fraction expansion ends in a $1$, this is then added to the second-to-last entry). In particular, this shows that to find the end of the continued fraction expansion it usually suffices to know the approximate value of the inverse of $b$. By the equivalence between continued fractions and the Euclidean algorithm, we can determine the last few steps of the Euclidean algortithm if we know the distribution of the inverse of $c$ modulo $d$.
The continued fraction $[a_0; a_1,\dots, a_n]$ defines the rational number obtained by starting with $\begin{pmatrix} 0 \\ 1 \end{pmatrix}$ and then applying the matrix $M= U^{a_0} R U^{a_1} R \dots RU^{a_n}$ where $U = \begin{pmatrix} 1 & 1 \\ 0 & 1 \end{pmatrix}$ and $R = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}$, and dividing the first entry by the second. So in other words if we write $M = \begin{pmatrix} a & b \\ c& d \end{pmatrix}$ then the relevant rational number is $b/d$.
The transpose matrix is $M^T = V^{a_n} R V^{a_{n-1}} R \dots R V^{a_0}$ where $V = \begin{pmatrix} 1 & 0 \\ 1 & 1 \end{pmatrix}$ and then since $ R V R^{-1} =U$ and $R^{-1}=R$, conjugating by $R$ gives
$$M^T = R U^{a_n} R U^{a_{n-1}} R \dots R U^{a_0} R .$$
Applying this to $\begin{pmatrix} 0 \\ 1 \end{pmatrix}$, producing the rational number $c/d$, gives the number with continued fraction $[0;a_n,a_{n-1} ,\dots, a_1 ]$ since the $U^{a_0}$ term does not affect the vector.
Since $M$ has determinant $\pm 1$, $ bc \equiv \pm 1 \mod d$, i.e. $c$ is plus or minus the inverse of $b$ modulo $d$. Since $a_n \geq 2$, the continued fraction expansion of $c/d$ starts with $[0;2]$ so $c/d$ lies between $0$ and $1/2$, and thus $c$ is whichever of $b \bmod d$ or $d- b\bmod d$ is smaller.
However, if $a_1=1$ then this continued fraction expansion is not in canonical form and we must delete that term and add $1$ to $a_2$ to obtain the continued fraction expansion of $c/d$. This does not affect our ability to determine the tail of the continued fraction expansion of $b/d$.
A strange application of this, combined with Weil's bounds for exponential sums, is that if we generate pairs of numbers in a weird way, such as $x^7+1, y$ for $x,y$ random between $0$ and $N$, and then apply the Euclidean algorithm, throwing out pairs that are not relatively prime, the distribution of the numbers we see in the last few steps will be the same as the distribution of if we generate pairs of numbers in a usual way. (This is just because $x^{-1} \bmod y/y$ is equidistributed in $\mathbb R/\mathbb Z$ by Weyl's criterion for equidistribution and the Weil bound for exponential sums.)
This argument was partially inspired by this stackexchange answer of
Stephen James.