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>

int main(){
	
	int N,a[3][110],i,j,ans=0,c;
	scanf("%d",&N);
	
	for(i=1;i<=2;i++){
		for(j=1;j<=N;j++){
			scanf("%d",&a[i][j]);
		}
	}
	
	for(i=1;i<=N;i++){
		c=0;
		for(j=1;j<=i;j++){
			c+=a[1][j];
		}
		for(j=i;j<=N;j++){
			c+=a[2][j];
		}
	if(ans<c){
		ans=c;
	}
	}
	
	printf("\n%d\n",ans);
	
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movl	$1, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$1344, %rsp
	.cfi_def_cfa_offset 1392
	movq	%fs:40, %rax
	movq	%rax, 1336(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	460(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebp, %eax
	jge	.L5
	testl	%eax, %eax
	jle	.L8
	leaq	900(%rsp), %rbp
	movl	$1, %r12d
	movq	%rbp, %r14
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r14
	cmpl	%r12d, %esi
	jge	.L9
	testl	%esi, %esi
	jle	.L8
	leal	1(%rsi), %edi
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movl	$1, %r9d
	leaq	476(%rsp), %r10
	.p2align 4,,10
	.p2align 3
.L17:
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L20
	movl	%ecx, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %edx
	movq	%rbx, %rax
	salq	$4, %rdx
	addq	%r10, %rdx
	.p2align 4,,10
	.p2align 3
.L12:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rdx, %rax
	jne	.L12
	movdqa	%xmm0, %xmm1
	movl	%ecx, %r11d
	psrldq	$8, %xmm1
	andl	$-4, %r11d
	paddd	%xmm1, %xmm0
	leal	1(%r11), %eax
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpl	%ecx, %r11d
	je	.L13
.L11:
	movslq	%eax, %r11
	addl	456(%rsp,%r11,4), %edx
	leal	1(%rax), %r11d
	cmpl	%r11d, %ecx
	jl	.L13
	movslq	%r11d, %r11
	addl	$2, %eax
	addl	456(%rsp,%r11,4), %edx
	cmpl	%eax, %ecx
	jl	.L13
	cltq
	addl	456(%rsp,%rax,4), %edx
.L13:
	movl	%edi, %r12d
	movl	%esi, %eax
	subl	%ecx, %r12d
	cmpl	%esi, %ecx
	cmovg	%r9d, %r12d
	subl	%ecx, %eax
	cmpl	$2, %eax
	jbe	.L21
	cmpl	%esi, %ecx
	jg	.L21
	movl	%r12d, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbp,%rax), %r11
	movq	%rbp, %rax
	.p2align 4,,10
	.p2align 3
.L15:
	movdqu	(%rax), %xmm3
	addq	$16, %rax
	paddd	%xmm3, %xmm0
	cmpq	%rax, %r11
	jne	.L15
	movdqa	%xmm0, %xmm1
	movl	%r12d, %r11d
	psrldq	$8, %xmm1
	andl	$-4, %r11d
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %edx
	leal	(%r11,%rcx), %eax
	cmpl	%r12d, %r11d
	je	.L16
.L14:
	movslq	%eax, %r11
	addl	896(%rsp,%r11,4), %edx
	leal	1(%rax), %r11d
	cmpl	%esi, %r11d
	jg	.L16
	movslq	%r11d, %r11
	addl	$2, %eax
	addl	896(%rsp,%r11,4), %edx
	cmpl	%esi, %eax
	jg	.L16
	cltq
	addl	896(%rsp,%rax,4), %edx
.L16:
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	addl	$1, %ecx
	addq	$4, %rbp
	cmpl	%edi, %ecx
	jne	.L17
.L18:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	1336(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$1344, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	movl	%ecx, %eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L20:
	xorl	%edx, %edx
	movl	$1, %eax
	jmp	.L11
.L8:
	xorl	%r8d, %r8d
	jmp	.L18
.L34:
	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"
.LC1:
	.string	"\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movl	$1, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$1344, %rsp
	.cfi_def_cfa_offset 1392
	movq	%fs:40, %rax
	movq	%rax, 1336(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	460(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebp, %eax
	jge	.L5
	testl	%eax, %eax
	jle	.L8
	leaq	900(%rsp), %rbp
	movl	$1, %r12d
	movq	%rbp, %r14
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r14
	cmpl	%r12d, %esi
	jge	.L9
	testl	%esi, %esi
	jle	.L8
	leal	1(%rsi), %edi
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movl	$1, %r9d
	leaq	476(%rsp), %r10
	.p2align 4,,10
	.p2align 3
.L17:
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L20
	movl	%ecx, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %edx
	movq	%rbx, %rax
	salq	$4, %rdx
	addq	%r10, %rdx
	.p2align 4,,10
	.p2align 3
.L12:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rdx, %rax
	jne	.L12
	movdqa	%xmm0, %xmm1
	movl	%ecx, %r11d
	psrldq	$8, %xmm1
	andl	$-4, %r11d
	paddd	%xmm1, %xmm0
	leal	1(%r11), %eax
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpl	%ecx, %r11d
	je	.L13
.L11:
	movslq	%eax, %r11
	addl	456(%rsp,%r11,4), %edx
	leal	1(%rax), %r11d
	cmpl	%r11d, %ecx
	jl	.L13
	movslq	%r11d, %r11
	addl	$2, %eax
	addl	456(%rsp,%r11,4), %edx
	cmpl	%eax, %ecx
	jl	.L13
	cltq
	addl	456(%rsp,%rax,4), %edx
.L13:
	movl	%edi, %r12d
	movl	%esi, %eax
	subl	%ecx, %r12d
	cmpl	%esi, %ecx
	cmovg	%r9d, %r12d
	subl	%ecx, %eax
	cmpl	$2, %eax
	jbe	.L21
	cmpl	%esi, %ecx
	jg	.L21
	movl	%r12d, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbp,%rax), %r11
	movq	%rbp, %rax
	.p2align 4,,10
	.p2align 3
.L15:
	movdqu	(%rax), %xmm3
	addq	$16, %rax
	paddd	%xmm3, %xmm0
	cmpq	%rax, %r11
	jne	.L15
	movdqa	%xmm0, %xmm1
	movl	%r12d, %r11d
	psrldq	$8, %xmm1
	andl	$-4, %r11d
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %edx
	leal	(%r11,%rcx), %eax
	cmpl	%r12d, %r11d
	je	.L16
.L14:
	movslq	%eax, %r11
	addl	896(%rsp,%r11,4), %edx
	leal	1(%rax), %r11d
	cmpl	%esi, %r11d
	jg	.L16
	movslq	%r11d, %r11
	addl	$2, %eax
	addl	896(%rsp,%r11,4), %edx
	cmpl	%esi, %eax
	jg	.L16
	cltq
	addl	896(%rsp,%rax,4), %edx
.L16:
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	addl	$1, %ecx
	addq	$4, %rbp
	cmpl	%edi, %ecx
	jne	.L17
.L18:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	1336(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$1344, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	movl	%ecx, %eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L20:
	xorl	%edx, %edx
	movl	$1, %eax
	jmp	.L11
.L8:
	xorl	%r8d, %r8d
	jmp	.L18
.L34:
	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"
.LC1:
	.string	"\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movl	$1, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$1344, %rsp
	.cfi_def_cfa_offset 1392
	movq	%fs:40, %rax
	movq	%rax, 1336(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	460(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebp, %eax
	jge	.L5
	testl	%eax, %eax
	jle	.L8
	leaq	900(%rsp), %rbp
	movl	$1, %r12d
	movq	%rbp, %r14
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r14
	cmpl	%r12d, %esi
	jge	.L9
	testl	%esi, %esi
	jle	.L8
	leal	1(%rsi), %edi
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movl	$1, %r9d
	leaq	476(%rsp), %r10
	.p2align 4,,10
	.p2align 3
.L17:
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L20
	movl	%ecx, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %edx
	movq	%rbx, %rax
	salq	$4, %rdx
	addq	%r10, %rdx
	.p2align 4,,10
	.p2align 3
.L12:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rdx, %rax
	jne	.L12
	movdqa	%xmm0, %xmm1
	movl	%ecx, %r11d
	psrldq	$8, %xmm1
	andl	$-4, %r11d
	paddd	%xmm1, %xmm0
	leal	1(%r11), %eax
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpl	%ecx, %r11d
	je	.L13
.L11:
	movslq	%eax, %r11
	addl	456(%rsp,%r11,4), %edx
	leal	1(%rax), %r11d
	cmpl	%r11d, %ecx
	jl	.L13
	movslq	%r11d, %r11
	addl	$2, %eax
	addl	456(%rsp,%r11,4), %edx
	cmpl	%eax, %ecx
	jl	.L13
	cltq
	addl	456(%rsp,%rax,4), %edx
.L13:
	movl	%edi, %r12d
	movl	%esi, %eax
	subl	%ecx, %r12d
	cmpl	%esi, %ecx
	cmovg	%r9d, %r12d
	subl	%ecx, %eax
	cmpl	$2, %eax
	jbe	.L21
	cmpl	%esi, %ecx
	jg	.L21
	movl	%r12d, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbp,%rax), %r11
	movq	%rbp, %rax
	.p2align 4,,10
	.p2align 3
.L15:
	movdqu	(%rax), %xmm3
	addq	$16, %rax
	paddd	%xmm3, %xmm0
	cmpq	%rax, %r11
	jne	.L15
	movdqa	%xmm0, %xmm1
	movl	%r12d, %r11d
	psrldq	$8, %xmm1
	andl	$-4, %r11d
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %edx
	leal	(%r11,%rcx), %eax
	cmpl	%r12d, %r11d
	je	.L16
.L14:
	movslq	%eax, %r11
	addl	896(%rsp,%r11,4), %edx
	leal	1(%rax), %r11d
	cmpl	%esi, %r11d
	jg	.L16
	movslq	%r11d, %r11
	addl	$2, %eax
	addl	896(%rsp,%r11,4), %edx
	cmpl	%esi, %eax
	jg	.L16
	cltq
	addl	896(%rsp,%rax,4), %edx
.L16:
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	addl	$1, %ecx
	addq	$4, %rbp
	cmpl	%edi, %ecx
	jne	.L17
.L18:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	1336(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$1344, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	movl	%ecx, %eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L20:
	xorl	%edx, %edx
	movl	$1, %eax
	jmp	.L11
.L8:
	xorl	%r8d, %r8d
	jmp	.L18
.L34:
	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>

int main(){
	
	int N,a[3][110],i,j,ans=0,c;
	scanf("%d",&N);
	
	for(i=1;i<=2;i++){
		for(j=1;j<=N;j++){
			scanf("%d",&a[i][j]);
		}
	}
	
	for(i=1;i<=N;i++){
		c=0;
		for(j=1;j<=i;j++){
			c+=a[1][j];
		}
		for(j=i;j<=N;j++){
			c+=a[2][j];
		}
	if(ans<c){
		ans=c;
	}
	}
	
	printf("\n%d\n",ans);
	
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>

int main(){
	
	int N,a[3][110],i,j,ans=0,c;
	scanf("%d",&N);
	
	for(i=1;i<=2;i++){
		for(j=1;j<=N;j++){
			scanf("%d",&a[i][j]);
		}
	}
	
	for(i=1;i<=N;i++){
		c=0;
		for(j=1;j<=i;j++){
			c+=a[1][j];
		}
		for(j=i;j<=N;j++){
			c+=a[2][j];
		}
	if(ans<c){
		ans=c;
	}
	}
	
	printf("\n%d\n",ans);
	
	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:

7
3 3 4 5 4 5 3
5 3 8 4 2 3 2
 1
2
6
 5
3 2 2 4 1
0 2 2 2 1
 4
1 1 0 1
1 1 1 1
 7
3 3 4 5 4 5 3
5 3 8 4 2 5 2
 4
1 1 0 1
1 1 0 1
 7
3 3 4 5 4 5 3
5 3 8 4 0 5 2
 1
2
7
 5
3 2 0 4 1
0 2 1 2 1
 7
3 3 4 5 4 5 3
5 3 15 4 0 5 2


30
 
8
 
14
 
5
 
32
 
4
 
31
 
9
 
12
 
37

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>

int main(){
	
	int N,a[3][110],i,j,ans=0,c;
	scanf("%d",&N);
	
	for(i=1;i<=2;i++){
		for(j=1;j<=N;j++){
			scanf("%d",&a[i][j]);
		}
	}
	
	for(i=1;i<=N;i++){
		c=0;
		for(j=1;j<=i;j++){
			c+=a[1][j];
		}
		for(j=i;j<=N;j++){
			c+=a[2][j];
		}
	if(ans<c){
		ans=c;
	}
	}
	
	printf("\n%d\n",ans);
	
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movl	$1, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$1344, %rsp
	.cfi_def_cfa_offset 1392
	movq	%fs:40, %rax
	movq	%rax, 1336(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	460(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebp, %eax
	jge	.L5
	testl	%eax, %eax
	jle	.L8
	leaq	900(%rsp), %rbp
	movl	$1, %r12d
	movq	%rbp, %r14
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r14
	cmpl	%r12d, %esi
	jge	.L9
	testl	%esi, %esi
	jle	.L8
	leal	1(%rsi), %edi
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movl	$1, %r9d
	leaq	476(%rsp), %r10
	.p2align 4,,10
	.p2align 3
.L17:
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L20
	movl	%ecx, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %edx
	movq	%rbx, %rax
	salq	$4, %rdx
	addq	%r10, %rdx
	.p2align 4,,10
	.p2align 3
.L12:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rdx, %rax
	jne	.L12
	movdqa	%xmm0, %xmm1
	movl	%ecx, %r11d
	psrldq	$8, %xmm1
	andl	$-4, %r11d
	paddd	%xmm1, %xmm0
	leal	1(%r11), %eax
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpl	%ecx, %r11d
	je	.L13
.L11:
	movslq	%eax, %r11
	addl	456(%rsp,%r11,4), %edx
	leal	1(%rax), %r11d
	cmpl	%r11d, %ecx
	jl	.L13
	movslq	%r11d, %r11
	addl	$2, %eax
	addl	456(%rsp,%r11,4), %edx
	cmpl	%eax, %ecx
	jl	.L13
	cltq
	addl	456(%rsp,%rax,4), %edx
.L13:
	movl	%edi, %r12d
	movl	%esi, %eax
	subl	%ecx, %r12d
	cmpl	%esi, %ecx
	cmovg	%r9d, %r12d
	subl	%ecx, %eax
	cmpl	$2, %eax
	jbe	.L21
	cmpl	%esi, %ecx
	jg	.L21
	movl	%r12d, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbp,%rax), %r11
	movq	%rbp, %rax
	.p2align 4,,10
	.p2align 3
.L15:
	movdqu	(%rax), %xmm3
	addq	$16, %rax
	paddd	%xmm3, %xmm0
	cmpq	%rax, %r11
	jne	.L15
	movdqa	%xmm0, %xmm1
	movl	%r12d, %r11d
	psrldq	$8, %xmm1
	andl	$-4, %r11d
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %edx
	leal	(%r11,%rcx), %eax
	cmpl	%r12d, %r11d
	je	.L16
.L14:
	movslq	%eax, %r11
	addl	896(%rsp,%r11,4), %edx
	leal	1(%rax), %r11d
	cmpl	%esi, %r11d
	jg	.L16
	movslq	%r11d, %r11
	addl	$2, %eax
	addl	896(%rsp,%r11,4), %edx
	cmpl	%esi, %eax
	jg	.L16
	cltq
	addl	896(%rsp,%rax,4), %edx
.L16:
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	addl	$1, %ecx
	addq	$4, %rbp
	cmpl	%edi, %ecx
	jne	.L17
.L18:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	1336(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$1344, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	movl	%ecx, %eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L20:
	xorl	%edx, %edx
	movl	$1, %eax
	jmp	.L11
.L8:
	xorl	%r8d, %r8d
	jmp	.L18
.L34:
	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"
.LC1:
	.string	"\n%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	movl	$1, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$1344, %rsp
	.cfi_def_cfa_offset 1392
	movq	%fs:40, %rax
	movq	%rax, 1336(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	460(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebp, %eax
	jge	.L5
	testl	%eax, %eax
	jle	.L8
	leaq	900(%rsp), %rbp
	movl	$1, %r12d
	movq	%rbp, %r14
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	addq	$4, %r14
	cmpl	%r12d, %esi
	jge	.L9
	testl	%esi, %esi
	jle	.L8
	leal	1(%rsi), %edi
	xorl	%r8d, %r8d
	movl	$1, %ecx
	movl	$1, %r9d
	leaq	476(%rsp), %r10
	.p2align 4,,10
	.p2align 3
.L17:
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L20
	movl	%ecx, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	leal	-1(%rax), %edx
	movq	%rbx, %rax
	salq	$4, %rdx
	addq	%r10, %rdx
	.p2align 4,,10
	.p2align 3
.L12:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rdx, %rax
	jne	.L12
	movdqa	%xmm0, %xmm1
	movl	%ecx, %r11d
	psrldq	$8, %xmm1
	andl	$-4, %r11d
	paddd	%xmm1, %xmm0
	leal	1(%r11), %eax
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpl	%ecx, %r11d
	je	.L13
.L11:
	movslq	%eax, %r11
	addl	456(%rsp,%r11,4), %edx
	leal	1(%rax), %r11d
	cmpl	%r11d, %ecx
	jl	.L13
	movslq	%r11d, %r11
	addl	$2, %eax
	addl	456(%rsp,%r11,4), %edx
	cmpl	%eax, %ecx
	jl	.L13
	cltq
	addl	456(%rsp,%rax,4), %edx
.L13:
	movl	%edi, %r12d
	movl	%esi, %eax
	subl	%ecx, %r12d
	cmpl	%esi, %ecx
	cmovg	%r9d, %r12d
	subl	%ecx, %eax
	cmpl	$2, %eax
	jbe	.L21
	cmpl	%esi, %ecx
	jg	.L21
	movl	%r12d, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rbp,%rax), %r11
	movq	%rbp, %rax
	.p2align 4,,10
	.p2align 3
.L15:
	movdqu	(%rax), %xmm3
	addq	$16, %rax
	paddd	%xmm3, %xmm0
	cmpq	%rax, %r11
	jne	.L15
	movdqa	%xmm0, %xmm1
	movl	%r12d, %r11d
	psrldq	$8, %xmm1
	andl	$-4, %r11d
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %edx
	leal	(%r11,%rcx), %eax
	cmpl	%r12d, %r11d
	je	.L16
.L14:
	movslq	%eax, %r11
	addl	896(%rsp,%r11,4), %edx
	leal	1(%rax), %r11d
	cmpl	%esi, %r11d
	jg	.L16
	movslq	%r11d, %r11
	addl	$2, %eax
	addl	896(%rsp,%r11,4), %edx
	cmpl	%esi, %eax
	jg	.L16
	cltq
	addl	896(%rsp,%rax,4), %edx
.L16:
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	addl	$1, %ecx
	addq	$4, %rbp
	cmpl	%edi, %ecx
	jne	.L17
.L18:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	1336(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L34
	addq	$1344, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	movl	%ecx, %eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L20:
	xorl	%edx, %edx
	movl	$1, %eax
	jmp	.L11
.L8:
	xorl	%r8d, %r8d
	jmp	.L18
.L34:
	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:
```