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>
#include <string.h>
#pragma warning(disable : 4996)

int main()
{
    int N,i,j;
    int a[2][100];
    int sum = 0;
    int answer = 0;

    scanf("%d", &N);

    for (i = 0; i < 2; i++) {
        for (j = 0; j < N; j++) {
            scanf("%d", &a[i][j]);
        }
    }


    for (i = 1; i <= N; i++) {
        sum = a[0][0];

        for (j = 1; j < i; j++) {
            sum += a[0][j];
        }

        sum += a[1][i-1];

        for (j = 0; j <N - i ; j++) {
            sum += a[1][i+j];
        }

        if (sum > answer)
            answer = sum;
    }

    printf("%d", answer);

    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:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	subq	$840, %rsp
	.cfi_def_cfa_offset 880
	movq	%fs:40, %rax
	movq	%rax, 824(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbx
	movq	%rbx, %r13
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r13
	cmpl	%r12d, %eax
	jg	.L5
	testl	%eax, %eax
	jle	.L8
	leaq	416(%rsp), %r13
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r11d
	addq	$4, %r13
	cmpl	%r12d, %r11d
	jg	.L9
	testl	%r11d, %r11d
	jle	.L8
	movl	16(%rsp), %r10d
	subl	$1, %r11d
	xorl	%r8d, %r8d
	addq	$20, %rbx
	movl	$1, %ecx
	leaq	420(%rsp), %rsi
	movl	%r10d, %edx
	movl	%ecx, %edi
	movl	%ecx, %r13d
	addl	-4(%rsi), %edx
	testl	%r11d, %r11d
	je	.L15
	.p2align 4,,10
	.p2align 3
.L41:
	leal	-1(%r11), %r9d
	cmpl	$2, %r9d
	jbe	.L24
	movl	%r11d, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rsi,%rax), %r12
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L17:
	movdqu	(%rax), %xmm3
	addq	$16, %rax
	paddd	%xmm3, %xmm0
	cmpq	%r12, %rax
	jne	.L17
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %edx
	movl	%r11d, %eax
	andl	$-4, %eax
	testb	$3, %r11b
	je	.L21
.L16:
	leal	0(%r13,%rax), %r12d
	movslq	%r12d, %r12
	addl	416(%rsp,%r12,4), %edx
	leal	1(%rax), %r12d
	cmpl	%r11d, %r12d
	jge	.L21
	addl	%r13d, %r12d
	addl	$2, %eax
	movslq	%r12d, %r12
	addl	416(%rsp,%r12,4), %edx
	cmpl	%r11d, %eax
	jge	.L21
	addl	%eax, %r13d
	movslq	%r13d, %r13
	addl	416(%rsp,%r13,4), %edx
.L21:
	cmpl	%edx, %r8d
	leal	-1(%rdi), %eax
	cmovl	%edx, %r8d
	cmpl	$2, %eax
	jbe	.L40
	leaq	20(%rsp), %rax
	pxor	%xmm0, %xmm0
	movl	%edi, %edx
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rbx, %rdx
	.p2align 4,,10
	.p2align 3
.L11:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rax, %rdx
	jne	.L11
	movdqa	%xmm0, %xmm1
	movl	%edi, %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
	addl	%r10d, %edx
	cmpl	%edi, %r11d
	je	.L14
.L19:
	movslq	%eax, %rdi
	addl	16(%rsp,%rdi,4), %edx
	leal	1(%rax), %edi
	cmpl	%ecx, %eax
	jge	.L14
	movslq	%edi, %r11
	addl	$2, %eax
	addl	16(%rsp,%r11,4), %edx
	cmpl	%ecx, %edi
	jge	.L14
	cltq
	addl	16(%rsp,%rax,4), %edx
.L14:
	addq	$1, %rcx
	movl	%r9d, %r11d
	addq	$4, %rsi
	addl	-4(%rsi), %edx
	movl	%ecx, %edi
	movl	%ecx, %r13d
	testl	%r11d, %r11d
	jne	.L41
.L15:
	cmpl	%r8d, %edx
	cmovl	%r8d, %edx
.L22:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$840, %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
.L40:
	.cfi_restore_state
	movl	%r10d, %edx
	movl	$1, %eax
	jmp	.L19
.L24:
	xorl	%eax, %eax
	jmp	.L16
.L8:
	xorl	%edx, %edx
	jmp	.L22
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	subq	$840, %rsp
	.cfi_def_cfa_offset 880
	movq	%fs:40, %rax
	movq	%rax, 824(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbx
	movq	%rbx, %r13
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r13
	cmpl	%r12d, %eax
	jg	.L5
	testl	%eax, %eax
	jle	.L8
	leaq	416(%rsp), %r13
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r11d
	addq	$4, %r13
	cmpl	%r12d, %r11d
	jg	.L9
	testl	%r11d, %r11d
	jle	.L8
	movl	16(%rsp), %r10d
	subl	$1, %r11d
	xorl	%r8d, %r8d
	addq	$20, %rbx
	movl	$1, %ecx
	leaq	420(%rsp), %rsi
	movl	%r10d, %edx
	movl	%ecx, %edi
	movl	%ecx, %r13d
	addl	-4(%rsi), %edx
	testl	%r11d, %r11d
	je	.L15
	.p2align 4,,10
	.p2align 3
.L41:
	leal	-1(%r11), %r9d
	cmpl	$2, %r9d
	jbe	.L24
	movl	%r11d, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rsi,%rax), %r12
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L17:
	movdqu	(%rax), %xmm3
	addq	$16, %rax
	paddd	%xmm3, %xmm0
	cmpq	%r12, %rax
	jne	.L17
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %edx
	movl	%r11d, %eax
	andl	$-4, %eax
	testb	$3, %r11b
	je	.L21
.L16:
	leal	0(%r13,%rax), %r12d
	movslq	%r12d, %r12
	addl	416(%rsp,%r12,4), %edx
	leal	1(%rax), %r12d
	cmpl	%r11d, %r12d
	jge	.L21
	addl	%r13d, %r12d
	addl	$2, %eax
	movslq	%r12d, %r12
	addl	416(%rsp,%r12,4), %edx
	cmpl	%r11d, %eax
	jge	.L21
	addl	%eax, %r13d
	movslq	%r13d, %r13
	addl	416(%rsp,%r13,4), %edx
.L21:
	cmpl	%edx, %r8d
	leal	-1(%rdi), %eax
	cmovl	%edx, %r8d
	cmpl	$2, %eax
	jbe	.L40
	leaq	20(%rsp), %rax
	pxor	%xmm0, %xmm0
	movl	%edi, %edx
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rbx, %rdx
	.p2align 4,,10
	.p2align 3
.L11:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rax, %rdx
	jne	.L11
	movdqa	%xmm0, %xmm1
	movl	%edi, %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
	addl	%r10d, %edx
	cmpl	%edi, %r11d
	je	.L14
.L19:
	movslq	%eax, %rdi
	addl	16(%rsp,%rdi,4), %edx
	leal	1(%rax), %edi
	cmpl	%ecx, %eax
	jge	.L14
	movslq	%edi, %r11
	addl	$2, %eax
	addl	16(%rsp,%r11,4), %edx
	cmpl	%ecx, %edi
	jge	.L14
	cltq
	addl	16(%rsp,%rax,4), %edx
.L14:
	addq	$1, %rcx
	movl	%r9d, %r11d
	addq	$4, %rsi
	addl	-4(%rsi), %edx
	movl	%ecx, %edi
	movl	%ecx, %r13d
	testl	%r11d, %r11d
	jne	.L41
.L15:
	cmpl	%r8d, %edx
	cmovl	%r8d, %edx
.L22:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$840, %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
.L40:
	.cfi_restore_state
	movl	%r10d, %edx
	movl	$1, %eax
	jmp	.L19
.L24:
	xorl	%eax, %eax
	jmp	.L16
.L8:
	xorl	%edx, %edx
	jmp	.L22
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	subq	$840, %rsp
	.cfi_def_cfa_offset 880
	movq	%fs:40, %rax
	movq	%rax, 824(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbx
	movq	%rbx, %r13
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r13
	cmpl	%r12d, %eax
	jg	.L5
	testl	%eax, %eax
	jle	.L8
	leaq	416(%rsp), %r13
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r11d
	addq	$4, %r13
	cmpl	%r12d, %r11d
	jg	.L9
	testl	%r11d, %r11d
	jle	.L8
	movl	16(%rsp), %r10d
	subl	$1, %r11d
	xorl	%r8d, %r8d
	addq	$20, %rbx
	movl	$1, %ecx
	leaq	420(%rsp), %rsi
	movl	%r10d, %edx
	movl	%ecx, %edi
	movl	%ecx, %r13d
	addl	-4(%rsi), %edx
	testl	%r11d, %r11d
	je	.L15
	.p2align 4,,10
	.p2align 3
.L41:
	leal	-1(%r11), %r9d
	cmpl	$2, %r9d
	jbe	.L24
	movl	%r11d, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rsi,%rax), %r12
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L17:
	movdqu	(%rax), %xmm3
	addq	$16, %rax
	paddd	%xmm3, %xmm0
	cmpq	%r12, %rax
	jne	.L17
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %edx
	movl	%r11d, %eax
	andl	$-4, %eax
	testb	$3, %r11b
	je	.L21
.L16:
	leal	0(%r13,%rax), %r12d
	movslq	%r12d, %r12
	addl	416(%rsp,%r12,4), %edx
	leal	1(%rax), %r12d
	cmpl	%r11d, %r12d
	jge	.L21
	addl	%r13d, %r12d
	addl	$2, %eax
	movslq	%r12d, %r12
	addl	416(%rsp,%r12,4), %edx
	cmpl	%r11d, %eax
	jge	.L21
	addl	%eax, %r13d
	movslq	%r13d, %r13
	addl	416(%rsp,%r13,4), %edx
.L21:
	cmpl	%edx, %r8d
	leal	-1(%rdi), %eax
	cmovl	%edx, %r8d
	cmpl	$2, %eax
	jbe	.L40
	leaq	20(%rsp), %rax
	pxor	%xmm0, %xmm0
	movl	%edi, %edx
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rbx, %rdx
	.p2align 4,,10
	.p2align 3
.L11:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rax, %rdx
	jne	.L11
	movdqa	%xmm0, %xmm1
	movl	%edi, %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
	addl	%r10d, %edx
	cmpl	%edi, %r11d
	je	.L14
.L19:
	movslq	%eax, %rdi
	addl	16(%rsp,%rdi,4), %edx
	leal	1(%rax), %edi
	cmpl	%ecx, %eax
	jge	.L14
	movslq	%edi, %r11
	addl	$2, %eax
	addl	16(%rsp,%r11,4), %edx
	cmpl	%ecx, %edi
	jge	.L14
	cltq
	addl	16(%rsp,%rax,4), %edx
.L14:
	addq	$1, %rcx
	movl	%r9d, %r11d
	addq	$4, %rsi
	addl	-4(%rsi), %edx
	movl	%ecx, %edi
	movl	%ecx, %r13d
	testl	%r11d, %r11d
	jne	.L41
.L15:
	cmpl	%r8d, %edx
	cmovl	%r8d, %edx
.L22:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$840, %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
.L40:
	.cfi_restore_state
	movl	%r10d, %edx
	movl	$1, %eax
	jmp	.L19
.L24:
	xorl	%eax, %eax
	jmp	.L16
.L8:
	xorl	%edx, %edx
	jmp	.L22
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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>
#include <string.h>
#pragma warning(disable : 4996)

int main()
{
    int N,i,j;
    int a[2][100];
    int sum = 0;
    int answer = 0;

    scanf("%d", &N);

    for (i = 0; i < 2; i++) {
        for (j = 0; j < N; j++) {
            scanf("%d", &a[i][j]);
        }
    }


    for (i = 1; i <= N; i++) {
        sum = a[0][0];

        for (j = 1; j < i; j++) {
            sum += a[0][j];
        }

        sum += a[1][i-1];

        for (j = 0; j <N - i ; j++) {
            sum += a[1][i+j];
        }

        if (sum > answer)
            answer = sum;
    }

    printf("%d", answer);

    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <string.h>
#pragma warning(disable : 4996)

int main()
{
    int N,i,j;
    int a[2][100];
    int sum = 0;
    int answer = 0;

    scanf("%d", &N);

    for (i = 0; i < 2; i++) {
        for (j = 0; j < N; j++) {
            scanf("%d", &a[i][j]);
        }
    }


    for (i = 1; i <= N; i++) {
        sum = a[0][0];

        for (j = 1; j < i; j++) {
            sum += a[0][j];
        }

        sum += a[1][i-1];

        for (j = 0; j <N - i ; j++) {
            sum += a[1][i+j];
        }

        if (sum > answer)
            answer = sum;
    }

    printf("%d", answer);

    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>
#include <string.h>
#pragma warning(disable : 4996)

int main()
{
    int N,i,j;
    int a[2][100];
    int sum = 0;
    int answer = 0;

    scanf("%d", &N);

    for (i = 0; i < 2; i++) {
        for (j = 0; j < N; j++) {
            scanf("%d", &a[i][j]);
        }
    }


    for (i = 1; i <= N; i++) {
        sum = a[0][0];

        for (j = 1; j < i; j++) {
            sum += a[0][j];
        }

        sum += a[1][i-1];

        for (j = 0; j <N - i ; j++) {
            sum += a[1][i+j];
        }

        if (sum > answer)
            answer = sum;
    }

    printf("%d", answer);

    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:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	subq	$840, %rsp
	.cfi_def_cfa_offset 880
	movq	%fs:40, %rax
	movq	%rax, 824(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbx
	movq	%rbx, %r13
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r13
	cmpl	%r12d, %eax
	jg	.L5
	testl	%eax, %eax
	jle	.L8
	leaq	416(%rsp), %r13
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r11d
	addq	$4, %r13
	cmpl	%r12d, %r11d
	jg	.L9
	testl	%r11d, %r11d
	jle	.L8
	movl	16(%rsp), %r10d
	subl	$1, %r11d
	xorl	%r8d, %r8d
	addq	$20, %rbx
	movl	$1, %ecx
	leaq	420(%rsp), %rsi
	movl	%r10d, %edx
	movl	%ecx, %edi
	movl	%ecx, %r13d
	addl	-4(%rsi), %edx
	testl	%r11d, %r11d
	je	.L15
	.p2align 4,,10
	.p2align 3
.L41:
	leal	-1(%r11), %r9d
	cmpl	$2, %r9d
	jbe	.L24
	movl	%r11d, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rsi,%rax), %r12
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L17:
	movdqu	(%rax), %xmm3
	addq	$16, %rax
	paddd	%xmm3, %xmm0
	cmpq	%r12, %rax
	jne	.L17
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %edx
	movl	%r11d, %eax
	andl	$-4, %eax
	testb	$3, %r11b
	je	.L21
.L16:
	leal	0(%r13,%rax), %r12d
	movslq	%r12d, %r12
	addl	416(%rsp,%r12,4), %edx
	leal	1(%rax), %r12d
	cmpl	%r11d, %r12d
	jge	.L21
	addl	%r13d, %r12d
	addl	$2, %eax
	movslq	%r12d, %r12
	addl	416(%rsp,%r12,4), %edx
	cmpl	%r11d, %eax
	jge	.L21
	addl	%eax, %r13d
	movslq	%r13d, %r13
	addl	416(%rsp,%r13,4), %edx
.L21:
	cmpl	%edx, %r8d
	leal	-1(%rdi), %eax
	cmovl	%edx, %r8d
	cmpl	$2, %eax
	jbe	.L40
	leaq	20(%rsp), %rax
	pxor	%xmm0, %xmm0
	movl	%edi, %edx
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rbx, %rdx
	.p2align 4,,10
	.p2align 3
.L11:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rax, %rdx
	jne	.L11
	movdqa	%xmm0, %xmm1
	movl	%edi, %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
	addl	%r10d, %edx
	cmpl	%edi, %r11d
	je	.L14
.L19:
	movslq	%eax, %rdi
	addl	16(%rsp,%rdi,4), %edx
	leal	1(%rax), %edi
	cmpl	%ecx, %eax
	jge	.L14
	movslq	%edi, %r11
	addl	$2, %eax
	addl	16(%rsp,%r11,4), %edx
	cmpl	%ecx, %edi
	jge	.L14
	cltq
	addl	16(%rsp,%rax,4), %edx
.L14:
	addq	$1, %rcx
	movl	%r9d, %r11d
	addq	$4, %rsi
	addl	-4(%rsi), %edx
	movl	%ecx, %edi
	movl	%ecx, %r13d
	testl	%r11d, %r11d
	jne	.L41
.L15:
	cmpl	%r8d, %edx
	cmovl	%r8d, %edx
.L22:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$840, %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
.L40:
	.cfi_restore_state
	movl	%r10d, %edx
	movl	$1, %eax
	jmp	.L19
.L24:
	xorl	%eax, %eax
	jmp	.L16
.L8:
	xorl	%edx, %edx
	jmp	.L22
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xorl	%r12d, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rbp, %rdi
	subq	$840, %rsp
	.cfi_def_cfa_offset 880
	movq	%fs:40, %rax
	movq	%rax, 824(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbx
	movq	%rbx, %r13
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r13
	cmpl	%r12d, %eax
	jg	.L5
	testl	%eax, %eax
	jle	.L8
	leaq	416(%rsp), %r13
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r11d
	addq	$4, %r13
	cmpl	%r12d, %r11d
	jg	.L9
	testl	%r11d, %r11d
	jle	.L8
	movl	16(%rsp), %r10d
	subl	$1, %r11d
	xorl	%r8d, %r8d
	addq	$20, %rbx
	movl	$1, %ecx
	leaq	420(%rsp), %rsi
	movl	%r10d, %edx
	movl	%ecx, %edi
	movl	%ecx, %r13d
	addl	-4(%rsi), %edx
	testl	%r11d, %r11d
	je	.L15
	.p2align 4,,10
	.p2align 3
.L41:
	leal	-1(%r11), %r9d
	cmpl	$2, %r9d
	jbe	.L24
	movl	%r11d, %eax
	pxor	%xmm0, %xmm0
	shrl	$2, %eax
	subl	$1, %eax
	salq	$4, %rax
	leaq	16(%rsi,%rax), %r12
	movq	%rsi, %rax
	.p2align 4,,10
	.p2align 3
.L17:
	movdqu	(%rax), %xmm3
	addq	$16, %rax
	paddd	%xmm3, %xmm0
	cmpq	%r12, %rax
	jne	.L17
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	addl	%eax, %edx
	movl	%r11d, %eax
	andl	$-4, %eax
	testb	$3, %r11b
	je	.L21
.L16:
	leal	0(%r13,%rax), %r12d
	movslq	%r12d, %r12
	addl	416(%rsp,%r12,4), %edx
	leal	1(%rax), %r12d
	cmpl	%r11d, %r12d
	jge	.L21
	addl	%r13d, %r12d
	addl	$2, %eax
	movslq	%r12d, %r12
	addl	416(%rsp,%r12,4), %edx
	cmpl	%r11d, %eax
	jge	.L21
	addl	%eax, %r13d
	movslq	%r13d, %r13
	addl	416(%rsp,%r13,4), %edx
.L21:
	cmpl	%edx, %r8d
	leal	-1(%rdi), %eax
	cmovl	%edx, %r8d
	cmpl	$2, %eax
	jbe	.L40
	leaq	20(%rsp), %rax
	pxor	%xmm0, %xmm0
	movl	%edi, %edx
	shrl	$2, %edx
	subl	$1, %edx
	salq	$4, %rdx
	addq	%rbx, %rdx
	.p2align 4,,10
	.p2align 3
.L11:
	movdqu	(%rax), %xmm2
	addq	$16, %rax
	paddd	%xmm2, %xmm0
	cmpq	%rax, %rdx
	jne	.L11
	movdqa	%xmm0, %xmm1
	movl	%edi, %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
	addl	%r10d, %edx
	cmpl	%edi, %r11d
	je	.L14
.L19:
	movslq	%eax, %rdi
	addl	16(%rsp,%rdi,4), %edx
	leal	1(%rax), %edi
	cmpl	%ecx, %eax
	jge	.L14
	movslq	%edi, %r11
	addl	$2, %eax
	addl	16(%rsp,%r11,4), %edx
	cmpl	%ecx, %edi
	jge	.L14
	cltq
	addl	16(%rsp,%rax,4), %edx
.L14:
	addq	$1, %rcx
	movl	%r9d, %r11d
	addq	$4, %rsi
	addl	-4(%rsi), %edx
	movl	%ecx, %edi
	movl	%ecx, %r13d
	testl	%r11d, %r11d
	jne	.L41
.L15:
	cmpl	%r8d, %edx
	cmovl	%r8d, %edx
.L22:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	824(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$840, %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
.L40:
	.cfi_restore_state
	movl	%r10d, %edx
	movl	$1, %eax
	jmp	.L19
.L24:
	xorl	%eax, %eax
	jmp	.L16
.L8:
	xorl	%edx, %edx
	jmp	.L22
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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:
```