In the Ahlfors' Complex Analysis chapter about the Riemann Mapping Theorem section 6.1.3, page 233, he states and proves this theorem:
Theorem 3. Suppose that the boundary of a simply connected region $\Omega$ contains a line segment $\gamma$ as a one-sided free boundary arc. Then the [Riemann mapping] function $f(z)$ which maps $\Omega$ onto the unit disk can be extended to a function which is analytic and one-to-one on $\Omega \cup \gamma$. The image of $\gamma$ is an arc $\gamma'$ on the unit circle.
In this particular context by "free boundary arc" he means an open interval $a < x < b$ of the real line.
I understand the proof of the existence of the extension: use the version of Schwarz reflection which only requires continuity of $\text{Re} \log f(z)$ at the boundary.
What I don't understand is his argument that $f$ is injective on $\gamma$. Here's how it goes:
We note further that $f'(z) \ne 0$ on $\gamma$. Indeed, $f'(x_0) = 0$ wold imply that $f(x_0)$ were a multiple value, in which case the two subarcs of $\gamma$ that meet at $x_0$ would be mapped on arcs that form an angle $\pi/n$ with $n \ge 2$; this is clearly impossible. If, for instance, the upper half disks are in $\Omega$, then $$\partial \log |f| / \partial y = - \ \partial \arg f / \partial x < 0$$ on $\gamma$, and $\arg f$ moves constantly in the same direction. This proves that the mapping is one-to-one on $\gamma$.
My attempt to clarify: In order to show that $f'(x_0)$ is not zero, I figured that if it were, we could factor $f(z)-f(x_0) = [(z-x_0)g(z)]^n$ where $g(x_0) \ne 0$. I think if you pick the right arc in the domain $\Omega \cup \gamma$, the image of that arc contains a point outside the closed unit disk.
Even if $f'(x) \ne 0$ on $\gamma$, I still don't see why the image of $\gamma$ can't "wrap all the way around the circle" and come back to the same point, and so be locally injective without being globally one-to-one.
Any help is greatly appreciated.