.file "p2.c" .section .rodata .LC0: .string "grOpmoC" .LC1: .string "You are a wizard\n" .LC2: .string "You are wrong\n" .text .globl checkguess .type checkguess,@function checkguess: pushl %ebp movl %esp, %ebp subl $8, %esp subl $8, %esp pushl $.LC0 pushl 8(%ebp) call strcmp addl $16, %esp testl %eax, %eax jne .L2 subl $12, %esp pushl $.LC1 call printf addl $16, %esp jmp .L1 .L2: subl $12, %esp pushl $.LC2 call printf addl $16, %esp .L1: leave ret .Lfe1: .size checkguess,.Lfe1-checkguess .section .rodata .align 32 .LC3: .string "You need to enter a string on the command line\n" .text .globl main .type main,@function main: pushl %ebp movl %esp, %ebp subl $8, %esp andl $-16, %esp movl $0, %eax subl %eax, %esp cmpl $1, 8(%ebp) jg .L5 subl $12, %esp pushl $.LC3 call printf addl $16, %esp movl $1, -4(%ebp) jmp .L4 .L5: subl $12, %esp movl 12(%ebp), %eax addl $4, %eax pushl (%eax) call checkguess addl $16, %esp movl $0, -4(%ebp) .L4: movl -4(%ebp), %eax leave ret .Lfe2: .size main,.Lfe2-main .ident "GCC: (GNU) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)"