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

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

Assembly Code:

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

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

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:

4 3
5
3
1
4
4
3
2

2

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

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

Assembly Code:

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