inc rax
neg rax
inc rax
neg rax
See explanation
This snippet, just like the previous, is equivalent to doing nothing.
the value of rax
in incremented and negated (using two's complement), twice. In other words:
-(-(rax+1)+1)
which is equivalent to
-(-rax-1+1)
which is equivalent to
rax+1-1
which is equivalent to
rax