Given the following C code and 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);}```

Assembly Code:

```assembly
	.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:
```

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"
	.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
```assembly
	.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:
```
```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);}```
Given the following C 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);}```

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:

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 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);}```

Assembly Code:

```assembly
	.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:
```

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"
	.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:
```