.file "scanf2.c" .section .rodata .LC0: .string "%d " .LC1: .string "[%d] value=%d return=%d\n" .LC2: .string "no number" .text .globl main .type main, @function main: leal 4(%esp), %ecx andl $-16, %esp pushl -4(%ecx) pushl %ebp movl %esp, %ebp pushl %ecx subl $36, %esp movl $0, -8(%ebp) jmp .L2 .L6: leal -16(%ebp), %eax movl %eax, 4(%esp) movl $.LC0, (%esp) call __isoc99_scanf movl %eax, -12(%ebp) cmpl $-1, -12(%ebp) je .L3 movl -16(%ebp), %eax movl -12(%ebp), %edx movl %edx, 12(%esp) movl %eax, 8(%esp) movl -8(%ebp), %eax movl %eax, 4(%esp) movl $.LC1, (%esp) call printf cmpl $0, -12(%ebp) jne .L4 movl $.LC2, (%esp) call puts movl $1, -24(%ebp) jmp .L5 .L4: addl $1, -8(%ebp) .L2: cmpl $9, -8(%ebp) jle .L6 .L3: movl $0, -24(%ebp) .L5: movl -24(%ebp), %eax addl $36, %esp popl %ecx popl %ebp leal -4(%ecx), %esp ret .size main, .-main .ident "GCC: (Debian 4.3.4-5) 4.3.4" .section .note.GNU-stack,"",@progbits