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>
#include <string.h>

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

int main(int argc, char* args[]) 
{
	int n,i;
	int cnt = 0, hen[2] = {0};
	int seg[100000];
	long long int s;

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

	qsort(seg, n, sizeof(int), compare);

	for (i = 0; i < n - 1; i++) {
		if (seg[i] == seg[i + 1]) {
			hen[cnt++] = seg[i++];
		}
		if (cnt == 2)
			break;
	}

	s = (long long int)hen[0] * (long long int)hen[1];
	printf("%lld\n", s);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	compare
	.type	compare, @function
compare:
.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, .-compare
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.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	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2752, %rsp
	movl	%edi, -400052(%rbp)
	movq	%rsi, -400064(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -400036(%rbp)
	movq	$0, -400024(%rbp)
	leaq	-400044(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400040(%rbp)
	jmp	.L4
.L5:
	leaq	-400016(%rbp), %rdx
	movl	-400040(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400040(%rbp)
.L4:
	movl	-400044(%rbp), %eax
	cmpl	%eax, -400040(%rbp)
	jl	.L5
	movl	-400044(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-400016(%rbp), %rax
	leaq	compare(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -400040(%rbp)
	jmp	.L6
.L10:
	movl	-400040(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-400040(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L7
	movl	-400040(%rbp), %edx
	leal	1(%rdx), %eax
	movl	%eax, -400040(%rbp)
	movl	-400036(%rbp), %eax
	leal	1(%rax), %ecx
	movl	%ecx, -400036(%rbp)
	movslq	%edx, %rdx
	movl	-400016(%rbp,%rdx,4), %edx
	cltq
	movl	%edx, -400024(%rbp,%rax,4)
.L7:
	cmpl	$2, -400036(%rbp)
	je	.L13
	addl	$1, -400040(%rbp)
.L6:
	movl	-400044(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -400040(%rbp)
	jl	.L10
	jmp	.L9
.L13:
	nop
.L9:
	movl	-400024(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400020(%rbp), %eax
	cltq
	imulq	%rdx, %rax
	movq	%rax, -400032(%rbp)
	movq	-400032(%rbp), %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	.L12
	call	__stack_chk_fail@PLT
.L12:
	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
	.type	compare, @function
compare:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	compare, .-compare
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397352
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2728, %rsp
	.cfi_def_cfa_offset 400080
	leaq	.LC0(%rip), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 400024(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	leaq	16(%rsp), %r13
	movq	$0, 8(%rsp)
	movq	%r13, %rbp
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rsi
	addq	$4, %rbp
	cmpl	%ebx, %esi
	jg	.L5
.L4:
	movq	%r13, %rdi
	leaq	compare(%rip), %rcx
	movl	$4, %edx
	call	qsort@PLT
	movl	4(%rsp), %eax
	xorl	%r8d, %r8d
	leal	-1(%rax), %edi
	xorl	%eax, %eax
	testl	%edi, %edi
	jg	.L6
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%edx, %eax
	cmpl	%eax, %edi
	jle	.L8
.L6:
	movslq	%eax, %rdx
	movl	16(%rsp,%rdx,4), %ecx
	leal	1(%rax), %edx
	movslq	%edx, %rsi
	cmpl	16(%rsp,%rsi,4), %ecx
	jne	.L11
	movslq	%r8d, %rdx
	movl	%ecx, 8(%rsp,%rdx,4)
	cmpl	$1, %r8d
	je	.L8
	addl	$2, %eax
	movl	$1, %r8d
	cmpl	%eax, %edi
	jg	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	12(%rsp), %rax
	movslq	8(%rsp), %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	imulq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	400024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$400040, %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
.L22:
	.cfi_restore_state
	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
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compare
	.type	compare, @function
compare:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	compare, .-compare
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397352
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2728, %rsp
	.cfi_def_cfa_offset 400080
	leaq	.LC0(%rip), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 400024(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	leaq	16(%rsp), %r13
	movq	$0, 8(%rsp)
	movq	%r13, %rbp
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rsi
	testl	%esi, %esi
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movslq	4(%rsp), %rsi
	addq	$4, %rbp
	cmpl	%ebx, %esi
	jg	.L5
.L4:
	movq	%r13, %rdi
	leaq	compare(%rip), %rcx
	movl	$4, %edx
	call	qsort@PLT
	movl	4(%rsp), %eax
	xorl	%r8d, %r8d
	leal	-1(%rax), %edi
	xorl	%eax, %eax
	testl	%edi, %edi
	jg	.L6
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%edx, %eax
	cmpl	%eax, %edi
	jle	.L8
.L6:
	movslq	%eax, %rdx
	movl	16(%rsp,%rdx,4), %ecx
	leal	1(%rax), %edx
	movslq	%edx, %rsi
	cmpl	16(%rsp,%rsi,4), %ecx
	jne	.L11
	movslq	%r8d, %rdx
	movl	%ecx, 8(%rsp,%rdx,4)
	cmpl	$1, %r8d
	je	.L8
	addl	$2, %eax
	movl	$1, %r8d
	cmpl	%eax, %edi
	jg	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	movslq	12(%rsp), %rax
	movslq	8(%rsp), %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	imulq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	400024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$400040, %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
.L22:
	.cfi_restore_state
	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:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

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

int main(int argc, char* args[]) 
{
	int n,i;
	int cnt = 0, hen[2] = {0};
	int seg[100000];
	long long int s;

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

	qsort(seg, n, sizeof(int), compare);

	for (i = 0; i < n - 1; i++) {
		if (seg[i] == seg[i + 1]) {
			hen[cnt++] = seg[i++];
		}
		if (cnt == 2)
			break;
	}

	s = (long long int)hen[0] * (long long int)hen[1];
	printf("%lld\n", s);
	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>
#include <string.h>

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

int main(int argc, char* args[]) 
{
	int n,i;
	int cnt = 0, hen[2] = {0};
	int seg[100000];
	long long int s;

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

	qsort(seg, n, sizeof(int), compare);

	for (i = 0; i < n - 1; i++) {
		if (seg[i] == seg[i + 1]) {
			hen[cnt++] = seg[i++];
		}
		if (cnt == 2)
			break;
	}

	s = (long long int)hen[0] * (long long int)hen[1];
	printf("%lld\n", s);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	compare
	.type	compare, @function
compare:
.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, .-compare
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.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	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2752, %rsp
	movl	%edi, -400052(%rbp)
	movq	%rsi, -400064(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -400036(%rbp)
	movq	$0, -400024(%rbp)
	leaq	-400044(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400040(%rbp)
	jmp	.L4
.L5:
	leaq	-400016(%rbp), %rdx
	movl	-400040(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400040(%rbp)
.L4:
	movl	-400044(%rbp), %eax
	cmpl	%eax, -400040(%rbp)
	jl	.L5
	movl	-400044(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-400016(%rbp), %rax
	leaq	compare(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -400040(%rbp)
	jmp	.L6
.L10:
	movl	-400040(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-400040(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L7
	movl	-400040(%rbp), %edx
	leal	1(%rdx), %eax
	movl	%eax, -400040(%rbp)
	movl	-400036(%rbp), %eax
	leal	1(%rax), %ecx
	movl	%ecx, -400036(%rbp)
	movslq	%edx, %rdx
	movl	-400016(%rbp,%rdx,4), %edx
	cltq
	movl	%edx, -400024(%rbp,%rax,4)
.L7:
	cmpl	$2, -400036(%rbp)
	je	.L13
	addl	$1, -400040(%rbp)
.L6:
	movl	-400044(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -400040(%rbp)
	jl	.L10
	jmp	.L9
.L13:
	nop
.L9:
	movl	-400024(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400020(%rbp), %eax
	cltq
	imulq	%rdx, %rax
	movq	%rax, -400032(%rbp)
	movq	-400032(%rbp), %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	.L12
	call	__stack_chk_fail@PLT
.L12:
	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
	.type	compare, @function
compare:
.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, .-compare
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld\n"
	.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	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2752, %rsp
	movl	%edi, -400052(%rbp)
	movq	%rsi, -400064(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -400036(%rbp)
	movq	$0, -400024(%rbp)
	leaq	-400044(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400040(%rbp)
	jmp	.L4
.L5:
	leaq	-400016(%rbp), %rdx
	movl	-400040(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400040(%rbp)
.L4:
	movl	-400044(%rbp), %eax
	cmpl	%eax, -400040(%rbp)
	jl	.L5
	movl	-400044(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-400016(%rbp), %rax
	leaq	compare(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -400040(%rbp)
	jmp	.L6
.L10:
	movl	-400040(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-400040(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L7
	movl	-400040(%rbp), %edx
	leal	1(%rdx), %eax
	movl	%eax, -400040(%rbp)
	movl	-400036(%rbp), %eax
	leal	1(%rax), %ecx
	movl	%ecx, -400036(%rbp)
	movslq	%edx, %rdx
	movl	-400016(%rbp,%rdx,4), %edx
	cltq
	movl	%edx, -400024(%rbp,%rax,4)
.L7:
	cmpl	$2, -400036(%rbp)
	je	.L13
	addl	$1, -400040(%rbp)
.L6:
	movl	-400044(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -400040(%rbp)
	jl	.L10
	jmp	.L9
.L13:
	nop
.L9:
	movl	-400024(%rbp), %eax
	movslq	%eax, %rdx
	movl	-400020(%rbp), %eax
	cltq
	imulq	%rdx, %rax
	movq	%rax, -400032(%rbp)
	movq	-400032(%rbp), %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	.L12
	call	__stack_chk_fail@PLT
.L12:
	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:
