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[10];
    int i,j,tmp,S=0;
  
    scanf("%d",&N);
    
    for(i=0;i<N;i++)
      scanf("%d",&L[i]);
  
    for(i=0;i<N;i++){
      for(j=i+1;j<N;j++){
        if(L[i]>L[j]){
          tmp=L[i];
          L[i]=L[j];
          L[j]=tmp;
        }
      }
    }
  
    for(i=0;i<N-1;i++)
      S+=L[i];
    
    if(S>L[N-1]) printf("Yes\n");
    else printf("No\n");
  
    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%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, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	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
	jg	.L3
	testl	%eax, %eax
	jle	.L2
	movl	$1, %edx
	cmpl	$1, %eax
	je	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movl	(%rbx), %ecx
	movl	4(%rbx), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movl	%esi, (%rbx)
	movl	%ecx, 4(%rbx)
.L6:
	leal	1(%rdx), %ecx
	cmpl	%ecx, %eax
	jle	.L7
	movl	(%rbx), %esi
	movl	8(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L8
	movl	%edi, (%rbx)
	movl	%esi, 8(%rbx)
.L8:
	leal	2(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	12(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L10
	movl	%edi, (%rbx)
	movl	%esi, 12(%rbx)
.L10:
	leal	3(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	16(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L11
	movl	%edi, (%rbx)
	movl	%esi, 16(%rbx)
.L11:
	leal	4(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	20(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L12
	movl	%edi, (%rbx)
	movl	%esi, 20(%rbx)
.L12:
	leal	5(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	24(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L13
	movl	%edi, (%rbx)
	movl	%esi, 24(%rbx)
.L13:
	leal	6(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	28(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L14
	movl	%edi, (%rbx)
	movl	%esi, 28(%rbx)
.L14:
	leal	7(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	32(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L15
	movl	%edi, (%rbx)
	movl	%esi, 32(%rbx)
.L15:
	addl	$8, %edx
	cmpl	%edx, %eax
	jle	.L9
	movl	(%rbx), %edx
	movl	36(%rbx), %esi
	cmpl	%esi, %edx
	jle	.L9
	movl	%esi, (%rbx)
	movl	%edx, 36(%rbx)
.L9:
	addq	$4, %rbx
.L24:
	movl	%ecx, %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$4, %rbx
	cmpl	%ecx, %eax
	jne	.L24
	leal	-1(%rdx), %ecx
	movl	%edx, %eax
	cmpl	$2, %ecx
	jbe	.L34
	movl	%edx, %ecx
	movdqa	16(%rsp), %xmm0
	shrl	$2, %ecx
	cmpl	$2, %ecx
	jne	.L17
	paddd	32(%rsp), %xmm0
.L17:
	movdqa	%xmm0, %xmm1
	movl	%edx, %esi
	psrldq	$8, %xmm1
	andl	$-4, %esi
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	testb	$3, %dl
	je	.L18
.L22:
	movslq	%esi, %rdi
	addl	16(%rsp,%rdi,4), %ecx
	leal	1(%rsi), %edi
	cmpl	%edx, %edi
	jge	.L18
	movslq	%edi, %rdi
	addl	$2, %esi
	addl	16(%rsp,%rdi,4), %ecx
	cmpl	%edx, %esi
	jge	.L18
	movslq	%esi, %rsi
	addl	16(%rsp,%rsi,4), %ecx
.L18:
	cltq
	cmpl	%ecx, 16(%rsp,%rax,4)
	jge	.L20
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L21:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$72, %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
.L20:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L21
.L2:
	subl	$1, %eax
	xorl	%ecx, %ecx
	jmp	.L18
.L34:
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	.L22
.L35:
	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	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%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, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	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
	jg	.L3
	testl	%eax, %eax
	jle	.L2
	movl	$1, %edx
	cmpl	$1, %eax
	je	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movl	(%rbx), %ecx
	movl	4(%rbx), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movl	%esi, (%rbx)
	movl	%ecx, 4(%rbx)
.L6:
	leal	1(%rdx), %ecx
	cmpl	%ecx, %eax
	jle	.L7
	movl	(%rbx), %esi
	movl	8(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L8
	movl	%edi, (%rbx)
	movl	%esi, 8(%rbx)
.L8:
	leal	2(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	12(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L10
	movl	%edi, (%rbx)
	movl	%esi, 12(%rbx)
.L10:
	leal	3(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	16(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L11
	movl	%edi, (%rbx)
	movl	%esi, 16(%rbx)
.L11:
	leal	4(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	20(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L12
	movl	%edi, (%rbx)
	movl	%esi, 20(%rbx)
.L12:
	leal	5(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	24(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L13
	movl	%edi, (%rbx)
	movl	%esi, 24(%rbx)
.L13:
	leal	6(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	28(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L14
	movl	%edi, (%rbx)
	movl	%esi, 28(%rbx)
.L14:
	leal	7(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	32(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L15
	movl	%edi, (%rbx)
	movl	%esi, 32(%rbx)
.L15:
	addl	$8, %edx
	cmpl	%edx, %eax
	jle	.L9
	movl	(%rbx), %edx
	movl	36(%rbx), %esi
	cmpl	%esi, %edx
	jle	.L9
	movl	%esi, (%rbx)
	movl	%edx, 36(%rbx)
.L9:
	addq	$4, %rbx
.L24:
	movl	%ecx, %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$4, %rbx
	cmpl	%ecx, %eax
	jne	.L24
	leal	-1(%rdx), %ecx
	movl	%edx, %eax
	cmpl	$2, %ecx
	jbe	.L34
	movl	%edx, %ecx
	movdqa	16(%rsp), %xmm0
	shrl	$2, %ecx
	cmpl	$2, %ecx
	jne	.L17
	paddd	32(%rsp), %xmm0
.L17:
	movdqa	%xmm0, %xmm1
	movl	%edx, %esi
	psrldq	$8, %xmm1
	andl	$-4, %esi
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	testb	$3, %dl
	je	.L18
.L22:
	movslq	%esi, %rdi
	addl	16(%rsp,%rdi,4), %ecx
	leal	1(%rsi), %edi
	cmpl	%edx, %edi
	jge	.L18
	movslq	%edi, %rdi
	addl	$2, %esi
	addl	16(%rsp,%rdi,4), %ecx
	cmpl	%edx, %esi
	jge	.L18
	movslq	%esi, %rsi
	addl	16(%rsp,%rsi,4), %ecx
.L18:
	cltq
	cmpl	%ecx, 16(%rsp,%rax,4)
	jge	.L20
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L21:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$72, %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
.L20:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L21
.L2:
	subl	$1, %eax
	xorl	%ecx, %ecx
	jmp	.L18
.L34:
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	.L22
.L35:
	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	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%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, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	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
	jg	.L3
	testl	%eax, %eax
	jle	.L2
	movl	$1, %edx
	cmpl	$1, %eax
	je	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movl	(%rbx), %ecx
	movl	4(%rbx), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movl	%esi, (%rbx)
	movl	%ecx, 4(%rbx)
.L6:
	leal	1(%rdx), %ecx
	cmpl	%ecx, %eax
	jle	.L7
	movl	(%rbx), %esi
	movl	8(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L8
	movl	%edi, (%rbx)
	movl	%esi, 8(%rbx)
.L8:
	leal	2(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	12(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L10
	movl	%edi, (%rbx)
	movl	%esi, 12(%rbx)
.L10:
	leal	3(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	16(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L11
	movl	%edi, (%rbx)
	movl	%esi, 16(%rbx)
.L11:
	leal	4(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	20(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L12
	movl	%edi, (%rbx)
	movl	%esi, 20(%rbx)
.L12:
	leal	5(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	24(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L13
	movl	%edi, (%rbx)
	movl	%esi, 24(%rbx)
.L13:
	leal	6(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	28(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L14
	movl	%edi, (%rbx)
	movl	%esi, 28(%rbx)
.L14:
	leal	7(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	32(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L15
	movl	%edi, (%rbx)
	movl	%esi, 32(%rbx)
.L15:
	addl	$8, %edx
	cmpl	%edx, %eax
	jle	.L9
	movl	(%rbx), %edx
	movl	36(%rbx), %esi
	cmpl	%esi, %edx
	jle	.L9
	movl	%esi, (%rbx)
	movl	%edx, 36(%rbx)
.L9:
	addq	$4, %rbx
.L24:
	movl	%ecx, %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$4, %rbx
	cmpl	%ecx, %eax
	jne	.L24
	leal	-1(%rdx), %ecx
	movl	%edx, %eax
	cmpl	$2, %ecx
	jbe	.L34
	movl	%edx, %ecx
	movdqa	16(%rsp), %xmm0
	shrl	$2, %ecx
	cmpl	$2, %ecx
	jne	.L17
	paddd	32(%rsp), %xmm0
.L17:
	movdqa	%xmm0, %xmm1
	movl	%edx, %esi
	psrldq	$8, %xmm1
	andl	$-4, %esi
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	testb	$3, %dl
	je	.L18
.L22:
	movslq	%esi, %rdi
	addl	16(%rsp,%rdi,4), %ecx
	leal	1(%rsi), %edi
	cmpl	%edx, %edi
	jge	.L18
	movslq	%edi, %rdi
	addl	$2, %esi
	addl	16(%rsp,%rdi,4), %ecx
	cmpl	%edx, %esi
	jge	.L18
	movslq	%esi, %rsi
	addl	16(%rsp,%rsi,4), %ecx
.L18:
	cltq
	cmpl	%ecx, 16(%rsp,%rax,4)
	jge	.L20
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L21:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$72, %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
.L20:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L21
.L2:
	subl	$1, %eax
	xorl	%ecx, %ecx
	jmp	.L18
.L34:
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	.L22
.L35:
	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,L[10];
    int i,j,tmp,S=0;
  
    scanf("%d",&N);
    
    for(i=0;i<N;i++)
      scanf("%d",&L[i]);
  
    for(i=0;i<N;i++){
      for(j=i+1;j<N;j++){
        if(L[i]>L[j]){
          tmp=L[i];
          L[i]=L[j];
          L[j]=tmp;
        }
      }
    }
  
    for(i=0;i<N-1;i++)
      S+=L[i];
    
    if(S>L[N-1]) 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[10];
    int i,j,tmp,S=0;
  
    scanf("%d",&N);
    
    for(i=0;i<N;i++)
      scanf("%d",&L[i]);
  
    for(i=0;i<N;i++){
      for(j=i+1;j<N;j++){
        if(L[i]>L[j]){
          tmp=L[i];
          L[i]=L[j];
          L[j]=tmp;
        }
      }
    }
  
    for(i=0;i<N-1;i++)
      S+=L[i];
    
    if(S>L[N-1]) 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[10];
    int i,j,tmp,S=0;
  
    scanf("%d",&N);
    
    for(i=0;i<N;i++)
      scanf("%d",&L[i]);
  
    for(i=0;i<N;i++){
      for(j=i+1;j<N;j++){
        if(L[i]>L[j]){
          tmp=L[i];
          L[i]=L[j];
          L[j]=tmp;
        }
      }
    }
  
    for(i=0;i<N-1;i++)
      S+=L[i];
    
    if(S>L[N-1]) printf("Yes\n");
    else printf("No\n");
  
    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%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, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	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
	jg	.L3
	testl	%eax, %eax
	jle	.L2
	movl	$1, %edx
	cmpl	$1, %eax
	je	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movl	(%rbx), %ecx
	movl	4(%rbx), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movl	%esi, (%rbx)
	movl	%ecx, 4(%rbx)
.L6:
	leal	1(%rdx), %ecx
	cmpl	%ecx, %eax
	jle	.L7
	movl	(%rbx), %esi
	movl	8(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L8
	movl	%edi, (%rbx)
	movl	%esi, 8(%rbx)
.L8:
	leal	2(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	12(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L10
	movl	%edi, (%rbx)
	movl	%esi, 12(%rbx)
.L10:
	leal	3(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	16(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L11
	movl	%edi, (%rbx)
	movl	%esi, 16(%rbx)
.L11:
	leal	4(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	20(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L12
	movl	%edi, (%rbx)
	movl	%esi, 20(%rbx)
.L12:
	leal	5(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	24(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L13
	movl	%edi, (%rbx)
	movl	%esi, 24(%rbx)
.L13:
	leal	6(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	28(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L14
	movl	%edi, (%rbx)
	movl	%esi, 28(%rbx)
.L14:
	leal	7(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	32(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L15
	movl	%edi, (%rbx)
	movl	%esi, 32(%rbx)
.L15:
	addl	$8, %edx
	cmpl	%edx, %eax
	jle	.L9
	movl	(%rbx), %edx
	movl	36(%rbx), %esi
	cmpl	%esi, %edx
	jle	.L9
	movl	%esi, (%rbx)
	movl	%edx, 36(%rbx)
.L9:
	addq	$4, %rbx
.L24:
	movl	%ecx, %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$4, %rbx
	cmpl	%ecx, %eax
	jne	.L24
	leal	-1(%rdx), %ecx
	movl	%edx, %eax
	cmpl	$2, %ecx
	jbe	.L34
	movl	%edx, %ecx
	movdqa	16(%rsp), %xmm0
	shrl	$2, %ecx
	cmpl	$2, %ecx
	jne	.L17
	paddd	32(%rsp), %xmm0
.L17:
	movdqa	%xmm0, %xmm1
	movl	%edx, %esi
	psrldq	$8, %xmm1
	andl	$-4, %esi
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	testb	$3, %dl
	je	.L18
.L22:
	movslq	%esi, %rdi
	addl	16(%rsp,%rdi,4), %ecx
	leal	1(%rsi), %edi
	cmpl	%edx, %edi
	jge	.L18
	movslq	%edi, %rdi
	addl	$2, %esi
	addl	16(%rsp,%rdi,4), %ecx
	cmpl	%edx, %esi
	jge	.L18
	movslq	%esi, %rsi
	addl	16(%rsp,%rsi,4), %ecx
.L18:
	cltq
	cmpl	%ecx, 16(%rsp,%rax,4)
	jge	.L20
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L21:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$72, %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
.L20:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L21
.L2:
	subl	$1, %eax
	xorl	%ecx, %ecx
	jmp	.L18
.L34:
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	.L22
.L35:
	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	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$72, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 56(%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, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	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
	jg	.L3
	testl	%eax, %eax
	jle	.L2
	movl	$1, %edx
	cmpl	$1, %eax
	je	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	movl	(%rbx), %ecx
	movl	4(%rbx), %esi
	cmpl	%esi, %ecx
	jle	.L6
	movl	%esi, (%rbx)
	movl	%ecx, 4(%rbx)
.L6:
	leal	1(%rdx), %ecx
	cmpl	%ecx, %eax
	jle	.L7
	movl	(%rbx), %esi
	movl	8(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L8
	movl	%edi, (%rbx)
	movl	%esi, 8(%rbx)
.L8:
	leal	2(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	12(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L10
	movl	%edi, (%rbx)
	movl	%esi, 12(%rbx)
.L10:
	leal	3(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	16(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L11
	movl	%edi, (%rbx)
	movl	%esi, 16(%rbx)
.L11:
	leal	4(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	20(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L12
	movl	%edi, (%rbx)
	movl	%esi, 20(%rbx)
.L12:
	leal	5(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	24(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L13
	movl	%edi, (%rbx)
	movl	%esi, 24(%rbx)
.L13:
	leal	6(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	28(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L14
	movl	%edi, (%rbx)
	movl	%esi, 28(%rbx)
.L14:
	leal	7(%rdx), %esi
	cmpl	%esi, %eax
	jle	.L9
	movl	(%rbx), %esi
	movl	32(%rbx), %edi
	cmpl	%edi, %esi
	jle	.L15
	movl	%edi, (%rbx)
	movl	%esi, 32(%rbx)
.L15:
	addl	$8, %edx
	cmpl	%edx, %eax
	jle	.L9
	movl	(%rbx), %edx
	movl	36(%rbx), %esi
	cmpl	%esi, %edx
	jle	.L9
	movl	%esi, (%rbx)
	movl	%edx, 36(%rbx)
.L9:
	addq	$4, %rbx
.L24:
	movl	%ecx, %edx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$4, %rbx
	cmpl	%ecx, %eax
	jne	.L24
	leal	-1(%rdx), %ecx
	movl	%edx, %eax
	cmpl	$2, %ecx
	jbe	.L34
	movl	%edx, %ecx
	movdqa	16(%rsp), %xmm0
	shrl	$2, %ecx
	cmpl	$2, %ecx
	jne	.L17
	paddd	32(%rsp), %xmm0
.L17:
	movdqa	%xmm0, %xmm1
	movl	%edx, %esi
	psrldq	$8, %xmm1
	andl	$-4, %esi
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	testb	$3, %dl
	je	.L18
.L22:
	movslq	%esi, %rdi
	addl	16(%rsp,%rdi,4), %ecx
	leal	1(%rsi), %edi
	cmpl	%edx, %edi
	jge	.L18
	movslq	%edi, %rdi
	addl	$2, %esi
	addl	16(%rsp,%rdi,4), %ecx
	cmpl	%edx, %esi
	jge	.L18
	movslq	%esi, %rsi
	addl	16(%rsp,%rsi,4), %ecx
.L18:
	cltq
	cmpl	%ecx, 16(%rsp,%rax,4)
	jge	.L20
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L21:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$72, %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
.L20:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L21
.L2:
	subl	$1, %eax
	xorl	%ecx, %ecx
	jmp	.L18
.L34:
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	.L22
.L35:
	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:
```