Question: Assembly Code/ C Question: Can someone reverse engineer this function to C please. f5: cmpb $0, (%rdi) movq %rdi, %rax movq %rdi, %rdx je .L32

Assembly Code/ C Question:

Can someone reverse engineer this function to C please.

f5: cmpb $0, (%rdi) movq %rdi, %rax movq %rdi, %rdx je .L32 .L22: addq $1, %rdx cmpb $0, (%rdx) jne .L22 movzbl (%rsi), %ecx testb %cl, %cl je .L33 .L24: movb %cl, (%rdx) addq $1, %rsi addq $1, %rdx .L32: movzbl (%rsi), %ecx testb %cl, %cl jne .L24 .L33: movb $0, (%rdx) ret

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!