Use assembly language code, write equivalent code in C

profileyxb390
hw4_3.s

.file "hw4_3.c" .text .globl fn .type fn, @function fn: pushl %ebp movl %esp, %ebp subl $16, %esp movl $1, -4(%ebp) jmp .L2 .L3: movl -4(%ebp), %eax imull 8(%ebp), %eax movl %eax, -4(%ebp) subl $1, 8(%ebp) .L2: cmpl $1, 8(%ebp) jg .L3 movl -4(%ebp), %eax leave ret .size fn, .-fn .ident "GCC: (GNU) 4.1.2 20080704 (Red Hat 4.1.2-50)" .section .note.GNU-stack,"",@progbits