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<stdlib.h>
int cmp(const int *a,const int *b){
  return *b-*a;
}
int main(){
  int n,a[334000],i;
  scanf("%d",&n);
  for(i=0;i<3*n;i++){
    scanf("%d",&a[i]);
  }
  qsort(a,3*n,4,cmp);
  long long ans;
  for(i=1;i<=n*2;i+=2){
    ans+=a[i];
  }
  printf("%lld",ans);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	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
	leaq	-1335296(%rsp), %r11
	.cfi_def_cfa 11, 1335344
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$736, %rsp
	.cfi_def_cfa_offset 1336080
	leaq	.LC0(%rip), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 1336024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %r14
	movq	%r14, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	(%rax,%rax,2), %esi
	testl	%esi, %esi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	leal	(%rax,%rax,2), %esi
	cmpl	%ebx, %esi
	jg	.L5
.L4:
	movl	$4, %edx
	movslq	%esi, %rsi
	leaq	cmp(%rip), %rcx
	movq	%r14, %rdi
	call	qsort@PLT
	movl	12(%rsp), %eax
	leal	(%rax,%rax), %edx
	testl	%edx, %edx
	jle	.L6
	leal	-1(%rdx), %eax
	cmpl	$7, %eax
	jbe	.L12
	shrl	$3, %eax
	pxor	%xmm1, %xmm1
	pxor	%xmm4, %xmm4
	movl	%eax, %esi
	leaq	20(%rsp), %rax
	leal	-1(%rsi), %ecx
	salq	$5, %rcx
	leaq	52(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	movdqu	(%rax), %xmm0
	movdqu	16(%rax), %xmm5
	movdqa	%xmm4, %xmm2
	addq	$32, %rax
	shufps	$136, %xmm5, %xmm0
	pcmpgtd	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	paddq	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L8
	movdqa	%xmm1, %xmm0
	leal	1(,%rsi,8), %eax
	psrldq	$8, %xmm0
	paddq	%xmm0, %xmm1
	movq	%xmm1, %r13
.L7:
	movslq	%eax, %rcx
	movslq	16(%rsp,%rcx,4), %rcx
	addq	%rcx, %r13
	leal	2(%rax), %ecx
	cmpl	%edx, %ecx
	jg	.L6
	movslq	%ecx, %rcx
	movslq	16(%rsp,%rcx,4), %rcx
	addq	%rcx, %r13
	leal	4(%rax), %ecx
	cmpl	%ecx, %edx
	jl	.L6
	movslq	%ecx, %rcx
	addl	$6, %eax
	movslq	16(%rsp,%rcx,4), %rcx
	addq	%rcx, %r13
	cmpl	%eax, %edx
	jl	.L6
	cltq
	movslq	16(%rsp,%rax,4), %rax
	addq	%rax, %r13
.L6:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	1336024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$1336032, %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
.L12:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L7
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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	cmp
	.type	cmp, @function
cmp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	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
	leaq	-1335296(%rsp), %r11
	.cfi_def_cfa 11, 1335344
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$736, %rsp
	.cfi_def_cfa_offset 1336080
	leaq	.LC0(%rip), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 1336024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %r14
	movq	%r14, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	(%rax,%rax,2), %esi
	testl	%esi, %esi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	leal	(%rax,%rax,2), %esi
	cmpl	%ebx, %esi
	jg	.L5
.L4:
	movl	$4, %edx
	movslq	%esi, %rsi
	leaq	cmp(%rip), %rcx
	movq	%r14, %rdi
	call	qsort@PLT
	movl	12(%rsp), %eax
	leal	(%rax,%rax), %edx
	testl	%edx, %edx
	jle	.L6
	leal	-1(%rdx), %eax
	cmpl	$7, %eax
	jbe	.L12
	shrl	$3, %eax
	pxor	%xmm1, %xmm1
	pxor	%xmm4, %xmm4
	movl	%eax, %esi
	leaq	20(%rsp), %rax
	leal	-1(%rsi), %ecx
	salq	$5, %rcx
	leaq	52(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	movdqu	(%rax), %xmm0
	movdqu	16(%rax), %xmm5
	movdqa	%xmm4, %xmm2
	addq	$32, %rax
	shufps	$136, %xmm5, %xmm0
	pcmpgtd	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	paddq	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L8
	movdqa	%xmm1, %xmm0
	leal	1(,%rsi,8), %eax
	psrldq	$8, %xmm0
	paddq	%xmm0, %xmm1
	movq	%xmm1, %r13
.L7:
	movslq	%eax, %rcx
	movslq	16(%rsp,%rcx,4), %rcx
	addq	%rcx, %r13
	leal	2(%rax), %ecx
	cmpl	%edx, %ecx
	jg	.L6
	movslq	%ecx, %rcx
	movslq	16(%rsp,%rcx,4), %rcx
	addq	%rcx, %r13
	leal	4(%rax), %ecx
	cmpl	%ecx, %edx
	jl	.L6
	movslq	%ecx, %rcx
	addl	$6, %eax
	movslq	16(%rsp,%rcx,4), %rcx
	addq	%rcx, %r13
	cmpl	%eax, %edx
	jl	.L6
	cltq
	movslq	16(%rsp,%rax,4), %rax
	addq	%rax, %r13
.L6:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	1336024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$1336032, %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
.L12:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L7
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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	cmp
	.type	cmp, @function
cmp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	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
	leaq	-1335296(%rsp), %r11
	.cfi_def_cfa 11, 1335344
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$736, %rsp
	.cfi_def_cfa_offset 1336080
	leaq	.LC0(%rip), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 1336024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %r14
	movq	%r14, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	(%rax,%rax,2), %esi
	testl	%esi, %esi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	leal	(%rax,%rax,2), %esi
	cmpl	%ebx, %esi
	jg	.L5
.L4:
	movl	$4, %edx
	movslq	%esi, %rsi
	leaq	cmp(%rip), %rcx
	movq	%r14, %rdi
	call	qsort@PLT
	movl	12(%rsp), %eax
	leal	(%rax,%rax), %edx
	testl	%edx, %edx
	jle	.L6
	leal	-1(%rdx), %eax
	cmpl	$7, %eax
	jbe	.L12
	shrl	$3, %eax
	pxor	%xmm1, %xmm1
	pxor	%xmm4, %xmm4
	movl	%eax, %esi
	leaq	20(%rsp), %rax
	leal	-1(%rsi), %ecx
	salq	$5, %rcx
	leaq	52(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	movdqu	(%rax), %xmm0
	movdqu	16(%rax), %xmm5
	movdqa	%xmm4, %xmm2
	addq	$32, %rax
	shufps	$136, %xmm5, %xmm0
	pcmpgtd	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	paddq	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L8
	movdqa	%xmm1, %xmm0
	leal	1(,%rsi,8), %eax
	psrldq	$8, %xmm0
	paddq	%xmm0, %xmm1
	movq	%xmm1, %r13
.L7:
	movslq	%eax, %rcx
	movslq	16(%rsp,%rcx,4), %rcx
	addq	%rcx, %r13
	leal	2(%rax), %ecx
	cmpl	%edx, %ecx
	jg	.L6
	movslq	%ecx, %rcx
	movslq	16(%rsp,%rcx,4), %rcx
	addq	%rcx, %r13
	leal	4(%rax), %ecx
	cmpl	%ecx, %edx
	jl	.L6
	movslq	%ecx, %rcx
	addl	$6, %eax
	movslq	16(%rsp,%rcx,4), %rcx
	addq	%rcx, %r13
	cmpl	%eax, %edx
	jl	.L6
	cltq
	movslq	16(%rsp,%rax,4), %rax
	addq	%rax, %r13
.L6:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	1336024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$1336032, %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
.L12:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L7
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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<stdlib.h>
int cmp(const int *a,const int *b){
  return *b-*a;
}
int main(){
  int n,a[334000],i;
  scanf("%d",&n);
  for(i=0;i<3*n;i++){
    scanf("%d",&a[i]);
  }
  qsort(a,3*n,4,cmp);
  long long ans;
  for(i=1;i<=n*2;i+=2){
    ans+=a[i];
  }
  printf("%lld",ans);
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<stdlib.h>
int cmp(const int *a,const int *b){
  return *b-*a;
}
int main(){
  int n,a[334000],i;
  scanf("%d",&n);
  for(i=0;i<3*n;i++){
    scanf("%d",&a[i]);
  }
  qsort(a,3*n,4,cmp);
  long long ans;
  for(i=1;i<=n*2;i+=2){
    ans+=a[i];
  }
  printf("%lld",ans);
}```

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:

2
2 2 8 5 1 5
 10
1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1100000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000
 10
1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1100000000 1000100000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000
 2
0 4 8 5 1 5
 2
0 7 8 5 1 5
 2
0 7 8 9 1 5
 10
1000000000 1000000000 1000000000 0000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1100000000 0000100000 1000000000 1000000000 1000000000 1000000000 1000000000 1100100000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000
 10
1000000000 1000000000 1000000000 0000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000010 1000000000 1000000000 1000010000 1000000000 1000000000 1100000000 0000100000 1000000000 1000000000 1000000000 1000000000 1000000000 1100100000 1000000000 1000000000 1000000000 1000000000 1000000000 1000000000
 2
1 4 8 9 1 2
 2
1 4 8 4 1 2

7 10000000000 10000100000 9 12 13 10100000000 10100000010 10 6
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<stdlib.h>
int cmp(const int *a,const int *b){
  return *b-*a;
}
int main(){
  int n,a[334000],i;
  scanf("%d",&n);
  for(i=0;i<3*n;i++){
    scanf("%d",&a[i]);
  }
  qsort(a,3*n,4,cmp);
  long long ans;
  for(i=1;i<=n*2;i+=2){
    ans+=a[i];
  }
  printf("%lld",ans);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	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
	leaq	-1335296(%rsp), %r11
	.cfi_def_cfa 11, 1335344
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$736, %rsp
	.cfi_def_cfa_offset 1336080
	leaq	.LC0(%rip), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 1336024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %r14
	movq	%r14, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	(%rax,%rax,2), %esi
	testl	%esi, %esi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	leal	(%rax,%rax,2), %esi
	cmpl	%ebx, %esi
	jg	.L5
.L4:
	movl	$4, %edx
	movslq	%esi, %rsi
	leaq	cmp(%rip), %rcx
	movq	%r14, %rdi
	call	qsort@PLT
	movl	12(%rsp), %eax
	leal	(%rax,%rax), %edx
	testl	%edx, %edx
	jle	.L6
	leal	-1(%rdx), %eax
	cmpl	$7, %eax
	jbe	.L12
	shrl	$3, %eax
	pxor	%xmm1, %xmm1
	pxor	%xmm4, %xmm4
	movl	%eax, %esi
	leaq	20(%rsp), %rax
	leal	-1(%rsi), %ecx
	salq	$5, %rcx
	leaq	52(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	movdqu	(%rax), %xmm0
	movdqu	16(%rax), %xmm5
	movdqa	%xmm4, %xmm2
	addq	$32, %rax
	shufps	$136, %xmm5, %xmm0
	pcmpgtd	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	paddq	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L8
	movdqa	%xmm1, %xmm0
	leal	1(,%rsi,8), %eax
	psrldq	$8, %xmm0
	paddq	%xmm0, %xmm1
	movq	%xmm1, %r13
.L7:
	movslq	%eax, %rcx
	movslq	16(%rsp,%rcx,4), %rcx
	addq	%rcx, %r13
	leal	2(%rax), %ecx
	cmpl	%edx, %ecx
	jg	.L6
	movslq	%ecx, %rcx
	movslq	16(%rsp,%rcx,4), %rcx
	addq	%rcx, %r13
	leal	4(%rax), %ecx
	cmpl	%ecx, %edx
	jl	.L6
	movslq	%ecx, %rcx
	addl	$6, %eax
	movslq	16(%rsp,%rcx,4), %rcx
	addq	%rcx, %r13
	cmpl	%eax, %edx
	jl	.L6
	cltq
	movslq	16(%rsp,%rax,4), %rax
	addq	%rax, %r13
.L6:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	1336024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$1336032, %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
.L12:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L7
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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	cmp
	.type	cmp, @function
cmp:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	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
	leaq	-1335296(%rsp), %r11
	.cfi_def_cfa 11, 1335344
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$736, %rsp
	.cfi_def_cfa_offset 1336080
	leaq	.LC0(%rip), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 1336024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %r14
	movq	%r14, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	(%rax,%rax,2), %esi
	testl	%esi, %esi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	leal	(%rax,%rax,2), %esi
	cmpl	%ebx, %esi
	jg	.L5
.L4:
	movl	$4, %edx
	movslq	%esi, %rsi
	leaq	cmp(%rip), %rcx
	movq	%r14, %rdi
	call	qsort@PLT
	movl	12(%rsp), %eax
	leal	(%rax,%rax), %edx
	testl	%edx, %edx
	jle	.L6
	leal	-1(%rdx), %eax
	cmpl	$7, %eax
	jbe	.L12
	shrl	$3, %eax
	pxor	%xmm1, %xmm1
	pxor	%xmm4, %xmm4
	movl	%eax, %esi
	leaq	20(%rsp), %rax
	leal	-1(%rsi), %ecx
	salq	$5, %rcx
	leaq	52(%rsp,%rcx), %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	movdqu	(%rax), %xmm0
	movdqu	16(%rax), %xmm5
	movdqa	%xmm4, %xmm2
	addq	$32, %rax
	shufps	$136, %xmm5, %xmm0
	pcmpgtd	%xmm0, %xmm2
	movdqa	%xmm0, %xmm3
	punpckldq	%xmm2, %xmm3
	punpckhdq	%xmm2, %xmm0
	paddq	%xmm3, %xmm1
	paddq	%xmm0, %xmm1
	cmpq	%rax, %rcx
	jne	.L8
	movdqa	%xmm1, %xmm0
	leal	1(,%rsi,8), %eax
	psrldq	$8, %xmm0
	paddq	%xmm0, %xmm1
	movq	%xmm1, %r13
.L7:
	movslq	%eax, %rcx
	movslq	16(%rsp,%rcx,4), %rcx
	addq	%rcx, %r13
	leal	2(%rax), %ecx
	cmpl	%edx, %ecx
	jg	.L6
	movslq	%ecx, %rcx
	movslq	16(%rsp,%rcx,4), %rcx
	addq	%rcx, %r13
	leal	4(%rax), %ecx
	cmpl	%ecx, %edx
	jl	.L6
	movslq	%ecx, %rcx
	addl	$6, %eax
	movslq	16(%rsp,%rcx,4), %rcx
	addq	%rcx, %r13
	cmpl	%eax, %edx
	jl	.L6
	cltq
	movslq	16(%rsp,%rax,4), %rax
	addq	%rax, %r13
.L6:
	xorl	%eax, %eax
	movq	%r13, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	1336024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$1336032, %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
.L12:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L7
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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:
```