c 10 marks the following is the assembly language generated by a c compiler type mys 5150006
c. (10 marks) The following is the assembly language generated by a C compiler. .type mystery, %function mystery: @ args = 0, pretend = 0, frame @ frame_needed = 1, uses_anonymous_args = 0 @ link register save eliminated. push r7) sub = 8 sp, sp, #12 r7, sp, #0 r0, [r7, #4] r1, [r7] r2, [r7] r3, [r7, #4] г2, г3 add str str Idr Idr cmp it CS movcs r3, r2 го, г3 adds r7, r7, #12 mov sp, r7 @ sp needed r7, [sp], #4 Ir mov Idr bx Annotate each line of the function with comments to explain what each line does. Write an equivalent C function and explain what it computes.