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


int main() {
	int n, l[2020], i, j, k;
	long long ans = 0;
	scanf("%d", &n);
	for (i = 0; i < n; i++) {
		scanf("%d", &l[i]);
	}
	qsort(l, n, sizeof(int), compare_int);

	for (i = 0; i < n - 2; i++) {
		for (j = i + 1; j < n - 1; j++) {
			for (k = j + 1; k < n; k++) {
				if (l[k] >= l[i] + l[j]) { break; }
				ans++;
			}
		}
	}
	printf("%lld", ans);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compare_int, .-compare_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4136
	orq	$0, (%rsp)
	subq	$4024, %rsp
	.cfi_def_cfa_offset 8160
	leaq	.LC0(%rip), %r13
	xorl	%ebp, %ebp
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 8104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebp, %eax
	jg	.L5
.L4:
	movslq	%eax, %rsi
	leaq	compare_int(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	12(%rsp), %r11d
	cmpl	$2, %r11d
	jle	.L13
	leal	-3(%r11), %ebp
	leal	-1(%r11), %r9d
	movl	$1, %r10d
	xorl	%edx, %edx
	addq	$2, %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r10d, %edi
	cmpl	%r10d, %r9d
	jle	.L7
	leaq	0(,%r10,4), %r8
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, %edi
	cmpl	%r11d, %edi
	jge	.L8
	movl	%r9d, %eax
	movl	(%rbx,%r8), %ecx
	addl	-4(%rbx,%r10,4), %ecx
	subl	%edi, %eax
	leaq	1(%rdx,%rax), %rsi
	movq	%rdx, %rax
	negq	%rax
	leaq	(%r8,%rax,4), %rax
	addq	%rbx, %rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L21:
	addq	$1, %rdx
	cmpq	%rsi, %rdx
	je	.L8
.L9:
	cmpl	%ecx, 4(%rax,%rdx,4)
	jl	.L21
.L8:
	addq	$4, %r8
	cmpl	%edi, %r9d
	jne	.L10
.L7:
	addq	$1, %r10
	cmpq	%rbp, %r10
	jne	.L11
.L6:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$8120, %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
.L13:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L6
.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	compare_int
	.type	compare_int, @function
compare_int:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compare_int, .-compare_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4136
	orq	$0, (%rsp)
	subq	$4024, %rsp
	.cfi_def_cfa_offset 8160
	leaq	.LC0(%rip), %r13
	xorl	%ebp, %ebp
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 8104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebp, %eax
	jg	.L5
.L4:
	movslq	%eax, %rsi
	leaq	compare_int(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	12(%rsp), %r11d
	cmpl	$2, %r11d
	jle	.L13
	leal	-3(%r11), %ebp
	leal	-1(%r11), %r9d
	movl	$1, %r10d
	xorl	%edx, %edx
	addq	$2, %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r10d, %edi
	cmpl	%r10d, %r9d
	jle	.L7
	leaq	0(,%r10,4), %r8
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, %edi
	cmpl	%r11d, %edi
	jge	.L8
	movl	%r9d, %eax
	movl	(%rbx,%r8), %ecx
	addl	-4(%rbx,%r10,4), %ecx
	subl	%edi, %eax
	leaq	1(%rdx,%rax), %rsi
	movq	%rdx, %rax
	negq	%rax
	leaq	(%r8,%rax,4), %rax
	addq	%rbx, %rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L21:
	addq	$1, %rdx
	cmpq	%rsi, %rdx
	je	.L8
.L9:
	cmpl	%ecx, 4(%rax,%rdx,4)
	jl	.L21
.L8:
	addq	$4, %r8
	cmpl	%edi, %r9d
	jne	.L10
.L7:
	addq	$1, %r10
	cmpq	%rbp, %r10
	jne	.L11
.L6:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$8120, %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
.L13:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L6
.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	compare_int
	.type	compare_int, @function
compare_int:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compare_int, .-compare_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4136
	orq	$0, (%rsp)
	subq	$4024, %rsp
	.cfi_def_cfa_offset 8160
	leaq	.LC0(%rip), %r13
	xorl	%ebp, %ebp
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 8104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebp, %eax
	jg	.L5
.L4:
	movslq	%eax, %rsi
	leaq	compare_int(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	12(%rsp), %r11d
	cmpl	$2, %r11d
	jle	.L13
	leal	-3(%r11), %ebp
	leal	-1(%r11), %r9d
	movl	$1, %r10d
	xorl	%edx, %edx
	addq	$2, %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r10d, %edi
	cmpl	%r10d, %r9d
	jle	.L7
	leaq	0(,%r10,4), %r8
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, %edi
	cmpl	%r11d, %edi
	jge	.L8
	movl	%r9d, %eax
	movl	(%rbx,%r8), %ecx
	addl	-4(%rbx,%r10,4), %ecx
	subl	%edi, %eax
	leaq	1(%rdx,%rax), %rsi
	movq	%rdx, %rax
	negq	%rax
	leaq	(%r8,%rax,4), %rax
	addq	%rbx, %rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L21:
	addq	$1, %rdx
	cmpq	%rsi, %rdx
	je	.L8
.L9:
	cmpl	%ecx, 4(%rax,%rdx,4)
	jl	.L21
.L8:
	addq	$4, %r8
	cmpl	%edi, %r9d
	jne	.L10
.L7:
	addq	$1, %r10
	cmpq	%rbp, %r10
	jne	.L11
.L6:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$8120, %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
.L13:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L6
.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
#include <stdio.h>
#include <stdlib.h>
int compare_int(const void* a, const void* b) {
		return *(int*)a - *(int*)b;
}


int main() {
	int n, l[2020], i, j, k;
	long long ans = 0;
	scanf("%d", &n);
	for (i = 0; i < n; i++) {
		scanf("%d", &l[i]);
	}
	qsort(l, n, sizeof(int), compare_int);

	for (i = 0; i < n - 2; i++) {
		for (j = i + 1; j < n - 1; j++) {
			for (k = j + 1; k < n; k++) {
				if (l[k] >= l[i] + l[j]) { break; }
				ans++;
			}
		}
	}
	printf("%lld", ans);
}```
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>
int compare_int(const void* a, const void* b) {
		return *(int*)a - *(int*)b;
}


int main() {
	int n, l[2020], i, j, k;
	long long ans = 0;
	scanf("%d", &n);
	for (i = 0; i < n; i++) {
		scanf("%d", &l[i]);
	}
	qsort(l, n, sizeof(int), compare_int);

	for (i = 0; i < n - 2; i++) {
		for (j = i + 1; j < n - 1; j++) {
			for (k = j + 1; k < n; k++) {
				if (l[k] >= l[i] + l[j]) { break; }
				ans++;
			}
		}
	}
	printf("%lld", ans);
}```

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:

4
5 4 2 1
 7
218 1140 704 233 645 728 389
 3
1 1000 2
 7
218 1140 704 233 645 890 389
 7
218 1140 1051 233 449 890 389
 7
218 1140 1051 16 636 890 389
 7
218 1140 551 40 636 890 487
 7
218 1140 551 40 660 890 487
 7
116 1499 551 40 806 890 487
 7
116 1499 551 40 297 890 487

1 14 0 13 15 10 11 12 7 3
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>
int compare_int(const void* a, const void* b) {
		return *(int*)a - *(int*)b;
}


int main() {
	int n, l[2020], i, j, k;
	long long ans = 0;
	scanf("%d", &n);
	for (i = 0; i < n; i++) {
		scanf("%d", &l[i]);
	}
	qsort(l, n, sizeof(int), compare_int);

	for (i = 0; i < n - 2; i++) {
		for (j = i + 1; j < n - 1; j++) {
			for (k = j + 1; k < n; k++) {
				if (l[k] >= l[i] + l[j]) { break; }
				ans++;
			}
		}
	}
	printf("%lld", ans);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compare_int, .-compare_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4136
	orq	$0, (%rsp)
	subq	$4024, %rsp
	.cfi_def_cfa_offset 8160
	leaq	.LC0(%rip), %r13
	xorl	%ebp, %ebp
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 8104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebp, %eax
	jg	.L5
.L4:
	movslq	%eax, %rsi
	leaq	compare_int(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	12(%rsp), %r11d
	cmpl	$2, %r11d
	jle	.L13
	leal	-3(%r11), %ebp
	leal	-1(%r11), %r9d
	movl	$1, %r10d
	xorl	%edx, %edx
	addq	$2, %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r10d, %edi
	cmpl	%r10d, %r9d
	jle	.L7
	leaq	0(,%r10,4), %r8
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, %edi
	cmpl	%r11d, %edi
	jge	.L8
	movl	%r9d, %eax
	movl	(%rbx,%r8), %ecx
	addl	-4(%rbx,%r10,4), %ecx
	subl	%edi, %eax
	leaq	1(%rdx,%rax), %rsi
	movq	%rdx, %rax
	negq	%rax
	leaq	(%r8,%rax,4), %rax
	addq	%rbx, %rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L21:
	addq	$1, %rdx
	cmpq	%rsi, %rdx
	je	.L8
.L9:
	cmpl	%ecx, 4(%rax,%rdx,4)
	jl	.L21
.L8:
	addq	$4, %r8
	cmpl	%edi, %r9d
	jne	.L10
.L7:
	addq	$1, %r10
	cmpq	%rbp, %r10
	jne	.L11
.L6:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$8120, %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
.L13:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L6
.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	compare_int
	.type	compare_int, @function
compare_int:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compare_int, .-compare_int
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4136
	orq	$0, (%rsp)
	subq	$4024, %rsp
	.cfi_def_cfa_offset 8160
	leaq	.LC0(%rip), %r13
	xorl	%ebp, %ebp
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 8104(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %rbx
	movq	%rbx, %r12
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %r12
	cmpl	%ebp, %eax
	jg	.L5
.L4:
	movslq	%eax, %rsi
	leaq	compare_int(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	12(%rsp), %r11d
	cmpl	$2, %r11d
	jle	.L13
	leal	-3(%r11), %ebp
	leal	-1(%r11), %r9d
	movl	$1, %r10d
	xorl	%edx, %edx
	addq	$2, %rbp
	.p2align 4,,10
	.p2align 3
.L11:
	movl	%r10d, %edi
	cmpl	%r10d, %r9d
	jle	.L7
	leaq	0(,%r10,4), %r8
	.p2align 4,,10
	.p2align 3
.L10:
	addl	$1, %edi
	cmpl	%r11d, %edi
	jge	.L8
	movl	%r9d, %eax
	movl	(%rbx,%r8), %ecx
	addl	-4(%rbx,%r10,4), %ecx
	subl	%edi, %eax
	leaq	1(%rdx,%rax), %rsi
	movq	%rdx, %rax
	negq	%rax
	leaq	(%r8,%rax,4), %rax
	addq	%rbx, %rax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L21:
	addq	$1, %rdx
	cmpq	%rsi, %rdx
	je	.L8
.L9:
	cmpl	%ecx, 4(%rax,%rdx,4)
	jl	.L21
.L8:
	addq	$4, %r8
	cmpl	%edi, %r9d
	jne	.L10
.L7:
	addq	$1, %r10
	cmpq	%rbp, %r10
	jne	.L11
.L6:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	8104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L22
	addq	$8120, %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
.L13:
	.cfi_restore_state
	xorl	%edx, %edx
	jmp	.L6
.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:
```