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>
#define NUM 1000

int main(){
   int n,m,i,total,cnt=0,a[NUM];
   double limit;
   scanf("%d %d",&n,&m);
   for(i=0;i<n;i++){
      scanf("%d",&a[i]);
   }
   for(i=0;i<n;i++){
      total+=a[i];
   }
   limit=total/(4.0*m);
   for(i=0;i<n;i++){
      if(a[i]>=limit){
         cnt++;
      }
   }
   if(cnt>=m){
      printf("Yes");
   }else{
      printf("No");
   }
   return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.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	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	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), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L3
	testl	%eax, %eax
	jle	.L2
	leal	-1(%rax), %r8d
	cmpl	$2, %r8d
	jbe	.L23
	movl	%eax, %edx
	movq	%r12, %rcx
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	leal	-1(%rdx), %esi
	leaq	16(%r12), %rdx
	salq	$4, %rsi
	addq	%rdx, %rsi
	.p2align 4,,10
	.p2align 3
.L5:
	paddd	(%rcx), %xmm0
	addq	$16, %rcx
	cmpq	%rsi, %rcx
	jne	.L5
	movdqa	%xmm0, %xmm1
	movl	%eax, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r13d
	cmpl	%ecx, %eax
	je	.L34
.L4:
	movslq	%ecx, %rdx
	addl	16(%rsp,%rdx,4), %r13d
	leal	1(%rcx), %edx
	cmpl	%edx, %eax
	jle	.L7
	movslq	%edx, %rdx
	addl	$2, %ecx
	addl	16(%rsp,%rdx,4), %r13d
	cmpl	%ecx, %eax
	jle	.L7
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %r13d
.L7:
	movl	12(%rsp), %edi
	pxor	%xmm0, %xmm0
	pxor	%xmm6, %xmm6
	cvtsi2sdl	%r13d, %xmm6
	cvtsi2sdl	%edi, %xmm0
	mulsd	.LC5(%rip), %xmm0
	divsd	%xmm0, %xmm6
	cmpl	$2, %r8d
	jbe	.L24
	leaq	16(%r12), %rdx
.L20:
	movl	%eax, %ecx
	movapd	%xmm6, %xmm5
	movdqa	.LC2(%rip), %xmm4
	pxor	%xmm2, %xmm2
	shrl	$2, %ecx
	unpcklpd	%xmm5, %xmm5
	subl	$1, %ecx
	salq	$4, %rcx
	addq	%rdx, %rcx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L35:
	addq	$16, %rdx
.L15:
	movdqa	(%r12), %xmm0
	movapd	%xmm5, %xmm1
	movq	%rdx, %r12
	cvtdq2pd	%xmm0, %xmm3
	pshufd	$238, %xmm0, %xmm0
	cmplepd	%xmm3, %xmm1
	movapd	%xmm5, %xmm3
	cvtdq2pd	%xmm0, %xmm0
	cmplepd	%xmm0, %xmm3
	pand	%xmm4, %xmm1
	pand	%xmm4, %xmm3
	movdqa	%xmm1, %xmm0
	shufps	$136, %xmm3, %xmm0
	paddd	%xmm0, %xmm2
	cmpq	%rcx, %rdx
	jne	.L35
	movdqa	%xmm2, %xmm0
	movl	%eax, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %edx
	testb	$3, %al
	je	.L21
.L19:
	movslq	%ecx, %rsi
	pxor	%xmm0, %xmm0
	cvtsi2sdl	16(%rsp,%rsi,4), %xmm0
	leal	1(%rcx), %esi
	comisd	%xmm6, %xmm0
	sbbl	$-1, %edx
	cmpl	%esi, %eax
	jle	.L21
	movslq	%esi, %rsi
	pxor	%xmm0, %xmm0
	cvtsi2sdl	16(%rsp,%rsi,4), %xmm0
	comisd	%xmm6, %xmm0
	sbbl	$-1, %edx
	addl	$2, %ecx
	cmpl	%ecx, %eax
	jle	.L21
	movslq	%ecx, %rcx
	pxor	%xmm0, %xmm0
	cvtsi2sdl	16(%rsp,%rcx,4), %xmm0
	comisd	%xmm6, %xmm0
	sbbl	$-1, %edx
.L21:
	cmpl	%edi, %edx
	jl	.L17
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L18:
	movq	4024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	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
.L17:
	.cfi_restore_state
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L18
.L34:
	movl	12(%rsp), %edi
	pxor	%xmm0, %xmm0
	pxor	%xmm6, %xmm6
	cvtsi2sdl	%r13d, %xmm6
	cvtsi2sdl	%edi, %xmm0
	mulsd	.LC5(%rip), %xmm0
	divsd	%xmm0, %xmm6
	jmp	.L20
.L2:
	movl	12(%rsp), %edi
	xorl	%edx, %edx
	jmp	.L21
.L24:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L19
.L23:
	xorl	%ecx, %ecx
	jmp	.L4
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	1
	.quad	1
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC5:
	.long	0
	.long	1074790400
	.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 %d"
.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	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	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), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L3
	testl	%eax, %eax
	jle	.L2
	leal	-1(%rax), %r8d
	cmpl	$2, %r8d
	jbe	.L23
	movl	%eax, %edx
	movq	%r12, %rcx
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	leal	-1(%rdx), %esi
	leaq	16(%r12), %rdx
	salq	$4, %rsi
	addq	%rdx, %rsi
	.p2align 4,,10
	.p2align 3
.L5:
	paddd	(%rcx), %xmm0
	addq	$16, %rcx
	cmpq	%rsi, %rcx
	jne	.L5
	movdqa	%xmm0, %xmm1
	movl	%eax, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r13d
	cmpl	%ecx, %eax
	je	.L34
.L4:
	movslq	%ecx, %rdx
	addl	16(%rsp,%rdx,4), %r13d
	leal	1(%rcx), %edx
	cmpl	%edx, %eax
	jle	.L7
	movslq	%edx, %rdx
	addl	$2, %ecx
	addl	16(%rsp,%rdx,4), %r13d
	cmpl	%ecx, %eax
	jle	.L7
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %r13d
.L7:
	movl	12(%rsp), %edi
	pxor	%xmm0, %xmm0
	pxor	%xmm6, %xmm6
	cvtsi2sdl	%r13d, %xmm6
	cvtsi2sdl	%edi, %xmm0
	mulsd	.LC5(%rip), %xmm0
	divsd	%xmm0, %xmm6
	cmpl	$2, %r8d
	jbe	.L24
	leaq	16(%r12), %rdx
.L20:
	movl	%eax, %ecx
	movapd	%xmm6, %xmm5
	movdqa	.LC2(%rip), %xmm4
	pxor	%xmm2, %xmm2
	shrl	$2, %ecx
	unpcklpd	%xmm5, %xmm5
	subl	$1, %ecx
	salq	$4, %rcx
	addq	%rdx, %rcx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L35:
	addq	$16, %rdx
.L15:
	movdqa	(%r12), %xmm0
	movapd	%xmm5, %xmm1
	movq	%rdx, %r12
	cvtdq2pd	%xmm0, %xmm3
	pshufd	$238, %xmm0, %xmm0
	cmplepd	%xmm3, %xmm1
	movapd	%xmm5, %xmm3
	cvtdq2pd	%xmm0, %xmm0
	cmplepd	%xmm0, %xmm3
	pand	%xmm4, %xmm1
	pand	%xmm4, %xmm3
	movdqa	%xmm1, %xmm0
	shufps	$136, %xmm3, %xmm0
	paddd	%xmm0, %xmm2
	cmpq	%rcx, %rdx
	jne	.L35
	movdqa	%xmm2, %xmm0
	movl	%eax, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %edx
	testb	$3, %al
	je	.L21
.L19:
	movslq	%ecx, %rsi
	pxor	%xmm0, %xmm0
	cvtsi2sdl	16(%rsp,%rsi,4), %xmm0
	leal	1(%rcx), %esi
	comisd	%xmm6, %xmm0
	sbbl	$-1, %edx
	cmpl	%esi, %eax
	jle	.L21
	movslq	%esi, %rsi
	pxor	%xmm0, %xmm0
	cvtsi2sdl	16(%rsp,%rsi,4), %xmm0
	comisd	%xmm6, %xmm0
	sbbl	$-1, %edx
	addl	$2, %ecx
	cmpl	%ecx, %eax
	jle	.L21
	movslq	%ecx, %rcx
	pxor	%xmm0, %xmm0
	cvtsi2sdl	16(%rsp,%rcx,4), %xmm0
	comisd	%xmm6, %xmm0
	sbbl	$-1, %edx
.L21:
	cmpl	%edi, %edx
	jl	.L17
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L18:
	movq	4024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	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
.L17:
	.cfi_restore_state
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L18
.L34:
	movl	12(%rsp), %edi
	pxor	%xmm0, %xmm0
	pxor	%xmm6, %xmm6
	cvtsi2sdl	%r13d, %xmm6
	cvtsi2sdl	%edi, %xmm0
	mulsd	.LC5(%rip), %xmm0
	divsd	%xmm0, %xmm6
	jmp	.L20
.L2:
	movl	12(%rsp), %edi
	xorl	%edx, %edx
	jmp	.L21
.L24:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L19
.L23:
	xorl	%ecx, %ecx
	jmp	.L4
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	1
	.quad	1
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC5:
	.long	0
	.long	1074790400
	.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 %d"
.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	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	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), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L3
	testl	%eax, %eax
	jle	.L2
	leal	-1(%rax), %r8d
	cmpl	$2, %r8d
	jbe	.L23
	movl	%eax, %edx
	movq	%r12, %rcx
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	leal	-1(%rdx), %esi
	leaq	16(%r12), %rdx
	salq	$4, %rsi
	addq	%rdx, %rsi
	.p2align 4,,10
	.p2align 3
.L5:
	paddd	(%rcx), %xmm0
	addq	$16, %rcx
	cmpq	%rsi, %rcx
	jne	.L5
	movdqa	%xmm0, %xmm1
	movl	%eax, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r13d
	cmpl	%ecx, %eax
	je	.L34
.L4:
	movslq	%ecx, %rdx
	addl	16(%rsp,%rdx,4), %r13d
	leal	1(%rcx), %edx
	cmpl	%edx, %eax
	jle	.L7
	movslq	%edx, %rdx
	addl	$2, %ecx
	addl	16(%rsp,%rdx,4), %r13d
	cmpl	%ecx, %eax
	jle	.L7
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %r13d
.L7:
	movl	12(%rsp), %edi
	pxor	%xmm0, %xmm0
	pxor	%xmm6, %xmm6
	cvtsi2sdl	%r13d, %xmm6
	cvtsi2sdl	%edi, %xmm0
	mulsd	.LC5(%rip), %xmm0
	divsd	%xmm0, %xmm6
	cmpl	$2, %r8d
	jbe	.L24
	leaq	16(%r12), %rdx
.L20:
	movl	%eax, %ecx
	movapd	%xmm6, %xmm5
	movdqa	.LC2(%rip), %xmm4
	pxor	%xmm2, %xmm2
	shrl	$2, %ecx
	unpcklpd	%xmm5, %xmm5
	subl	$1, %ecx
	salq	$4, %rcx
	addq	%rdx, %rcx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L35:
	addq	$16, %rdx
.L15:
	movdqa	(%r12), %xmm0
	movapd	%xmm5, %xmm1
	movq	%rdx, %r12
	cvtdq2pd	%xmm0, %xmm3
	pshufd	$238, %xmm0, %xmm0
	cmplepd	%xmm3, %xmm1
	movapd	%xmm5, %xmm3
	cvtdq2pd	%xmm0, %xmm0
	cmplepd	%xmm0, %xmm3
	pand	%xmm4, %xmm1
	pand	%xmm4, %xmm3
	movdqa	%xmm1, %xmm0
	shufps	$136, %xmm3, %xmm0
	paddd	%xmm0, %xmm2
	cmpq	%rcx, %rdx
	jne	.L35
	movdqa	%xmm2, %xmm0
	movl	%eax, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %edx
	testb	$3, %al
	je	.L21
.L19:
	movslq	%ecx, %rsi
	pxor	%xmm0, %xmm0
	cvtsi2sdl	16(%rsp,%rsi,4), %xmm0
	leal	1(%rcx), %esi
	comisd	%xmm6, %xmm0
	sbbl	$-1, %edx
	cmpl	%esi, %eax
	jle	.L21
	movslq	%esi, %rsi
	pxor	%xmm0, %xmm0
	cvtsi2sdl	16(%rsp,%rsi,4), %xmm0
	comisd	%xmm6, %xmm0
	sbbl	$-1, %edx
	addl	$2, %ecx
	cmpl	%ecx, %eax
	jle	.L21
	movslq	%ecx, %rcx
	pxor	%xmm0, %xmm0
	cvtsi2sdl	16(%rsp,%rcx,4), %xmm0
	comisd	%xmm6, %xmm0
	sbbl	$-1, %edx
.L21:
	cmpl	%edi, %edx
	jl	.L17
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L18:
	movq	4024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	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
.L17:
	.cfi_restore_state
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L18
.L34:
	movl	12(%rsp), %edi
	pxor	%xmm0, %xmm0
	pxor	%xmm6, %xmm6
	cvtsi2sdl	%r13d, %xmm6
	cvtsi2sdl	%edi, %xmm0
	mulsd	.LC5(%rip), %xmm0
	divsd	%xmm0, %xmm6
	jmp	.L20
.L2:
	movl	12(%rsp), %edi
	xorl	%edx, %edx
	jmp	.L21
.L24:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L19
.L23:
	xorl	%ecx, %ecx
	jmp	.L4
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	1
	.quad	1
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC5:
	.long	0
	.long	1074790400
	.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>
#define NUM 1000

int main(){
   int n,m,i,total,cnt=0,a[NUM];
   double limit;
   scanf("%d %d",&n,&m);
   for(i=0;i<n;i++){
      scanf("%d",&a[i]);
   }
   for(i=0;i<n;i++){
      total+=a[i];
   }
   limit=total/(4.0*m);
   for(i=0;i<n;i++){
      if(a[i]>=limit){
         cnt++;
      }
   }
   if(cnt>=m){
      printf("Yes");
   }else{
      printf("No");
   }
   return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#define NUM 1000

int main(){
   int n,m,i,total,cnt=0,a[NUM];
   double limit;
   scanf("%d %d",&n,&m);
   for(i=0;i<n;i++){
      scanf("%d",&a[i]);
   }
   for(i=0;i<n;i++){
      total+=a[i];
   }
   limit=total/(4.0*m);
   for(i=0;i<n;i++){
      if(a[i]>=limit){
         cnt++;
      }
   }
   if(cnt>=m){
      printf("Yes");
   }else{
      printf("No");
   }
   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 1
5 4 0 1
 3 2
519 19 1
 12 3
4 56 78 901 2 345 67 890 123 45 3 789
 3 1
5 4 0 1
 3 2
39 19 1
 3 2
39 14 1
 3 2
39 18 1
 3 1
39 18 1
 3 1
39 16 1
 3 1
53 16 1

No No No No No No No No 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>
#define NUM 1000

int main(){
   int n,m,i,total,cnt=0,a[NUM];
   double limit;
   scanf("%d %d",&n,&m);
   for(i=0;i<n;i++){
      scanf("%d",&a[i]);
   }
   for(i=0;i<n;i++){
      total+=a[i];
   }
   limit=total/(4.0*m);
   for(i=0;i<n;i++){
      if(a[i]>=limit){
         cnt++;
      }
   }
   if(cnt>=m){
      printf("Yes");
   }else{
      printf("No");
   }
   return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.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	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	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), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L3
	testl	%eax, %eax
	jle	.L2
	leal	-1(%rax), %r8d
	cmpl	$2, %r8d
	jbe	.L23
	movl	%eax, %edx
	movq	%r12, %rcx
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	leal	-1(%rdx), %esi
	leaq	16(%r12), %rdx
	salq	$4, %rsi
	addq	%rdx, %rsi
	.p2align 4,,10
	.p2align 3
.L5:
	paddd	(%rcx), %xmm0
	addq	$16, %rcx
	cmpq	%rsi, %rcx
	jne	.L5
	movdqa	%xmm0, %xmm1
	movl	%eax, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r13d
	cmpl	%ecx, %eax
	je	.L34
.L4:
	movslq	%ecx, %rdx
	addl	16(%rsp,%rdx,4), %r13d
	leal	1(%rcx), %edx
	cmpl	%edx, %eax
	jle	.L7
	movslq	%edx, %rdx
	addl	$2, %ecx
	addl	16(%rsp,%rdx,4), %r13d
	cmpl	%ecx, %eax
	jle	.L7
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %r13d
.L7:
	movl	12(%rsp), %edi
	pxor	%xmm0, %xmm0
	pxor	%xmm6, %xmm6
	cvtsi2sdl	%r13d, %xmm6
	cvtsi2sdl	%edi, %xmm0
	mulsd	.LC5(%rip), %xmm0
	divsd	%xmm0, %xmm6
	cmpl	$2, %r8d
	jbe	.L24
	leaq	16(%r12), %rdx
.L20:
	movl	%eax, %ecx
	movapd	%xmm6, %xmm5
	movdqa	.LC2(%rip), %xmm4
	pxor	%xmm2, %xmm2
	shrl	$2, %ecx
	unpcklpd	%xmm5, %xmm5
	subl	$1, %ecx
	salq	$4, %rcx
	addq	%rdx, %rcx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L35:
	addq	$16, %rdx
.L15:
	movdqa	(%r12), %xmm0
	movapd	%xmm5, %xmm1
	movq	%rdx, %r12
	cvtdq2pd	%xmm0, %xmm3
	pshufd	$238, %xmm0, %xmm0
	cmplepd	%xmm3, %xmm1
	movapd	%xmm5, %xmm3
	cvtdq2pd	%xmm0, %xmm0
	cmplepd	%xmm0, %xmm3
	pand	%xmm4, %xmm1
	pand	%xmm4, %xmm3
	movdqa	%xmm1, %xmm0
	shufps	$136, %xmm3, %xmm0
	paddd	%xmm0, %xmm2
	cmpq	%rcx, %rdx
	jne	.L35
	movdqa	%xmm2, %xmm0
	movl	%eax, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %edx
	testb	$3, %al
	je	.L21
.L19:
	movslq	%ecx, %rsi
	pxor	%xmm0, %xmm0
	cvtsi2sdl	16(%rsp,%rsi,4), %xmm0
	leal	1(%rcx), %esi
	comisd	%xmm6, %xmm0
	sbbl	$-1, %edx
	cmpl	%esi, %eax
	jle	.L21
	movslq	%esi, %rsi
	pxor	%xmm0, %xmm0
	cvtsi2sdl	16(%rsp,%rsi,4), %xmm0
	comisd	%xmm6, %xmm0
	sbbl	$-1, %edx
	addl	$2, %ecx
	cmpl	%ecx, %eax
	jle	.L21
	movslq	%ecx, %rcx
	pxor	%xmm0, %xmm0
	cvtsi2sdl	16(%rsp,%rcx,4), %xmm0
	comisd	%xmm6, %xmm0
	sbbl	$-1, %edx
.L21:
	cmpl	%edi, %edx
	jl	.L17
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L18:
	movq	4024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	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
.L17:
	.cfi_restore_state
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L18
.L34:
	movl	12(%rsp), %edi
	pxor	%xmm0, %xmm0
	pxor	%xmm6, %xmm6
	cvtsi2sdl	%r13d, %xmm6
	cvtsi2sdl	%edi, %xmm0
	mulsd	.LC5(%rip), %xmm0
	divsd	%xmm0, %xmm6
	jmp	.L20
.L2:
	movl	12(%rsp), %edi
	xorl	%edx, %edx
	jmp	.L21
.L24:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L19
.L23:
	xorl	%ecx, %ecx
	jmp	.L4
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	1
	.quad	1
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC5:
	.long	0
	.long	1074790400
	.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 %d"
.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	.LC0(%rip), %rdi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	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), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L3
	testl	%eax, %eax
	jle	.L2
	leal	-1(%rax), %r8d
	cmpl	$2, %r8d
	jbe	.L23
	movl	%eax, %edx
	movq	%r12, %rcx
	pxor	%xmm0, %xmm0
	shrl	$2, %edx
	leal	-1(%rdx), %esi
	leaq	16(%r12), %rdx
	salq	$4, %rsi
	addq	%rdx, %rsi
	.p2align 4,,10
	.p2align 3
.L5:
	paddd	(%rcx), %xmm0
	addq	$16, %rcx
	cmpq	%rsi, %rcx
	jne	.L5
	movdqa	%xmm0, %xmm1
	movl	%eax, %ecx
	psrldq	$8, %xmm1
	andl	$-4, %ecx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %r13d
	cmpl	%ecx, %eax
	je	.L34
.L4:
	movslq	%ecx, %rdx
	addl	16(%rsp,%rdx,4), %r13d
	leal	1(%rcx), %edx
	cmpl	%edx, %eax
	jle	.L7
	movslq	%edx, %rdx
	addl	$2, %ecx
	addl	16(%rsp,%rdx,4), %r13d
	cmpl	%ecx, %eax
	jle	.L7
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %r13d
.L7:
	movl	12(%rsp), %edi
	pxor	%xmm0, %xmm0
	pxor	%xmm6, %xmm6
	cvtsi2sdl	%r13d, %xmm6
	cvtsi2sdl	%edi, %xmm0
	mulsd	.LC5(%rip), %xmm0
	divsd	%xmm0, %xmm6
	cmpl	$2, %r8d
	jbe	.L24
	leaq	16(%r12), %rdx
.L20:
	movl	%eax, %ecx
	movapd	%xmm6, %xmm5
	movdqa	.LC2(%rip), %xmm4
	pxor	%xmm2, %xmm2
	shrl	$2, %ecx
	unpcklpd	%xmm5, %xmm5
	subl	$1, %ecx
	salq	$4, %rcx
	addq	%rdx, %rcx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L35:
	addq	$16, %rdx
.L15:
	movdqa	(%r12), %xmm0
	movapd	%xmm5, %xmm1
	movq	%rdx, %r12
	cvtdq2pd	%xmm0, %xmm3
	pshufd	$238, %xmm0, %xmm0
	cmplepd	%xmm3, %xmm1
	movapd	%xmm5, %xmm3
	cvtdq2pd	%xmm0, %xmm0
	cmplepd	%xmm0, %xmm3
	pand	%xmm4, %xmm1
	pand	%xmm4, %xmm3
	movdqa	%xmm1, %xmm0
	shufps	$136, %xmm3, %xmm0
	paddd	%xmm0, %xmm2
	cmpq	%rcx, %rdx
	jne	.L35
	movdqa	%xmm2, %xmm0
	movl	%eax, %ecx
	psrldq	$8, %xmm0
	andl	$-4, %ecx
	paddd	%xmm0, %xmm2
	movdqa	%xmm2, %xmm0
	psrldq	$4, %xmm0
	paddd	%xmm0, %xmm2
	movd	%xmm2, %edx
	testb	$3, %al
	je	.L21
.L19:
	movslq	%ecx, %rsi
	pxor	%xmm0, %xmm0
	cvtsi2sdl	16(%rsp,%rsi,4), %xmm0
	leal	1(%rcx), %esi
	comisd	%xmm6, %xmm0
	sbbl	$-1, %edx
	cmpl	%esi, %eax
	jle	.L21
	movslq	%esi, %rsi
	pxor	%xmm0, %xmm0
	cvtsi2sdl	16(%rsp,%rsi,4), %xmm0
	comisd	%xmm6, %xmm0
	sbbl	$-1, %edx
	addl	$2, %ecx
	cmpl	%ecx, %eax
	jle	.L21
	movslq	%ecx, %rcx
	pxor	%xmm0, %xmm0
	cvtsi2sdl	16(%rsp,%rcx,4), %xmm0
	comisd	%xmm6, %xmm0
	sbbl	$-1, %edx
.L21:
	cmpl	%edi, %edx
	jl	.L17
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L18:
	movq	4024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	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
.L17:
	.cfi_restore_state
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L18
.L34:
	movl	12(%rsp), %edi
	pxor	%xmm0, %xmm0
	pxor	%xmm6, %xmm6
	cvtsi2sdl	%r13d, %xmm6
	cvtsi2sdl	%edi, %xmm0
	mulsd	.LC5(%rip), %xmm0
	divsd	%xmm0, %xmm6
	jmp	.L20
.L2:
	movl	12(%rsp), %edi
	xorl	%edx, %edx
	jmp	.L21
.L24:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L19
.L23:
	xorl	%ecx, %ecx
	jmp	.L4
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	1
	.quad	1
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC5:
	.long	0
	.long	1074790400
	.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:
```