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

```c
i,c,a[2000];
main(n,m){
	for(;scanf("%d%d",&n,&m),n;i=c=0){
		for(;n+m-i;scanf("%d",a+i++));
		for(i=0;c<n-1?(c+=a[c])<n-1:0;c+=a[n+i++]);
		printf("%d\n",i);
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	a(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %r14
	leaq	12(%rsp), %r13
	movl	%esi, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	12(%rsp), %rdx
	testl	%edx, %edx
	jne	.L19
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	leal	1(%rax), %edx
	leaq	(%rbx,%rax,4), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	movl	%edx, i(%rip)
	call	scanf@PLT
	movslq	12(%rsp), %rdx
.L19:
	movl	8(%rsp), %ecx
	movslq	i(%rip), %rax
	addl	%edx, %ecx
	cmpl	%eax, %ecx
	jne	.L3
	movl	c(%rip), %eax
	leal	-1(%rdx), %ecx
	movl	$0, i(%rip)
	cmpl	%ecx, %eax
	jge	.L8
	leaq	(%rbx,%rdx,4), %rdx
	xorl	%r8d, %r8d
	xorl	%esi, %esi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	addl	(%rdx), %eax
	addl	$1, %esi
	addq	$4, %rdx
	movl	$1, %r8d
	cmpl	%ecx, %eax
	jge	.L21
.L6:
	movslq	%eax, %rdi
	addl	(%rbx,%rdi,4), %eax
	cmpl	%ecx, %eax
	jl	.L7
	movl	%eax, c(%rip)
	testb	%r8b, %r8b
	je	.L8
	movl	%esi, i(%rip)
.L5:
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	movl	$0, c(%rip)
	movl	$0, i(%rip)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%eax, c(%rip)
	movl	%esi, i(%rip)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%esi, %esi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 8000
a:
	.zero	8000
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.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"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	a(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %r14
	leaq	12(%rsp), %r13
	movl	%esi, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	12(%rsp), %rdx
	testl	%edx, %edx
	jne	.L19
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	leal	1(%rax), %edx
	leaq	(%rbx,%rax,4), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	movl	%edx, i(%rip)
	call	scanf@PLT
	movslq	12(%rsp), %rdx
.L19:
	movl	8(%rsp), %ecx
	movslq	i(%rip), %rax
	addl	%edx, %ecx
	cmpl	%eax, %ecx
	jne	.L3
	movl	c(%rip), %eax
	leal	-1(%rdx), %ecx
	movl	$0, i(%rip)
	cmpl	%ecx, %eax
	jge	.L8
	leaq	(%rbx,%rdx,4), %rdx
	xorl	%r8d, %r8d
	xorl	%esi, %esi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	addl	(%rdx), %eax
	addl	$1, %esi
	addq	$4, %rdx
	movl	$1, %r8d
	cmpl	%ecx, %eax
	jge	.L21
.L6:
	movslq	%eax, %rdi
	addl	(%rbx,%rdi,4), %eax
	cmpl	%ecx, %eax
	jl	.L7
	movl	%eax, c(%rip)
	testb	%r8b, %r8b
	je	.L8
	movl	%esi, i(%rip)
.L5:
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	movl	$0, c(%rip)
	movl	$0, i(%rip)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%eax, c(%rip)
	movl	%esi, i(%rip)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%esi, %esi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 8000
a:
	.zero	8000
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.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"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	a(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %r14
	leaq	12(%rsp), %r13
	movl	%esi, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	12(%rsp), %rdx
	testl	%edx, %edx
	jne	.L19
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	leal	1(%rax), %edx
	leaq	(%rbx,%rax,4), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	movl	%edx, i(%rip)
	call	scanf@PLT
	movslq	12(%rsp), %rdx
.L19:
	movl	8(%rsp), %ecx
	movslq	i(%rip), %rax
	addl	%edx, %ecx
	cmpl	%eax, %ecx
	jne	.L3
	movl	c(%rip), %eax
	leal	-1(%rdx), %ecx
	movl	$0, i(%rip)
	cmpl	%ecx, %eax
	jge	.L8
	leaq	(%rbx,%rdx,4), %rdx
	xorl	%r8d, %r8d
	xorl	%esi, %esi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	addl	(%rdx), %eax
	addl	$1, %esi
	addq	$4, %rdx
	movl	$1, %r8d
	cmpl	%ecx, %eax
	jge	.L21
.L6:
	movslq	%eax, %rdi
	addl	(%rbx,%rdi,4), %eax
	cmpl	%ecx, %eax
	jl	.L7
	movl	%eax, c(%rip)
	testb	%r8b, %r8b
	je	.L8
	movl	%esi, i(%rip)
.L5:
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	movl	$0, c(%rip)
	movl	$0, i(%rip)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%eax, c(%rip)
	movl	%esi, i(%rip)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%esi, %esi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 8000
a:
	.zero	8000
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.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
i,c,a[2000];
main(n,m){
	for(;scanf("%d%d",&n,&m),n;i=c=0){
		for(;n+m-i;scanf("%d",a+i++));
		for(i=0;c<n-1?(c+=a[c])<n-1:0;c+=a[n+i++]);
		printf("%d\n",i);
	}
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
i,c,a[2000];
main(n,m){
	for(;scanf("%d%d",&n,&m),n;i=c=0){
		for(;n+m-i;scanf("%d",a+i++));
		for(i=0;c<n-1?(c+=a[c])<n-1:0;c+=a[n+i++]);
		printf("%d\n",i);
	}
	return 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:

10 5
0
0
5
6
-3
8
1
8
-4
0
1
3
5
1
5
10 10
0
-1
-1
4
4
-5
0
1
-6
0
1
5
2
5
6
5
5
4
1
6
0 0
 10 5
0
0
5
6
-2
8
1
8
-4
0
1
3
5
1
5
10 10
0
-1
-1
4
4
-5
0
1
-6
0
2
5
2
4
6
5
5
4
1
6
0 0
 10 5
0
1
5
6
-2
8
1
8
-4
0
1
3
5
1
5
10 10
0
-1
-1
4
4
-5
0
1
-6
0
2
5
2
4
6
5
5
4
1
6
0 0
 10 5
0
0
5
6
-3
8
2
8
-4
0
1
3
5
1
5
10 10
0
-1
-1
4
4
-5
0
1
-6
0
1
5
2
4
6
5
5
4
1
6
0 0
 10 5
0
1
5
6
-2
8
1
8
-4
0
1
3
5
1
5
10 10
0
-1
-1
4
4
-5
0
1
-6
0
3
5
2
4
6
5
5
4
1
6
0 0
 10 5
0
1
5
6
-2
8
1
8
-4
0
1
3
5
1
5
10 10
0
-1
0
4
4
-5
0
1
-6
0
2
5
2
5
6
5
5
4
1
6
0 0
 10 5
0
1
5
6
-2
7
1
8
-5
0
2
1
6
1
5
10 10
0
-1
-1
3
4
-5
0
1
-10
0
2
5
2
5
2
5
3
4
3
6
0 0
 10 5
0
0
5
6
-3
8
1
8
-4
0
2
3
5
1
5
10 10
0
-1
-1
4
4
-5
0
1
-6
0
1
5
1
5
6
5
5
4
1
6
0 0
 10 5
0
2
5
6
-2
8
1
8
-4
0
1
3
5
1
5
10 10
0
-1
0
4
4
-5
0
1
-6
0
2
5
2
5
6
5
5
4
1
6
0 0
 10 5
0
1
5
6
-2
8
1
8
-5
0
2
1
5
1
5
10 10
0
-1
-1
4
4
-5
0
1
-6
0
4
5
2
5
6
5
3
4
3
6
0 0

5
5
 3
5
 2
5
 4
6
 2
2
 2
3
 3
7
 2
6
 3
3
 5
2

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

```c
i,c,a[2000];
main(n,m){
	for(;scanf("%d%d",&n,&m),n;i=c=0){
		for(;n+m-i;scanf("%d",a+i++));
		for(i=0;c<n-1?(c+=a[c])<n-1:0;c+=a[n+i++]);
		printf("%d\n",i);
	}
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	a(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %r14
	leaq	12(%rsp), %r13
	movl	%esi, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	12(%rsp), %rdx
	testl	%edx, %edx
	jne	.L19
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	leal	1(%rax), %edx
	leaq	(%rbx,%rax,4), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	movl	%edx, i(%rip)
	call	scanf@PLT
	movslq	12(%rsp), %rdx
.L19:
	movl	8(%rsp), %ecx
	movslq	i(%rip), %rax
	addl	%edx, %ecx
	cmpl	%eax, %ecx
	jne	.L3
	movl	c(%rip), %eax
	leal	-1(%rdx), %ecx
	movl	$0, i(%rip)
	cmpl	%ecx, %eax
	jge	.L8
	leaq	(%rbx,%rdx,4), %rdx
	xorl	%r8d, %r8d
	xorl	%esi, %esi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	addl	(%rdx), %eax
	addl	$1, %esi
	addq	$4, %rdx
	movl	$1, %r8d
	cmpl	%ecx, %eax
	jge	.L21
.L6:
	movslq	%eax, %rdi
	addl	(%rbx,%rdi,4), %eax
	cmpl	%ecx, %eax
	jl	.L7
	movl	%eax, c(%rip)
	testb	%r8b, %r8b
	je	.L8
	movl	%esi, i(%rip)
.L5:
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	movl	$0, c(%rip)
	movl	$0, i(%rip)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%eax, c(%rip)
	movl	%esi, i(%rip)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%esi, %esi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 8000
a:
	.zero	8000
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.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"
.LC1:
	.string	"%d\n"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	a(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %r14
	leaq	12(%rsp), %r13
	movl	%esi, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movslq	12(%rsp), %rdx
	testl	%edx, %edx
	jne	.L19
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	leal	1(%rax), %edx
	leaq	(%rbx,%rax,4), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	movl	%edx, i(%rip)
	call	scanf@PLT
	movslq	12(%rsp), %rdx
.L19:
	movl	8(%rsp), %ecx
	movslq	i(%rip), %rax
	addl	%edx, %ecx
	cmpl	%eax, %ecx
	jne	.L3
	movl	c(%rip), %eax
	leal	-1(%rdx), %ecx
	movl	$0, i(%rip)
	cmpl	%ecx, %eax
	jge	.L8
	leaq	(%rbx,%rdx,4), %rdx
	xorl	%r8d, %r8d
	xorl	%esi, %esi
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	addl	(%rdx), %eax
	addl	$1, %esi
	addq	$4, %rdx
	movl	$1, %r8d
	cmpl	%ecx, %eax
	jge	.L21
.L6:
	movslq	%eax, %rdi
	addl	(%rbx,%rdi,4), %eax
	cmpl	%ecx, %eax
	jl	.L7
	movl	%eax, c(%rip)
	testb	%r8b, %r8b
	je	.L8
	movl	%esi, i(%rip)
.L5:
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	movl	$0, c(%rip)
	movl	$0, i(%rip)
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%eax, c(%rip)
	movl	%esi, i(%rip)
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	xorl	%esi, %esi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 8000
a:
	.zero	8000
	.globl	c
	.align 4
	.type	c, @object
	.size	c, 4
c:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.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:
```