Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .section __TEXT,__text,regular,pure_instructions
- .macosx_version_min 10, 12
- .globl _add
- .p2align 4, 0x90
- _add: ## @add
- .cfi_startproc
- ## BB#0:
- pushq %rbp
- Ltmp0:
- .cfi_def_cfa_offset 16
- Ltmp1:
- .cfi_offset %rbp, -16
- movq %rsp, %rbp
- Ltmp2:
- .cfi_def_cfa_register %rbp
- movl %edi, -4(%rbp)
- movl %esi, -8(%rbp)
- movl -4(%rbp), %esi
- addl -8(%rbp), %esi
- movl %esi, -12(%rbp)
- movl -12(%rbp), %eax
- popq %rbp
- retq
- .cfi_endproc
- .globl _main
- .p2align 4, 0x90
- _main: ## @main
- .cfi_startproc
- ## BB#0:
- pushq %rbp
- Ltmp3:
- .cfi_def_cfa_offset 16
- Ltmp4:
- .cfi_offset %rbp, -16
- movq %rsp, %rbp
- Ltmp5:
- .cfi_def_cfa_register %rbp
- subq $16, %rsp
- movl $1, %edi
- movl $2, %esi
- movl $0, -4(%rbp)
- callq _add
- leaq L__unnamed_cfstring_(%rip), %rcx
- movl %eax, -8(%rbp)
- movl -8(%rbp), %esi
- movq %rcx, %rdi
- movb $0, %al
- callq _NSLog
- xorl %eax, %eax
- addq $16, %rsp
- popq %rbp
- retq
- .cfi_endproc
- .section __TEXT,__cstring,cstring_literals
- L_.str: ## @.str
- .asciz "%d"
- .section __DATA,__cfstring
- .p2align 3 ## @_unnamed_cfstring_
- L__unnamed_cfstring_:
- .quad ___CFConstantStringClassReference
- .long 1992 ## 0x7c8
- .space 4
- .quad L_.str
- .quad 2 ## 0x2
- .section __DATA,__objc_imageinfo,regular,no_dead_strip
- L_OBJC_IMAGE_INFO:
- .long 0
- .long 64
- .subsections_via_symbols
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement