Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
n,p,i,a[51];main(){for(;~scanf("%d",&n),n;){for(a[n]=p=i=0;i<n;i++)scanf("%d",a+i);for(i=1;i<=n;i++)if(a[i-1]-a[i]+1)i-p-1?printf(n-i?"%d-%d ":"%d-%d\n",a[p],a[i-1]):printf(n-i?"%d ":"%d\n",a[p]),p=i;}exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	p
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 204
a:
	.zero	204
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d-%d "
.LC2:
	.string	"%d-%d\n"
.LC3:
	.string	"%d "
.LC4:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	jmp	.L2
.L14:
	movl	$0, i(%rip)
	movl	i(%rip), %eax
	movl	%eax, p(%rip)
	movl	n(%rip), %edx
	movl	p(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	jmp	.L3
.L4:
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L3:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	$1, i(%rip)
	jmp	.L5
.L13:
	movl	i(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	i(%rip), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	cmpl	$-1, %eax
	je	.L6
	movl	i(%rip), %eax
	movl	p(%rip), %edx
	subl	%edx, %eax
	cmpl	$1, %eax
	je	.L7
	movl	i(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	p(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %ecx
	movl	n(%rip), %esi
	movl	i(%rip), %eax
	cmpl	%eax, %esi
	je	.L8
	leaq	.LC1(%rip), %rax
	jmp	.L9
.L8:
	leaq	.LC2(%rip), %rax
.L9:
	movl	%ecx, %esi
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L10
.L7:
	movl	p(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	n(%rip), %ecx
	movl	i(%rip), %eax
	cmpl	%eax, %ecx
	je	.L11
	leaq	.LC3(%rip), %rax
	jmp	.L12
.L11:
	leaq	.LC4(%rip), %rax
.L12:
	movl	%edx, %esi
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	movl	i(%rip), %eax
	movl	%eax, p(%rip)
.L6:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L5:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jle	.L13
.L2:
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jne	.L14
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d-%d "
.LC1:
	.string	"%d-%d\n"
.LC2:
	.string	"%d "
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	n(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC3(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	a(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC4(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	n(%rip), %rax
	testl	%eax, %eax
	je	.L23
	movl	$0, i(%rip)
	movl	$0, p(%rip)
	movl	$0, 0(%r13,%rax,4)
	jle	.L3
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	cltq
	movq	%rbx, %rdi
	leaq	0(%r13,%rax,4), %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	movl	n(%rip), %edx
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	%edx, %eax
	jl	.L4
	movl	$1, i(%rip)
	testl	%edx, %edx
	jle	.L2
	movl	$1, %eax
	leaq	.LC1(%rip), %r12
	leaq	.LC0(%rip), %rbp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L24:
	cmpl	%edx, %eax
	movq	%rbp, %rdi
	movl	%r8d, %edx
	movl	%r9d, %esi
	cmove	%r12, %rdi
	xorl	%eax, %eax
	call	printf@PLT
.L9:
	movl	i(%rip), %eax
	movl	n(%rip), %edx
	movl	%eax, p(%rip)
.L6:
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	%edx, %eax
	jg	.L2
.L5:
	leal	-1(%rax), %esi
	movslq	%esi, %rsi
	movl	0(%r13,%rsi,4), %r8d
	movslq	%eax, %rsi
	movl	%r8d, %ecx
	subl	0(%r13,%rsi,4), %ecx
	cmpl	$-1, %ecx
	je	.L6
	movslq	p(%rip), %rdi
	movq	%rdi, %rsi
	movl	0(%r13,%rdi,4), %r9d
	movl	%eax, %edi
	subl	%esi, %edi
	cmpl	$1, %edi
	jne	.L24
	cmpl	%edx, %eax
	leaq	.LC2(%rip), %rdi
	movl	%r9d, %esi
	cmove	%r14, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	xorl	%edi, %edi
	call	exit@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	movl	$1, i(%rip)
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 204
a:
	.zero	204
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	p
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d-%d "
.LC1:
	.string	"%d-%d\n"
.LC2:
	.string	"%d "
.LC3:
	.string	"%d\n"
.LC4:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	n(%rip), %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	.LC3(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	a(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	.LC4(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	n(%rip), %rax
	testl	%eax, %eax
	je	.L23
	movl	$0, i(%rip)
	movl	$0, p(%rip)
	movl	$0, 0(%r13,%rax,4)
	jle	.L3
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	cltq
	movq	%rbx, %rdi
	leaq	0(%r13,%rax,4), %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	movl	n(%rip), %edx
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	%edx, %eax
	jl	.L4
	movl	$1, i(%rip)
	testl	%edx, %edx
	jle	.L2
	movl	$1, %eax
	leaq	.LC1(%rip), %r12
	leaq	.LC0(%rip), %rbp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L24:
	cmpl	%edx, %eax
	movq	%rbp, %rdi
	movl	%r8d, %edx
	movl	%r9d, %esi
	cmove	%r12, %rdi
	xorl	%eax, %eax
	call	printf@PLT
.L9:
	movl	i(%rip), %eax
	movl	n(%rip), %edx
	movl	%eax, p(%rip)
.L6:
	addl	$1, %eax
	movl	%eax, i(%rip)
	cmpl	%edx, %eax
	jg	.L2
.L5:
	leal	-1(%rax), %esi
	movslq	%esi, %rsi
	movl	0(%r13,%rsi,4), %r8d
	movslq	%eax, %rsi
	movl	%r8d, %ecx
	subl	0(%r13,%rsi,4), %ecx
	cmpl	$-1, %ecx
	je	.L6
	movslq	p(%rip), %rdi
	movq	%rdi, %rsi
	movl	0(%r13,%rdi,4), %r9d
	movl	%eax, %edi
	subl	%esi, %edi
	cmpl	$1, %edi
	jne	.L24
	cmpl	%edx, %eax
	leaq	.LC2(%rip), %rdi
	movl	%r9d, %esi
	cmove	%r14, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	xorl	%edi, %edi
	call	exit@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	movl	$1, i(%rip)
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 204
a:
	.zero	204
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	p
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

n,p,i,a[51];main(){for(;~scanf("%d",&n),n;){for(a[n]=p=i=0;i<n;i++)scanf("%d",a+i);for(i=1;i<=n;i++)if(a[i-1]-a[i]+1)i-p-1?printf(n-i?"%d-%d ":"%d-%d\n",a[p],a[i-1]):printf(n-i?"%d ":"%d\n",a[p]),p=i;}exit(0);}
5
1 1 3 5 6
3
7 8 9
0
 5
1 1 6 5 6
3
7 8 9
0
 5
1 1 6 4 6
3
7 8 9
0
 5
1 1 6 4 9
3
7 8 9
0
 5
1 1 2 4 9
3
7 8 9
0
 5
1 2 2 4 9
3
7 8 9
0
 5
1 2 2 4 9
3
7 14 9
0
 5
1 2 2 4 9
3
7 14 16
0
 5
1 2 1 4 9
3
7 14 16
0
 5
1 2 1 4 9
3
7 28 16
0

1 1 3 5-6
7-9
 1 1 6 5-6
7-9
 1 1 6 4 6
7-9
 1 1 6 4 9
7-9
 1 1-2 4 9
7-9
 1-2 2 4 9
7-9
 1-2 2 4 9
7 14 9
 1-2 2 4 9
7 14 16
 1-2 1 4 9
7 14 16
 1-2 1 4 9
7 28 16

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
n,p,i,a[51];main(){for(;~scanf("%d",&n),n;){for(a[n]=p=i=0;i<n;i++)scanf("%d",a+i);for(i=1;i<=n;i++)if(a[i-1]-a[i]+1)i-p-1?printf(n-i?"%d-%d ":"%d-%d\n",a[p],a[i-1]):printf(n-i?"%d ":"%d\n",a[p]),p=i;}exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	p
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 204
a:
	.zero	204
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d-%d "
.LC2:
	.string	"%d-%d\n"
.LC3:
	.string	"%d "
.LC4:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	jmp	.L2
.L14:
	movl	$0, i(%rip)
	movl	i(%rip), %eax
	movl	%eax, p(%rip)
	movl	n(%rip), %edx
	movl	p(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	jmp	.L3
.L4:
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L3:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	$1, i(%rip)
	jmp	.L5
.L13:
	movl	i(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	i(%rip), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	cmpl	$-1, %eax
	je	.L6
	movl	i(%rip), %eax
	movl	p(%rip), %edx
	subl	%edx, %eax
	cmpl	$1, %eax
	je	.L7
	movl	i(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	p(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %ecx
	movl	n(%rip), %esi
	movl	i(%rip), %eax
	cmpl	%eax, %esi
	je	.L8
	leaq	.LC1(%rip), %rax
	jmp	.L9
.L8:
	leaq	.LC2(%rip), %rax
.L9:
	movl	%ecx, %esi
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L10
.L7:
	movl	p(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	n(%rip), %ecx
	movl	i(%rip), %eax
	cmpl	%eax, %ecx
	je	.L11
	leaq	.LC3(%rip), %rax
	jmp	.L12
.L11:
	leaq	.LC4(%rip), %rax
.L12:
	movl	%edx, %esi
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	movl	i(%rip), %eax
	movl	%eax, p(%rip)
.L6:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L5:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jle	.L13
.L2:
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jne	.L14
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	p
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 204
a:
	.zero	204
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d-%d "
.LC2:
	.string	"%d-%d\n"
.LC3:
	.string	"%d "
.LC4:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	jmp	.L2
.L14:
	movl	$0, i(%rip)
	movl	i(%rip), %eax
	movl	%eax, p(%rip)
	movl	n(%rip), %edx
	movl	p(%rip), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	jmp	.L3
.L4:
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L3:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L4
	movl	$1, i(%rip)
	jmp	.L5
.L13:
	movl	i(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	i(%rip), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	cmpl	$-1, %eax
	je	.L6
	movl	i(%rip), %eax
	movl	p(%rip), %edx
	subl	%edx, %eax
	cmpl	$1, %eax
	je	.L7
	movl	i(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	p(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	(%rcx,%rax), %ecx
	movl	n(%rip), %esi
	movl	i(%rip), %eax
	cmpl	%eax, %esi
	je	.L8
	leaq	.LC1(%rip), %rax
	jmp	.L9
.L8:
	leaq	.LC2(%rip), %rax
.L9:
	movl	%ecx, %esi
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L10
.L7:
	movl	p(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	n(%rip), %ecx
	movl	i(%rip), %eax
	cmpl	%eax, %ecx
	je	.L11
	leaq	.LC3(%rip), %rax
	jmp	.L12
.L11:
	leaq	.LC4(%rip), %rax
.L12:
	movl	%edx, %esi
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	movl	i(%rip), %eax
	movl	%eax, p(%rip)
.L6:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
.L5:
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jle	.L13
.L2:
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jne	.L14
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
