I'm checking a disassemble program in gdb and I found those line and can't understand why it's doing that...
0x00000000004005ef <+50>:   mov    rax,QWORD PTR [rbp-0x10]
0x00000000004005f3 <+54>:   add    rax,0x8
0x00000000004005f7 <+58>:   mov    rax,QWORD PTR [rax]
Why it didn't do that instead ?
0x00000000004005ef <+50>:   mov    rax,QWORD PTR [rbp-0x8]
 
     
     
    