.section __TEXT,__text,regular,pure_instructions .globl _sum .align 4, 0x90 _sum: pushl %ebp movl %esp, %ebp movl 12(%ebp), %eax addl 8(%ebp), %eax popl %ebp ret .globl _main .align 4, 0x90 _main: pushl %ebp movl %esp, %ebp pushl %ebx pushl %edi pushl %esi subl $28, %esp call L2$pb L2$pb: popl %esi movl 12(%ebp), %edi movl 4(%edi), %eax movl %eax, (%esp) call _atoi movl %eax, %ebx movl 8(%edi), %eax movl %eax, (%esp) call _atoi movl %eax, %edi movl %edi, 4(%esp) movl %ebx, (%esp) call _sum movl %eax, 12(%esp) movl %edi, 8(%esp) movl %ebx, 4(%esp) leal L_.str-L2$pb(%esi), %eax movl %eax, (%esp) call _printf xorl %eax, %eax addl $28, %esp popl %esi popl %edi popl %ebx popl %ebp ret .section __TEXT,__cstring,cstring_literals L_.str: .asciz "%d + %d --> %d\n" .subsections_via_symbols