I am having trouble understanding a mapping reduction and I would appreciate your help. Define
$\quad \begin{align} A_{TM} &= \{ \langle M, w \rangle \mid M \text{ Turing machine}, w \in \mathcal{L}(M)\} \\ S_{TM} &= \{ \langle M,w \rangle \mid M \text{ Turing machine}, w \in \mathcal{L}(M) \implies w^R \in \mathcal{L}(M)\} \\ \end{align}$
and consider the reduction of $A_{TM}$ to $S_{TM}$ as follows.
Given $\langle M, w \rangle$ the following Turing machine $M'$ is defined:
M' on input x:
if x = 01 then accept
else run M on w and accept x if M accepts w
I don't understand the reduction entirely, this reduction is supposed to solve $S_{TM}$ using $A_{TM}$. Why do I need to check if x = 01
? There is no need to check anything about the reverse of $w$? How is that covered by the reduction?