Question: ( gdb ) disassemble phase _ 2 Dump of assembler code for function phase _ 2 : 0 x 0 0 0 0 0 0

(gdb) disassemble phase_2
Dump of assembler code for function phase_2:
0x000000000040145e <+0>: push %rbp
0x000000000040145f <+1>: push %rbx
0x0000000000401460<+2>: sub $0x28,%rsp
0x0000000000401464<+6>: mov %rsp,%rsi
0x0000000000401467<+9>: call 0x401b24
0x000000000040146c <+14>: cmpl $0x0,(%rsp)
0x0000000000401470<+18>: js 0x40147c
0x0000000000401472<+20>: mov $0x1,%ebx
0x0000000000401477<+25>: mov %rsp,%rbp
0x000000000040147a <+28>: jmp 0x4014aa
0x000000000040147c <+30>: call 0x401aee
0x0000000000401481<+35>: jmp 0x401472
0x0000000000401483<+37>: data16 cs nopw 0x0(%rax,%rax,1)
0x000000000040148e <+48>: data16 cs nopw 0x0(%rax,%rax,1)
0x0000000000401499<+59>: nopl 0x0(%rax)
0x00000000004014a0<+66>: add $0x1,%rbx
0x00000000004014a4<+70>: cmp $0x6,%rbx
0x00000000004014a8<+74>: je 0x4014bd
0x00000000004014aa <+76>: mov %ebx,%eax
0x00000000004014ac <+78>: add -0x4(%rbp,%rbx,4),%eax
0x00000000004014b0<+82>: cmp %eax,0x0(%rbp,%rbx,4)
0x00000000004014b4<+86>: je 0x4014a0
0x00000000004014b6<+88>: call 0x401aee
0x00000000004014bb <+93>: jmp 0x4014a0
0x00000000004014bd <+95>: add $0x28,%rsp
0x00000000004014c1<+99>: pop %rbx
0x00000000004014c2<+100>: pop %rbp
0x00000000004014c3<+101>: ret
End of assembler dump.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!