Question: Binary Bomb lab phase _ 4 . two input, ( % d % d ) and output should be 7 . please help me .

Binary Bomb lab phase_4. two input,(%d %d) and output should be 7. please help me.. Dump of assembler code for function func4:
0x000055555555571a +0>: endbr64
0x000055555555571e +4>: sub $0x8,%rsp
0x0000555555555722+8>: mov %edx,%eax
0x0000555555555724+10>: sub %esi,%eax
0x0000555555555726+12>: mov %eax,%ecx
0x0000555555555728+14>: shr $0x1f,%ecx
0x000055555555572b +17>: add %eax,%ecx
0x000055555555572d +19>: sar %ecx
0x000055555555572f +21>: add %esi,%ecx
0x0000555555555731+23>: cmp %edi,%ecx
0x0000555555555733+25>: jg 0x555555555741
0x0000555555555735+27>: mov $0x0,%eax
0x000055555555573a +32>: jl 0x55555555574d
0x000055555555573c +34>: add $0x8,%rsp
0x0000555555555740+38>: ret
0x0000555555555741+39>: lea -0x1(%rcx),%edx
0x0000555555555744+42>: call 0x55555555571a
0x0000555555555749+47>: add %eax,%eax
0x000055555555574b +49>: jmp 0x55555555573c
0x000055555555574d +51>: lea 0x1(%rcx),%esi
0x0000555555555750+54>: call 0x55555555571a
0x0000555555555755+59>: lea 0x1(%rax,%rax,1),%eax
0x0000555555555759+63>: jmp 0x55555555573c
 Binary Bomb lab phase_4. two input,(%d %d) and output should be

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 Databases Questions!