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

int main(){
	int n,i,c=0;
	long long int a,b,data[100000]={0};
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%lld",&data[i]);
	}

	qsort(data, n, sizeof(long long int), compare_int);
	
	for(i=0;i<n;i++){
		if(i==0){
			a=data[i];
		}else{
			if(a==data[i]){
				c+=1;
				if(c==2){
					break;	
				}
				b=a;
				a=0;
			}else{
				a=data[i];
			}
		}
	}
	if(c==2){
		printf("%lld\n",a*b);
	}else{
		printf("0\n");	
	}
	
return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.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, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_int, .-compare_int
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
.LC3:
	.string	"0"
	.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	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1328, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -800036(%rbp)
	leaq	-800016(%rbp), %rax
	movl	$800000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-800044(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800040(%rbp)
	jmp	.L4
.L5:
	leaq	-800016(%rbp), %rdx
	movl	-800040(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -800040(%rbp)
.L4:
	movl	-800044(%rbp), %eax
	cmpl	%eax, -800040(%rbp)
	jl	.L5
	movl	-800044(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-800016(%rbp), %rax
	leaq	compare_int(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -800040(%rbp)
	jmp	.L6
.L12:
	cmpl	$0, -800040(%rbp)
	jne	.L7
	movl	-800040(%rbp), %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rax
	movq	%rax, -800032(%rbp)
	jmp	.L8
.L7:
	movl	-800040(%rbp), %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rax
	cmpq	%rax, -800032(%rbp)
	jne	.L9
	addl	$1, -800036(%rbp)
	cmpl	$2, -800036(%rbp)
	je	.L17
	movq	-800032(%rbp), %rax
	movq	%rax, -800024(%rbp)
	movq	$0, -800032(%rbp)
	jmp	.L8
.L9:
	movl	-800040(%rbp), %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rax
	movq	%rax, -800032(%rbp)
.L8:
	addl	$1, -800040(%rbp)
.L6:
	movl	-800044(%rbp), %eax
	cmpl	%eax, -800040(%rbp)
	jl	.L12
	jmp	.L11
.L17:
	nop
.L11:
	cmpl	$2, -800036(%rbp)
	jne	.L13
	movq	-800032(%rbp), %rax
	imulq	-800024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L14
.L13:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L14:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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_int
	.type	compare_int, @function
compare_int:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compare_int, .-compare_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
.LC3:
	.string	"0"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798776
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1320, %rsp
	.cfi_def_cfa_offset 800096
	movl	$800000, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 800024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r13
	movq	%r13, %rdi
	call	memset@PLT
	leaq	12(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	movq	%r13, %r12
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	addq	$8, %r12
	cmpl	%ebp, %esi
	jg	.L5
.L4:
	leaq	compare_int(%rip), %rcx
	movl	$8, %edx
	movq	%r13, %rdi
	call	qsort@PLT
	movslq	12(%rsp), %rcx
	testl	%ecx, %ecx
	jle	.L6
	movq	16(%rsp), %rdi
	xorl	%eax, %eax
	xorl	%esi, %esi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	movq	0(%r13,%rax,8), %rdx
	cmpq	%rbx, %rdx
	je	.L20
	movq	%rdx, %rbx
.L7:
	addq	$1, %rax
	cmpq	%rcx, %rax
	je	.L21
.L9:
	testq	%rax, %rax
	jne	.L22
	addq	$1, %rax
	movq	%rdi, %rbx
	cmpq	%rcx, %rax
	jne	.L9
.L21:
	cmpl	$2, %esi
	je	.L8
.L6:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L10:
	movq	800024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$800040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	addl	$1, %esi
	cmpl	$2, %esi
	je	.L8
	movq	%rbx, %r14
	xorl	%ebx, %ebx
	jmp	.L7
.L8:
	movq	%rbx, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	imulq	%r14, %rdx
	call	__printf_chk@PLT
	jmp	.L10
.L23:
	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_int
	.type	compare_int, @function
compare_int:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compare_int, .-compare_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
.LC3:
	.string	"0"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798776
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1320, %rsp
	.cfi_def_cfa_offset 800096
	movl	$800000, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 800024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %r13
	movq	%r13, %rdi
	call	memset@PLT
	leaq	12(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	movq	%r13, %r12
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %rsi
	addq	$8, %r12
	cmpl	%ebp, %esi
	jg	.L5
.L4:
	leaq	compare_int(%rip), %rcx
	movl	$8, %edx
	movq	%r13, %rdi
	call	qsort@PLT
	movslq	12(%rsp), %rcx
	testl	%ecx, %ecx
	jle	.L6
	movq	16(%rsp), %rdi
	xorl	%eax, %eax
	xorl	%esi, %esi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L22:
	movq	0(%r13,%rax,8), %rdx
	cmpq	%rbx, %rdx
	je	.L20
	movq	%rdx, %rbx
.L7:
	addq	$1, %rax
	cmpq	%rcx, %rax
	je	.L21
.L9:
	testq	%rax, %rax
	jne	.L22
	addq	$1, %rax
	movq	%rdi, %rbx
	cmpq	%rcx, %rax
	jne	.L9
.L21:
	cmpl	$2, %esi
	je	.L8
.L6:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L10:
	movq	800024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$800040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	addl	$1, %esi
	cmpl	$2, %esi
	je	.L8
	movq	%rbx, %r14
	xorl	%ebx, %ebx
	jmp	.L7
.L8:
	movq	%rbx, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	imulq	%r14, %rdx
	call	__printf_chk@PLT
	jmp	.L10
.L23:
	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>
int compare_int(const void *a, const void *b)
{
    return *(int*)b - *(int*)a;
}

int main(){
	int n,i,c=0;
	long long int a,b,data[100000]={0};
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%lld",&data[i]);
	}

	qsort(data, n, sizeof(long long int), compare_int);
	
	for(i=0;i<n;i++){
		if(i==0){
			a=data[i];
		}else{
			if(a==data[i]){
				c+=1;
				if(c==2){
					break;	
				}
				b=a;
				a=0;
			}else{
				a=data[i];
			}
		}
	}
	if(c==2){
		printf("%lld\n",a*b);
	}else{
		printf("0\n");	
	}
	
return 0;
}
10
3 3 3 3 4 4 2 5 5 5
 6
3 1 2 4 2 2
 6
3 2 2 4 2 2
 6
3 2 2 4 3 2
 10
3 3 6 3 4 4 1 6 5 5
 10
3 3 6 3 4 3 1 6 5 6
 6
3 4 2 3 4 3
 10
3 3 6 6 4 3 1 6 3 6
 10
3 2 8 6 4 0 1 8 3 10
 6
1 -1 1 7 8 7

20
 0
 4
 6
 30
 18
 12
 36
 24
 7

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

int main(){
	int n,i,c=0;
	long long int a,b,data[100000]={0};
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%lld",&data[i]);
	}

	qsort(data, n, sizeof(long long int), compare_int);
	
	for(i=0;i<n;i++){
		if(i==0){
			a=data[i];
		}else{
			if(a==data[i]){
				c+=1;
				if(c==2){
					break;	
				}
				b=a;
				a=0;
			}else{
				a=data[i];
			}
		}
	}
	if(c==2){
		printf("%lld\n",a*b);
	}else{
		printf("0\n");	
	}
	
return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.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, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_int, .-compare_int
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
.LC3:
	.string	"0"
	.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	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1328, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -800036(%rbp)
	leaq	-800016(%rbp), %rax
	movl	$800000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-800044(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800040(%rbp)
	jmp	.L4
.L5:
	leaq	-800016(%rbp), %rdx
	movl	-800040(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -800040(%rbp)
.L4:
	movl	-800044(%rbp), %eax
	cmpl	%eax, -800040(%rbp)
	jl	.L5
	movl	-800044(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-800016(%rbp), %rax
	leaq	compare_int(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -800040(%rbp)
	jmp	.L6
.L12:
	cmpl	$0, -800040(%rbp)
	jne	.L7
	movl	-800040(%rbp), %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rax
	movq	%rax, -800032(%rbp)
	jmp	.L8
.L7:
	movl	-800040(%rbp), %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rax
	cmpq	%rax, -800032(%rbp)
	jne	.L9
	addl	$1, -800036(%rbp)
	cmpl	$2, -800036(%rbp)
	je	.L17
	movq	-800032(%rbp), %rax
	movq	%rax, -800024(%rbp)
	movq	$0, -800032(%rbp)
	jmp	.L8
.L9:
	movl	-800040(%rbp), %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rax
	movq	%rax, -800032(%rbp)
.L8:
	addl	$1, -800040(%rbp)
.L6:
	movl	-800044(%rbp), %eax
	cmpl	%eax, -800040(%rbp)
	jl	.L12
	jmp	.L11
.L17:
	nop
.L11:
	cmpl	$2, -800036(%rbp)
	jne	.L13
	movq	-800032(%rbp), %rax
	imulq	-800024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L14
.L13:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L14:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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_int
	.type	compare_int, @function
compare_int:
.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, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_int, .-compare_int
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
.LC3:
	.string	"0"
	.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	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1328, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -800036(%rbp)
	leaq	-800016(%rbp), %rax
	movl	$800000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-800044(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800040(%rbp)
	jmp	.L4
.L5:
	leaq	-800016(%rbp), %rdx
	movl	-800040(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -800040(%rbp)
.L4:
	movl	-800044(%rbp), %eax
	cmpl	%eax, -800040(%rbp)
	jl	.L5
	movl	-800044(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-800016(%rbp), %rax
	leaq	compare_int(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -800040(%rbp)
	jmp	.L6
.L12:
	cmpl	$0, -800040(%rbp)
	jne	.L7
	movl	-800040(%rbp), %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rax
	movq	%rax, -800032(%rbp)
	jmp	.L8
.L7:
	movl	-800040(%rbp), %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rax
	cmpq	%rax, -800032(%rbp)
	jne	.L9
	addl	$1, -800036(%rbp)
	cmpl	$2, -800036(%rbp)
	je	.L17
	movq	-800032(%rbp), %rax
	movq	%rax, -800024(%rbp)
	movq	$0, -800032(%rbp)
	jmp	.L8
.L9:
	movl	-800040(%rbp), %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rax
	movq	%rax, -800032(%rbp)
.L8:
	addl	$1, -800040(%rbp)
.L6:
	movl	-800044(%rbp), %eax
	cmpl	%eax, -800040(%rbp)
	jl	.L12
	jmp	.L11
.L17:
	nop
.L11:
	cmpl	$2, -800036(%rbp)
	jne	.L13
	movq	-800032(%rbp), %rax
	imulq	-800024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L14
.L13:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L14:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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:
