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, l[1000], i, j, a, b=0;
	
	scanf("%d",&n);
	for(i=0;i<n;i++) scanf("%d",&l[i]);
	
	a=l[0];
	for(i=1;i<n;i++){
	    if(a<l[i]){
	        a=l[i];
	        j=i;
	    }
	}
	for(i=0;i<n;i++){
	    if(j!=i) b+=l[i];
	}
	if(a<b) printf("Yes\n");
	else printf("No\n");
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC3:
	.string	"Yes"
.LC4:
	.string	"No"
	.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
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4032, %rsp
	.cfi_def_cfa_offset 4080
	movq	%fs:40, %rax
	movq	%rax, 4024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addq	$4, %r13
	cmpl	%ebp, %edx
	jg	.L3
	movl	16(%rsp), %esi
	cmpl	$1, %edx
	jle	.L4
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	movl	(%rbx,%rax,4), %ecx
	cmpl	%ecx, %esi
	jge	.L5
	movl	%ecx, %esi
	movl	%eax, %r12d
.L5:
	addq	$1, %rax
	cmpl	%eax, %edx
	jg	.L6
	testl	%edx, %edx
	movl	$1, %edi
	cmovg	%edx, %edi
	cmpl	$3, %edx
	jle	.L23
	movl	%edi, %ecx
	movd	%r12d, %xmm5
	movq	%rbx, %rax
	movdqa	.LC0(%rip), %xmm2
	shrl	$2, %ecx
	movdqa	.LC2(%rip), %xmm3
	pshufd	$0, %xmm5, %xmm4
	pxor	%xmm1, %xmm1
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	32(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L11:
	movdqa	%xmm2, %xmm0
	addq	$16, %rax
	paddd	%xmm3, %xmm2
	pcmpeqd	%xmm4, %xmm0
	pandn	-16(%rax), %xmm0
	paddd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L11
	movdqa	%xmm1, %xmm0
	movl	%edi, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	andl	$3, %edi
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	je	.L9
.L8:
	cmpl	%r12d, %ecx
	je	.L14
.L10:
	movslq	%ecx, %rdi
	addl	16(%rsp,%rdi,4), %eax
.L14:
	leal	1(%rcx), %edi
	cmpl	%edx, %edi
	jge	.L9
	cmpl	%r12d, %edi
	je	.L15
	movslq	%edi, %rdi
	addl	16(%rsp,%rdi,4), %eax
.L15:
	addl	$2, %ecx
	cmpl	%edx, %ecx
	jge	.L9
	cmpl	%r12d, %ecx
	je	.L9
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %eax
.L9:
	cmpl	%esi, %eax
	jle	.L18
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L19:
	movq	4024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$4032, %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
.L18:
	.cfi_restore_state
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L19
.L2:
	movl	16(%rsp), %esi
	xorl	%eax, %eax
	jmp	.L9
.L4:
	movl	$0, %eax
	jne	.L9
	xorl	%ecx, %ecx
	jmp	.L8
.L23:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	.L10
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.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
.LC1:
	.string	"%d"
.LC3:
	.string	"Yes"
.LC4:
	.string	"No"
	.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
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4032, %rsp
	.cfi_def_cfa_offset 4080
	movq	%fs:40, %rax
	movq	%rax, 4024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addq	$4, %r13
	cmpl	%ebp, %edx
	jg	.L3
	movl	16(%rsp), %esi
	cmpl	$1, %edx
	jle	.L4
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	movl	(%rbx,%rax,4), %ecx
	cmpl	%ecx, %esi
	jge	.L5
	movl	%ecx, %esi
	movl	%eax, %r12d
.L5:
	addq	$1, %rax
	cmpl	%eax, %edx
	jg	.L6
	testl	%edx, %edx
	movl	$1, %edi
	cmovg	%edx, %edi
	cmpl	$3, %edx
	jle	.L23
	movl	%edi, %ecx
	movd	%r12d, %xmm5
	movq	%rbx, %rax
	movdqa	.LC0(%rip), %xmm2
	shrl	$2, %ecx
	movdqa	.LC2(%rip), %xmm3
	pshufd	$0, %xmm5, %xmm4
	pxor	%xmm1, %xmm1
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	32(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L11:
	movdqa	%xmm2, %xmm0
	addq	$16, %rax
	paddd	%xmm3, %xmm2
	pcmpeqd	%xmm4, %xmm0
	pandn	-16(%rax), %xmm0
	paddd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L11
	movdqa	%xmm1, %xmm0
	movl	%edi, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	andl	$3, %edi
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	je	.L9
.L8:
	cmpl	%r12d, %ecx
	je	.L14
.L10:
	movslq	%ecx, %rdi
	addl	16(%rsp,%rdi,4), %eax
.L14:
	leal	1(%rcx), %edi
	cmpl	%edx, %edi
	jge	.L9
	cmpl	%r12d, %edi
	je	.L15
	movslq	%edi, %rdi
	addl	16(%rsp,%rdi,4), %eax
.L15:
	addl	$2, %ecx
	cmpl	%edx, %ecx
	jge	.L9
	cmpl	%r12d, %ecx
	je	.L9
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %eax
.L9:
	cmpl	%esi, %eax
	jle	.L18
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L19:
	movq	4024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$4032, %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
.L18:
	.cfi_restore_state
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L19
.L2:
	movl	16(%rsp), %esi
	xorl	%eax, %eax
	jmp	.L9
.L4:
	movl	$0, %eax
	jne	.L9
	xorl	%ecx, %ecx
	jmp	.L8
.L23:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	.L10
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.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
.LC1:
	.string	"%d"
.LC3:
	.string	"Yes"
.LC4:
	.string	"No"
	.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
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4032, %rsp
	.cfi_def_cfa_offset 4080
	movq	%fs:40, %rax
	movq	%rax, 4024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addq	$4, %r13
	cmpl	%ebp, %edx
	jg	.L3
	movl	16(%rsp), %esi
	cmpl	$1, %edx
	jle	.L4
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	movl	(%rbx,%rax,4), %ecx
	cmpl	%ecx, %esi
	jge	.L5
	movl	%ecx, %esi
	movl	%eax, %r12d
.L5:
	addq	$1, %rax
	cmpl	%eax, %edx
	jg	.L6
	testl	%edx, %edx
	movl	$1, %edi
	cmovg	%edx, %edi
	cmpl	$3, %edx
	jle	.L23
	movl	%edi, %ecx
	movd	%r12d, %xmm5
	movq	%rbx, %rax
	movdqa	.LC0(%rip), %xmm2
	shrl	$2, %ecx
	movdqa	.LC2(%rip), %xmm3
	pshufd	$0, %xmm5, %xmm4
	pxor	%xmm1, %xmm1
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	32(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L11:
	movdqa	%xmm2, %xmm0
	addq	$16, %rax
	paddd	%xmm3, %xmm2
	pcmpeqd	%xmm4, %xmm0
	pandn	-16(%rax), %xmm0
	paddd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L11
	movdqa	%xmm1, %xmm0
	movl	%edi, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	andl	$3, %edi
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	je	.L9
.L8:
	cmpl	%r12d, %ecx
	je	.L14
.L10:
	movslq	%ecx, %rdi
	addl	16(%rsp,%rdi,4), %eax
.L14:
	leal	1(%rcx), %edi
	cmpl	%edx, %edi
	jge	.L9
	cmpl	%r12d, %edi
	je	.L15
	movslq	%edi, %rdi
	addl	16(%rsp,%rdi,4), %eax
.L15:
	addl	$2, %ecx
	cmpl	%edx, %ecx
	jge	.L9
	cmpl	%r12d, %ecx
	je	.L9
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %eax
.L9:
	cmpl	%esi, %eax
	jle	.L18
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L19:
	movq	4024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$4032, %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
.L18:
	.cfi_restore_state
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L19
.L2:
	movl	16(%rsp), %esi
	xorl	%eax, %eax
	jmp	.L9
.L4:
	movl	$0, %eax
	jne	.L9
	xorl	%ecx, %ecx
	jmp	.L8
.L23:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	.L10
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.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, l[1000], i, j, a, b=0;
	
	scanf("%d",&n);
	for(i=0;i<n;i++) scanf("%d",&l[i]);
	
	a=l[0];
	for(i=1;i<n;i++){
	    if(a<l[i]){
	        a=l[i];
	        j=i;
	    }
	}
	for(i=0;i<n;i++){
	    if(j!=i) b+=l[i];
	}
	if(a<b) printf("Yes\n");
	else printf("No\n");
	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, l[1000], i, j, a, b=0;
	
	scanf("%d",&n);
	for(i=0;i<n;i++) scanf("%d",&l[i]);
	
	a=l[0];
	for(i=1;i<n;i++){
	    if(a<l[i]){
	        a=l[i];
	        j=i;
	    }
	}
	for(i=0;i<n;i++){
	    if(j!=i) b+=l[i];
	}
	if(a<b) printf("Yes\n");
	else printf("No\n");
	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
3 5 5 1
 10
1 0 10 5 8 12 34 100 11 3
 4
3 3 4 1
 4
3 5 6 1
 4
4 3 4 1
 10
1 0 10 10 8 12 34 100 11 3
 4
3 5 0 1
 4
4 1 4 1
 10
1 0 10 10 8 12 34 110 11 3
 4
3 5 0 0

Yes
 No
 Yes
 Yes
 Yes
 No
 No
 Yes
 No
 No

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, l[1000], i, j, a, b=0;
	
	scanf("%d",&n);
	for(i=0;i<n;i++) scanf("%d",&l[i]);
	
	a=l[0];
	for(i=1;i<n;i++){
	    if(a<l[i]){
	        a=l[i];
	        j=i;
	    }
	}
	for(i=0;i<n;i++){
	    if(j!=i) b+=l[i];
	}
	if(a<b) printf("Yes\n");
	else printf("No\n");
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC3:
	.string	"Yes"
.LC4:
	.string	"No"
	.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
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4032, %rsp
	.cfi_def_cfa_offset 4080
	movq	%fs:40, %rax
	movq	%rax, 4024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addq	$4, %r13
	cmpl	%ebp, %edx
	jg	.L3
	movl	16(%rsp), %esi
	cmpl	$1, %edx
	jle	.L4
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	movl	(%rbx,%rax,4), %ecx
	cmpl	%ecx, %esi
	jge	.L5
	movl	%ecx, %esi
	movl	%eax, %r12d
.L5:
	addq	$1, %rax
	cmpl	%eax, %edx
	jg	.L6
	testl	%edx, %edx
	movl	$1, %edi
	cmovg	%edx, %edi
	cmpl	$3, %edx
	jle	.L23
	movl	%edi, %ecx
	movd	%r12d, %xmm5
	movq	%rbx, %rax
	movdqa	.LC0(%rip), %xmm2
	shrl	$2, %ecx
	movdqa	.LC2(%rip), %xmm3
	pshufd	$0, %xmm5, %xmm4
	pxor	%xmm1, %xmm1
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	32(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L11:
	movdqa	%xmm2, %xmm0
	addq	$16, %rax
	paddd	%xmm3, %xmm2
	pcmpeqd	%xmm4, %xmm0
	pandn	-16(%rax), %xmm0
	paddd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L11
	movdqa	%xmm1, %xmm0
	movl	%edi, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	andl	$3, %edi
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	je	.L9
.L8:
	cmpl	%r12d, %ecx
	je	.L14
.L10:
	movslq	%ecx, %rdi
	addl	16(%rsp,%rdi,4), %eax
.L14:
	leal	1(%rcx), %edi
	cmpl	%edx, %edi
	jge	.L9
	cmpl	%r12d, %edi
	je	.L15
	movslq	%edi, %rdi
	addl	16(%rsp,%rdi,4), %eax
.L15:
	addl	$2, %ecx
	cmpl	%edx, %ecx
	jge	.L9
	cmpl	%r12d, %ecx
	je	.L9
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %eax
.L9:
	cmpl	%esi, %eax
	jle	.L18
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L19:
	movq	4024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$4032, %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
.L18:
	.cfi_restore_state
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L19
.L2:
	movl	16(%rsp), %esi
	xorl	%eax, %eax
	jmp	.L9
.L4:
	movl	$0, %eax
	jne	.L9
	xorl	%ecx, %ecx
	jmp	.L8
.L23:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	.L10
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.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
.LC1:
	.string	"%d"
.LC3:
	.string	"Yes"
.LC4:
	.string	"No"
	.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
	leaq	.LC1(%rip), %r14
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4032, %rsp
	.cfi_def_cfa_offset 4080
	movq	%fs:40, %rax
	movq	%rax, 4024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edx
	addq	$4, %r13
	cmpl	%ebp, %edx
	jg	.L3
	movl	16(%rsp), %esi
	cmpl	$1, %edx
	jle	.L4
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L6:
	movl	(%rbx,%rax,4), %ecx
	cmpl	%ecx, %esi
	jge	.L5
	movl	%ecx, %esi
	movl	%eax, %r12d
.L5:
	addq	$1, %rax
	cmpl	%eax, %edx
	jg	.L6
	testl	%edx, %edx
	movl	$1, %edi
	cmovg	%edx, %edi
	cmpl	$3, %edx
	jle	.L23
	movl	%edi, %ecx
	movd	%r12d, %xmm5
	movq	%rbx, %rax
	movdqa	.LC0(%rip), %xmm2
	shrl	$2, %ecx
	movdqa	.LC2(%rip), %xmm3
	pshufd	$0, %xmm5, %xmm4
	pxor	%xmm1, %xmm1
	subl	$1, %ecx
	salq	$4, %rcx
	leaq	32(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L11:
	movdqa	%xmm2, %xmm0
	addq	$16, %rax
	paddd	%xmm3, %xmm2
	pcmpeqd	%xmm4, %xmm0
	pandn	-16(%rax), %xmm0
	paddd	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L11
	movdqa	%xmm1, %xmm0
	movl	%edi, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	andl	$3, %edi
	paddd	%xmm0, %xmm1
	movdqa	%xmm1, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	je	.L9
.L8:
	cmpl	%r12d, %ecx
	je	.L14
.L10:
	movslq	%ecx, %rdi
	addl	16(%rsp,%rdi,4), %eax
.L14:
	leal	1(%rcx), %edi
	cmpl	%edx, %edi
	jge	.L9
	cmpl	%r12d, %edi
	je	.L15
	movslq	%edi, %rdi
	addl	16(%rsp,%rdi,4), %eax
.L15:
	addl	$2, %ecx
	cmpl	%edx, %ecx
	jge	.L9
	cmpl	%r12d, %ecx
	je	.L9
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %eax
.L9:
	cmpl	%esi, %eax
	jle	.L18
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L19:
	movq	4024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$4032, %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
.L18:
	.cfi_restore_state
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
	jmp	.L19
.L2:
	movl	16(%rsp), %esi
	xorl	%eax, %eax
	jmp	.L9
.L4:
	movl	$0, %eax
	jne	.L9
	xorl	%ecx, %ecx
	jmp	.L8
.L23:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	.L10
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	1
	.long	2
	.long	3
	.align 16
.LC2:
	.long	4
	.long	4
	.long	4
	.long	4
	.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:
```