Question: can someone help me figure out the solution for phase 3 of the bomb lab Dump of assembler code for function phase _ 3 :

can someone help me figure out the solution for phase 3 of the bomb lab
Dump of assembler code for function phase_3:
0x0000555555555634<+0>: endbr64
0x0000555555555638<+4>: sub $0x18,%rsp
0x000055555555563c <+8>: lea 0x8(%rsp),%rcx
0x0000555555555641<+13>: lea 0xc(%rsp),%rdx
0x0000555555555646<+18>: lea 0x1d41(%rip),%rsi # 0x55555555738e
0x000055555555564d <+25>: mov $0x0,%eax
0x0000555555555652<+30>: call 0x5555555552e0<__isoc99_sscanf@plt>
0x0000555555555657<+35>: cmp $0x1,%eax
0x000055555555565a <+38>: jle 0x55555555567c
0x000055555555565c <+40>: cmpl $0x7,0xc(%rsp)
0x0000555555555661<+45>: ja 0x5555555556f1
0x0000555555555667<+51>: mov 0xc(%rsp),%eax
0x000055555555566b <+55>: lea 0x1aee(%rip),%rdx # 0x555555557160
0x0000555555555672<+62>: movslq (%rdx,%rax,4),%rax
0x0000555555555676<+66>: add %rdx,%rax
0x0000555555555679<+69>: notrack jmp *%rax
0x000055555555567c <+72>: call 0x555555555c3f
0x0000555555555681<+77>: jmp 0x55555555565c
0x0000555555555683<+79>: mov $0x35c,%eax
0x0000555555555688<+84>: sub $0x32a,%eax
0x000055555555568d <+89>: add $0x51,%eax
=>0x0000555555555690<+92>: sub $0xbc,%eax
0x0000555555555695<+97>: add $0xbc,%eax
0x000055555555569a <+102>: sub $0xbc,%eax
0x000055555555569f <+107>: add $0xbc,%eax
0x00005555555556a4<+112>: sub $0xbc,%eax
0x00005555555556a9<+117>: cmpl $0x5,0xc(%rsp)
0x00005555555556ae <+122>: jg 0x5555555556b6
0x00005555555556b0<+124>: cmp %eax,0x8(%rsp)
0x00005555555556b4<+128>: je 0x5555555556bb
0x00005555555556b6<+130>: call 0x555555555c3f
0x00005555555556bb <+135>: add $0x18,%rsp
0x00005555555556bf <+139>: ret
0x00005555555556c0<+140>: mov $0x0,%eax
0x00005555555556c5<+145>: jmp 0x555555555688
0x00005555555556c7<+147>: mov $0x0,%eax
0x00005555555556cc <+152>: jmp 0x55555555568d
0x00005555555556ce <+154>: mov $0x0,%eax
0x00005555555556d3<+159>: jmp 0x555555555690
0x00005555555556d5<+161>: mov $0x0,%eax
--Type for more, q to quit, c to continue without paging--
0x00005555555556da <+166>: jmp 0x555555555695
0x00005555555556dc <+168>: mov $0x0,%eax
0x00005555555556e1<+173>: jmp 0x55555555569a
0x00005555555556e3<+175>: mov $0x0,%eax
0x00005555555556e8<+180>: jmp 0x55555555569f
0x00005555555556ea <+182>: mov $0x0,%eax
0x0000

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!