Given the following C code and 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(p=i=0;i<n;i++)scanf("%d",&a[i]);
		for(i=1;i<=n;i++){
			if(a[i-1]+1!=a[i]||n-i==0) {
				if(i-p-1)printf((n-i)?"%d-%d ":"%d-%d\n",a[p],a[i-1]);
				else printf((n-i)?"%d ":"%d\n",a[p]);
				p=i;
			}
		}
	}
	exit(0);
}```

Assembly Code:

```assembly
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC4(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	a(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L25
	movl	$0, i(%rip)
	movl	$0, p(%rip)
	jle	.L3
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	cltq
	movq	%rbp, %rdi
	leaq	(%rbx,%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), %r13
	leaq	.LC0(%rip), %r12
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	cmpl	%edx, %eax
	movq	%r12, %rdi
	movl	%r8d, %edx
	movl	%r9d, %esi
	cmove	%r13, %rdi
	xorl	%eax, %eax
	call	printf@PLT
.L10:
	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), %ecx
	movslq	%ecx, %rcx
	movl	(%rbx,%rcx,4), %r8d
	movslq	%eax, %rcx
	leal	1(%r8), %esi
	cmpl	(%rbx,%rcx,4), %esi
	jne	.L17
	cmpl	%edx, %eax
	jne	.L6
.L17:
	movslq	p(%rip), %rsi
	movq	%rsi, %rcx
	movl	(%rbx,%rsi,4), %r9d
	movl	%eax, %esi
	subl	%ecx, %esi
	cmpl	$1, %esi
	jne	.L26
	cmpl	%edx, %eax
	leaq	.LC2(%rip), %rdi
	movl	%r9d, %esi
	cmove	%r14, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L25:
	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:
```

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.
Optimized Assembly Code:

user
```assembly
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC4(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	a(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L25
	movl	$0, i(%rip)
	movl	$0, p(%rip)
	jle	.L3
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	cltq
	movq	%rbp, %rdi
	leaq	(%rbx,%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), %r13
	leaq	.LC0(%rip), %r12
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	cmpl	%edx, %eax
	movq	%r12, %rdi
	movl	%r8d, %edx
	movl	%r9d, %esi
	cmove	%r13, %rdi
	xorl	%eax, %eax
	call	printf@PLT
.L10:
	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), %ecx
	movslq	%ecx, %rcx
	movl	(%rbx,%rcx,4), %r8d
	movslq	%eax, %rcx
	leal	1(%r8), %esi
	cmpl	(%rbx,%rcx,4), %esi
	jne	.L17
	cmpl	%edx, %eax
	jne	.L6
.L17:
	movslq	p(%rip), %rsi
	movq	%rsi, %rcx
	movl	(%rbx,%rsi,4), %r9d
	movl	%eax, %esi
	subl	%ecx, %esi
	cmpl	$1, %esi
	jne	.L26
	cmpl	%edx, %eax
	leaq	.LC2(%rip), %rdi
	movl	%r9d, %esi
	cmove	%r14, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L25:
	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
```assembly
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC4(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	a(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L25
	movl	$0, i(%rip)
	movl	$0, p(%rip)
	jle	.L3
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	cltq
	movq	%rbp, %rdi
	leaq	(%rbx,%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), %r13
	leaq	.LC0(%rip), %r12
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	cmpl	%edx, %eax
	movq	%r12, %rdi
	movl	%r8d, %edx
	movl	%r9d, %esi
	cmove	%r13, %rdi
	xorl	%eax, %eax
	call	printf@PLT
.L10:
	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), %ecx
	movslq	%ecx, %rcx
	movl	(%rbx,%rcx,4), %r8d
	movslq	%eax, %rcx
	leal	1(%r8), %esi
	cmpl	(%rbx,%rcx,4), %esi
	jne	.L17
	cmpl	%edx, %eax
	jne	.L6
.L17:
	movslq	p(%rip), %rsi
	movq	%rsi, %rcx
	movl	(%rbx,%rsi,4), %r9d
	movl	%eax, %esi
	subl	%ecx, %esi
	cmpl	$1, %esi
	jne	.L26
	cmpl	%edx, %eax
	leaq	.LC2(%rip), %rdi
	movl	%r9d, %esi
	cmove	%r14, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L25:
	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:
```
```c
n,p,i,a[51];
main(){
	for(;~scanf("%d", &n),n;) {
		for(p=i=0;i<n;i++)scanf("%d",&a[i]);
		for(i=1;i<=n;i++){
			if(a[i-1]+1!=a[i]||n-i==0) {
				if(i-p-1)printf((n-i)?"%d-%d ":"%d-%d\n",a[p],a[i-1]);
				else printf((n-i)?"%d ":"%d\n",a[p]);
				p=i;
			}
		}
	}
	exit(0);
}```
Given the following C 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(p=i=0;i<n;i++)scanf("%d",&a[i]);
		for(i=1;i<=n;i++){
			if(a[i-1]+1!=a[i]||n-i==0) {
				if(i-p-1)printf((n-i)?"%d-%d ":"%d-%d\n",a[p],a[i-1]);
				else printf((n-i)?"%d ":"%d\n",a[p]);
				p=i;
			}
		}
	}
	exit(0);
}```

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.
Optimized Assembly Code:

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 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(p=i=0;i<n;i++)scanf("%d",&a[i]);
		for(i=1;i<=n;i++){
			if(a[i-1]+1!=a[i]||n-i==0) {
				if(i-p-1)printf((n-i)?"%d-%d ":"%d-%d\n",a[p],a[i-1]);
				else printf((n-i)?"%d ":"%d\n",a[p]);
				p=i;
			}
		}
	}
	exit(0);
}```

Assembly Code:

```assembly
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC4(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	a(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L25
	movl	$0, i(%rip)
	movl	$0, p(%rip)
	jle	.L3
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	cltq
	movq	%rbp, %rdi
	leaq	(%rbx,%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), %r13
	leaq	.LC0(%rip), %r12
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	cmpl	%edx, %eax
	movq	%r12, %rdi
	movl	%r8d, %edx
	movl	%r9d, %esi
	cmove	%r13, %rdi
	xorl	%eax, %eax
	call	printf@PLT
.L10:
	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), %ecx
	movslq	%ecx, %rcx
	movl	(%rbx,%rcx,4), %r8d
	movslq	%eax, %rcx
	leal	1(%r8), %esi
	cmpl	(%rbx,%rcx,4), %esi
	jne	.L17
	cmpl	%edx, %eax
	jne	.L6
.L17:
	movslq	p(%rip), %rsi
	movq	%rsi, %rcx
	movl	(%rbx,%rsi,4), %r9d
	movl	%eax, %esi
	subl	%ecx, %esi
	cmpl	$1, %esi
	jne	.L26
	cmpl	%edx, %eax
	leaq	.LC2(%rip), %rdi
	movl	%r9d, %esi
	cmove	%r14, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L25:
	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:
```

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.
Optimized Assembly Code:

train
```assembly
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC4(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	a(%rip), %rbx
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r15, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L25
	movl	$0, i(%rip)
	movl	$0, p(%rip)
	jle	.L3
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	cltq
	movq	%rbp, %rdi
	leaq	(%rbx,%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), %r13
	leaq	.LC0(%rip), %r12
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	cmpl	%edx, %eax
	movq	%r12, %rdi
	movl	%r8d, %edx
	movl	%r9d, %esi
	cmove	%r13, %rdi
	xorl	%eax, %eax
	call	printf@PLT
.L10:
	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), %ecx
	movslq	%ecx, %rcx
	movl	(%rbx,%rcx,4), %r8d
	movslq	%eax, %rcx
	leal	1(%r8), %esi
	cmpl	(%rbx,%rcx,4), %esi
	jne	.L17
	cmpl	%edx, %eax
	jne	.L6
.L17:
	movslq	p(%rip), %rsi
	movq	%rsi, %rcx
	movl	(%rbx,%rsi,4), %r9d
	movl	%eax, %esi
	subl	%ecx, %esi
	cmpl	$1, %esi
	jne	.L26
	cmpl	%edx, %eax
	leaq	.LC2(%rip), %rdi
	movl	%r9d, %esi
	cmove	%r14, %rdi
	xorl	%eax, %eax
	call	printf@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L25:
	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:
```