.file "sample.c" .section .rodata .align 8 .LC0: .string "%u bottles of beer on the wall\n" .LC1: .string "%u bottles of beer\n" .LC2: .string "Take one down, pass it around" .align 8 .LC3: .string "%u bottles of beer on the wall\n\n" .text .globl main .type main, @function main: .LFB0: .cfi_startproc pushq %rbp .cfi_def_cfa_offset 16 .cfi_offset 6, -16 movq %rsp, %rbp .cfi_def_cfa_register 6 subq $16, %rsp movl $99, -4(%rbp) .L2: movl $.LC0, %eax movl -4(%rbp), %edx movl %edx, %esi movq %rax, %rdi movl $0, %eax call printf movl $.LC1, %eax movl -4(%rbp), %edx movl %edx, %esi movq %rax, %rdi movl $0, %eax call printf movl $.LC2, %edi call puts subl $1, -4(%rbp) movl $.LC3, %eax movl -4(%rbp), %edx movl %edx, %esi movq %rax, %rdi movl $0, %eax call printf cmpl $0, -4(%rbp) jne .L2 movl $0, %eax leave .cfi_def_cfa 7, 8 ret .cfi_endproc .LFE0: .size main, .-main .ident "GCC: (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1" .section .note.GNU-stack,"",@progbits