	.file	"list.c"
	.text
	.p2align 4,,15
.globl length
	.type	length, @function
length:
.LFB16:
	xorl	%eax, %eax
	jmp	.L7
	.p2align 4,,7
.L9:
	movq	8(%rdi), %rdi
	incl	%eax
.L7:
	testq	%rdi, %rdi
	jne	.L9
	rep ; ret
.LFE16:
	.size	length, .-length
	.p2align 4,,15
.globl upto
	.type	upto, @function
upto:
.LFB17:
	pushq	%rbp
.LCFI0:
	xorl	%ebp, %ebp
	pushq	%rbx
.LCFI1:
	movl	%edi, %ebx
	subq	$8, %rsp
.LCFI2:
	jmp	.L16
	.p2align 4,,7
.L17:
	movl	$16, %edi
	call	malloc
	movl	%ebx, (%rax)
	movq	%rbp, 8(%rax)
	decl	%ebx
	movq	%rax, %rbp
.L16:
	testl	%ebx, %ebx
	jg	.L17
	addq	$8, %rsp
	movq	%rbp, %rax
	popq	%rbx
	popq	%rbp
	ret
.LFE17:
	.size	upto, .-upto
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.text
	.p2align 4,,15
.globl main
	.type	main, @function
main:
.LFB18:
	subq	$8, %rsp
.LCFI3:
	movl	$10, %edi
	call	upto
	movq	%rax, %rdi
	call	length
	movl	$.LC0, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	xorl	%eax, %eax
	jmp	printf
.LFE18:
	.size	main, .-main
	.section	.eh_frame,"a",@progbits
.Lframe1:
	.long	.LECIE1-.LSCIE1
.LSCIE1:
	.long	0x0
	.byte	0x1
	.string	""
	.uleb128 0x1
	.sleb128 -8
	.byte	0x10
	.byte	0xc
	.uleb128 0x7
	.uleb128 0x8
	.byte	0x90
	.uleb128 0x1
	.align 8
.LECIE1:
.LSFDE1:
	.long	.LEFDE1-.LASFDE1
.LASFDE1:
	.long	.LASFDE1-.Lframe1
	.quad	.LFB16
	.quad	.LFE16-.LFB16
	.align 8
.LEFDE1:
.LSFDE3:
	.long	.LEFDE3-.LASFDE3
.LASFDE3:
	.long	.LASFDE3-.Lframe1
	.quad	.LFB17
	.quad	.LFE17-.LFB17
	.byte	0x4
	.long	.LCFI0-.LFB17
	.byte	0xe
	.uleb128 0x10
	.byte	0x86
	.uleb128 0x2
	.byte	0x4
	.long	.LCFI1-.LCFI0
	.byte	0xe
	.uleb128 0x18
	.byte	0x83
	.uleb128 0x3
	.byte	0x4
	.long	.LCFI2-.LCFI1
	.byte	0xe
	.uleb128 0x20
	.align 8
.LEFDE3:
.LSFDE5:
	.long	.LEFDE5-.LASFDE5
.LASFDE5:
	.long	.LASFDE5-.Lframe1
	.quad	.LFB18
	.quad	.LFE18-.LFB18
	.byte	0x4
	.long	.LCFI3-.LFB18
	.byte	0xe
	.uleb128 0x10
	.align 8
.LEFDE5:
	.section	.note.GNU-stack,"",@progbits
	.ident	"GCC: (GNU) 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)"
