Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. .section __TEXT,__text,regular,pure_instructions
  2. .macosx_version_min 10, 12
  3. .globl _add
  4. .p2align 4, 0x90
  5. _add: ## @add
  6. .cfi_startproc
  7. ## BB#0:
  8. pushq %rbp
  9. Ltmp0:
  10. .cfi_def_cfa_offset 16
  11. Ltmp1:
  12. .cfi_offset %rbp, -16
  13. movq %rsp, %rbp
  14. Ltmp2:
  15. .cfi_def_cfa_register %rbp
  16. movl %edi, -4(%rbp)
  17. movl %esi, -8(%rbp)
  18. movl -4(%rbp), %esi
  19. addl -8(%rbp), %esi
  20. movl %esi, -12(%rbp)
  21. movl -12(%rbp), %eax
  22. popq %rbp
  23. retq
  24. .cfi_endproc
  25.  
  26. .globl _main
  27. .p2align 4, 0x90
  28. _main: ## @main
  29. .cfi_startproc
  30. ## BB#0:
  31. pushq %rbp
  32. Ltmp3:
  33. .cfi_def_cfa_offset 16
  34. Ltmp4:
  35. .cfi_offset %rbp, -16
  36. movq %rsp, %rbp
  37. Ltmp5:
  38. .cfi_def_cfa_register %rbp
  39. subq $16, %rsp
  40. movl $1, %edi
  41. movl $2, %esi
  42. movl $0, -4(%rbp)
  43. callq _add
  44. leaq L__unnamed_cfstring_(%rip), %rcx
  45. movl %eax, -8(%rbp)
  46. movl -8(%rbp), %esi
  47. movq %rcx, %rdi
  48. movb $0, %al
  49. callq _NSLog
  50. xorl %eax, %eax
  51. addq $16, %rsp
  52. popq %rbp
  53. retq
  54. .cfi_endproc
  55.  
  56. .section __TEXT,__cstring,cstring_literals
  57. L_.str: ## @.str
  58. .asciz "%d"
  59.  
  60. .section __DATA,__cfstring
  61. .p2align 3 ## @_unnamed_cfstring_
  62. L__unnamed_cfstring_:
  63. .quad ___CFConstantStringClassReference
  64. .long 1992 ## 0x7c8
  65. .space 4
  66. .quad L_.str
  67. .quad 2 ## 0x2
  68.  
  69. .section __DATA,__objc_imageinfo,regular,no_dead_strip
  70. L_OBJC_IMAGE_INFO:
  71. .long 0
  72. .long 64
  73.  
  74.  
  75. .subsections_via_symbols
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement