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

```c
#include<stdio.h>
main()
{
    int n,a[2][110]={0};
    int i,j,k,p,sum=0,max=0;
    scanf("%d",&n);
    for(i=0;i<2;i++)
    {
        for(j=0;j<n;j++)
        {
            scanf("%d",&a[i][j]);
        }
    }
    for(k=0,p=0;k<n;k++,p++)
    {
        p=k;
        sum=0;
        for(i=0,j=0;i<2,j<n; )
        {
            if(i==0 && j==0)
            {
                sum=sum+a[i][j];
            }
            if(j!=n-p-1)
            {
                j++;
                sum=sum+a[i][j];
            }
            else if(j==n-p-1)
            {
                i++;
                p=p+5;
                sum=sum+a[i][j];
            }
        }
        if(sum>max)
        {
            max=sum;
        }
    }
    printf("%d",max);
    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$110, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$912, %rsp
	.cfi_def_cfa_offset 944
	movq	%fs:40, %rax
	movq	%rax, 904(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	leaq	12(%rsp), %rsi
	movq	%r12, %rdi
	rep stosq
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebx, %eax
	jg	.L5
	testl	%eax, %eax
	jle	.L7
	leaq	456(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %r12
	cmpl	%ebx, %edi
	jg	.L9
	testl	%edi, %edi
	jle	.L7
	movl	16(%rsp), %r10d
	xorl	%r12d, %r12d
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%r11d, %r8d
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%esi, %ebx
	orl	%eax, %ebx
	jne	.L11
	movl	%edi, %edx
	addl	%r10d, %ecx
	subl	%r8d, %edx
	cmpl	$1, %edx
	je	.L31
.L12:
	addl	$1, %eax
.L29:
	movslq	%esi, %rdx
	movslq	%eax, %r9
	imulq	$110, %rdx, %rdx
	addq	%r9, %rdx
	addl	16(%rsp,%rdx,4), %ecx
	cmpl	%edi, %eax
	jl	.L18
	cmpl	%ecx, %r12d
	cmovl	%ecx, %r12d
	addl	$1, %r11d
	cmpl	%edi, %r11d
	jne	.L8
.L17:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	904(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$912, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movl	%edi, %edx
	subl	%r8d, %edx
	subl	$1, %edx
	cmpl	%eax, %edx
	jne	.L12
	addl	$1, %esi
	addl	$5, %r8d
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L31:
	addl	$5, %r8d
	addl	456(%rsp), %ecx
	movl	$1, %esi
	xorl	%eax, %eax
	jmp	.L18
.L7:
	xorl	%r12d, %r12d
	jmp	.L17
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$110, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$912, %rsp
	.cfi_def_cfa_offset 944
	movq	%fs:40, %rax
	movq	%rax, 904(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	leaq	12(%rsp), %rsi
	movq	%r12, %rdi
	rep stosq
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebx, %eax
	jg	.L5
	testl	%eax, %eax
	jle	.L7
	leaq	456(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %r12
	cmpl	%ebx, %edi
	jg	.L9
	testl	%edi, %edi
	jle	.L7
	movl	16(%rsp), %r10d
	xorl	%r12d, %r12d
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%r11d, %r8d
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%esi, %ebx
	orl	%eax, %ebx
	jne	.L11
	movl	%edi, %edx
	addl	%r10d, %ecx
	subl	%r8d, %edx
	cmpl	$1, %edx
	je	.L31
.L12:
	addl	$1, %eax
.L29:
	movslq	%esi, %rdx
	movslq	%eax, %r9
	imulq	$110, %rdx, %rdx
	addq	%r9, %rdx
	addl	16(%rsp,%rdx,4), %ecx
	cmpl	%edi, %eax
	jl	.L18
	cmpl	%ecx, %r12d
	cmovl	%ecx, %r12d
	addl	$1, %r11d
	cmpl	%edi, %r11d
	jne	.L8
.L17:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	904(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$912, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movl	%edi, %edx
	subl	%r8d, %edx
	subl	$1, %edx
	cmpl	%eax, %edx
	jne	.L12
	addl	$1, %esi
	addl	$5, %r8d
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L31:
	addl	$5, %r8d
	addl	456(%rsp), %ecx
	movl	$1, %esi
	xorl	%eax, %eax
	jmp	.L18
.L7:
	xorl	%r12d, %r12d
	jmp	.L17
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```
rule
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$110, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$912, %rsp
	.cfi_def_cfa_offset 944
	movq	%fs:40, %rax
	movq	%rax, 904(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	leaq	12(%rsp), %rsi
	movq	%r12, %rdi
	rep stosq
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebx, %eax
	jg	.L5
	testl	%eax, %eax
	jle	.L7
	leaq	456(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %r12
	cmpl	%ebx, %edi
	jg	.L9
	testl	%edi, %edi
	jle	.L7
	movl	16(%rsp), %r10d
	xorl	%r12d, %r12d
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%r11d, %r8d
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%esi, %ebx
	orl	%eax, %ebx
	jne	.L11
	movl	%edi, %edx
	addl	%r10d, %ecx
	subl	%r8d, %edx
	cmpl	$1, %edx
	je	.L31
.L12:
	addl	$1, %eax
.L29:
	movslq	%esi, %rdx
	movslq	%eax, %r9
	imulq	$110, %rdx, %rdx
	addq	%r9, %rdx
	addl	16(%rsp,%rdx,4), %ecx
	cmpl	%edi, %eax
	jl	.L18
	cmpl	%ecx, %r12d
	cmovl	%ecx, %r12d
	addl	$1, %r11d
	cmpl	%edi, %r11d
	jne	.L8
.L17:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	904(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$912, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movl	%edi, %edx
	subl	%r8d, %edx
	subl	$1, %edx
	cmpl	%eax, %edx
	jne	.L12
	addl	$1, %esi
	addl	$5, %r8d
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L31:
	addl	$5, %r8d
	addl	456(%rsp), %ecx
	movl	$1, %esi
	xorl	%eax, %eax
	jmp	.L18
.L7:
	xorl	%r12d, %r12d
	jmp	.L17
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```
```c
#include<stdio.h>
main()
{
    int n,a[2][110]={0};
    int i,j,k,p,sum=0,max=0;
    scanf("%d",&n);
    for(i=0;i<2;i++)
    {
        for(j=0;j<n;j++)
        {
            scanf("%d",&a[i][j]);
        }
    }
    for(k=0,p=0;k<n;k++,p++)
    {
        p=k;
        sum=0;
        for(i=0,j=0;i<2,j<n; )
        {
            if(i==0 && j==0)
            {
                sum=sum+a[i][j];
            }
            if(j!=n-p-1)
            {
                j++;
                sum=sum+a[i][j];
            }
            else if(j==n-p-1)
            {
                i++;
                p=p+5;
                sum=sum+a[i][j];
            }
        }
        if(sum>max)
        {
            max=sum;
        }
    }
    printf("%d",max);
    return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
main()
{
    int n,a[2][110]={0};
    int i,j,k,p,sum=0,max=0;
    scanf("%d",&n);
    for(i=0;i<2;i++)
    {
        for(j=0;j<n;j++)
        {
            scanf("%d",&a[i][j]);
        }
    }
    for(k=0,p=0;k<n;k++,p++)
    {
        p=k;
        sum=0;
        for(i=0,j=0;i<2,j<n; )
        {
            if(i==0 && j==0)
            {
                sum=sum+a[i][j];
            }
            if(j!=n-p-1)
            {
                j++;
                sum=sum+a[i][j];
            }
            else if(j==n-p-1)
            {
                i++;
                p=p+5;
                sum=sum+a[i][j];
            }
        }
        if(sum>max)
        {
            max=sum;
        }
    }
    printf("%d",max);
    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:

5
3 2 2 4 1
1 2 2 2 1

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

```c
#include<stdio.h>
main()
{
    int n,a[2][110]={0};
    int i,j,k,p,sum=0,max=0;
    scanf("%d",&n);
    for(i=0;i<2;i++)
    {
        for(j=0;j<n;j++)
        {
            scanf("%d",&a[i][j]);
        }
    }
    for(k=0,p=0;k<n;k++,p++)
    {
        p=k;
        sum=0;
        for(i=0,j=0;i<2,j<n; )
        {
            if(i==0 && j==0)
            {
                sum=sum+a[i][j];
            }
            if(j!=n-p-1)
            {
                j++;
                sum=sum+a[i][j];
            }
            else if(j==n-p-1)
            {
                i++;
                p=p+5;
                sum=sum+a[i][j];
            }
        }
        if(sum>max)
        {
            max=sum;
        }
    }
    printf("%d",max);
    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$110, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$912, %rsp
	.cfi_def_cfa_offset 944
	movq	%fs:40, %rax
	movq	%rax, 904(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	leaq	12(%rsp), %rsi
	movq	%r12, %rdi
	rep stosq
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebx, %eax
	jg	.L5
	testl	%eax, %eax
	jle	.L7
	leaq	456(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %r12
	cmpl	%ebx, %edi
	jg	.L9
	testl	%edi, %edi
	jle	.L7
	movl	16(%rsp), %r10d
	xorl	%r12d, %r12d
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%r11d, %r8d
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%esi, %ebx
	orl	%eax, %ebx
	jne	.L11
	movl	%edi, %edx
	addl	%r10d, %ecx
	subl	%r8d, %edx
	cmpl	$1, %edx
	je	.L31
.L12:
	addl	$1, %eax
.L29:
	movslq	%esi, %rdx
	movslq	%eax, %r9
	imulq	$110, %rdx, %rdx
	addq	%r9, %rdx
	addl	16(%rsp,%rdx,4), %ecx
	cmpl	%edi, %eax
	jl	.L18
	cmpl	%ecx, %r12d
	cmovl	%ecx, %r12d
	addl	$1, %r11d
	cmpl	%edi, %r11d
	jne	.L8
.L17:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	904(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$912, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movl	%edi, %edx
	subl	%r8d, %edx
	subl	$1, %edx
	cmpl	%eax, %edx
	jne	.L12
	addl	$1, %esi
	addl	$5, %r8d
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L31:
	addl	$5, %r8d
	addl	456(%rsp), %ecx
	movl	$1, %esi
	xorl	%eax, %eax
	jmp	.L18
.L7:
	xorl	%r12d, %r12d
	jmp	.L17
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$110, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	xorl	%ebx, %ebx
	subq	$912, %rsp
	.cfi_def_cfa_offset 944
	movq	%fs:40, %rax
	movq	%rax, 904(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r12
	leaq	12(%rsp), %rsi
	movq	%r12, %rdi
	rep stosq
	movq	%rbp, %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebx, %eax
	jg	.L5
	testl	%eax, %eax
	jle	.L7
	leaq	456(%rsp), %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	addq	$4, %r12
	cmpl	%ebx, %edi
	jg	.L9
	testl	%edi, %edi
	jle	.L7
	movl	16(%rsp), %r10d
	xorl	%r12d, %r12d
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%r11d, %r8d
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	xorl	%esi, %esi
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%esi, %ebx
	orl	%eax, %ebx
	jne	.L11
	movl	%edi, %edx
	addl	%r10d, %ecx
	subl	%r8d, %edx
	cmpl	$1, %edx
	je	.L31
.L12:
	addl	$1, %eax
.L29:
	movslq	%esi, %rdx
	movslq	%eax, %r9
	imulq	$110, %rdx, %rdx
	addq	%r9, %rdx
	addl	16(%rsp,%rdx,4), %ecx
	cmpl	%edi, %eax
	jl	.L18
	cmpl	%ecx, %r12d
	cmovl	%ecx, %r12d
	addl	$1, %r11d
	cmpl	%edi, %r11d
	jne	.L8
.L17:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	904(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$912, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	movl	%edi, %edx
	subl	%r8d, %edx
	subl	$1, %edx
	cmpl	%eax, %edx
	jne	.L12
	addl	$1, %esi
	addl	$5, %r8d
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L31:
	addl	$5, %r8d
	addl	456(%rsp), %ecx
	movl	$1, %esi
	xorl	%eax, %eax
	jmp	.L18
.L7:
	xorl	%r12d, %r12d
	jmp	.L17
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```