Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .file "post-used.c"
- .section .rodata
- .LC0:
- .string "Missing required argument"
- .LC1:
- .string "%d\n"
- .text
- .globl main
- .type main, @function
- main:
- .LFB2:
- .cfi_startproc
- pushq %rbp
- .cfi_def_cfa_offset 16
- .cfi_offset 6, -16
- movq %rsp, %rbp
- .cfi_def_cfa_register 6
- subq $32, %rsp
- movl %edi, -20(%rbp)
- movq %rsi, -32(%rbp)
- cmpl $1, -20(%rbp)
- jg .L2
- movl $.LC0, %edi
- call puts
- movl $1, %edi
- call exit
- .L2:
- movq -32(%rbp), %rax
- addq $8, %rax
- movq (%rax), %rax
- movq %rax, %rdi
- call atoi
- movl %eax, -16(%rbp)
- movl $1, -4(%rbp)
- movl $0, -12(%rbp)
- jmp .L3
- .L4:
- movl -4(%rbp), %eax
- leal 1(%rax), %edx
- movl %edx, -4(%rbp)
- movl %eax, -8(%rbp)
- addl $1, -12(%rbp)
- .L3:
- movl -12(%rbp), %eax
- cmpl -16(%rbp), %eax
- jl .L4
- movl -8(%rbp), %eax
- movl %eax, %esi
- movl $.LC1, %edi
- movl $0, %eax
- call printf
- leave
- .cfi_def_cfa 7, 8
- ret
- .cfi_endproc
- .LFE2:
- .size main, .-main
- .ident "GCC: (GNU) 4.8.1 20130725 (prerelease)"
- .section .note.GNU-stack,"",@progbits
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement