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

```c
#define max(a,b)(a>b?a:b)
a[5][5];main(n,i,j,k,l,m,M){
	for(scanf("%d",&n);n--;printf("%d\n",M)){
		for(i=0;i<5;i++)for(j=0;j<5;j++)scanf("%d",a[i]+j);
		for(M=i=0;i<5;i++)for(j=0;j<5;j++)for(k=i;k<5;k++){
			for(l=j;l<5;l++)for(m=i;m<=k;m++)if(!a[m][l])goto e;
			e:l-=1;M=max(M,(k-i+1)*(l-j+1));
		}
	}
exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 100
a:
	.zero	100
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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
	subq	$32, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, -20(%rbp)
	movl	%r9d, -24(%rbp)
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L2
.L19:
	movl	$0, -8(%rbp)
	jmp	.L3
.L6:
	movl	$0, -12(%rbp)
	jmp	.L4
.L5:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	a(%rip), %rdx
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addl	$1, -12(%rbp)
.L4:
	cmpl	$4, -12(%rbp)
	jle	.L5
	addl	$1, -8(%rbp)
.L3:
	cmpl	$4, -8(%rbp)
	jle	.L6
	movl	$0, -8(%rbp)
	movl	-8(%rbp), %eax
	movl	%eax, 16(%rbp)
	jmp	.L7
.L18:
	movl	$0, -12(%rbp)
	jmp	.L8
.L17:
	movl	-8(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L9
.L16:
	movl	-12(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L10
.L15:
	movl	-8(%rbp), %eax
	movl	%eax, -24(%rbp)
	jmp	.L11
.L14:
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L20
	addl	$1, -24(%rbp)
.L11:
	movl	-24(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jle	.L14
	addl	$1, -20(%rbp)
.L10:
	cmpl	$4, -20(%rbp)
	jle	.L15
	jmp	.L13
.L20:
	nop
.L13:
	subl	$1, -20(%rbp)
	movl	-16(%rbp), %eax
	subl	-8(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	subl	-12(%rbp), %eax
	addl	$1, %eax
	imull	%edx, %eax
	movl	16(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, 16(%rbp)
	addl	$1, -16(%rbp)
.L9:
	cmpl	$4, -16(%rbp)
	jle	.L16
	addl	$1, -12(%rbp)
.L8:
	cmpl	$4, -12(%rbp)
	jle	.L17
	addl	$1, -8(%rbp)
.L7:
	cmpl	$4, -8(%rbp)
	jle	.L18
	movl	16(%rbp), %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -4(%rbp)
	testl	%eax, %eax
	jne	.L19
	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"
.LC1:
	.string	"%d\n"
	.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
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	a(%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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movl	%edi, 28(%rsp)
	leaq	28(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	call	scanf@PLT
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 28(%rsp)
	testl	%eax, %eax
	je	.L16
.L2:
	leaq	20+a(%rip), %rbp
.L4:
	leaq	-20(%rbp), %rbx
.L3:
	movq	%rbx, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	scanf@PLT
	cmpq	%rbp, %rbx
	jne	.L3
	leaq	20(%rbx), %rbp
	leaq	120+a(%rip), %rax
	cmpq	%rax, %rbp
	jne	.L4
	leaq	-60(%rax), %r12
	leaq	-80(%rax), %rbp
	movl	$2, %r15d
	xorl	%edi, %edi
	leaq	-100(%rax), %rbx
	subq	$40, %rax
	movl	$4, 16(%rsp)
	movl	$1, %r11d
	movq	%rax, 8(%rsp)
	xorl	%r8d, %r8d
	movl	$3, 4(%rsp)
	movl	$0, 24(%rsp)
.L5:
	movl	24(%rsp), %eax
	xorl	%r9d, %r9d
	addl	$1, %eax
	movl	%eax, 20(%rsp)
	movslq	%edi, %rax
	leaq	(%rax,%rax,4), %r10
.L15:
	movl	%r9d, %r13d
	movl	%edi, %ecx
.L13:
	movq	%r9, %rax
.L11:
	movl	%eax, %edx
	cmpl	%ecx, %edi
	jg	.L7
	movslq	%eax, %rsi
	addq	%r10, %rsi
	movl	(%r14,%rsi,4), %esi
	testl	%esi, %esi
	je	.L6
	cmpl	%r11d, %ecx
	jl	.L7
	movl	(%rbx,%rax,4), %esi
	testl	%esi, %esi
	je	.L6
	cmpl	%r15d, %ecx
	jl	.L7
	movl	0(%rbp,%rax,4), %esi
	testl	%esi, %esi
	je	.L6
	cmpl	4(%rsp), %ecx
	jl	.L7
	movl	(%r12,%rax,4), %esi
	testl	%esi, %esi
	je	.L6
	cmpl	16(%rsp), %ecx
	jl	.L7
	movq	8(%rsp), %rsi
	movl	(%rsi,%rax,4), %esi
	testl	%esi, %esi
	je	.L6
.L7:
	addq	$1, %rax
	cmpl	$5, %eax
	jne	.L11
	movl	$4, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	subl	%r13d, %edx
	leal	1(%rdx), %eax
	movl	20(%rsp), %edx
	addl	%ecx, %edx
	imull	%edx, %eax
	cmpl	%eax, %r8d
	cmovl	%eax, %r8d
	addl	$1, %ecx
	cmpl	$5, %ecx
	jne	.L13
	addq	$1, %r9
	cmpq	$5, %r9
	jne	.L15
	addl	$1, %edi
	subl	$1, 24(%rsp)
	addl	$1, %r11d
	addl	$1, %r15d
	addl	$1, 4(%rsp)
	addq	$20, %r12
	addq	$20, %rbp
	addq	$20, %rbx
	addl	$1, 16(%rsp)
	addq	$20, 8(%rsp)
	cmpl	$5, %edi
	jne	.L5
	movl	%r8d, %esi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 28(%rsp)
	testl	%eax, %eax
	jne	.L2
.L16:
	xorl	%edi, %edi
	call	exit@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	subl	$1, %edx
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 100
a:
	.zero	100
	.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"
.LC1:
	.string	"%d\n"
	.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
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	a(%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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movl	%edi, 28(%rsp)
	leaq	28(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	call	scanf@PLT
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 28(%rsp)
	testl	%eax, %eax
	je	.L16
.L2:
	leaq	20+a(%rip), %rbp
.L4:
	leaq	-20(%rbp), %rbx
.L3:
	movq	%rbx, %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	scanf@PLT
	cmpq	%rbp, %rbx
	jne	.L3
	leaq	20(%rbx), %rbp
	leaq	120+a(%rip), %rax
	cmpq	%rax, %rbp
	jne	.L4
	leaq	-60(%rax), %r12
	leaq	-80(%rax), %rbp
	movl	$2, %r15d
	xorl	%edi, %edi
	leaq	-100(%rax), %rbx
	subq	$40, %rax
	movl	$4, 16(%rsp)
	movl	$1, %r11d
	movq	%rax, 8(%rsp)
	xorl	%r8d, %r8d
	movl	$3, 4(%rsp)
	movl	$0, 24(%rsp)
.L5:
	movl	24(%rsp), %eax
	xorl	%r9d, %r9d
	addl	$1, %eax
	movl	%eax, 20(%rsp)
	movslq	%edi, %rax
	leaq	(%rax,%rax,4), %r10
.L15:
	movl	%r9d, %r13d
	movl	%edi, %ecx
.L13:
	movq	%r9, %rax
.L11:
	movl	%eax, %edx
	cmpl	%ecx, %edi
	jg	.L7
	movslq	%eax, %rsi
	addq	%r10, %rsi
	movl	(%r14,%rsi,4), %esi
	testl	%esi, %esi
	je	.L6
	cmpl	%r11d, %ecx
	jl	.L7
	movl	(%rbx,%rax,4), %esi
	testl	%esi, %esi
	je	.L6
	cmpl	%r15d, %ecx
	jl	.L7
	movl	0(%rbp,%rax,4), %esi
	testl	%esi, %esi
	je	.L6
	cmpl	4(%rsp), %ecx
	jl	.L7
	movl	(%r12,%rax,4), %esi
	testl	%esi, %esi
	je	.L6
	cmpl	16(%rsp), %ecx
	jl	.L7
	movq	8(%rsp), %rsi
	movl	(%rsi,%rax,4), %esi
	testl	%esi, %esi
	je	.L6
.L7:
	addq	$1, %rax
	cmpl	$5, %eax
	jne	.L11
	movl	$4, %edx
	.p2align 4,,10
	.p2align 3
.L8:
	subl	%r13d, %edx
	leal	1(%rdx), %eax
	movl	20(%rsp), %edx
	addl	%ecx, %edx
	imull	%edx, %eax
	cmpl	%eax, %r8d
	cmovl	%eax, %r8d
	addl	$1, %ecx
	cmpl	$5, %ecx
	jne	.L13
	addq	$1, %r9
	cmpq	$5, %r9
	jne	.L15
	addl	$1, %edi
	subl	$1, 24(%rsp)
	addl	$1, %r11d
	addl	$1, %r15d
	addl	$1, 4(%rsp)
	addq	$20, %r12
	addq	$20, %rbp
	addq	$20, %rbx
	addl	$1, 16(%rsp)
	addq	$20, 8(%rsp)
	cmpl	$5, %edi
	jne	.L5
	movl	%r8d, %esi
	leaq	.LC1(%rip), %rdi
	xorl	%eax, %eax
	call	printf@PLT
	movl	28(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 28(%rsp)
	testl	%eax, %eax
	jne	.L2
.L16:
	xorl	%edi, %edi
	call	exit@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	subl	$1, %edx
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 100
a:
	.zero	100
	.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:

#define max(a,b)(a>b?a:b)
a[5][5];main(n,i,j,k,l,m,M){
	for(scanf("%d",&n);n--;printf("%d\n",M)){
		for(i=0;i<5;i++)for(j=0;j<5;j++)scanf("%d",a[i]+j);
		for(M=i=0;i<5;i++)for(j=0;j<5;j++)for(k=i;k<5;k++){
			for(l=j;l<5;l++)for(m=i;m<=k;m++)if(!a[m][l])goto e;
			e:l-=1;M=max(M,(k-i+1)*(l-j+1));
		}
	}
exit(0);}
3
1 1 0 1 0
0 1 1 1 1
1 0 1 0 1
0 1 1 1 0
0 1 1 0 0

0 1 0 1 1
0 1 0 1 0
0 0 1 0 0
0 0 1 1 0
1 0 0 0 0

1 1 1 1 0
0 1 1 1 0
0 1 1 0 1
0 1 1 1 0
0 0 0 0 1
 3
1 1 0 1 0
0 1 1 1 1
1 0 1 0 1
0 1 1 1 0
0 1 1 0 0

0 1 0 1 1
0 1 0 1 0
0 0 1 0 0
0 0 1 1 0
1 0 0 0 0

1 1 1 1 0
0 1 1 1 0
0 0 1 0 1
0 1 1 1 0
0 0 0 0 1
 3
1 1 0 1 0
0 1 1 1 1
1 0 1 0 1
0 1 1 0 0
0 1 1 0 0

0 1 0 1 1
0 1 0 1 0
0 0 1 0 0
0 0 1 1 1
1 0 0 0 0

1 1 1 1 0
0 1 1 1 0
0 0 1 0 1
0 1 1 1 0
0 0 0 0 1
 3
1 1 0 1 0
0 1 1 1 1
1 0 1 0 1
0 1 1 1 0
0 1 1 0 0

0 1 0 1 1
0 1 0 1 0
0 0 1 0 0
0 0 1 1 0
1 0 0 0 0

1 1 0 1 0
1 1 1 1 0
0 0 1 0 1
0 1 1 1 0
0 0 0 0 1
 3
1 1 0 1 0
0 1 1 1 1
1 0 1 0 1
0 1 1 1 0
0 1 1 0 0

0 1 0 1 1
0 1 0 0 0
0 0 1 0 0
0 0 1 1 0
1 0 1 0 0

1 1 1 1 0
0 1 1 1 0
0 1 1 0 1
0 1 1 1 0
0 0 0 0 1
 3
1 1 0 1 0
0 1 1 1 1
1 1 0 0 1
0 1 1 1 0
0 1 1 0 0

0 1 0 1 1
0 1 0 1 0
0 0 1 0 0
0 0 1 1 0
1 0 0 0 0

1 1 1 1 0
0 1 1 1 0
0 0 1 0 1
0 1 1 1 0
0 0 0 0 1
 3
1 1 1 1 0
0 1 1 1 1
1 0 1 0 1
0 1 1 1 0
0 1 1 0 0

0 1 0 2 1
0 1 0 1 0
0 0 1 0 0
0 0 1 0 0
1 0 0 0 0

1 1 0 1 0
1 1 1 1 0
0 0 1 0 1
0 1 1 1 1
0 0 0 0 1
 3
1 1 0 1 0
0 1 1 1 1
1 1 0 0 1
0 1 1 1 0
0 1 1 0 0

0 1 0 1 1
0 1 0 1 0
0 0 1 0 0
0 0 1 1 0
1 0 0 0 0

1 1 1 1 0
0 0 1 1 0
0 0 1 0 1
0 1 1 1 0
0 0 0 0 1
 3
1 1 0 1 0
0 1 1 1 1
1 0 1 0 1
0 1 1 1 0
0 1 1 0 -1

0 1 0 2 1
0 1 0 1 0
0 0 1 0 0
0 0 1 1 0
1 0 1 0 0

1 1 0 1 0
1 1 1 1 0
0 0 1 0 1
0 1 1 1 0
0 0 0 0 1
 3
1 1 0 1 0
0 1 1 1 1
1 0 0 0 1
0 1 1 1 0
0 1 1 0 0

0 2 0 1 2
0 1 0 1 0
0 0 1 0 0
0 0 1 1 0
1 0 0 0 0

1 1 0 1 0
0 1 1 1 0
0 0 1 0 1
0 1 1 2 0
0 0 0 0 1

4
2
8
 4
2
6
 4
3
6
 4
2
4
 4
3
8
 5
2
6
 6
2
4
 5
2
4
 4
3
4
 4
2
3

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

```c
#define max(a,b)(a>b?a:b)
a[5][5];main(n,i,j,k,l,m,M){
	for(scanf("%d",&n);n--;printf("%d\n",M)){
		for(i=0;i<5;i++)for(j=0;j<5;j++)scanf("%d",a[i]+j);
		for(M=i=0;i<5;i++)for(j=0;j<5;j++)for(k=i;k<5;k++){
			for(l=j;l<5;l++)for(m=i;m<=k;m++)if(!a[m][l])goto e;
			e:l-=1;M=max(M,(k-i+1)*(l-j+1));
		}
	}
exit(0);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 100
a:
	.zero	100
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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
	subq	$32, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, -20(%rbp)
	movl	%r9d, -24(%rbp)
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L2
.L19:
	movl	$0, -8(%rbp)
	jmp	.L3
.L6:
	movl	$0, -12(%rbp)
	jmp	.L4
.L5:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	a(%rip), %rdx
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addl	$1, -12(%rbp)
.L4:
	cmpl	$4, -12(%rbp)
	jle	.L5
	addl	$1, -8(%rbp)
.L3:
	cmpl	$4, -8(%rbp)
	jle	.L6
	movl	$0, -8(%rbp)
	movl	-8(%rbp), %eax
	movl	%eax, 16(%rbp)
	jmp	.L7
.L18:
	movl	$0, -12(%rbp)
	jmp	.L8
.L17:
	movl	-8(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L9
.L16:
	movl	-12(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L10
.L15:
	movl	-8(%rbp), %eax
	movl	%eax, -24(%rbp)
	jmp	.L11
.L14:
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L20
	addl	$1, -24(%rbp)
.L11:
	movl	-24(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jle	.L14
	addl	$1, -20(%rbp)
.L10:
	cmpl	$4, -20(%rbp)
	jle	.L15
	jmp	.L13
.L20:
	nop
.L13:
	subl	$1, -20(%rbp)
	movl	-16(%rbp), %eax
	subl	-8(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	subl	-12(%rbp), %eax
	addl	$1, %eax
	imull	%edx, %eax
	movl	16(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, 16(%rbp)
	addl	$1, -16(%rbp)
.L9:
	cmpl	$4, -16(%rbp)
	jle	.L16
	addl	$1, -12(%rbp)
.L8:
	cmpl	$4, -12(%rbp)
	jle	.L17
	addl	$1, -8(%rbp)
.L7:
	cmpl	$4, -8(%rbp)
	jle	.L18
	movl	16(%rbp), %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -4(%rbp)
	testl	%eax, %eax
	jne	.L19
	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	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 100
a:
	.zero	100
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.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
	subq	$32, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	%edx, -12(%rbp)
	movl	%ecx, -16(%rbp)
	movl	%r8d, -20(%rbp)
	movl	%r9d, -24(%rbp)
	leaq	-4(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	jmp	.L2
.L19:
	movl	$0, -8(%rbp)
	jmp	.L3
.L6:
	movl	$0, -12(%rbp)
	jmp	.L4
.L5:
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	leaq	a(%rip), %rdx
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	addl	$1, -12(%rbp)
.L4:
	cmpl	$4, -12(%rbp)
	jle	.L5
	addl	$1, -8(%rbp)
.L3:
	cmpl	$4, -8(%rbp)
	jle	.L6
	movl	$0, -8(%rbp)
	movl	-8(%rbp), %eax
	movl	%eax, 16(%rbp)
	jmp	.L7
.L18:
	movl	$0, -12(%rbp)
	jmp	.L8
.L17:
	movl	-8(%rbp), %eax
	movl	%eax, -16(%rbp)
	jmp	.L9
.L16:
	movl	-12(%rbp), %eax
	movl	%eax, -20(%rbp)
	jmp	.L10
.L15:
	movl	-8(%rbp), %eax
	movl	%eax, -24(%rbp)
	jmp	.L11
.L14:
	movl	-20(%rbp), %eax
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L20
	addl	$1, -24(%rbp)
.L11:
	movl	-24(%rbp), %eax
	cmpl	-16(%rbp), %eax
	jle	.L14
	addl	$1, -20(%rbp)
.L10:
	cmpl	$4, -20(%rbp)
	jle	.L15
	jmp	.L13
.L20:
	nop
.L13:
	subl	$1, -20(%rbp)
	movl	-16(%rbp), %eax
	subl	-8(%rbp), %eax
	leal	1(%rax), %edx
	movl	-20(%rbp), %eax
	subl	-12(%rbp), %eax
	addl	$1, %eax
	imull	%edx, %eax
	movl	16(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, 16(%rbp)
	addl	$1, -16(%rbp)
.L9:
	cmpl	$4, -16(%rbp)
	jle	.L16
	addl	$1, -12(%rbp)
.L8:
	cmpl	$4, -12(%rbp)
	jle	.L17
	addl	$1, -8(%rbp)
.L7:
	cmpl	$4, -8(%rbp)
	jle	.L18
	movl	16(%rbp), %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -4(%rbp)
	testl	%eax, %eax
	jne	.L19
	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:
