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

```c
#include <stdio.h>
int main(void){
    int N, i, X, Y, ans;
    int V[50];
    int C[50];
    
    scanf("%d", &N);
    ans= 0;
    X =0;
    Y = 0;
    
    for(i = 0; i < N; i++){
        scanf("%d", &V[i]);
        //printf("%d\n", V[i]);
    }
    
    for(i = 0; i < N; i++){
        scanf("%d", &C[i]);
        //printf("%d\n", C[i]);
    }
    
    for(i = 0; i < N; i++){
        if(V[i]>C[i]){
            X = X + V[i];
            
            Y = Y + C[i];
            
        }
    }
    
    
    ans = X - Y;
    printf("%d", ans);
    
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.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	$448, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-436(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -420(%rbp)
	movl	$0, -428(%rbp)
	movl	$0, -424(%rbp)
	movl	$0, -432(%rbp)
	jmp	.L2
.L3:
	leaq	-416(%rbp), %rdx
	movl	-432(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -432(%rbp)
.L2:
	movl	-436(%rbp), %eax
	cmpl	%eax, -432(%rbp)
	jl	.L3
	movl	$0, -432(%rbp)
	jmp	.L4
.L5:
	leaq	-208(%rbp), %rdx
	movl	-432(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -432(%rbp)
.L4:
	movl	-436(%rbp), %eax
	cmpl	%eax, -432(%rbp)
	jl	.L5
	movl	$0, -432(%rbp)
	jmp	.L6
.L8:
	movl	-432(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-432(%rbp), %eax
	cltq
	movl	-208(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L7
	movl	-432(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	addl	%eax, -428(%rbp)
	movl	-432(%rbp), %eax
	cltq
	movl	-208(%rbp,%rax,4), %eax
	addl	%eax, -424(%rbp)
.L7:
	addl	$1, -432(%rbp)
.L6:
	movl	-436(%rbp), %eax
	cmpl	%eax, -432(%rbp)
	jl	.L8
	movl	-428(%rbp), %eax
	subl	-424(%rbp), %eax
	movl	%eax, -420(%rbp)
	movl	-420(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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"
	.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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$432, %rsp
	.cfi_def_cfa_offset 464
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L3
	testl	%eax, %eax
	jle	.L5
	leaq	224(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L4
	testl	%eax, %eax
	jle	.L5
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L15
	movdqa	16(%rsp), %xmm0
	movl	%eax, %edx
	shrl	$2, %edx
	movdqa	%xmm0, %xmm1
	pcmpgtd	224(%rsp), %xmm1
	pand	%xmm1, %xmm0
	pand	224(%rsp), %xmm1
	cmpl	$1, %edx
	je	.L7
	movdqa	32(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	240(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	240(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$2, %edx
	je	.L7
	movdqa	48(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	256(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	256(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$3, %edx
	je	.L7
	movdqa	64(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	272(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	272(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$4, %edx
	je	.L7
	movdqa	80(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	288(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	288(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$5, %edx
	je	.L7
	movdqa	96(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	304(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	304(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$6, %edx
	je	.L7
	movdqa	112(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	320(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	320(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$7, %edx
	je	.L7
	movdqa	128(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	336(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	336(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$8, %edx
	je	.L7
	movdqa	144(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	352(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	352(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$9, %edx
	je	.L7
	movdqa	160(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	368(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	368(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$10, %edx
	je	.L7
	movdqa	176(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	384(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	384(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$11, %edx
	je	.L7
	movdqa	192(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	400(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	400(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm2
	movl	%eax, %ecx
	psrldq	$8, %xmm2
	andl	$-4, %ecx
	paddd	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	paddd	%xmm2, %xmm1
	movd	%xmm1, %edi
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testb	$3, %al
	je	.L13
.L6:
	movslq	%ecx, %rsi
	movl	16(%rsp,%rsi,4), %r8d
	movl	224(%rsp,%rsi,4), %esi
	cmpl	%r8d, %esi
	jl	.L54
.L9:
	leal	1(%rcx), %esi
	cmpl	%esi, %eax
	jle	.L13
	movslq	%esi, %rsi
	movl	16(%rsp,%rsi,4), %r8d
	movl	224(%rsp,%rsi,4), %esi
	cmpl	%esi, %r8d
	jg	.L55
.L10:
	addl	$2, %ecx
	cmpl	%ecx, %eax
	jle	.L13
	movslq	%ecx, %rcx
	movl	16(%rsp,%rcx,4), %esi
	movl	224(%rsp,%rcx,4), %eax
	cmpl	%eax, %esi
	jg	.L56
.L13:
	subl	%edi, %edx
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L57
	addq	$432, %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
.L54:
	.cfi_restore_state
	addl	%r8d, %edx
	addl	%esi, %edi
	jmp	.L9
.L55:
	addl	%r8d, %edx
	addl	%esi, %edi
	jmp	.L10
.L56:
	addl	%esi, %edx
	addl	%eax, %edi
	jmp	.L13
.L5:
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L13
.L15:
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L6
.L57:
	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
	.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
	leaq	.LC0(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	movq	%r12, %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$432, %rsp
	.cfi_def_cfa_offset 464
	movq	%fs:40, %rax
	movq	%rax, 424(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	leaq	16(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L3
	testl	%eax, %eax
	jle	.L5
	leaq	224(%rsp), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L4
	testl	%eax, %eax
	jle	.L5
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L15
	movdqa	16(%rsp), %xmm0
	movl	%eax, %edx
	shrl	$2, %edx
	movdqa	%xmm0, %xmm1
	pcmpgtd	224(%rsp), %xmm1
	pand	%xmm1, %xmm0
	pand	224(%rsp), %xmm1
	cmpl	$1, %edx
	je	.L7
	movdqa	32(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	240(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	240(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$2, %edx
	je	.L7
	movdqa	48(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	256(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	256(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$3, %edx
	je	.L7
	movdqa	64(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	272(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	272(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$4, %edx
	je	.L7
	movdqa	80(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	288(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	288(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$5, %edx
	je	.L7
	movdqa	96(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	304(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	304(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$6, %edx
	je	.L7
	movdqa	112(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	320(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	320(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$7, %edx
	je	.L7
	movdqa	128(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	336(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	336(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$8, %edx
	je	.L7
	movdqa	144(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	352(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	352(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$9, %edx
	je	.L7
	movdqa	160(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	368(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	368(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$10, %edx
	je	.L7
	movdqa	176(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	384(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	384(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$11, %edx
	je	.L7
	movdqa	192(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	400(%rsp), %xmm2
	pand	%xmm2, %xmm3
	pand	400(%rsp), %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm1, %xmm2
	movl	%eax, %ecx
	psrldq	$8, %xmm2
	andl	$-4, %ecx
	paddd	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	paddd	%xmm2, %xmm1
	movd	%xmm1, %edi
	movdqa	%xmm0, %xmm1
	psrldq	$8, %xmm1
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	testb	$3, %al
	je	.L13
.L6:
	movslq	%ecx, %rsi
	movl	16(%rsp,%rsi,4), %r8d
	movl	224(%rsp,%rsi,4), %esi
	cmpl	%r8d, %esi
	jl	.L54
.L9:
	leal	1(%rcx), %esi
	cmpl	%esi, %eax
	jle	.L13
	movslq	%esi, %rsi
	movl	16(%rsp,%rsi,4), %r8d
	movl	224(%rsp,%rsi,4), %esi
	cmpl	%esi, %r8d
	jg	.L55
.L10:
	addl	$2, %ecx
	cmpl	%ecx, %eax
	jle	.L13
	movslq	%ecx, %rcx
	movl	16(%rsp,%rcx,4), %esi
	movl	224(%rsp,%rcx,4), %eax
	cmpl	%eax, %esi
	jg	.L56
.L13:
	subl	%edi, %edx
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	424(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L57
	addq	$432, %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
.L54:
	.cfi_restore_state
	addl	%r8d, %edx
	addl	%esi, %edi
	jmp	.L9
.L55:
	addl	%r8d, %edx
	addl	%esi, %edi
	jmp	.L10
.L56:
	addl	%esi, %edx
	addl	%eax, %edi
	jmp	.L13
.L5:
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L13
.L15:
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L6
.L57:
	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:

#include <stdio.h>
int main(void){
    int N, i, X, Y, ans;
    int V[50];
    int C[50];
    
    scanf("%d", &N);
    ans= 0;
    X =0;
    Y = 0;
    
    for(i = 0; i < N; i++){
        scanf("%d", &V[i]);
        //printf("%d\n", V[i]);
    }
    
    for(i = 0; i < N; i++){
        scanf("%d", &C[i]);
        //printf("%d\n", C[i]);
    }
    
    for(i = 0; i < N; i++){
        if(V[i]>C[i]){
            X = X + V[i];
            
            Y = Y + C[i];
            
        }
    }
    
    
    ans = X - Y;
    printf("%d", ans);
    
}

4
13 21 6 19
11 30 6 10
 3
10 2 5
6 5 4
 1
1
45
 4
13 21 6 19
0 30 6 10
 3
10 2 5
12 5 4
 4
13 21 11 19
0 30 6 10
 4
13 21 11 19
-1 30 6 10
 3
10 1 5
12 5 1
 4
13 21 11 26
-1 30 6 10
 4
13 21 11 26
-1 30 11 10

11 5 0 22 1 27 28 4 35 30
Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
int main(void){
    int N, i, X, Y, ans;
    int V[50];
    int C[50];
    
    scanf("%d", &N);
    ans= 0;
    X =0;
    Y = 0;
    
    for(i = 0; i < N; i++){
        scanf("%d", &V[i]);
        //printf("%d\n", V[i]);
    }
    
    for(i = 0; i < N; i++){
        scanf("%d", &C[i]);
        //printf("%d\n", C[i]);
    }
    
    for(i = 0; i < N; i++){
        if(V[i]>C[i]){
            X = X + V[i];
            
            Y = Y + C[i];
            
        }
    }
    
    
    ans = X - Y;
    printf("%d", ans);
    
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.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	$448, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-436(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -420(%rbp)
	movl	$0, -428(%rbp)
	movl	$0, -424(%rbp)
	movl	$0, -432(%rbp)
	jmp	.L2
.L3:
	leaq	-416(%rbp), %rdx
	movl	-432(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -432(%rbp)
.L2:
	movl	-436(%rbp), %eax
	cmpl	%eax, -432(%rbp)
	jl	.L3
	movl	$0, -432(%rbp)
	jmp	.L4
.L5:
	leaq	-208(%rbp), %rdx
	movl	-432(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -432(%rbp)
.L4:
	movl	-436(%rbp), %eax
	cmpl	%eax, -432(%rbp)
	jl	.L5
	movl	$0, -432(%rbp)
	jmp	.L6
.L8:
	movl	-432(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-432(%rbp), %eax
	cltq
	movl	-208(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L7
	movl	-432(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	addl	%eax, -428(%rbp)
	movl	-432(%rbp), %eax
	cltq
	movl	-208(%rbp,%rax,4), %eax
	addl	%eax, -424(%rbp)
.L7:
	addl	$1, -432(%rbp)
.L6:
	movl	-436(%rbp), %eax
	cmpl	%eax, -432(%rbp)
	jl	.L8
	movl	-428(%rbp), %eax
	subl	-424(%rbp), %eax
	movl	%eax, -420(%rbp)
	movl	-420(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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
	.section	.rodata
.LC0:
	.string	"%d"
	.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	$448, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-436(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -420(%rbp)
	movl	$0, -428(%rbp)
	movl	$0, -424(%rbp)
	movl	$0, -432(%rbp)
	jmp	.L2
.L3:
	leaq	-416(%rbp), %rdx
	movl	-432(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -432(%rbp)
.L2:
	movl	-436(%rbp), %eax
	cmpl	%eax, -432(%rbp)
	jl	.L3
	movl	$0, -432(%rbp)
	jmp	.L4
.L5:
	leaq	-208(%rbp), %rdx
	movl	-432(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -432(%rbp)
.L4:
	movl	-436(%rbp), %eax
	cmpl	%eax, -432(%rbp)
	jl	.L5
	movl	$0, -432(%rbp)
	jmp	.L6
.L8:
	movl	-432(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %edx
	movl	-432(%rbp), %eax
	cltq
	movl	-208(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jle	.L7
	movl	-432(%rbp), %eax
	cltq
	movl	-416(%rbp,%rax,4), %eax
	addl	%eax, -428(%rbp)
	movl	-432(%rbp), %eax
	cltq
	movl	-208(%rbp,%rax,4), %eax
	addl	%eax, -424(%rbp)
.L7:
	addl	$1, -432(%rbp)
.L6:
	movl	-436(%rbp), %eax
	cmpl	%eax, -432(%rbp)
	jl	.L8
	movl	-428(%rbp), %eax
	subl	-424(%rbp), %eax
	movl	%eax, -420(%rbp)
	movl	-420(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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:
