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 asc(const void *b, const void *a) {
  return *(int *)a - *(int *)b;
}

int main()
{
    int n,k,l[50];

    scanf("%d %d",&n,&k);
    int i;
    for (i = 0; i < n; i++)
    {
        scanf("%d",&l[i]);
    }
    

    qsort(l,n,sizeof(int),asc);
    int ans = 0;
    for (i = 0; i < k; i++)
    {
        ans += l[i];
    }
    
    printf("%d",ans);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	asc
	.type	asc, @function
asc:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	asc, .-asc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$232, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	leaq	16(%rsp), %r13
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	movq	%r13, %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	addq	$4, %rbp
	cmpl	%ebx, %esi
	jg	.L5
.L4:
	leaq	asc(%rip), %rcx
	movl	$4, %edx
	movq	%r13, %rdi
	call	qsort@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L11
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L12
	movl	%eax, %edx
	movdqa	16(%rsp), %xmm0
	shrl	$2, %edx
	cmpl	$1, %edx
	je	.L8
	paddd	32(%rsp), %xmm0
	cmpl	$2, %edx
	je	.L8
	paddd	48(%rsp), %xmm0
	cmpl	$3, %edx
	je	.L8
	paddd	64(%rsp), %xmm0
	cmpl	$4, %edx
	je	.L8
	paddd	80(%rsp), %xmm0
	cmpl	$5, %edx
	je	.L8
	paddd	96(%rsp), %xmm0
	cmpl	$6, %edx
	je	.L8
	paddd	112(%rsp), %xmm0
	cmpl	$7, %edx
	je	.L8
	paddd	128(%rsp), %xmm0
	cmpl	$8, %edx
	je	.L8
	paddd	144(%rsp), %xmm0
	cmpl	$9, %edx
	je	.L8
	paddd	160(%rsp), %xmm0
	cmpl	$10, %edx
	je	.L8
	paddd	176(%rsp), %xmm0
	cmpl	$11, %edx
	je	.L8
	paddd	192(%rsp), %xmm0
	.p2align 4,,10
	.p2align 3
.L8:
	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, %edx
	testb	$3, %al
	je	.L6
.L7:
	movslq	%ecx, %rsi
	addl	16(%rsp,%rsi,4), %edx
	leal	1(%rcx), %esi
	cmpl	%eax, %esi
	jge	.L6
	movslq	%esi, %rsi
	addl	$2, %ecx
	addl	16(%rsp,%rsi,4), %edx
	cmpl	%ecx, %eax
	jle	.L6
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %edx
.L6:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	addq	$232, %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
.L11:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L6
.L12:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L7
.L50:
	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	asc
	.type	asc, @function
asc:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	asc, .-asc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$232, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	leaq	16(%rsp), %r13
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	movq	%r13, %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	addq	$4, %rbp
	cmpl	%ebx, %esi
	jg	.L5
.L4:
	leaq	asc(%rip), %rcx
	movl	$4, %edx
	movq	%r13, %rdi
	call	qsort@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L11
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L12
	movl	%eax, %edx
	movdqa	16(%rsp), %xmm0
	shrl	$2, %edx
	cmpl	$1, %edx
	je	.L8
	paddd	32(%rsp), %xmm0
	cmpl	$2, %edx
	je	.L8
	paddd	48(%rsp), %xmm0
	cmpl	$3, %edx
	je	.L8
	paddd	64(%rsp), %xmm0
	cmpl	$4, %edx
	je	.L8
	paddd	80(%rsp), %xmm0
	cmpl	$5, %edx
	je	.L8
	paddd	96(%rsp), %xmm0
	cmpl	$6, %edx
	je	.L8
	paddd	112(%rsp), %xmm0
	cmpl	$7, %edx
	je	.L8
	paddd	128(%rsp), %xmm0
	cmpl	$8, %edx
	je	.L8
	paddd	144(%rsp), %xmm0
	cmpl	$9, %edx
	je	.L8
	paddd	160(%rsp), %xmm0
	cmpl	$10, %edx
	je	.L8
	paddd	176(%rsp), %xmm0
	cmpl	$11, %edx
	je	.L8
	paddd	192(%rsp), %xmm0
	.p2align 4,,10
	.p2align 3
.L8:
	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, %edx
	testb	$3, %al
	je	.L6
.L7:
	movslq	%ecx, %rsi
	addl	16(%rsp,%rsi,4), %edx
	leal	1(%rcx), %esi
	cmpl	%eax, %esi
	jge	.L6
	movslq	%esi, %rsi
	addl	$2, %ecx
	addl	16(%rsp,%rsi,4), %edx
	cmpl	%ecx, %eax
	jle	.L6
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %edx
.L6:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	addq	$232, %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
.L11:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L6
.L12:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L7
.L50:
	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	asc
	.type	asc, @function
asc:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	asc, .-asc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$232, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	leaq	16(%rsp), %r13
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	movq	%r13, %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	addq	$4, %rbp
	cmpl	%ebx, %esi
	jg	.L5
.L4:
	leaq	asc(%rip), %rcx
	movl	$4, %edx
	movq	%r13, %rdi
	call	qsort@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L11
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L12
	movl	%eax, %edx
	movdqa	16(%rsp), %xmm0
	shrl	$2, %edx
	cmpl	$1, %edx
	je	.L8
	paddd	32(%rsp), %xmm0
	cmpl	$2, %edx
	je	.L8
	paddd	48(%rsp), %xmm0
	cmpl	$3, %edx
	je	.L8
	paddd	64(%rsp), %xmm0
	cmpl	$4, %edx
	je	.L8
	paddd	80(%rsp), %xmm0
	cmpl	$5, %edx
	je	.L8
	paddd	96(%rsp), %xmm0
	cmpl	$6, %edx
	je	.L8
	paddd	112(%rsp), %xmm0
	cmpl	$7, %edx
	je	.L8
	paddd	128(%rsp), %xmm0
	cmpl	$8, %edx
	je	.L8
	paddd	144(%rsp), %xmm0
	cmpl	$9, %edx
	je	.L8
	paddd	160(%rsp), %xmm0
	cmpl	$10, %edx
	je	.L8
	paddd	176(%rsp), %xmm0
	cmpl	$11, %edx
	je	.L8
	paddd	192(%rsp), %xmm0
	.p2align 4,,10
	.p2align 3
.L8:
	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, %edx
	testb	$3, %al
	je	.L6
.L7:
	movslq	%ecx, %rsi
	addl	16(%rsp,%rsi,4), %edx
	leal	1(%rcx), %esi
	cmpl	%eax, %esi
	jge	.L6
	movslq	%esi, %rsi
	addl	$2, %ecx
	addl	16(%rsp,%rsi,4), %edx
	cmpl	%ecx, %eax
	jle	.L6
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %edx
.L6:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	addq	$232, %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
.L11:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L6
.L12:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L7
.L50:
	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 asc(const void *b, const void *a) {
  return *(int *)a - *(int *)b;
}

int main()
{
    int n,k,l[50];

    scanf("%d %d",&n,&k);
    int i;
    for (i = 0; i < n; i++)
    {
        scanf("%d",&l[i]);
    }
    

    qsort(l,n,sizeof(int),asc);
    int ans = 0;
    for (i = 0; i < k; i++)
    {
        ans += l[i];
    }
    
    printf("%d",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 asc(const void *b, const void *a) {
  return *(int *)a - *(int *)b;
}

int main()
{
    int n,k,l[50];

    scanf("%d %d",&n,&k);
    int i;
    for (i = 0; i < n; i++)
    {
        scanf("%d",&l[i]);
    }
    

    qsort(l,n,sizeof(int),asc);
    int ans = 0;
    for (i = 0; i < k; i++)
    {
        ans += l[i];
    }
    
    printf("%d",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:

15 14
49 26 27 21 41 7 42 35 7 5 5 36 39 1 45
 5 5
1 2 3 4 5
 15 14
49 26 27 21 33 7 42 35 7 5 5 36 39 1 45
 5 5
2 2 3 4 5
 15 14
49 26 27 26 33 7 42 35 7 5 5 36 39 1 45
 5 3
2 2 3 4 5
 15 14
50 26 27 21 41 7 42 35 7 5 5 36 33 1 45
 15 14
49 26 27 21 41 12 42 35 7 5 5 36 39 1 45
 5 5
1 2 2 4 5
 15 14
49 26 27 21 33 7 42 35 7 5 5 31 39 1 45

385 15 377 16 382 12 380 390 14 372
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 asc(const void *b, const void *a) {
  return *(int *)a - *(int *)b;
}

int main()
{
    int n,k,l[50];

    scanf("%d %d",&n,&k);
    int i;
    for (i = 0; i < n; i++)
    {
        scanf("%d",&l[i]);
    }
    

    qsort(l,n,sizeof(int),asc);
    int ans = 0;
    for (i = 0; i < k; i++)
    {
        ans += l[i];
    }
    
    printf("%d",ans);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	asc
	.type	asc, @function
asc:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	asc, .-asc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$232, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	leaq	16(%rsp), %r13
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	movq	%r13, %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	addq	$4, %rbp
	cmpl	%ebx, %esi
	jg	.L5
.L4:
	leaq	asc(%rip), %rcx
	movl	$4, %edx
	movq	%r13, %rdi
	call	qsort@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L11
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L12
	movl	%eax, %edx
	movdqa	16(%rsp), %xmm0
	shrl	$2, %edx
	cmpl	$1, %edx
	je	.L8
	paddd	32(%rsp), %xmm0
	cmpl	$2, %edx
	je	.L8
	paddd	48(%rsp), %xmm0
	cmpl	$3, %edx
	je	.L8
	paddd	64(%rsp), %xmm0
	cmpl	$4, %edx
	je	.L8
	paddd	80(%rsp), %xmm0
	cmpl	$5, %edx
	je	.L8
	paddd	96(%rsp), %xmm0
	cmpl	$6, %edx
	je	.L8
	paddd	112(%rsp), %xmm0
	cmpl	$7, %edx
	je	.L8
	paddd	128(%rsp), %xmm0
	cmpl	$8, %edx
	je	.L8
	paddd	144(%rsp), %xmm0
	cmpl	$9, %edx
	je	.L8
	paddd	160(%rsp), %xmm0
	cmpl	$10, %edx
	je	.L8
	paddd	176(%rsp), %xmm0
	cmpl	$11, %edx
	je	.L8
	paddd	192(%rsp), %xmm0
	.p2align 4,,10
	.p2align 3
.L8:
	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, %edx
	testb	$3, %al
	je	.L6
.L7:
	movslq	%ecx, %rsi
	addl	16(%rsp,%rsi,4), %edx
	leal	1(%rcx), %esi
	cmpl	%eax, %esi
	jge	.L6
	movslq	%esi, %rsi
	addl	$2, %ecx
	addl	16(%rsp,%rsi,4), %edx
	cmpl	%ecx, %eax
	jle	.L6
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %edx
.L6:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	addq	$232, %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
.L11:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L6
.L12:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L7
.L50:
	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	asc
	.type	asc, @function
asc:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	asc, .-asc
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$232, %rsp
	.cfi_def_cfa_offset 272
	movq	%fs:40, %rax
	movq	%rax, 216(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	leaq	16(%rsp), %r13
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	movq	%r13, %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	8(%rsp), %rsi
	addq	$4, %rbp
	cmpl	%ebx, %esi
	jg	.L5
.L4:
	leaq	asc(%rip), %rcx
	movl	$4, %edx
	movq	%r13, %rdi
	call	qsort@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L11
	leal	-1(%rax), %edx
	cmpl	$2, %edx
	jbe	.L12
	movl	%eax, %edx
	movdqa	16(%rsp), %xmm0
	shrl	$2, %edx
	cmpl	$1, %edx
	je	.L8
	paddd	32(%rsp), %xmm0
	cmpl	$2, %edx
	je	.L8
	paddd	48(%rsp), %xmm0
	cmpl	$3, %edx
	je	.L8
	paddd	64(%rsp), %xmm0
	cmpl	$4, %edx
	je	.L8
	paddd	80(%rsp), %xmm0
	cmpl	$5, %edx
	je	.L8
	paddd	96(%rsp), %xmm0
	cmpl	$6, %edx
	je	.L8
	paddd	112(%rsp), %xmm0
	cmpl	$7, %edx
	je	.L8
	paddd	128(%rsp), %xmm0
	cmpl	$8, %edx
	je	.L8
	paddd	144(%rsp), %xmm0
	cmpl	$9, %edx
	je	.L8
	paddd	160(%rsp), %xmm0
	cmpl	$10, %edx
	je	.L8
	paddd	176(%rsp), %xmm0
	cmpl	$11, %edx
	je	.L8
	paddd	192(%rsp), %xmm0
	.p2align 4,,10
	.p2align 3
.L8:
	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, %edx
	testb	$3, %al
	je	.L6
.L7:
	movslq	%ecx, %rsi
	addl	16(%rsp,%rsi,4), %edx
	leal	1(%rcx), %esi
	cmpl	%eax, %esi
	jge	.L6
	movslq	%esi, %rsi
	addl	$2, %ecx
	addl	16(%rsp,%rsi,4), %edx
	cmpl	%ecx, %eax
	jle	.L6
	movslq	%ecx, %rcx
	addl	16(%rsp,%rcx,4), %edx
.L6:
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	216(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L50
	addq	$232, %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
.L11:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L6
.L12:
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	.L7
.L50:
	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:
```