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(void)
{
    int n,v[21],c[21],i,vs=0,cs=0,ans;
    scanf("%d",&n);
    for(i=1;i<=n;i++)
        scanf("%d",&v[i]);
    for(i=1;i<=n;i++)
        scanf("%d",&c[i]);
    for(i=1;i<=n;i++)
        if(v[i]>c[i]){
            vs+=v[i];
            cs+=c[i];
        }
    ans=vs-cs;
    printf("%d\n",ans);
    return 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:
.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	$208, %rsp
	.cfi_def_cfa_offset 240
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	leaq	20(%rsp), %rbp
	movl	$1, %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
	jge	.L3
	testl	%eax, %eax
	jle	.L5
	leaq	116(%rsp), %rbp
	movl	$1, %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
	jge	.L4
	testl	%eax, %eax
	jle	.L5
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L15
	movdqu	20(%rsp), %xmm0
	movdqu	116(%rsp), %xmm4
	movl	%eax, %edx
	shrl	$2, %edx
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm4, %xmm1
	pand	%xmm1, %xmm0
	pand	%xmm4, %xmm1
	cmpl	$1, %edx
	je	.L7
	movdqu	132(%rsp), %xmm6
	movdqu	36(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm6, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm6, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$2, %edx
	je	.L7
	movdqu	148(%rsp), %xmm6
	movdqu	52(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm6, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm6, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$3, %edx
	je	.L7
	movdqu	164(%rsp), %xmm4
	movdqu	68(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm4, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm4, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$4, %edx
	je	.L7
	movdqu	180(%rsp), %xmm6
	movdqu	84(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm6, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm6, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
.L7:
	movdqa	%xmm1, %xmm2
	movl	%eax, %esi
	psrldq	$8, %xmm2
	andl	$-4, %esi
	paddd	%xmm2, %xmm1
	leal	1(%rsi), %ecx
	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
	cmpl	%esi, %eax
	je	.L13
.L6:
	movslq	%ecx, %rsi
	movl	16(%rsp,%rsi,4), %r8d
	movl	112(%rsp,%rsi,4), %esi
	cmpl	%r8d, %esi
	jl	.L33
.L9:
	leal	1(%rcx), %esi
	cmpl	%esi, %eax
	jl	.L13
	movslq	%esi, %rsi
	movl	16(%rsp,%rsi,4), %r8d
	movl	112(%rsp,%rsi,4), %esi
	cmpl	%esi, %r8d
	jg	.L34
.L10:
	addl	$2, %ecx
	cmpl	%ecx, %eax
	jl	.L13
	movslq	%ecx, %rcx
	movl	16(%rsp,%rcx,4), %esi
	movl	112(%rsp,%rcx,4), %eax
	cmpl	%eax, %esi
	jg	.L35
.L13:
	subl	%edi, %edx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$208, %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
.L33:
	.cfi_restore_state
	addl	%r8d, %edx
	addl	%esi, %edi
	jmp	.L9
.L34:
	addl	%r8d, %edx
	addl	%esi, %edi
	jmp	.L10
.L35:
	addl	%esi, %edx
	addl	%eax, %edi
	jmp	.L13
.L5:
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L13
.L15:
	xorl	%edi, %edi
	xorl	%edx, %edx
	movl	$1, %ecx
	jmp	.L6
.L36:
	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	"%d\n"
	.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	$208, %rsp
	.cfi_def_cfa_offset 240
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	leaq	20(%rsp), %rbp
	movl	$1, %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
	jge	.L3
	testl	%eax, %eax
	jle	.L5
	leaq	116(%rsp), %rbp
	movl	$1, %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
	jge	.L4
	testl	%eax, %eax
	jle	.L5
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L15
	movdqu	20(%rsp), %xmm0
	movdqu	116(%rsp), %xmm4
	movl	%eax, %edx
	shrl	$2, %edx
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm4, %xmm1
	pand	%xmm1, %xmm0
	pand	%xmm4, %xmm1
	cmpl	$1, %edx
	je	.L7
	movdqu	132(%rsp), %xmm6
	movdqu	36(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm6, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm6, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$2, %edx
	je	.L7
	movdqu	148(%rsp), %xmm6
	movdqu	52(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm6, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm6, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$3, %edx
	je	.L7
	movdqu	164(%rsp), %xmm4
	movdqu	68(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm4, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm4, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$4, %edx
	je	.L7
	movdqu	180(%rsp), %xmm6
	movdqu	84(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm6, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm6, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
.L7:
	movdqa	%xmm1, %xmm2
	movl	%eax, %esi
	psrldq	$8, %xmm2
	andl	$-4, %esi
	paddd	%xmm2, %xmm1
	leal	1(%rsi), %ecx
	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
	cmpl	%esi, %eax
	je	.L13
.L6:
	movslq	%ecx, %rsi
	movl	16(%rsp,%rsi,4), %r8d
	movl	112(%rsp,%rsi,4), %esi
	cmpl	%r8d, %esi
	jl	.L33
.L9:
	leal	1(%rcx), %esi
	cmpl	%esi, %eax
	jl	.L13
	movslq	%esi, %rsi
	movl	16(%rsp,%rsi,4), %r8d
	movl	112(%rsp,%rsi,4), %esi
	cmpl	%esi, %r8d
	jg	.L34
.L10:
	addl	$2, %ecx
	cmpl	%ecx, %eax
	jl	.L13
	movslq	%ecx, %rcx
	movl	16(%rsp,%rcx,4), %esi
	movl	112(%rsp,%rcx,4), %eax
	cmpl	%eax, %esi
	jg	.L35
.L13:
	subl	%edi, %edx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$208, %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
.L33:
	.cfi_restore_state
	addl	%r8d, %edx
	addl	%esi, %edi
	jmp	.L9
.L34:
	addl	%r8d, %edx
	addl	%esi, %edi
	jmp	.L10
.L35:
	addl	%esi, %edx
	addl	%eax, %edi
	jmp	.L13
.L5:
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L13
.L15:
	xorl	%edi, %edi
	xorl	%edx, %edx
	movl	$1, %ecx
	jmp	.L6
.L36:
	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	"%d\n"
	.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	$208, %rsp
	.cfi_def_cfa_offset 240
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	leaq	20(%rsp), %rbp
	movl	$1, %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
	jge	.L3
	testl	%eax, %eax
	jle	.L5
	leaq	116(%rsp), %rbp
	movl	$1, %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
	jge	.L4
	testl	%eax, %eax
	jle	.L5
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L15
	movdqu	20(%rsp), %xmm0
	movdqu	116(%rsp), %xmm4
	movl	%eax, %edx
	shrl	$2, %edx
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm4, %xmm1
	pand	%xmm1, %xmm0
	pand	%xmm4, %xmm1
	cmpl	$1, %edx
	je	.L7
	movdqu	132(%rsp), %xmm6
	movdqu	36(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm6, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm6, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$2, %edx
	je	.L7
	movdqu	148(%rsp), %xmm6
	movdqu	52(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm6, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm6, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$3, %edx
	je	.L7
	movdqu	164(%rsp), %xmm4
	movdqu	68(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm4, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm4, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$4, %edx
	je	.L7
	movdqu	180(%rsp), %xmm6
	movdqu	84(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm6, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm6, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
.L7:
	movdqa	%xmm1, %xmm2
	movl	%eax, %esi
	psrldq	$8, %xmm2
	andl	$-4, %esi
	paddd	%xmm2, %xmm1
	leal	1(%rsi), %ecx
	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
	cmpl	%esi, %eax
	je	.L13
.L6:
	movslq	%ecx, %rsi
	movl	16(%rsp,%rsi,4), %r8d
	movl	112(%rsp,%rsi,4), %esi
	cmpl	%r8d, %esi
	jl	.L33
.L9:
	leal	1(%rcx), %esi
	cmpl	%esi, %eax
	jl	.L13
	movslq	%esi, %rsi
	movl	16(%rsp,%rsi,4), %r8d
	movl	112(%rsp,%rsi,4), %esi
	cmpl	%esi, %r8d
	jg	.L34
.L10:
	addl	$2, %ecx
	cmpl	%ecx, %eax
	jl	.L13
	movslq	%ecx, %rcx
	movl	16(%rsp,%rcx,4), %esi
	movl	112(%rsp,%rcx,4), %eax
	cmpl	%eax, %esi
	jg	.L35
.L13:
	subl	%edi, %edx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$208, %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
.L33:
	.cfi_restore_state
	addl	%r8d, %edx
	addl	%esi, %edi
	jmp	.L9
.L34:
	addl	%r8d, %edx
	addl	%esi, %edi
	jmp	.L10
.L35:
	addl	%esi, %edx
	addl	%eax, %edi
	jmp	.L13
.L5:
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L13
.L15:
	xorl	%edi, %edi
	xorl	%edx, %edx
	movl	$1, %ecx
	jmp	.L6
.L36:
	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(void)
{
    int n,v[21],c[21],i,vs=0,cs=0,ans;
    scanf("%d",&n);
    for(i=1;i<=n;i++)
        scanf("%d",&v[i]);
    for(i=1;i<=n;i++)
        scanf("%d",&c[i]);
    for(i=1;i<=n;i++)
        if(v[i]>c[i]){
            vs+=v[i];
            cs+=c[i];
        }
    ans=vs-cs;
    printf("%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(void)
{
    int n,v[21],c[21],i,vs=0,cs=0,ans;
    scanf("%d",&n);
    for(i=1;i<=n;i++)
        scanf("%d",&v[i]);
    for(i=1;i<=n;i++)
        scanf("%d",&c[i]);
    for(i=1;i<=n;i++)
        if(v[i]>c[i]){
            vs+=v[i];
            cs+=c[i];
        }
    ans=vs-cs;
    printf("%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:

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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
int main(void)
{
    int n,v[21],c[21],i,vs=0,cs=0,ans;
    scanf("%d",&n);
    for(i=1;i<=n;i++)
        scanf("%d",&v[i]);
    for(i=1;i<=n;i++)
        scanf("%d",&c[i]);
    for(i=1;i<=n;i++)
        if(v[i]>c[i]){
            vs+=v[i];
            cs+=c[i];
        }
    ans=vs-cs;
    printf("%d\n",ans);
    return 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:
.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	$208, %rsp
	.cfi_def_cfa_offset 240
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	leaq	20(%rsp), %rbp
	movl	$1, %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
	jge	.L3
	testl	%eax, %eax
	jle	.L5
	leaq	116(%rsp), %rbp
	movl	$1, %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
	jge	.L4
	testl	%eax, %eax
	jle	.L5
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L15
	movdqu	20(%rsp), %xmm0
	movdqu	116(%rsp), %xmm4
	movl	%eax, %edx
	shrl	$2, %edx
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm4, %xmm1
	pand	%xmm1, %xmm0
	pand	%xmm4, %xmm1
	cmpl	$1, %edx
	je	.L7
	movdqu	132(%rsp), %xmm6
	movdqu	36(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm6, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm6, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$2, %edx
	je	.L7
	movdqu	148(%rsp), %xmm6
	movdqu	52(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm6, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm6, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$3, %edx
	je	.L7
	movdqu	164(%rsp), %xmm4
	movdqu	68(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm4, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm4, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$4, %edx
	je	.L7
	movdqu	180(%rsp), %xmm6
	movdqu	84(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm6, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm6, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
.L7:
	movdqa	%xmm1, %xmm2
	movl	%eax, %esi
	psrldq	$8, %xmm2
	andl	$-4, %esi
	paddd	%xmm2, %xmm1
	leal	1(%rsi), %ecx
	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
	cmpl	%esi, %eax
	je	.L13
.L6:
	movslq	%ecx, %rsi
	movl	16(%rsp,%rsi,4), %r8d
	movl	112(%rsp,%rsi,4), %esi
	cmpl	%r8d, %esi
	jl	.L33
.L9:
	leal	1(%rcx), %esi
	cmpl	%esi, %eax
	jl	.L13
	movslq	%esi, %rsi
	movl	16(%rsp,%rsi,4), %r8d
	movl	112(%rsp,%rsi,4), %esi
	cmpl	%esi, %r8d
	jg	.L34
.L10:
	addl	$2, %ecx
	cmpl	%ecx, %eax
	jl	.L13
	movslq	%ecx, %rcx
	movl	16(%rsp,%rcx,4), %esi
	movl	112(%rsp,%rcx,4), %eax
	cmpl	%eax, %esi
	jg	.L35
.L13:
	subl	%edi, %edx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$208, %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
.L33:
	.cfi_restore_state
	addl	%r8d, %edx
	addl	%esi, %edi
	jmp	.L9
.L34:
	addl	%r8d, %edx
	addl	%esi, %edi
	jmp	.L10
.L35:
	addl	%esi, %edx
	addl	%eax, %edi
	jmp	.L13
.L5:
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L13
.L15:
	xorl	%edi, %edi
	xorl	%edx, %edx
	movl	$1, %ecx
	jmp	.L6
.L36:
	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	"%d\n"
	.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	$208, %rsp
	.cfi_def_cfa_offset 240
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	leaq	20(%rsp), %rbp
	movl	$1, %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
	jge	.L3
	testl	%eax, %eax
	jle	.L5
	leaq	116(%rsp), %rbp
	movl	$1, %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
	jge	.L4
	testl	%eax, %eax
	jle	.L5
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L15
	movdqu	20(%rsp), %xmm0
	movdqu	116(%rsp), %xmm4
	movl	%eax, %edx
	shrl	$2, %edx
	movdqa	%xmm0, %xmm1
	pcmpgtd	%xmm4, %xmm1
	pand	%xmm1, %xmm0
	pand	%xmm4, %xmm1
	cmpl	$1, %edx
	je	.L7
	movdqu	132(%rsp), %xmm6
	movdqu	36(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm6, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm6, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$2, %edx
	je	.L7
	movdqu	148(%rsp), %xmm6
	movdqu	52(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm6, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm6, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$3, %edx
	je	.L7
	movdqu	164(%rsp), %xmm4
	movdqu	68(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm4, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm4, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
	cmpl	$4, %edx
	je	.L7
	movdqu	180(%rsp), %xmm6
	movdqu	84(%rsp), %xmm3
	movdqa	%xmm3, %xmm2
	pcmpgtd	%xmm6, %xmm2
	pand	%xmm2, %xmm3
	pand	%xmm6, %xmm2
	paddd	%xmm3, %xmm0
	paddd	%xmm2, %xmm1
.L7:
	movdqa	%xmm1, %xmm2
	movl	%eax, %esi
	psrldq	$8, %xmm2
	andl	$-4, %esi
	paddd	%xmm2, %xmm1
	leal	1(%rsi), %ecx
	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
	cmpl	%esi, %eax
	je	.L13
.L6:
	movslq	%ecx, %rsi
	movl	16(%rsp,%rsi,4), %r8d
	movl	112(%rsp,%rsi,4), %esi
	cmpl	%r8d, %esi
	jl	.L33
.L9:
	leal	1(%rcx), %esi
	cmpl	%esi, %eax
	jl	.L13
	movslq	%esi, %rsi
	movl	16(%rsp,%rsi,4), %r8d
	movl	112(%rsp,%rsi,4), %esi
	cmpl	%esi, %r8d
	jg	.L34
.L10:
	addl	$2, %ecx
	cmpl	%ecx, %eax
	jl	.L13
	movslq	%ecx, %rcx
	movl	16(%rsp,%rcx,4), %esi
	movl	112(%rsp,%rcx,4), %eax
	cmpl	%eax, %esi
	jg	.L35
.L13:
	subl	%edi, %edx
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$208, %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
.L33:
	.cfi_restore_state
	addl	%r8d, %edx
	addl	%esi, %edi
	jmp	.L9
.L34:
	addl	%r8d, %edx
	addl	%esi, %edi
	jmp	.L10
.L35:
	addl	%esi, %edx
	addl	%eax, %edi
	jmp	.L13
.L5:
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	.L13
.L15:
	xorl	%edi, %edi
	xorl	%edx, %edx
	movl	$1, %ecx
	jmp	.L6
.L36:
	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:
```