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

```c
#include <stdio.h>
#include <stdlib.h>
typedef struct
{
    long long a,b;
} ab_data;

int compare_a(const void *a, const void *b) {
    ab_data *A = (ab_data *)a;
    ab_data *B = (ab_data *)b;
    return A->a - B->a;
}

int main()
{
    ab_data ab[100000];
    long long n,k;

    scanf("%lld %lld",&n,&k);

    int i;
    for (i = 0; i < n; i++)
    {
        scanf("%lld %lld",&ab[i].a, &ab[i].b);
    }

    qsort(ab,n,sizeof(ab_data),compare_a);

    long long cnt = 0;
    for (i = 0; i < n; i++)
    {
        cnt += ab[i].b;
        if(cnt >= k)break;
    }
    
    printf("%lld",ab[i].a);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	compare_a
	.type	compare_a, @function
compare_a:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %edx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_a, .-compare_a
	.section	.rodata
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2608, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600032(%rbp), %rdx
	leaq	-1600040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600044(%rbp)
	jmp	.L4
.L5:
	leaq	-1600016(%rbp), %rdx
	movl	-1600044(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rdx, %rax
	leaq	8(%rax), %rdx
	leaq	-1600016(%rbp), %rcx
	movl	-1600044(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1600044(%rbp)
.L4:
	movl	-1600044(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600040(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L5
	movq	-1600040(%rbp), %rax
	movq	%rax, %rsi
	leaq	-1600016(%rbp), %rax
	leaq	compare_a(%rip), %rdx
	movq	%rdx, %rcx
	movl	$16, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	$0, -1600024(%rbp)
	movl	$0, -1600044(%rbp)
	jmp	.L6
.L9:
	movl	-1600044(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1600008, %rax
	movq	(%rax), %rax
	addq	%rax, -1600024(%rbp)
	movq	-1600032(%rbp), %rax
	cmpq	%rax, -1600024(%rbp)
	jge	.L12
	addl	$1, -1600044(%rbp)
.L6:
	movl	-1600044(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600040(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L9
	jmp	.L8
.L12:
	nop
.L8:
	movl	-1600044(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1600016, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compare_a
	.type	compare_a, @function
compare_a:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compare_a, .-compare_a
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld"
	.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
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597480
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2600, %rsp
	.cfi_def_cfa_offset 1600080
	leaq	.LC0(%rip), %r12
	xorl	%ebp, %ebp
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 1600024(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	8(%rsp), %rdx
	leaq	16(%rsp), %r13
	movq	%r13, %rbx
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rsi
	testq	%rsi, %rsi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rsi
	leaq	8(%rbx), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rsi
	addq	$1, %rbp
	addq	$16, %rbx
	cmpq	%rbp, %rsi
	jg	.L5
.L4:
	movq	%r13, %rdi
	leaq	compare_a(%rip), %rcx
	movl	$16, %edx
	call	qsort@PLT
	movq	(%rsp), %rdi
	testq	%rdi, %rdi
	jle	.L9
	movq	8(%rsp), %r8
	leaq	24(%rsp), %rcx
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	leal	1(%rax), %esi
	addq	$1, %rax
	addq	$16, %rcx
	cmpq	%rdi, %rax
	je	.L6
.L7:
	addq	(%rcx), %rdx
	movl	%eax, %esi
	cmpq	%rdx, %r8
	jg	.L15
.L6:
	movslq	%esi, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	salq	$4, %rsi
	movq	16(%rsp,%rsi), %rdx
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	1600024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$1600040, %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
.L9:
	.cfi_restore_state
	xorl	%esi, %esi
	jmp	.L6
.L16:
	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
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compare_a
	.type	compare_a, @function
compare_a:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compare_a, .-compare_a
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld"
	.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
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597480
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2600, %rsp
	.cfi_def_cfa_offset 1600080
	leaq	.LC0(%rip), %r12
	xorl	%ebp, %ebp
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 1600024(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	8(%rsp), %rdx
	leaq	16(%rsp), %r13
	movq	%r13, %rbx
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rsi
	testq	%rsi, %rsi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rsi
	leaq	8(%rbx), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rsi
	addq	$1, %rbp
	addq	$16, %rbx
	cmpq	%rbp, %rsi
	jg	.L5
.L4:
	movq	%r13, %rdi
	leaq	compare_a(%rip), %rcx
	movl	$16, %edx
	call	qsort@PLT
	movq	(%rsp), %rdi
	testq	%rdi, %rdi
	jle	.L9
	movq	8(%rsp), %r8
	leaq	24(%rsp), %rcx
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	leal	1(%rax), %esi
	addq	$1, %rax
	addq	$16, %rcx
	cmpq	%rdi, %rax
	je	.L6
.L7:
	addq	(%rcx), %rdx
	movl	%eax, %esi
	cmpq	%rdx, %r8
	jg	.L15
.L6:
	movslq	%esi, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	salq	$4, %rsi
	movq	16(%rsp,%rsi), %rdx
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	1600024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$1600040, %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
.L9:
	.cfi_restore_state
	xorl	%esi, %esi
	jmp	.L6
.L16:
	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:

#include <stdio.h>
#include <stdlib.h>
typedef struct
{
    long long a,b;
} ab_data;

int compare_a(const void *a, const void *b) {
    ab_data *A = (ab_data *)a;
    ab_data *B = (ab_data *)b;
    return A->a - B->a;
}

int main()
{
    ab_data ab[100000];
    long long n,k;

    scanf("%lld %lld",&n,&k);

    int i;
    for (i = 0; i < n; i++)
    {
        scanf("%lld %lld",&ab[i].a, &ab[i].b);
    }

    qsort(ab,n,sizeof(ab_data),compare_a);

    long long cnt = 0;
    for (i = 0; i < n; i++)
    {
        cnt += ab[i].b;
        if(cnt >= k)break;
    }
    
    printf("%lld",ab[i].a);
}
3 4
1 1
2 2
3 2
 10 500000
1 100000
1 100001
1 100000
1 100000
1 100000
100000 100000
100000 100000
100000 100000
100000 100000
100000 100000
 3 4
1 1
2 3
3 2
 3 4
1 1
4 3
3 2
 3 5
2 2
1 1
8 3
 3 5
2 2
1 1
15 3
 10 878093
1 100000
1 110001
1 100000
1 100001
1 100000
100000 100000
100000 100000
100000 100000
100000 100000
100000 100000
 3 3
2 2
1 0
5 3
 3 3
2 2
1 0
7 3
 3 4
1 0
2 1
6 6

3 1 2 4 8 15 100000 5 7 6
Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
typedef struct
{
    long long a,b;
} ab_data;

int compare_a(const void *a, const void *b) {
    ab_data *A = (ab_data *)a;
    ab_data *B = (ab_data *)b;
    return A->a - B->a;
}

int main()
{
    ab_data ab[100000];
    long long n,k;

    scanf("%lld %lld",&n,&k);

    int i;
    for (i = 0; i < n; i++)
    {
        scanf("%lld %lld",&ab[i].a, &ab[i].b);
    }

    qsort(ab,n,sizeof(ab_data),compare_a);

    long long cnt = 0;
    for (i = 0; i < n; i++)
    {
        cnt += ab[i].b;
        if(cnt >= k)break;
    }
    
    printf("%lld",ab[i].a);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	compare_a
	.type	compare_a, @function
compare_a:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %edx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_a, .-compare_a
	.section	.rodata
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2608, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600032(%rbp), %rdx
	leaq	-1600040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600044(%rbp)
	jmp	.L4
.L5:
	leaq	-1600016(%rbp), %rdx
	movl	-1600044(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rdx, %rax
	leaq	8(%rax), %rdx
	leaq	-1600016(%rbp), %rcx
	movl	-1600044(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1600044(%rbp)
.L4:
	movl	-1600044(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600040(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L5
	movq	-1600040(%rbp), %rax
	movq	%rax, %rsi
	leaq	-1600016(%rbp), %rax
	leaq	compare_a(%rip), %rdx
	movq	%rdx, %rcx
	movl	$16, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	$0, -1600024(%rbp)
	movl	$0, -1600044(%rbp)
	jmp	.L6
.L9:
	movl	-1600044(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1600008, %rax
	movq	(%rax), %rax
	addq	%rax, -1600024(%rbp)
	movq	-1600032(%rbp), %rax
	cmpq	%rax, -1600024(%rbp)
	jge	.L12
	addl	$1, -1600044(%rbp)
.L6:
	movl	-1600044(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600040(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L9
	jmp	.L8
.L12:
	nop
.L8:
	movl	-1600044(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1600016, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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.
train
	.file	"temp.c"
	.text
	.globl	compare_a
	.type	compare_a, @function
compare_a:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %edx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_a, .-compare_a
	.section	.rodata
.LC0:
	.string	"%lld %lld"
.LC1:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2608, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600032(%rbp), %rdx
	leaq	-1600040(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600044(%rbp)
	jmp	.L4
.L5:
	leaq	-1600016(%rbp), %rdx
	movl	-1600044(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rdx, %rax
	leaq	8(%rax), %rdx
	leaq	-1600016(%rbp), %rcx
	movl	-1600044(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1600044(%rbp)
.L4:
	movl	-1600044(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600040(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L5
	movq	-1600040(%rbp), %rax
	movq	%rax, %rsi
	leaq	-1600016(%rbp), %rax
	leaq	compare_a(%rip), %rdx
	movq	%rdx, %rcx
	movl	$16, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	$0, -1600024(%rbp)
	movl	$0, -1600044(%rbp)
	jmp	.L6
.L9:
	movl	-1600044(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1600008, %rax
	movq	(%rax), %rax
	addq	%rax, -1600024(%rbp)
	movq	-1600032(%rbp), %rax
	cmpq	%rax, -1600024(%rbp)
	jge	.L12
	addl	$1, -1600044(%rbp)
.L6:
	movl	-1600044(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600040(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L9
	jmp	.L8
.L12:
	nop
.L8:
	movl	-1600044(%rbp), %eax
	cltq
	salq	$4, %rax
	addq	%rbp, %rax
	subq	$1600016, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
