Advertisement
Guest User

Post

a guest
Aug 29th, 2013
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. .file "post-used.c"
  2. .section .rodata
  3. .LC0:
  4. .string "Missing required argument"
  5. .LC1:
  6. .string "%d\n"
  7. .text
  8. .globl main
  9. .type main, @function
  10. main:
  11. .LFB2:
  12. .cfi_startproc
  13. pushq %rbp
  14. .cfi_def_cfa_offset 16
  15. .cfi_offset 6, -16
  16. movq %rsp, %rbp
  17. .cfi_def_cfa_register 6
  18. subq $32, %rsp
  19. movl %edi, -20(%rbp)
  20. movq %rsi, -32(%rbp)
  21. cmpl $1, -20(%rbp)
  22. jg .L2
  23. movl $.LC0, %edi
  24. call puts
  25. movl $1, %edi
  26. call exit
  27. .L2:
  28. movq -32(%rbp), %rax
  29. addq $8, %rax
  30. movq (%rax), %rax
  31. movq %rax, %rdi
  32. call atoi
  33. movl %eax, -16(%rbp)
  34. movl $1, -4(%rbp)
  35. movl $0, -12(%rbp)
  36. jmp .L3
  37. .L4:
  38. movl -4(%rbp), %eax
  39. leal 1(%rax), %edx
  40. movl %edx, -4(%rbp)
  41. movl %eax, -8(%rbp)
  42. addl $1, -12(%rbp)
  43. .L3:
  44. movl -12(%rbp), %eax
  45. cmpl -16(%rbp), %eax
  46. jl .L4
  47. movl -8(%rbp), %eax
  48. movl %eax, %esi
  49. movl $.LC1, %edi
  50. movl $0, %eax
  51. call printf
  52. leave
  53. .cfi_def_cfa 7, 8
  54. ret
  55. .cfi_endproc
  56. .LFE2:
  57. .size main, .-main
  58. .ident "GCC: (GNU) 4.8.1 20130725 (prerelease)"
  59. .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement