Question: Here is Code: / * They won't crack this one. No one learns arithmetic anymore... * / input = read _ line ( 0 ,

Here is Code:
/* They won't crack this one. No one learns arithmetic anymore... */
input = read_line(0, NULL);
k = sscanf(input,"%d %d %d %d", &a, &b, &c, &d);
status = bombphase_3(k, a, b, c, d);
if (status <0) exit (1);/* The bomb exploded. I beat them! */
phase_defused(status);
if (status >0) printf ("Your bomb defusing skills are great!
");
printf("Halfway there!
");
Dump of assembler code for function bombphase_3:
0x0000000000401538<+0>: sub $0x8,%rsp
0x000000000040153c <+4>: cmp $0x4,%rdi
0x0000000000401540<+8>: jne0x401565
0x0000000000401542<+10>: add $0x9b,%rsi
0x0000000000401549<+17>: sub%rsi,%rcx
0x000000000040154c <+20>: xor $0xfffffffffffffe95,%rcx
0x0000000000401553<+27>: cmp $0xffffffffffffff78,%rcx
0x000000000040155a <+34>: sete %al
0x000000000040155d <+37>: movzbl %al,%eax
0x0000000000401560<+40>: cmp%r8,%rcx
0x0000000000401563<+43>: je 0x401571
0x0000000000401565<+45>: callq0x401e6f
0x000000000040156a <+50>: mov $0xffffffffb31769c2,%rax
0x0000000000401571<+57>: add $0x8,%rsp
0x0000000000401575<+61>: retq
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!