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>
#include<string.h>

int down(const void *a , const void *b){
  return *(int *)b - *(int *)a;
}

int main(void){
  int n , k;
  scanf("%d %d",&n ,&k);

  int h[n];
  for(int i = 0;i < n;i ++){
    scanf("%d",&h[i]);
  }
  qsort(h,n,sizeof(int),down);

  long long ans = 0;

  for(int i = k;i < n;i ++){
    ans += h[i];
  }

  printf("%lld\n",ans);

  return 0;

}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	down
	.type	down, @function
down:
.LFB35:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE35:
	.size	down, .-down
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-48(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %rsi
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L5
.L23:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L23
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L24
.L6:
	movq	%rsp, %r13
	testl	%esi, %esi
	jle	.L7
	movq	%r13, %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %esi
	addq	$4, %r12
	cmpl	%ebx, %esi
	jg	.L8
.L7:
	leaq	down(%rip), %rcx
	movl	$4, %edx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	-44(%rbp), %ecx
	movl	-48(%rbp), %esi
	cmpl	%esi, %ecx
	jge	.L15
	movl	%esi, %edi
	subl	%ecx, %edi
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L16
	movl	%edi, %edx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	movslq	%ecx, %rax
	shrl	$2, %edx
	leaq	0(%r13,%rax,4), %rax
	salq	$4, %rdx
	addq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L11:
	movdqu	(%rax), %xmm1
	movdqa	%xmm4, %xmm2
	addq	$16, %rax
	pcmpgtd	%xmm1, %xmm2
	movdqa	%xmm1, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm1
	paddq	%xmm3, %xmm0
	paddq	%xmm1, %xmm0
	cmpq	%rdx, %rax
	jne	.L11
	movdqa	%xmm0, %xmm1
	movl	%edi, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	paddq	%xmm1, %xmm0
	addl	%eax, %ecx
	movq	%xmm0, %rdx
	cmpl	%eax, %edi
	je	.L9
.L10:
	movslq	%ecx, %rax
	leaq	0(%r13,%rax,4), %rax
	movslq	(%rax), %rdi
	addq	%rdi, %rdx
	leal	1(%rcx), %edi
	cmpl	%esi, %edi
	jge	.L9
	movslq	4(%rax), %rdi
	addl	$2, %ecx
	addq	%rdi, %rdx
	cmpl	%ecx, %esi
	jle	.L9
	movslq	8(%rax), %rax
	addq	%rax, %rdx
.L9:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L25
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L24:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L15:
	xorl	%edx, %edx
	jmp	.L9
.L16:
	xorl	%edx, %edx
	jmp	.L10
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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
	.p2align 4
	.globl	down
	.type	down, @function
down:
.LFB35:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE35:
	.size	down, .-down
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-48(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %rsi
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L5
.L23:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L23
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L24
.L6:
	movq	%rsp, %r13
	testl	%esi, %esi
	jle	.L7
	movq	%r13, %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %esi
	addq	$4, %r12
	cmpl	%ebx, %esi
	jg	.L8
.L7:
	leaq	down(%rip), %rcx
	movl	$4, %edx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	-44(%rbp), %ecx
	movl	-48(%rbp), %esi
	cmpl	%esi, %ecx
	jge	.L15
	movl	%esi, %edi
	subl	%ecx, %edi
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L16
	movl	%edi, %edx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	movslq	%ecx, %rax
	shrl	$2, %edx
	leaq	0(%r13,%rax,4), %rax
	salq	$4, %rdx
	addq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L11:
	movdqu	(%rax), %xmm1
	movdqa	%xmm4, %xmm2
	addq	$16, %rax
	pcmpgtd	%xmm1, %xmm2
	movdqa	%xmm1, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm1
	paddq	%xmm3, %xmm0
	paddq	%xmm1, %xmm0
	cmpq	%rdx, %rax
	jne	.L11
	movdqa	%xmm0, %xmm1
	movl	%edi, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	paddq	%xmm1, %xmm0
	addl	%eax, %ecx
	movq	%xmm0, %rdx
	cmpl	%eax, %edi
	je	.L9
.L10:
	movslq	%ecx, %rax
	leaq	0(%r13,%rax,4), %rax
	movslq	(%rax), %rdi
	addq	%rdi, %rdx
	leal	1(%rcx), %edi
	cmpl	%esi, %edi
	jge	.L9
	movslq	4(%rax), %rdi
	addl	$2, %ecx
	addq	%rdi, %rdx
	cmpl	%ecx, %esi
	jle	.L9
	movslq	8(%rax), %rax
	addq	%rax, %rdx
.L9:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L25
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L24:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L15:
	xorl	%edx, %edx
	jmp	.L9
.L16:
	xorl	%edx, %edx
	jmp	.L10
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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
	.p2align 4
	.globl	down
	.type	down, @function
down:
.LFB35:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE35:
	.size	down, .-down
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-48(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %rsi
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L5
.L23:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L23
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L24
.L6:
	movq	%rsp, %r13
	testl	%esi, %esi
	jle	.L7
	movq	%r13, %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %esi
	addq	$4, %r12
	cmpl	%ebx, %esi
	jg	.L8
.L7:
	leaq	down(%rip), %rcx
	movl	$4, %edx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	-44(%rbp), %ecx
	movl	-48(%rbp), %esi
	cmpl	%esi, %ecx
	jge	.L15
	movl	%esi, %edi
	subl	%ecx, %edi
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L16
	movl	%edi, %edx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	movslq	%ecx, %rax
	shrl	$2, %edx
	leaq	0(%r13,%rax,4), %rax
	salq	$4, %rdx
	addq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L11:
	movdqu	(%rax), %xmm1
	movdqa	%xmm4, %xmm2
	addq	$16, %rax
	pcmpgtd	%xmm1, %xmm2
	movdqa	%xmm1, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm1
	paddq	%xmm3, %xmm0
	paddq	%xmm1, %xmm0
	cmpq	%rdx, %rax
	jne	.L11
	movdqa	%xmm0, %xmm1
	movl	%edi, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	paddq	%xmm1, %xmm0
	addl	%eax, %ecx
	movq	%xmm0, %rdx
	cmpl	%eax, %edi
	je	.L9
.L10:
	movslq	%ecx, %rax
	leaq	0(%r13,%rax,4), %rax
	movslq	(%rax), %rdi
	addq	%rdi, %rdx
	leal	1(%rcx), %edi
	cmpl	%esi, %edi
	jge	.L9
	movslq	4(%rax), %rdi
	addl	$2, %ecx
	addq	%rdi, %rdx
	cmpl	%ecx, %esi
	jle	.L9
	movslq	8(%rax), %rax
	addq	%rax, %rdx
.L9:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L25
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L24:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L15:
	xorl	%edx, %edx
	jmp	.L9
.L16:
	xorl	%edx, %edx
	jmp	.L10
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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>
#include<string.h>

int down(const void *a , const void *b){
  return *(int *)b - *(int *)a;
}

int main(void){
  int n , k;
  scanf("%d %d",&n ,&k);

  int h[n];
  for(int i = 0;i < n;i ++){
    scanf("%d",&h[i]);
  }
  qsort(h,n,sizeof(int),down);

  long long ans = 0;

  for(int i = k;i < n;i ++){
    ans += h[i];
  }

  printf("%lld\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>
#include<string.h>

int down(const void *a , const void *b){
  return *(int *)b - *(int *)a;
}

int main(void){
  int n , k;
  scanf("%d %d",&n ,&k);

  int h[n];
  for(int i = 0;i < n;i ++){
    scanf("%d",&h[i]);
  }
  qsort(h,n,sizeof(int),down);

  long long ans = 0;

  for(int i = k;i < n;i ++){
    ans += h[i];
  }

  printf("%lld\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:

3 0
1000000000 1000000000 1010000000
 8 8
7 9 3 2 3 8 4 6
 3 1
0 1 5
 3 0
1000000000 1000000000 1110000000
 3 0
1100000000 1000000000 1110000000
 3 0
1100000000 1000000001 1110000000
 3 0
1100000000 1000000001 1110001000
 3 0
1100000001 1000000001 1110001000
 8 0
4 9 5 2 3 6 5 6
 8 1
4 9 5 2 3 6 5 6

3010000000
 0
 1
 3110000000
 3210000000
 3210000001
 3210001001
 3210001002
 40
 31

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>
#include<string.h>

int down(const void *a , const void *b){
  return *(int *)b - *(int *)a;
}

int main(void){
  int n , k;
  scanf("%d %d",&n ,&k);

  int h[n];
  for(int i = 0;i < n;i ++){
    scanf("%d",&h[i]);
  }
  qsort(h,n,sizeof(int),down);

  long long ans = 0;

  for(int i = k;i < n;i ++){
    ans += h[i];
  }

  printf("%lld\n",ans);

  return 0;

}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	down
	.type	down, @function
down:
.LFB35:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE35:
	.size	down, .-down
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-48(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %rsi
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L5
.L23:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L23
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L24
.L6:
	movq	%rsp, %r13
	testl	%esi, %esi
	jle	.L7
	movq	%r13, %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %esi
	addq	$4, %r12
	cmpl	%ebx, %esi
	jg	.L8
.L7:
	leaq	down(%rip), %rcx
	movl	$4, %edx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	-44(%rbp), %ecx
	movl	-48(%rbp), %esi
	cmpl	%esi, %ecx
	jge	.L15
	movl	%esi, %edi
	subl	%ecx, %edi
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L16
	movl	%edi, %edx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	movslq	%ecx, %rax
	shrl	$2, %edx
	leaq	0(%r13,%rax,4), %rax
	salq	$4, %rdx
	addq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L11:
	movdqu	(%rax), %xmm1
	movdqa	%xmm4, %xmm2
	addq	$16, %rax
	pcmpgtd	%xmm1, %xmm2
	movdqa	%xmm1, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm1
	paddq	%xmm3, %xmm0
	paddq	%xmm1, %xmm0
	cmpq	%rdx, %rax
	jne	.L11
	movdqa	%xmm0, %xmm1
	movl	%edi, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	paddq	%xmm1, %xmm0
	addl	%eax, %ecx
	movq	%xmm0, %rdx
	cmpl	%eax, %edi
	je	.L9
.L10:
	movslq	%ecx, %rax
	leaq	0(%r13,%rax,4), %rax
	movslq	(%rax), %rdi
	addq	%rdi, %rdx
	leal	1(%rcx), %edi
	cmpl	%esi, %edi
	jge	.L9
	movslq	4(%rax), %rdi
	addl	$2, %ecx
	addq	%rdi, %rdx
	cmpl	%ecx, %esi
	jle	.L9
	movslq	8(%rax), %rax
	addq	%rax, %rdx
.L9:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L25
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L24:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L15:
	xorl	%edx, %edx
	jmp	.L9
.L16:
	xorl	%edx, %edx
	jmp	.L10
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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
	.p2align 4
	.globl	down
	.type	down, @function
down:
.LFB35:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE35:
	.size	down, .-down
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rsi
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-48(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %rsi
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L5
.L23:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L23
.L5:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L24
.L6:
	movq	%rsp, %r13
	testl	%esi, %esi
	jle	.L7
	movq	%r13, %r12
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %esi
	addq	$4, %r12
	cmpl	%ebx, %esi
	jg	.L8
.L7:
	leaq	down(%rip), %rcx
	movl	$4, %edx
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	qsort@PLT
	movl	-44(%rbp), %ecx
	movl	-48(%rbp), %esi
	cmpl	%esi, %ecx
	jge	.L15
	movl	%esi, %edi
	subl	%ecx, %edi
	leal	-1(%rdi), %eax
	cmpl	$2, %eax
	jbe	.L16
	movl	%edi, %edx
	pxor	%xmm0, %xmm0
	pxor	%xmm4, %xmm4
	movslq	%ecx, %rax
	shrl	$2, %edx
	leaq	0(%r13,%rax,4), %rax
	salq	$4, %rdx
	addq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L11:
	movdqu	(%rax), %xmm1
	movdqa	%xmm4, %xmm2
	addq	$16, %rax
	pcmpgtd	%xmm1, %xmm2
	movdqa	%xmm1, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm1
	paddq	%xmm3, %xmm0
	paddq	%xmm1, %xmm0
	cmpq	%rdx, %rax
	jne	.L11
	movdqa	%xmm0, %xmm1
	movl	%edi, %eax
	psrldq	$8, %xmm1
	andl	$-4, %eax
	paddq	%xmm1, %xmm0
	addl	%eax, %ecx
	movq	%xmm0, %rdx
	cmpl	%eax, %edi
	je	.L9
.L10:
	movslq	%ecx, %rax
	leaq	0(%r13,%rax,4), %rax
	movslq	(%rax), %rdi
	addq	%rdi, %rdx
	leal	1(%rcx), %edi
	cmpl	%esi, %edi
	jge	.L9
	movslq	4(%rax), %rdi
	addl	$2, %ecx
	addq	%rdi, %rdx
	cmpl	%ecx, %esi
	jle	.L9
	movslq	8(%rax), %rax
	addq	%rax, %rdx
.L9:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L25
	leaq	-32(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L24:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L15:
	xorl	%edx, %edx
	jmp	.L9
.L16:
	xorl	%edx, %edx
	jmp	.L10
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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:
```