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>
#include <math.h>
#include <limits.h>
#include <string.h>
#define ll long long int


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


int main()
{
    int N , K;
    scanf("%d %d",&N,&K);

    int array[N];

    for (int i = 0; i<N; i++)
        scanf("%d",&array[i]);


    qsort(array,N,sizeof(int),cmpfunc);


    int min = INT_MAX;
    int res = 0;
    for (int  j = 0; j<N; j++)
    {
       if (j+K-1<N)
        res=array[j+K-1]-array[j];

       if (min>res)min=res;
    }

    printf("%d",min);

    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmpfunc
	.type	cmpfunc, @function
cmpfunc:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	cmpfunc, .-cmpfunc
	.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:
.LFB52:
	.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), %rsi
	movq	%rsp, %rdi
	leaq	15(,%rsi,4), %rdx
	movq	%rsi, %rax
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L5
.L21:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L21
.L5:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L22
.L6:
	movq	%rsp, %rbx
	leaq	.LC1(%rip), %r12
	testl	%eax, %eax
	jle	.L7
	movq	%rbx, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %eax
	addq	$4, %r14
	cmpl	%r13d, %eax
	jg	.L8
	movslq	%eax, %rsi
.L7:
	leaq	cmpfunc(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	-48(%rbp), %esi
	testl	%esi, %esi
	jle	.L14
	movl	-44(%rbp), %edi
	movslq	%esi, %r9
	xorl	%eax, %eax
	xorl	%edx, %edx
	movl	$2147483647, %r8d
	leal	-1(%rdi), %r10d
	.p2align 4,,10
	.p2align 3
.L12:
	leal	(%rdi,%rax), %ecx
	cmpl	%esi, %ecx
	jg	.L10
	leal	(%r10,%rax), %edx
	movslq	%edx, %rdx
	movl	(%rbx,%rdx,4), %edx
	subl	(%rbx,%rax,4), %edx
.L10:
	cmpl	%edx, %r8d
	cmovg	%edx, %r8d
	addq	$1, %rax
	cmpq	%r9, %rax
	jne	.L12
.L9:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L23
	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
.L22:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L6
.L14:
	movl	$2147483647, %r8d
	jmp	.L9
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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	cmpfunc
	.type	cmpfunc, @function
cmpfunc:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	cmpfunc, .-cmpfunc
	.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:
.LFB52:
	.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), %rsi
	movq	%rsp, %rdi
	leaq	15(,%rsi,4), %rdx
	movq	%rsi, %rax
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L5
.L21:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L21
.L5:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L22
.L6:
	movq	%rsp, %rbx
	leaq	.LC1(%rip), %r12
	testl	%eax, %eax
	jle	.L7
	movq	%rbx, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %eax
	addq	$4, %r14
	cmpl	%r13d, %eax
	jg	.L8
	movslq	%eax, %rsi
.L7:
	leaq	cmpfunc(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	-48(%rbp), %esi
	testl	%esi, %esi
	jle	.L14
	movl	-44(%rbp), %edi
	movslq	%esi, %r9
	xorl	%eax, %eax
	xorl	%edx, %edx
	movl	$2147483647, %r8d
	leal	-1(%rdi), %r10d
	.p2align 4,,10
	.p2align 3
.L12:
	leal	(%rdi,%rax), %ecx
	cmpl	%esi, %ecx
	jg	.L10
	leal	(%r10,%rax), %edx
	movslq	%edx, %rdx
	movl	(%rbx,%rdx,4), %edx
	subl	(%rbx,%rax,4), %edx
.L10:
	cmpl	%edx, %r8d
	cmovg	%edx, %r8d
	addq	$1, %rax
	cmpq	%r9, %rax
	jne	.L12
.L9:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L23
	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
.L22:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L6
.L14:
	movl	$2147483647, %r8d
	jmp	.L9
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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	cmpfunc
	.type	cmpfunc, @function
cmpfunc:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	cmpfunc, .-cmpfunc
	.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:
.LFB52:
	.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), %rsi
	movq	%rsp, %rdi
	leaq	15(,%rsi,4), %rdx
	movq	%rsi, %rax
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L5
.L21:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L21
.L5:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L22
.L6:
	movq	%rsp, %rbx
	leaq	.LC1(%rip), %r12
	testl	%eax, %eax
	jle	.L7
	movq	%rbx, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %eax
	addq	$4, %r14
	cmpl	%r13d, %eax
	jg	.L8
	movslq	%eax, %rsi
.L7:
	leaq	cmpfunc(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	-48(%rbp), %esi
	testl	%esi, %esi
	jle	.L14
	movl	-44(%rbp), %edi
	movslq	%esi, %r9
	xorl	%eax, %eax
	xorl	%edx, %edx
	movl	$2147483647, %r8d
	leal	-1(%rdi), %r10d
	.p2align 4,,10
	.p2align 3
.L12:
	leal	(%rdi,%rax), %ecx
	cmpl	%esi, %ecx
	jg	.L10
	leal	(%r10,%rax), %edx
	movslq	%edx, %rdx
	movl	(%rbx,%rdx,4), %edx
	subl	(%rbx,%rax,4), %edx
.L10:
	cmpl	%edx, %r8d
	cmovg	%edx, %r8d
	addq	$1, %rax
	cmpq	%r9, %rax
	jne	.L12
.L9:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L23
	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
.L22:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L6
.L14:
	movl	$2147483647, %r8d
	jmp	.L9
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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>
#include <math.h>
#include <limits.h>
#include <string.h>
#define ll long long int


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


int main()
{
    int N , K;
    scanf("%d %d",&N,&K);

    int array[N];

    for (int i = 0; i<N; i++)
        scanf("%d",&array[i]);


    qsort(array,N,sizeof(int),cmpfunc);


    int min = INT_MAX;
    int res = 0;
    for (int  j = 0; j<N; j++)
    {
       if (j+K-1<N)
        res=array[j+K-1]-array[j];

       if (min>res)min=res;
    }

    printf("%d",min);

    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 <stdlib.h>
#include <math.h>
#include <limits.h>
#include <string.h>
#define ll long long int


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


int main()
{
    int N , K;
    scanf("%d %d",&N,&K);

    int array[N];

    for (int i = 0; i<N; i++)
        scanf("%d",&array[i]);


    qsort(array,N,sizeof(int),cmpfunc);


    int min = INT_MAX;
    int res = 0;
    for (int  j = 0; j<N; j++)
    {
       if (j+K-1<N)
        res=array[j+K-1]-array[j];

       if (min>res)min=res;
    }

    printf("%d",min);

    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
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <limits.h>
#include <string.h>
#define ll long long int


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


int main()
{
    int N , K;
    scanf("%d %d",&N,&K);

    int array[N];

    for (int i = 0; i<N; i++)
        scanf("%d",&array[i]);


    qsort(array,N,sizeof(int),cmpfunc);


    int min = INT_MAX;
    int res = 0;
    for (int  j = 0; j<N; j++)
    {
       if (j+K-1<N)
        res=array[j+K-1]-array[j];

       if (min>res)min=res;
    }

    printf("%d",min);

    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	cmpfunc
	.type	cmpfunc, @function
cmpfunc:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	cmpfunc, .-cmpfunc
	.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:
.LFB52:
	.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), %rsi
	movq	%rsp, %rdi
	leaq	15(,%rsi,4), %rdx
	movq	%rsi, %rax
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L5
.L21:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L21
.L5:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L22
.L6:
	movq	%rsp, %rbx
	leaq	.LC1(%rip), %r12
	testl	%eax, %eax
	jle	.L7
	movq	%rbx, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %eax
	addq	$4, %r14
	cmpl	%r13d, %eax
	jg	.L8
	movslq	%eax, %rsi
.L7:
	leaq	cmpfunc(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	-48(%rbp), %esi
	testl	%esi, %esi
	jle	.L14
	movl	-44(%rbp), %edi
	movslq	%esi, %r9
	xorl	%eax, %eax
	xorl	%edx, %edx
	movl	$2147483647, %r8d
	leal	-1(%rdi), %r10d
	.p2align 4,,10
	.p2align 3
.L12:
	leal	(%rdi,%rax), %ecx
	cmpl	%esi, %ecx
	jg	.L10
	leal	(%r10,%rax), %edx
	movslq	%edx, %rdx
	movl	(%rbx,%rdx,4), %edx
	subl	(%rbx,%rax,4), %edx
.L10:
	cmpl	%edx, %r8d
	cmovg	%edx, %r8d
	addq	$1, %rax
	cmpq	%r9, %rax
	jne	.L12
.L9:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L23
	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
.L22:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L6
.L14:
	movl	$2147483647, %r8d
	jmp	.L9
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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	cmpfunc
	.type	cmpfunc, @function
cmpfunc:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	cmpfunc, .-cmpfunc
	.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:
.LFB52:
	.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), %rsi
	movq	%rsp, %rdi
	leaq	15(,%rsi,4), %rdx
	movq	%rsi, %rax
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L5
.L21:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L21
.L5:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L22
.L6:
	movq	%rsp, %rbx
	leaq	.LC1(%rip), %r12
	testl	%eax, %eax
	jle	.L7
	movq	%rbx, %r14
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r14, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	-48(%rbp), %eax
	addq	$4, %r14
	cmpl	%r13d, %eax
	jg	.L8
	movslq	%eax, %rsi
.L7:
	leaq	cmpfunc(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	-48(%rbp), %esi
	testl	%esi, %esi
	jle	.L14
	movl	-44(%rbp), %edi
	movslq	%esi, %r9
	xorl	%eax, %eax
	xorl	%edx, %edx
	movl	$2147483647, %r8d
	leal	-1(%rdi), %r10d
	.p2align 4,,10
	.p2align 3
.L12:
	leal	(%rdi,%rax), %ecx
	cmpl	%esi, %ecx
	jg	.L10
	leal	(%r10,%rax), %edx
	movslq	%edx, %rdx
	movl	(%rbx,%rdx,4), %edx
	subl	(%rbx,%rax,4), %edx
.L10:
	cmpl	%edx, %r8d
	cmovg	%edx, %r8d
	addq	$1, %rax
	cmpq	%r9, %rax
	jne	.L12
.L9:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L23
	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
.L22:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L6
.L14:
	movl	$2147483647, %r8d
	jmp	.L9
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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:
```