Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
//c.c C-Christmas Eve
#include<stdio.h>
#include<stdlib.h>
typedef long long lld;

int cmp(const void *a,const void *b){
    if(*(lld*)a<*(lld*)b){
        return -1;
    }else{
        return 1;
    }
    return 0;
}

int main(void){
    lld n,k;
    scanf("%lld %lld",&n,&k);
    lld h[n];
    for(int i=0;i<n;++i){
        scanf("%lld",&h[i]);
    }

    qsort(h,n,sizeof(lld),cmp);

    lld diff = h[n-1] - h[0];

    for(int i=0;i<=n-k;++i){
        if(diff>h[i+k-1]-h[i]){
            diff = h[i+k-1] - h[i];
        }
    }
    printf("%lld\n",diff);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	setge	%al
	movzbl	%al, %eax
	leal	-1(%rax,%rax), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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	%r15
	pushq	%r14
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	movq	%rsp, %rcx
	leaq	15(,%rsi,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L7
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L20
.L7:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L21
.L8:
	leaq	7(%rsp), %r12
	movq	%r12, %r14
	andq	$-8, %r12
	shrq	$3, %r14
	testq	%rsi, %rsi
	jle	.L9
	movq	%r12, %r13
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	addq	$8, %r13
	cmpq	%rbx, %rsi
	jg	.L10
.L9:
	leaq	cmp(%rip), %rcx
	movl	$8, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movq	-72(%rbp), %rcx
	movq	-64(%rbp), %rsi
	movq	-8(%r12,%rcx,8), %rdx
	subq	0(,%r14,8), %rdx
	cmpq	%rsi, %rcx
	jl	.L11
	salq	$3, %rsi
	leaq	(%r12,%rcx,8), %rdi
	leaq	-8(%r12,%rsi), %rax
	negq	%rsi
	.p2align 4,,10
	.p2align 3
.L12:
	movq	(%rax), %rcx
	subq	8(%rax,%rsi), %rcx
	cmpq	%rcx, %rdx
	cmovg	%rcx, %rdx
	addq	$8, %rax
	cmpq	%rax, %rdi
	jne	.L12
.L11:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L21:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L8
.L22:
	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
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	setge	%al
	movzbl	%al, %eax
	leal	-1(%rax,%rax), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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	%r15
	pushq	%r14
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	movq	%rsp, %rcx
	leaq	15(,%rsi,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L7
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L20
.L7:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L21
.L8:
	leaq	7(%rsp), %r12
	movq	%r12, %r14
	andq	$-8, %r12
	shrq	$3, %r14
	testq	%rsi, %rsi
	jle	.L9
	movq	%r12, %r13
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	addq	$8, %r13
	cmpq	%rbx, %rsi
	jg	.L10
.L9:
	leaq	cmp(%rip), %rcx
	movl	$8, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movq	-72(%rbp), %rcx
	movq	-64(%rbp), %rsi
	movq	-8(%r12,%rcx,8), %rdx
	subq	0(,%r14,8), %rdx
	cmpq	%rsi, %rcx
	jl	.L11
	salq	$3, %rsi
	leaq	(%r12,%rcx,8), %rdi
	leaq	-8(%r12,%rsi), %rax
	negq	%rsi
	.p2align 4,,10
	.p2align 3
.L12:
	movq	(%rax), %rcx
	subq	8(%rax,%rsi), %rcx
	cmpq	%rcx, %rdx
	cmovg	%rcx, %rdx
	addq	$8, %rax
	cmpq	%rax, %rdi
	jne	.L12
.L11:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L21:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L8
.L22:
	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
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	setge	%al
	movzbl	%al, %eax
	leal	-1(%rax,%rax), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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	%r15
	pushq	%r14
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	movq	%rsp, %rcx
	leaq	15(,%rsi,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L7
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L20
.L7:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L21
.L8:
	leaq	7(%rsp), %r12
	movq	%r12, %r14
	andq	$-8, %r12
	shrq	$3, %r14
	testq	%rsi, %rsi
	jle	.L9
	movq	%r12, %r13
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	addq	$8, %r13
	cmpq	%rbx, %rsi
	jg	.L10
.L9:
	leaq	cmp(%rip), %rcx
	movl	$8, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movq	-72(%rbp), %rcx
	movq	-64(%rbp), %rsi
	movq	-8(%r12,%rcx,8), %rdx
	subq	0(,%r14,8), %rdx
	cmpq	%rsi, %rcx
	jl	.L11
	salq	$3, %rsi
	leaq	(%r12,%rcx,8), %rdi
	leaq	-8(%r12,%rsi), %rax
	negq	%rsi
	.p2align 4,,10
	.p2align 3
.L12:
	movq	(%rax), %rcx
	subq	8(%rax,%rsi), %rcx
	cmpq	%rcx, %rdx
	cmovg	%rcx, %rdx
	addq	$8, %rax
	cmpq	%rax, %rdi
	jne	.L12
.L11:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L21:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L8
.L22:
	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
//c.c C-Christmas Eve
#include<stdio.h>
#include<stdlib.h>
typedef long long lld;

int cmp(const void *a,const void *b){
    if(*(lld*)a<*(lld*)b){
        return -1;
    }else{
        return 1;
    }
    return 0;
}

int main(void){
    lld n,k;
    scanf("%lld %lld",&n,&k);
    lld h[n];
    for(int i=0;i<n;++i){
        scanf("%lld",&h[i]);
    }

    qsort(h,n,sizeof(lld),cmp);

    lld diff = h[n-1] - h[0];

    for(int i=0;i<=n-k;++i){
        if(diff>h[i+k-1]-h[i]){
            diff = h[i+k-1] - h[i];
        }
    }
    printf("%lld\n",diff);
    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
//c.c C-Christmas Eve
#include<stdio.h>
#include<stdlib.h>
typedef long long lld;

int cmp(const void *a,const void *b){
    if(*(lld*)a<*(lld*)b){
        return -1;
    }else{
        return 1;
    }
    return 0;
}

int main(void){
    lld n,k;
    scanf("%lld %lld",&n,&k);
    lld h[n];
    for(int i=0;i<n;++i){
        scanf("%lld",&h[i]);
    }

    qsort(h,n,sizeof(lld),cmp);

    lld diff = h[n-1] - h[0];

    for(int i=0;i<=n-k;++i){
        if(diff>h[i+k-1]-h[i]){
            diff = h[i+k-1] - h[i];
        }
    }
    printf("%lld\n",diff);
    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:

5 3
5
7
10
7
7
 5 3
5
7
10
0
7
 5 3
8
7
10
0
7
 3 3
5
7
10
7
7
 5 3
0
15
11
15
12
 5 3
10
21
10
0
6
 3 3
10
7
1
1
5
 5 3
10
21
19
0
6
 4 3
10
21
19
0
6
 3 3
5
7
0
1
7

0
 2
 1
 5
 3
 4
 9
 10
 11
 7

Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
//c.c C-Christmas Eve
#include<stdio.h>
#include<stdlib.h>
typedef long long lld;

int cmp(const void *a,const void *b){
    if(*(lld*)a<*(lld*)b){
        return -1;
    }else{
        return 1;
    }
    return 0;
}

int main(void){
    lld n,k;
    scanf("%lld %lld",&n,&k);
    lld h[n];
    for(int i=0;i<n;++i){
        scanf("%lld",&h[i]);
    }

    qsort(h,n,sizeof(lld),cmp);

    lld diff = h[n-1] - h[0];

    for(int i=0;i<=n-k;++i){
        if(diff>h[i+k-1]-h[i]){
            diff = h[i+k-1] - h[i];
        }
    }
    printf("%lld\n",diff);
    return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	setge	%al
	movzbl	%al, %eax
	leal	-1(%rax,%rax), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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	%r15
	pushq	%r14
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	movq	%rsp, %rcx
	leaq	15(,%rsi,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L7
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L20
.L7:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L21
.L8:
	leaq	7(%rsp), %r12
	movq	%r12, %r14
	andq	$-8, %r12
	shrq	$3, %r14
	testq	%rsi, %rsi
	jle	.L9
	movq	%r12, %r13
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	addq	$8, %r13
	cmpq	%rbx, %rsi
	jg	.L10
.L9:
	leaq	cmp(%rip), %rcx
	movl	$8, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movq	-72(%rbp), %rcx
	movq	-64(%rbp), %rsi
	movq	-8(%r12,%rcx,8), %rdx
	subq	0(,%r14,8), %rdx
	cmpq	%rsi, %rcx
	jl	.L11
	salq	$3, %rsi
	leaq	(%r12,%rcx,8), %rdi
	leaq	-8(%r12,%rsi), %rax
	negq	%rsi
	.p2align 4,,10
	.p2align 3
.L12:
	movq	(%rax), %rcx
	subq	8(%rax,%rsi), %rcx
	cmpq	%rcx, %rdx
	cmovg	%rcx, %rdx
	addq	$8, %rax
	cmpq	%rax, %rdi
	jne	.L12
.L11:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L21:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L8
.L22:
	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
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	setge	%al
	movzbl	%al, %eax
	leal	-1(%rax,%rax), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	cmp, .-cmp
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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	%r15
	pushq	%r14
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	movq	%rsp, %rcx
	leaq	15(,%rsi,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L7
.L20:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L20
.L7:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L21
.L8:
	leaq	7(%rsp), %r12
	movq	%r12, %r14
	andq	$-8, %r12
	shrq	$3, %r14
	testq	%rsi, %rsi
	jle	.L9
	movq	%r12, %r13
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r13, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	-72(%rbp), %rsi
	addq	$8, %r13
	cmpq	%rbx, %rsi
	jg	.L10
.L9:
	leaq	cmp(%rip), %rcx
	movl	$8, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movq	-72(%rbp), %rcx
	movq	-64(%rbp), %rsi
	movq	-8(%r12,%rcx,8), %rdx
	subq	0(,%r14,8), %rdx
	cmpq	%rsi, %rcx
	jl	.L11
	salq	$3, %rsi
	leaq	(%r12,%rcx,8), %rdi
	leaq	-8(%r12,%rsi), %rax
	negq	%rsi
	.p2align 4,,10
	.p2align 3
.L12:
	movq	(%rax), %rcx
	subq	8(%rax,%rsi), %rcx
	cmpq	%rcx, %rdx
	cmovg	%rcx, %rdx
	addq	$8, %rax
	cmpq	%rax, %rdi
	jne	.L12
.L11:
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L22
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L21:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L8
.L22:
	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:
```