Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "test.c"
- .text
- .p2align 4,,15
- .globl test
- .type test, @function
- test:
- pushl %ebp
- movl $-1, %eax
- movl %esp, %ebp
- xorl %edx, %edx
- movl 8(%ebp), %ecx
- popl %ebp
- sall %cl, %eax
- andb $32, %cl
- cmovne %eax, %edx
- cmovne %edx, %eax
- ret
- .size test, .-test
- .section .rodata.str1.1,"aMS",@progbits,1
- .LC0:
- .string "%d"
- .LC1:
- .string "%ul\n"
- .text
- .p2align 4,,15
- .globl main
- .type main, @function
- main:
- pushl %ebp
- movl %esp, %ebp
- andl $-16, %esp
- subl $32, %esp
- leal 28(%esp), %eax
- movl %eax, 8(%esp)
- movl 12(%ebp), %eax
- movl $.LC0, 4(%esp)
- movl 4(%eax), %eax
- movl %eax, (%esp)
- call __isoc99_sscanf
- movl 28(%esp), %ecx
- movl $-1, %eax
- xorl %edx, %edx
- movl $.LC1, 4(%esp)
- movl $1, (%esp)
- sall %cl, %eax
- andb $32, %cl
- cmovne %eax, %edx
- cmovne %edx, %eax
- movl %eax, 8(%esp)
- call __printf_chk
- xorl %eax, %eax
- leave
- ret
- .size main, .-main
- .ident "GCC: (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5"
- .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement