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>
#include<math.h>
#define loop(i, l, r) for(i=l; i<r; i++)/*Instead of function, (for).*/
#define rep(i,r) for(i=0; i<r; i++)
#define Max(a, b) ((a) > (b) ? (a) : (b))
#define Min(a, b) ((a) < (b) ? (a) : (b))
typedef long long int lli;
/*Return Combination ,(nCr)*/
int combi(int n, int r)
{
	if(r==0 || r==n) return 1;
	else return combi(n-1,r) + combi(n-1,r-1);
}
/*Return gcd(a, b)*/
int gcd(int a, int b){
	if(b == 0) return a;
	else return gcd(b, a % b);
}
//�N�C�b�N�\�[�gqsort�֐�
int compare_int(const void *a, const void *b)
{
    return *(lli*)a - *(lli*)b;
}
/*qsort(data, 10, sizeof(int), compare_int);*/

int main(void)
{
	lli i, n, ans;
	scanf("%lld", &n);
	lli d[n];
	rep(i,n) scanf("%lld", &d[i]);
	qsort(d, n, sizeof(lli), compare_int);
	ans = d[n/2] - d[n/2-1];
	printf("%lld", ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	combi
	.type	combi, @function
combi:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	cmpl	$0, -24(%rbp)
	je	.L2
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jne	.L3
.L2:
	movl	$1, %eax
	jmp	.L4
.L3:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	combi
	movl	%eax, %ebx
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	combi
	addl	%ebx, %eax
.L4:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	combi, .-combi
	.globl	gcd
	.type	gcd, @function
gcd:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	cmpl	$0, -8(%rbp)
	jne	.L6
	movl	-4(%rbp), %eax
	jmp	.L7
.L6:
	movl	-4(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	-8(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	gcd
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	gcd, .-gcd
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB8:
	.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	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %edx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compare_int, .-compare_int
	.section	.rodata
.LC0:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-96(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -80(%rbp)
	movq	%rax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movq	%rax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L11:
	cmpq	%rdx, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L12:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L13
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L13:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -72(%rbp)
	movq	$0, -88(%rbp)
	jmp	.L14
.L15:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -88(%rbp)
.L14:
	movq	-96(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jl	.L15
	movq	-96(%rbp), %rax
	movq	%rax, %rsi
	movq	-72(%rbp), %rax
	leaq	compare_int(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-96(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-72(%rbp), %rax
	movq	(%rax,%rdx,8), %rdx
	movq	-96(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	leaq	-1(%rax), %rcx
	movq	-72(%rbp), %rax
	movq	(%rax,%rcx,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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:
.LFB53:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE53:
	.size	compare_int, .-compare_int
	.p2align 4
	.globl	combi
	.type	combi, @function
combi:
.LFB51:
	.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
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movl	%edi, 76(%rsp)
	cmpl	%esi, %edi
	je	.L54
	movl	$0, 40(%rsp)
	movl	%esi, %r11d
	testl	%esi, %esi
	je	.L54
.L4:
	movl	76(%rsp), %eax
	movl	%eax, 92(%rsp)
	subl	$1, %eax
	movl	%eax, 76(%rsp)
	cmpl	%r11d, %eax
	je	.L55
	movl	%eax, 44(%rsp)
	movl	%r11d, 28(%rsp)
	movl	$0, 48(%rsp)
	testl	%r11d, %r11d
	je	.L55
	movl	%r11d, 100(%rsp)
	movl	%r11d, %edi
.L6:
	movl	44(%rsp), %eax
	movl	%eax, 88(%rsp)
	subl	$1, %eax
	movl	%eax, 44(%rsp)
	cmpl	%edi, %eax
	je	.L57
	movl	%eax, 52(%rsp)
	movl	%edi, 32(%rsp)
	movl	$0, 56(%rsp)
	testl	%edi, %edi
	je	.L57
.L10:
	movl	52(%rsp), %eax
	movl	32(%rsp), %edi
	movl	%eax, 84(%rsp)
	subl	$1, %eax
	movl	%eax, 52(%rsp)
	cmpl	%edi, %eax
	je	.L59
	movl	%eax, 60(%rsp)
	movl	%edi, 36(%rsp)
	movl	$0, 64(%rsp)
	testl	%edi, %edi
	je	.L59
.L14:
	movl	60(%rsp), %eax
	movl	36(%rsp), %ecx
	movl	%eax, 96(%rsp)
	subl	$1, %eax
	movl	%eax, 60(%rsp)
	cmpl	%ecx, %eax
	je	.L61
	xorl	%r11d, %r11d
	movl	%ecx, %r8d
	movl	%r11d, %r10d
	movl	%eax, %r11d
	testl	%ecx, %ecx
	je	.L61
	movl	%r11d, 8(%rsp)
	subl	$1, %r11d
	cmpl	%r8d, %r11d
	je	.L63
.L88:
	movl	%r11d, %edx
	xorl	%r9d, %r9d
	testl	%r8d, %r8d
	je	.L63
	movl	%r10d, 12(%rsp)
	movl	%r8d, %r15d
	movl	%r8d, 16(%rsp)
.L22:
	movl	%edx, 68(%rsp)
	subl	$1, %edx
	cmpl	%r15d, %edx
	je	.L82
	movl	%edx, %r10d
	movl	%r15d, %r13d
	xorl	%r8d, %r8d
	movl	%edx, %ecx
.L26:
	movl	%r10d, 24(%rsp)
	subl	$1, %r10d
	cmpl	%r13d, %r10d
	je	.L83
	movl	%r10d, %ebx
	movl	%r13d, %ebp
	xorl	%r12d, %r12d
	movl	%ebx, 20(%rsp)
	subl	$1, %ebx
	cmpl	%ebp, %ebx
	je	.L84
.L52:
	movl	%ebx, %edi
	movl	%ebp, %r14d
	xorl	%edx, %edx
.L32:
	movl	%r14d, %esi
	movl	%edi, 72(%rsp)
	subl	$1, %edi
	movl	%edx, 124(%rsp)
	movl	%r8d, 120(%rsp)
	movl	%r10d, 116(%rsp)
	movl	%r9d, 112(%rsp)
	movl	%ecx, 108(%rsp)
	movl	%r11d, 104(%rsp)
	movl	%edi, 80(%rsp)
	call	combi
	movl	124(%rsp), %edx
	movl	104(%rsp), %r11d
	movl	%eax, %esi
	movl	%r14d, %eax
	movl	108(%rsp), %ecx
	movl	112(%rsp), %r9d
	addl	%esi, %edx
	subl	$1, %r14d
	movl	116(%rsp), %r10d
	movl	120(%rsp), %r8d
	je	.L68
	cmpl	72(%rsp), %eax
	movl	80(%rsp), %edi
	jne	.L32
.L68:
	leal	1(%rdx), %eax
	addl	%eax, %r12d
	leal	-1(%rbp), %eax
	cmpl	$1, %ebp
	je	.L67
.L85:
	cmpl	20(%rsp), %ebp
	je	.L67
	movl	%ebx, 20(%rsp)
	movl	%eax, %ebp
	subl	$1, %ebx
	cmpl	%ebp, %ebx
	jne	.L52
.L84:
	movl	$1, %eax
	addl	%eax, %r12d
	leal	-1(%rbp), %eax
	cmpl	$1, %ebp
	jne	.L85
	.p2align 4,,10
	.p2align 3
.L67:
	addl	$1, %r12d
	leal	-1(%r13), %eax
	addl	%r12d, %r8d
	cmpl	$1, %r13d
	jne	.L86
.L66:
	leal	1(%r8), %eax
	movl	%ecx, %edx
	addl	%eax, %r9d
	leal	-1(%r15), %eax
	cmpl	$1, %r15d
	jne	.L87
.L65:
	movl	12(%rsp), %r10d
	movl	16(%rsp), %r8d
	leal	1(%r9), %eax
	addl	%eax, %r10d
	leal	-1(%r8), %eax
	cmpl	$1, %r8d
	je	.L64
.L89:
	cmpl	8(%rsp), %r8d
	je	.L64
	movl	%r11d, 8(%rsp)
	movl	%eax, %r8d
	subl	$1, %r11d
	cmpl	%r8d, %r11d
	jne	.L88
.L63:
	movl	$1, %eax
	addl	%eax, %r10d
	leal	-1(%r8), %eax
	cmpl	$1, %r8d
	jne	.L89
.L64:
	movl	36(%rsp), %esi
	leal	1(%r10), %eax
	addl	%eax, 64(%rsp)
	leal	-1(%rsi), %eax
	cmpl	$1, %esi
	je	.L62
.L90:
	movl	96(%rsp), %ebx
	cmpl	%ebx, %esi
	je	.L62
	movl	%eax, 36(%rsp)
	jmp	.L14
.L82:
	movl	$1, %eax
	addl	%eax, %r9d
	leal	-1(%r15), %eax
	cmpl	$1, %r15d
	je	.L65
.L87:
	cmpl	68(%rsp), %r15d
	je	.L65
	movl	%eax, %r15d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L83:
	movl	$1, %r12d
	leal	-1(%r13), %eax
	addl	%r12d, %r8d
	cmpl	$1, %r13d
	je	.L66
.L86:
	cmpl	24(%rsp), %r13d
	je	.L66
	movl	%eax, %r13d
	jmp	.L26
.L61:
	movl	36(%rsp), %esi
	movl	$1, %eax
	addl	%eax, 64(%rsp)
	leal	-1(%rsi), %eax
	cmpl	$1, %esi
	jne	.L90
.L62:
	movl	64(%rsp), %eax
	movl	32(%rsp), %ebx
	addl	$1, %eax
	addl	%eax, 56(%rsp)
	leal	-1(%rbx), %eax
	cmpl	$1, %ebx
	je	.L60
.L91:
	movl	84(%rsp), %edx
	cmpl	%edx, %ebx
	je	.L60
	movl	%eax, 32(%rsp)
	jmp	.L10
.L59:
	movl	32(%rsp), %ebx
	movl	$1, %eax
	addl	%eax, 56(%rsp)
	leal	-1(%rbx), %eax
	cmpl	$1, %ebx
	jne	.L91
.L60:
	movl	56(%rsp), %eax
	movl	28(%rsp), %esi
	addl	$1, %eax
	addl	%eax, 48(%rsp)
	leal	-1(%rsi), %eax
	cmpl	$1, %esi
	je	.L58
.L92:
	movl	88(%rsp), %ecx
	cmpl	%ecx, %esi
	je	.L58
	movl	%eax, 28(%rsp)
	movl	%eax, %edi
	jmp	.L6
.L57:
	movl	28(%rsp), %esi
	movl	$1, %eax
	addl	%eax, 48(%rsp)
	leal	-1(%rsi), %eax
	cmpl	$1, %esi
	jne	.L92
.L58:
	movl	100(%rsp), %r11d
	movl	48(%rsp), %eax
	addl	$1, %eax
	addl	%eax, 40(%rsp)
	leal	-1(%r11), %eax
	cmpl	$1, %r11d
	jne	.L93
.L56:
	movl	40(%rsp), %eax
	addl	$1, %eax
.L3:
	addq	$136, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L55:
	.cfi_restore_state
	movl	$1, %eax
	addl	%eax, 40(%rsp)
	leal	-1(%r11), %eax
	cmpl	$1, %r11d
	je	.L56
.L93:
	cmpl	92(%rsp), %r11d
	je	.L56
	movl	%eax, %r11d
	jmp	.L4
.L54:
	movl	$1, %eax
	jmp	.L3
	.cfi_endproc
.LFE51:
	.size	combi, .-combi
	.p2align 4
	.globl	gcd
	.type	gcd, @function
gcd:
.LFB52:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	movl	%esi, %r8d
	testl	%esi, %esi
	jne	.L95
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L103:
	movl	%edx, %r8d
.L95:
	cltd
	idivl	%r8d
	movl	%r8d, %eax
	testl	%edx, %edx
	jne	.L103
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L102:
	movl	%edi, %r8d
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	gcd, .-gcd
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	leaq	-48(%rbp), %rsi
	pushq	%r12
	movq	%r13, %rdi
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-48(%rbp), %rsi
	movq	%rsp, %rcx
	leaq	15(,%rsi,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L106
.L116:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L116
.L106:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L117
.L107:
	movq	%rsp, %r14
	testq	%rsi, %rsi
	jle	.L108
	movq	%r14, %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L109:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	-48(%rbp), %rsi
	addq	$8, %r12
	cmpq	%rbx, %rsi
	jg	.L109
.L108:
	movl	$8, %edx
	movq	%r14, %rdi
	leaq	compare_int(%rip), %rcx
	call	qsort@PLT
	movq	-48(%rbp), %rdx
	movq	%r13, %rsi
	movl	$1, %edi
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	movq	(%r14,%rax,8), %rdx
	subq	-8(%r14,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L118
	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
.L117:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L107
.L118:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.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:
.LFB53:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE53:
	.size	compare_int, .-compare_int
	.p2align 4
	.globl	combi
	.type	combi, @function
combi:
.LFB51:
	.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
	subq	$136, %rsp
	.cfi_def_cfa_offset 192
	movl	%edi, 76(%rsp)
	cmpl	%esi, %edi
	je	.L54
	movl	$0, 40(%rsp)
	movl	%esi, %r11d
	testl	%esi, %esi
	je	.L54
.L4:
	movl	76(%rsp), %eax
	movl	%eax, 92(%rsp)
	subl	$1, %eax
	movl	%eax, 76(%rsp)
	cmpl	%r11d, %eax
	je	.L55
	movl	%eax, 44(%rsp)
	movl	%r11d, 28(%rsp)
	movl	$0, 48(%rsp)
	testl	%r11d, %r11d
	je	.L55
	movl	%r11d, 100(%rsp)
	movl	%r11d, %edi
.L6:
	movl	44(%rsp), %eax
	movl	%eax, 88(%rsp)
	subl	$1, %eax
	movl	%eax, 44(%rsp)
	cmpl	%edi, %eax
	je	.L57
	movl	%eax, 52(%rsp)
	movl	%edi, 32(%rsp)
	movl	$0, 56(%rsp)
	testl	%edi, %edi
	je	.L57
.L10:
	movl	52(%rsp), %eax
	movl	32(%rsp), %edi
	movl	%eax, 84(%rsp)
	subl	$1, %eax
	movl	%eax, 52(%rsp)
	cmpl	%edi, %eax
	je	.L59
	movl	%eax, 60(%rsp)
	movl	%edi, 36(%rsp)
	movl	$0, 64(%rsp)
	testl	%edi, %edi
	je	.L59
.L14:
	movl	60(%rsp), %eax
	movl	36(%rsp), %ecx
	movl	%eax, 96(%rsp)
	subl	$1, %eax
	movl	%eax, 60(%rsp)
	cmpl	%ecx, %eax
	je	.L61
	xorl	%r11d, %r11d
	movl	%ecx, %r8d
	movl	%r11d, %r10d
	movl	%eax, %r11d
	testl	%ecx, %ecx
	je	.L61
	movl	%r11d, 8(%rsp)
	subl	$1, %r11d
	cmpl	%r8d, %r11d
	je	.L63
.L88:
	movl	%r11d, %edx
	xorl	%r9d, %r9d
	testl	%r8d, %r8d
	je	.L63
	movl	%r10d, 12(%rsp)
	movl	%r8d, %r15d
	movl	%r8d, 16(%rsp)
.L22:
	movl	%edx, 68(%rsp)
	subl	$1, %edx
	cmpl	%r15d, %edx
	je	.L82
	movl	%edx, %r10d
	movl	%r15d, %r13d
	xorl	%r8d, %r8d
	movl	%edx, %ecx
.L26:
	movl	%r10d, 24(%rsp)
	subl	$1, %r10d
	cmpl	%r13d, %r10d
	je	.L83
	movl	%r10d, %ebx
	movl	%r13d, %ebp
	xorl	%r12d, %r12d
	movl	%ebx, 20(%rsp)
	subl	$1, %ebx
	cmpl	%ebp, %ebx
	je	.L84
.L52:
	movl	%ebx, %edi
	movl	%ebp, %r14d
	xorl	%edx, %edx
.L32:
	movl	%r14d, %esi
	movl	%edi, 72(%rsp)
	subl	$1, %edi
	movl	%edx, 124(%rsp)
	movl	%r8d, 120(%rsp)
	movl	%r10d, 116(%rsp)
	movl	%r9d, 112(%rsp)
	movl	%ecx, 108(%rsp)
	movl	%r11d, 104(%rsp)
	movl	%edi, 80(%rsp)
	call	combi
	movl	124(%rsp), %edx
	movl	104(%rsp), %r11d
	movl	%eax, %esi
	movl	%r14d, %eax
	movl	108(%rsp), %ecx
	movl	112(%rsp), %r9d
	addl	%esi, %edx
	subl	$1, %r14d
	movl	116(%rsp), %r10d
	movl	120(%rsp), %r8d
	je	.L68
	cmpl	72(%rsp), %eax
	movl	80(%rsp), %edi
	jne	.L32
.L68:
	leal	1(%rdx), %eax
	addl	%eax, %r12d
	leal	-1(%rbp), %eax
	cmpl	$1, %ebp
	je	.L67
.L85:
	cmpl	20(%rsp), %ebp
	je	.L67
	movl	%ebx, 20(%rsp)
	movl	%eax, %ebp
	subl	$1, %ebx
	cmpl	%ebp, %ebx
	jne	.L52
.L84:
	movl	$1, %eax
	addl	%eax, %r12d
	leal	-1(%rbp), %eax
	cmpl	$1, %ebp
	jne	.L85
	.p2align 4,,10
	.p2align 3
.L67:
	addl	$1, %r12d
	leal	-1(%r13), %eax
	addl	%r12d, %r8d
	cmpl	$1, %r13d
	jne	.L86
.L66:
	leal	1(%r8), %eax
	movl	%ecx, %edx
	addl	%eax, %r9d
	leal	-1(%r15), %eax
	cmpl	$1, %r15d
	jne	.L87
.L65:
	movl	12(%rsp), %r10d
	movl	16(%rsp), %r8d
	leal	1(%r9), %eax
	addl	%eax, %r10d
	leal	-1(%r8), %eax
	cmpl	$1, %r8d
	je	.L64
.L89:
	cmpl	8(%rsp), %r8d
	je	.L64
	movl	%r11d, 8(%rsp)
	movl	%eax, %r8d
	subl	$1, %r11d
	cmpl	%r8d, %r11d
	jne	.L88
.L63:
	movl	$1, %eax
	addl	%eax, %r10d
	leal	-1(%r8), %eax
	cmpl	$1, %r8d
	jne	.L89
.L64:
	movl	36(%rsp), %esi
	leal	1(%r10), %eax
	addl	%eax, 64(%rsp)
	leal	-1(%rsi), %eax
	cmpl	$1, %esi
	je	.L62
.L90:
	movl	96(%rsp), %ebx
	cmpl	%ebx, %esi
	je	.L62
	movl	%eax, 36(%rsp)
	jmp	.L14
.L82:
	movl	$1, %eax
	addl	%eax, %r9d
	leal	-1(%r15), %eax
	cmpl	$1, %r15d
	je	.L65
.L87:
	cmpl	68(%rsp), %r15d
	je	.L65
	movl	%eax, %r15d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L83:
	movl	$1, %r12d
	leal	-1(%r13), %eax
	addl	%r12d, %r8d
	cmpl	$1, %r13d
	je	.L66
.L86:
	cmpl	24(%rsp), %r13d
	je	.L66
	movl	%eax, %r13d
	jmp	.L26
.L61:
	movl	36(%rsp), %esi
	movl	$1, %eax
	addl	%eax, 64(%rsp)
	leal	-1(%rsi), %eax
	cmpl	$1, %esi
	jne	.L90
.L62:
	movl	64(%rsp), %eax
	movl	32(%rsp), %ebx
	addl	$1, %eax
	addl	%eax, 56(%rsp)
	leal	-1(%rbx), %eax
	cmpl	$1, %ebx
	je	.L60
.L91:
	movl	84(%rsp), %edx
	cmpl	%edx, %ebx
	je	.L60
	movl	%eax, 32(%rsp)
	jmp	.L10
.L59:
	movl	32(%rsp), %ebx
	movl	$1, %eax
	addl	%eax, 56(%rsp)
	leal	-1(%rbx), %eax
	cmpl	$1, %ebx
	jne	.L91
.L60:
	movl	56(%rsp), %eax
	movl	28(%rsp), %esi
	addl	$1, %eax
	addl	%eax, 48(%rsp)
	leal	-1(%rsi), %eax
	cmpl	$1, %esi
	je	.L58
.L92:
	movl	88(%rsp), %ecx
	cmpl	%ecx, %esi
	je	.L58
	movl	%eax, 28(%rsp)
	movl	%eax, %edi
	jmp	.L6
.L57:
	movl	28(%rsp), %esi
	movl	$1, %eax
	addl	%eax, 48(%rsp)
	leal	-1(%rsi), %eax
	cmpl	$1, %esi
	jne	.L92
.L58:
	movl	100(%rsp), %r11d
	movl	48(%rsp), %eax
	addl	$1, %eax
	addl	%eax, 40(%rsp)
	leal	-1(%r11), %eax
	cmpl	$1, %r11d
	jne	.L93
.L56:
	movl	40(%rsp), %eax
	addl	$1, %eax
.L3:
	addq	$136, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L55:
	.cfi_restore_state
	movl	$1, %eax
	addl	%eax, 40(%rsp)
	leal	-1(%r11), %eax
	cmpl	$1, %r11d
	je	.L56
.L93:
	cmpl	92(%rsp), %r11d
	je	.L56
	movl	%eax, %r11d
	jmp	.L4
.L54:
	movl	$1, %eax
	jmp	.L3
	.cfi_endproc
.LFE51:
	.size	combi, .-combi
	.p2align 4
	.globl	gcd
	.type	gcd, @function
gcd:
.LFB52:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	movl	%esi, %r8d
	testl	%esi, %esi
	jne	.L95
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L103:
	movl	%edx, %r8d
.L95:
	cltd
	idivl	%r8d
	movl	%r8d, %eax
	testl	%edx, %edx
	jne	.L103
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L102:
	movl	%edi, %r8d
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE52:
	.size	gcd, .-gcd
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r14
	pushq	%r13
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	leaq	.LC0(%rip), %r13
	leaq	-48(%rbp), %rsi
	pushq	%r12
	movq	%r13, %rdi
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	movq	%fs:40, %rax
	movq	%rax, -40(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	-48(%rbp), %rsi
	movq	%rsp, %rcx
	leaq	15(,%rsi,8), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	subq	%rax, %rcx
	andq	$-16, %rdx
	cmpq	%rcx, %rsp
	je	.L106
.L116:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L116
.L106:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L117
.L107:
	movq	%rsp, %r14
	testq	%rsi, %rsi
	jle	.L108
	movq	%r14, %r12
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L109:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	-48(%rbp), %rsi
	addq	$8, %r12
	cmpq	%rbx, %rsi
	jg	.L109
.L108:
	movl	$8, %edx
	movq	%r14, %rdi
	leaq	compare_int(%rip), %rcx
	call	qsort@PLT
	movq	-48(%rbp), %rdx
	movq	%r13, %rsi
	movl	$1, %edi
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	sarq	%rax
	movq	(%r14,%rax,8), %rdx
	subq	-8(%r14,%rax,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-40(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L118
	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
.L117:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rdx)
	jmp	.L107
.L118:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.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>
#include<math.h>
#define loop(i, l, r) for(i=l; i<r; i++)/*Instead of function, (for).*/
#define rep(i,r) for(i=0; i<r; i++)
#define Max(a, b) ((a) > (b) ? (a) : (b))
#define Min(a, b) ((a) < (b) ? (a) : (b))
typedef long long int lli;
/*Return Combination ,(nCr)*/
int combi(int n, int r)
{
	if(r==0 || r==n) return 1;
	else return combi(n-1,r) + combi(n-1,r-1);
}
/*Return gcd(a, b)*/
int gcd(int a, int b){
	if(b == 0) return a;
	else return gcd(b, a % b);
}
//�N�C�b�N�\�[�gqsort�֐�
int compare_int(const void *a, const void *b)
{
    return *(lli*)a - *(lli*)b;
}
/*qsort(data, 10, sizeof(int), compare_int);*/

int main(void)
{
	lli i, n, ans;
	scanf("%lld", &n);
	lli d[n];
	rep(i,n) scanf("%lld", &d[i]);
	qsort(d, n, sizeof(lli), compare_int);
	ans = d[n/2] - d[n/2-1];
	printf("%lld", ans);
	return 0;
}
8
9 1 14 5 3 4 4 14
 6
9 0 4 4 6 7
 14
99592 10342 29105 78532 83018 11639 92015 77204 30914 21912 34519 80835 100000 0
 8
0 1 14 5 3 4 4 14
 14
99592 10342 29105 78532 83018 11639 92015 77204 30914 21912 51211 80835 100000 0
 14
99592 10342 29105 78532 83018 11639 92015 127350 30914 21912 51211 93284 100000 0
 8
0 1 26 5 0 4 4 0
 14
99592 10342 29105 78532 83018 11639 57149 127350 30914 39830 51211 93284 100000 0
 14
99592 15139 4240 78532 83018 5810 57149 127350 30914 39830 51211 47114 101000 -1
 14
99592 15139 530 106285 83018 8967 57149 127350 30914 67320 51211 82530 101010 -1

1 2 42685 0 25993 27321 3 5938 4097 10171
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>
#include<math.h>
#define loop(i, l, r) for(i=l; i<r; i++)/*Instead of function, (for).*/
#define rep(i,r) for(i=0; i<r; i++)
#define Max(a, b) ((a) > (b) ? (a) : (b))
#define Min(a, b) ((a) < (b) ? (a) : (b))
typedef long long int lli;
/*Return Combination ,(nCr)*/
int combi(int n, int r)
{
	if(r==0 || r==n) return 1;
	else return combi(n-1,r) + combi(n-1,r-1);
}
/*Return gcd(a, b)*/
int gcd(int a, int b){
	if(b == 0) return a;
	else return gcd(b, a % b);
}
//�N�C�b�N�\�[�gqsort�֐�
int compare_int(const void *a, const void *b)
{
    return *(lli*)a - *(lli*)b;
}
/*qsort(data, 10, sizeof(int), compare_int);*/

int main(void)
{
	lli i, n, ans;
	scanf("%lld", &n);
	lli d[n];
	rep(i,n) scanf("%lld", &d[i]);
	qsort(d, n, sizeof(lli), compare_int);
	ans = d[n/2] - d[n/2-1];
	printf("%lld", ans);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	combi
	.type	combi, @function
combi:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	cmpl	$0, -24(%rbp)
	je	.L2
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jne	.L3
.L2:
	movl	$1, %eax
	jmp	.L4
.L3:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	combi
	movl	%eax, %ebx
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	combi
	addl	%ebx, %eax
.L4:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	combi, .-combi
	.globl	gcd
	.type	gcd, @function
gcd:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	cmpl	$0, -8(%rbp)
	jne	.L6
	movl	-4(%rbp), %eax
	jmp	.L7
.L6:
	movl	-4(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	-8(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	gcd
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	gcd, .-gcd
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB8:
	.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	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %edx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compare_int, .-compare_int
	.section	.rodata
.LC0:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-96(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -80(%rbp)
	movq	%rax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movq	%rax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L11:
	cmpq	%rdx, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L12:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L13
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L13:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -72(%rbp)
	movq	$0, -88(%rbp)
	jmp	.L14
.L15:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -88(%rbp)
.L14:
	movq	-96(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jl	.L15
	movq	-96(%rbp), %rax
	movq	%rax, %rsi
	movq	-72(%rbp), %rax
	leaq	compare_int(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-96(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-72(%rbp), %rax
	movq	(%rax,%rdx,8), %rdx
	movq	-96(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	leaq	-1(%rax), %rcx
	movq	-72(%rbp), %rax
	movq	(%rax,%rcx,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	combi
	.type	combi, @function
combi:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	cmpl	$0, -24(%rbp)
	je	.L2
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jne	.L3
.L2:
	movl	$1, %eax
	jmp	.L4
.L3:
	movl	-20(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-24(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	combi
	movl	%eax, %ebx
	movl	-24(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-20(%rbp), %eax
	subl	$1, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	combi
	addl	%ebx, %eax
.L4:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	combi, .-combi
	.globl	gcd
	.type	gcd, @function
gcd:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	cmpl	$0, -8(%rbp)
	jne	.L6
	movl	-4(%rbp), %eax
	jmp	.L7
.L6:
	movl	-4(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	-8(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	gcd
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	gcd, .-gcd
	.globl	compare_int
	.type	compare_int, @function
compare_int:
.LFB8:
	.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	-8(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %edx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compare_int, .-compare_int
	.section	.rodata
.LC0:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-96(%rbp), %rax
	leaq	-1(%rax), %rdx
	movq	%rdx, -80(%rbp)
	movq	%rax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movq	%rax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L11:
	cmpq	%rdx, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L12:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L13
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L13:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -72(%rbp)
	movq	$0, -88(%rbp)
	jmp	.L14
.L15:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -88(%rbp)
.L14:
	movq	-96(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jl	.L15
	movq	-96(%rbp), %rax
	movq	%rax, %rsi
	movq	-72(%rbp), %rax
	leaq	compare_int(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-96(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rdx
	movq	-72(%rbp), %rax
	movq	(%rax,%rdx,8), %rdx
	movq	-96(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	leaq	-1(%rax), %rcx
	movq	-72(%rbp), %rax
	movq	(%rax,%rcx,8), %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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:
