Guest User

Untitled

a guest
Dec 18th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. .section __TEXT,__text,regular,pure_instructions
  2. .globl _pre_main
  3. .align 4, 0x90
  4. _pre_main:
  5. pushl %ebp
  6. movl %esp, %ebp
  7. subl $24, %esp
  8. call L1$pb
  9. L1$pb:
  10. popl %eax
  11. leal ___func__.1863-L1$pb(%eax), %eax
  12. movl %eax, (%esp)
  13. call _puts
  14. call _getchar
  15. movl $0, -8(%ebp)
  16. movl -8(%ebp), %eax
  17. movl %eax, -4(%ebp)
  18. movl -4(%ebp), %eax
  19. addl $24, %esp
  20. popl %ebp
  21. ret
  22.  
  23. .globl _after_main
  24. .align 4, 0x90
  25. _after_main:
  26. pushl %ebp
  27. movl %esp, %ebp
  28. subl $24, %esp
  29. call L2$pb
  30. L2$pb:
  31. popl %eax
  32. leal ___func__.1869-L2$pb(%eax), %eax
  33. movl %eax, (%esp)
  34. call _puts
  35. movl $0, -8(%ebp)
  36. movl -8(%ebp), %eax
  37. movl %eax, -4(%ebp)
  38. movl -4(%ebp), %eax
  39. addl $24, %esp
  40. popl %ebp
  41. ret
  42.  
  43. .globl _main
  44. .align 4, 0x90
  45. _main:
  46. pushl %ebp
  47. movl %esp, %ebp
  48. subl $24, %esp
  49. call L3$pb
  50. L3$pb:
  51. popl %eax
  52. leal ___func__.1875-L3$pb(%eax), %eax
  53. movl %eax, (%esp)
  54. call _puts
  55. movl $0, -8(%ebp)
  56. movl -8(%ebp), %eax
  57. movl %eax, -4(%ebp)
  58. movl -4(%ebp), %eax
  59. addl $24, %esp
  60. popl %ebp
  61. ret
  62.  
  63. .section __TEXT,__cstring,cstring_literals
  64. .align 2
  65. ___func__.1863:
  66. .asciz "pre_main"
  67.  
  68. .align 2
  69. ___func__.1869:
  70. .asciz "after_main"
  71.  
  72. .align 2
  73. ___func__.1875:
  74. .asciz "main"
  75.  
  76. .section __DATA,__mod_init_func,mod_init_funcs
  77. .align 2
  78. .long _pre_main
  79. .section __DATA,__mod_term_func,mod_term_funcs
  80. .align 2
  81. .long _after_main
  82.  
  83. .subsections_via_symbols
Add Comment
Please, Sign In to add comment