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

int main()
{
    int n, l[2000], i, j, k;
    long int total = 0;

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

    qsort(l, n, sizeof(int), asc);

    for (i = 0; i < n; i++)
    {
        for (j = i + 1; j < n; j++)
        {
            for (k = j + 1; k < n; k++)
            {
                if (l[i] < l[j] + l[k])total++;
              else break;
            }
        }
    }
    printf("%ld", total);
}
```

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"
.LC1:
	.string	"%ld"
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$3936, %rsp
	.cfi_def_cfa_offset 8080
	leaq	.LC0(%rip), %r14
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rbp
	leaq	16(%rsp), %rbx
	movq	%rbp, %rsi
	movq	%rbx, %r13
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r13
	cmpl	%r12d, %eax
	jg	.L5
.L4:
	movq	%rbx, %rdi
	movslq	%eax, %rsi
	movl	$4, %edx
	leaq	asc(%rip), %rcx
	call	qsort@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	jle	.L16
	movq	%rbx, %r13
	movl	$2, %r11d
	xorl	%edx, %edx
	xorl	%r12d, %r12d
.L12:
	addl	$1, %r12d
	cmpl	%edi, %r12d
	jge	.L7
.L26:
	movl	%r11d, %r10d
	cmpl	%edi, %r11d
	jge	.L14
	movslq	%r11d, %r9
	movl	0(%r13), %r8d
	salq	$2, %r9
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rdx, %rax
	movl	%r10d, %r14d
	movl	0(%rbp,%r9), %esi
	negq	%rax
	subl	%edx, %r14d
	leaq	(%r9,%rax,4), %rcx
	addq	%rbx, %rcx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$1, %rdx
	leal	(%r14,%rdx), %eax
	cmpl	%edi, %eax
	jge	.L10
.L11:
	movl	(%rcx,%rdx,4), %eax
	addl	%esi, %eax
	cmpl	%eax, %r8d
	jl	.L25
.L10:
	addl	$1, %r10d
	addq	$4, %r9
	cmpl	%edi, %r10d
	jne	.L13
.L14:
	addl	$1, %r12d
	addl	$1, %r11d
	addq	$4, %r13
	cmpl	%edi, %r12d
	jl	.L26
.L7:
	addl	$1, %r11d
	addq	$4, %r13
	cmpl	%edi, %r12d
	jne	.L12
.L6:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$8032, %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
.L16:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L6
.L27:
	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"
.LC1:
	.string	"%ld"
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$3936, %rsp
	.cfi_def_cfa_offset 8080
	leaq	.LC0(%rip), %r14
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rbp
	leaq	16(%rsp), %rbx
	movq	%rbp, %rsi
	movq	%rbx, %r13
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r13
	cmpl	%r12d, %eax
	jg	.L5
.L4:
	movq	%rbx, %rdi
	movslq	%eax, %rsi
	movl	$4, %edx
	leaq	asc(%rip), %rcx
	call	qsort@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	jle	.L16
	movq	%rbx, %r13
	movl	$2, %r11d
	xorl	%edx, %edx
	xorl	%r12d, %r12d
.L12:
	addl	$1, %r12d
	cmpl	%edi, %r12d
	jge	.L7
.L26:
	movl	%r11d, %r10d
	cmpl	%edi, %r11d
	jge	.L14
	movslq	%r11d, %r9
	movl	0(%r13), %r8d
	salq	$2, %r9
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rdx, %rax
	movl	%r10d, %r14d
	movl	0(%rbp,%r9), %esi
	negq	%rax
	subl	%edx, %r14d
	leaq	(%r9,%rax,4), %rcx
	addq	%rbx, %rcx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$1, %rdx
	leal	(%r14,%rdx), %eax
	cmpl	%edi, %eax
	jge	.L10
.L11:
	movl	(%rcx,%rdx,4), %eax
	addl	%esi, %eax
	cmpl	%eax, %r8d
	jl	.L25
.L10:
	addl	$1, %r10d
	addq	$4, %r9
	cmpl	%edi, %r10d
	jne	.L13
.L14:
	addl	$1, %r12d
	addl	$1, %r11d
	addq	$4, %r13
	cmpl	%edi, %r12d
	jl	.L26
.L7:
	addl	$1, %r11d
	addq	$4, %r13
	cmpl	%edi, %r12d
	jne	.L12
.L6:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$8032, %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
.L16:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L6
.L27:
	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"
.LC1:
	.string	"%ld"
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$3936, %rsp
	.cfi_def_cfa_offset 8080
	leaq	.LC0(%rip), %r14
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rbp
	leaq	16(%rsp), %rbx
	movq	%rbp, %rsi
	movq	%rbx, %r13
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r13
	cmpl	%r12d, %eax
	jg	.L5
.L4:
	movq	%rbx, %rdi
	movslq	%eax, %rsi
	movl	$4, %edx
	leaq	asc(%rip), %rcx
	call	qsort@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	jle	.L16
	movq	%rbx, %r13
	movl	$2, %r11d
	xorl	%edx, %edx
	xorl	%r12d, %r12d
.L12:
	addl	$1, %r12d
	cmpl	%edi, %r12d
	jge	.L7
.L26:
	movl	%r11d, %r10d
	cmpl	%edi, %r11d
	jge	.L14
	movslq	%r11d, %r9
	movl	0(%r13), %r8d
	salq	$2, %r9
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rdx, %rax
	movl	%r10d, %r14d
	movl	0(%rbp,%r9), %esi
	negq	%rax
	subl	%edx, %r14d
	leaq	(%r9,%rax,4), %rcx
	addq	%rbx, %rcx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$1, %rdx
	leal	(%r14,%rdx), %eax
	cmpl	%edi, %eax
	jge	.L10
.L11:
	movl	(%rcx,%rdx,4), %eax
	addl	%esi, %eax
	cmpl	%eax, %r8d
	jl	.L25
.L10:
	addl	$1, %r10d
	addq	$4, %r9
	cmpl	%edi, %r10d
	jne	.L13
.L14:
	addl	$1, %r12d
	addl	$1, %r11d
	addq	$4, %r13
	cmpl	%edi, %r12d
	jl	.L26
.L7:
	addl	$1, %r11d
	addq	$4, %r13
	cmpl	%edi, %r12d
	jne	.L12
.L6:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$8032, %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
.L16:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L6
.L27:
	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* a, const void* b) {
    return *(int*)b - *(int*)a;
}

int main()
{
    int n, l[2000], i, j, k;
    long int total = 0;

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

    qsort(l, n, sizeof(int), asc);

    for (i = 0; i < n; i++)
    {
        for (j = i + 1; j < n; j++)
        {
            for (k = j + 1; k < n; k++)
            {
                if (l[i] < l[j] + l[k])total++;
              else break;
            }
        }
    }
    printf("%ld", total);
}
```
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* a, const void* b) {
    return *(int*)b - *(int*)a;
}

int main()
{
    int n, l[2000], i, j, k;
    long int total = 0;

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

    qsort(l, n, sizeof(int), asc);

    for (i = 0; i < n; i++)
    {
        for (j = i + 1; j < n; j++)
        {
            for (k = j + 1; k < n; k++)
            {
                if (l[i] < l[j] + l[k])total++;
              else break;
            }
        }
    }
    printf("%ld", total);
}
```

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
5 4 2 1
 7
218 1140 704 233 645 728 389
 3
1 1000 2
 7
218 1140 704 233 645 890 389
 7
218 1140 1051 233 449 890 389
 7
218 1140 1051 16 636 890 389
 7
218 1140 551 40 636 890 487
 7
218 1140 551 40 660 890 487
 7
116 1499 551 40 806 890 487
 7
116 1499 551 40 297 890 487

1 14 0 13 15 10 11 12 7 3
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* a, const void* b) {
    return *(int*)b - *(int*)a;
}

int main()
{
    int n, l[2000], i, j, k;
    long int total = 0;

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

    qsort(l, n, sizeof(int), asc);

    for (i = 0; i < n; i++)
    {
        for (j = i + 1; j < n; j++)
        {
            for (k = j + 1; k < n; k++)
            {
                if (l[i] < l[j] + l[k])total++;
              else break;
            }
        }
    }
    printf("%ld", total);
}
```

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"
.LC1:
	.string	"%ld"
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$3936, %rsp
	.cfi_def_cfa_offset 8080
	leaq	.LC0(%rip), %r14
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rbp
	leaq	16(%rsp), %rbx
	movq	%rbp, %rsi
	movq	%rbx, %r13
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r13
	cmpl	%r12d, %eax
	jg	.L5
.L4:
	movq	%rbx, %rdi
	movslq	%eax, %rsi
	movl	$4, %edx
	leaq	asc(%rip), %rcx
	call	qsort@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	jle	.L16
	movq	%rbx, %r13
	movl	$2, %r11d
	xorl	%edx, %edx
	xorl	%r12d, %r12d
.L12:
	addl	$1, %r12d
	cmpl	%edi, %r12d
	jge	.L7
.L26:
	movl	%r11d, %r10d
	cmpl	%edi, %r11d
	jge	.L14
	movslq	%r11d, %r9
	movl	0(%r13), %r8d
	salq	$2, %r9
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rdx, %rax
	movl	%r10d, %r14d
	movl	0(%rbp,%r9), %esi
	negq	%rax
	subl	%edx, %r14d
	leaq	(%r9,%rax,4), %rcx
	addq	%rbx, %rcx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$1, %rdx
	leal	(%r14,%rdx), %eax
	cmpl	%edi, %eax
	jge	.L10
.L11:
	movl	(%rcx,%rdx,4), %eax
	addl	%esi, %eax
	cmpl	%eax, %r8d
	jl	.L25
.L10:
	addl	$1, %r10d
	addq	$4, %r9
	cmpl	%edi, %r10d
	jne	.L13
.L14:
	addl	$1, %r12d
	addl	$1, %r11d
	addq	$4, %r13
	cmpl	%edi, %r12d
	jl	.L26
.L7:
	addl	$1, %r11d
	addq	$4, %r13
	cmpl	%edi, %r12d
	jne	.L12
.L6:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$8032, %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
.L16:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L6
.L27:
	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"
.LC1:
	.string	"%ld"
	.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$3936, %rsp
	.cfi_def_cfa_offset 8080
	leaq	.LC0(%rip), %r14
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rbp
	leaq	16(%rsp), %rbx
	movq	%rbp, %rsi
	movq	%rbx, %r13
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r13
	cmpl	%r12d, %eax
	jg	.L5
.L4:
	movq	%rbx, %rdi
	movslq	%eax, %rsi
	movl	$4, %edx
	leaq	asc(%rip), %rcx
	call	qsort@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	jle	.L16
	movq	%rbx, %r13
	movl	$2, %r11d
	xorl	%edx, %edx
	xorl	%r12d, %r12d
.L12:
	addl	$1, %r12d
	cmpl	%edi, %r12d
	jge	.L7
.L26:
	movl	%r11d, %r10d
	cmpl	%edi, %r11d
	jge	.L14
	movslq	%r11d, %r9
	movl	0(%r13), %r8d
	salq	$2, %r9
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rdx, %rax
	movl	%r10d, %r14d
	movl	0(%rbp,%r9), %esi
	negq	%rax
	subl	%edx, %r14d
	leaq	(%r9,%rax,4), %rcx
	addq	%rbx, %rcx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L25:
	addq	$1, %rdx
	leal	(%r14,%rdx), %eax
	cmpl	%edi, %eax
	jge	.L10
.L11:
	movl	(%rcx,%rdx,4), %eax
	addl	%esi, %eax
	cmpl	%eax, %r8d
	jl	.L25
.L10:
	addl	$1, %r10d
	addq	$4, %r9
	cmpl	%edi, %r10d
	jne	.L13
.L14:
	addl	$1, %r12d
	addl	$1, %r11d
	addq	$4, %r13
	cmpl	%edi, %r12d
	jl	.L26
.L7:
	addl	$1, %r11d
	addq	$4, %r13
	cmpl	%edi, %r12d
	jne	.L12
.L6:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$8032, %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
.L16:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L6
.L27:
	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:
```