@Abhrajyoti00
There are only two variables $x$ and $T$ to store values
After your first statement, $T$ = $x^{4}$ and var $x$ does not change
In second statement, var $T$ cant be disturbed. So, assuming, var $x$ has to store $2 * (x^{2} + 2)$
In third statement, you need value of $x$ for computing $x^{4}$ but now var $x$ has $2 * (x^{2} + 2)$
So, I dont think you can proceed from here without storing value of $x$ in var $x$
restoration will take extra operations