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>
#define int long long
#define inf (int)(1e18)

typedef struct {
	int L;
	int R;
}pair;

signed compair(const void *a, const void *b){
	int sub = (((pair *)a)->L + ((pair *)a)->R) - (((pair *)b)->L + ((pair *)b)->R);
	if(sub > 0){
		return -1;
	}
	else if(sub == 0){
		return 0;
	}
	else{
		return 1;
	}
}

int min(int a, int b){
	return a <= b ? a : b;
}

signed main(){
	int N, i, j, k, l;
	scanf("%lld", &N);
	pair *ps = (pair *)malloc(sizeof(pair) * N);
	for(i = 0; i < N; i++){
		scanf("%lld%lld", &ps[i].L, &ps[i].R);
	}
	qsort(ps, N, sizeof(pair), compair);
	int ***dp = (int ***)malloc(sizeof(int **) * (N / 2 + 2));
	for(i = 0; i <= N / 2 + 1; i++){
		dp[i] = (int **)malloc(sizeof(int *) * (N / 2 + 2));
		for(j = 0; j <= N / 2 + 1; j++){
			dp[i][j] = (int *)malloc(sizeof(int) * (N % 2 + 1));
			for(k = 0; k <= N % 2; k++){
				dp[i][j][k] = inf;
			}
		}
	}
	dp[0][0][0] = 0;
	for(i = 0; i <= N / 2; i++){
		for(j = 0; j <= N / 2; j++){
			for(k = 0; k <= N % 2; k++){
//				printf("(i, j, k) = (%lld, %lld, %lld)\n", i, j, k);
//				printf("dp = %lld\n", dp[i][j][k]);
				l = i + j + k;
				if(l >= N){
					continue;
				}
				dp[i + 1][j][k] = min(dp[i + 1][j][k], dp[i][j][k] + i * (ps[l].L + ps[l].R) + ps[l].R);
//				printf("test\n");
				dp[i][j + 1][k] = min(dp[i][j + 1][k], dp[i][j][k] + j * (ps[l].L + ps[l].R) + ps[l].L);
//				printf("dp2 = %lld\n", dp[i][j + 1][k]);
				if(k == 0 && N % 2 == 1 && l < N){
					dp[i][j][1] = min(dp[i][j][1], dp[i][j][0] + (N / 2) * (ps[l].L + ps[l].R));
//					printf("dp3 = %lld\n", dp[i][j][1]);
				}
			}
		}
	}
/*	for(i = 0; i < N; i++){
		for(j = 0; j < N; j++){
			for(k = 0; k <= N % 2; k++){
				printf("dp[%lld][%lld][%lld] = %lld\n", i, j, k, dp[i][j][k]);
			}
		}
	}
*/	printf("%lld\n", dp[N / 2][N / 2][N % 2]);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	compair
	.type	compair, @function
compair:
.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), %rdx
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	movq	(%rax), %rcx
	movq	-32(%rbp), %rax
	movq	8(%rax), %rax
	addq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -8(%rbp)
	cmpq	$0, -8(%rbp)
	jle	.L2
	movl	$-1, %eax
	jmp	.L3
.L2:
	cmpq	$0, -8(%rbp)
	jne	.L4
	movl	$0, %eax
	jmp	.L3
.L4:
	movl	$1, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compair, .-compair
	.globl	min
	.type	min, @function
min:
.LFB7:
	.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), %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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	$72, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-80(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -48(%rbp)
	movq	$0, -72(%rbp)
	jmp	.L8
.L9:
	movq	-72(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	addq	$8, %rax
	movq	-72(%rbp), %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	movq	-48(%rbp), %rdx
	addq	%rcx, %rdx
	movq	%rdx, %rcx
	movq	%rax, %rdx
	movq	%rcx, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -72(%rbp)
.L8:
	movq	-80(%rbp), %rax
	cmpq	%rax, -72(%rbp)
	jl	.L9
	movq	-80(%rbp), %rax
	movq	%rax, %rsi
	movq	-48(%rbp), %rax
	leaq	compair(%rip), %rdx
	movq	%rdx, %rcx
	movl	$16, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	$2, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -40(%rbp)
	movq	$0, -72(%rbp)
	jmp	.L10
.L15:
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	$2, %rax
	salq	$3, %rax
	movq	-72(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-40(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movq	$0, -64(%rbp)
	jmp	.L11
.L14:
	movq	-80(%rbp), %rax
	cqto
	shrq	$63, %rdx
	addq	%rdx, %rax
	andl	$1, %eax
	subq	%rdx, %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	-72(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-40(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rdx), %rcx
	movq	-64(%rbp), %rdx
	salq	$3, %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movq	$0, -56(%rbp)
	jmp	.L12
.L13:
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-64(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-56(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movabsq	$1000000000000000000, %rbx
	movq	%rbx, (%rax)
	addq	$1, -56(%rbp)
.L12:
	movq	-80(%rbp), %rax
	cqto
	shrq	$63, %rdx
	addq	%rdx, %rax
	andl	$1, %eax
	subq	%rdx, %rax
	cmpq	%rax, -56(%rbp)
	jle	.L13
	addq	$1, -64(%rbp)
.L11:
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	$1, %rax
	cmpq	%rax, -64(%rbp)
	jle	.L14
	addq	$1, -72(%rbp)
.L10:
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	$1, %rax
	cmpq	%rax, -72(%rbp)
	jle	.L15
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	$0, (%rax)
	movq	$0, -72(%rbp)
	jmp	.L16
.L23:
	movq	$0, -64(%rbp)
	jmp	.L17
.L22:
	movq	$0, -56(%rbp)
	jmp	.L18
.L21:
	movq	-72(%rbp), %rdx
	movq	-64(%rbp), %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-80(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jge	.L26
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-64(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-56(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rsi
	movq	-48(%rbp), %rax
	addq	%rsi, %rax
	movq	8(%rax), %rax
	addq	%rcx, %rax
	imulq	-72(%rbp), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	8(%rax), %rax
	addq	%rax, %rdx
	movq	-72(%rbp), %rax
	addq	$1, %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-64(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-56(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx
	addq	$1, %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-40(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-64(%rbp), %rcx
	salq	$3, %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-56(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-64(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-56(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rsi
	movq	-48(%rbp), %rax
	addq	%rsi, %rax
	movq	8(%rax), %rax
	addq	%rcx, %rax
	imulq	-64(%rbp), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	addq	%rax, %rdx
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-64(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-56(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-40(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-64(%rbp), %rcx
	addq	$1, %rcx
	salq	$3, %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-56(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	cmpq	$0, -56(%rbp)
	jne	.L20
	movq	-80(%rbp), %rax
	cqto
	shrq	$63, %rdx
	addq	%rdx, %rax
	andl	$1, %eax
	subq	%rdx, %rax
	cmpq	$1, %rax
	jne	.L20
	movq	-80(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jge	.L20
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-64(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	movq	%rax, %rsi
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rdi
	movq	-48(%rbp), %rax
	addq	%rdi, %rax
	movq	8(%rax), %rax
	addq	%rcx, %rax
	imulq	%rsi, %rax
	addq	%rax, %rdx
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-64(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	addq	$8, %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-40(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-64(%rbp), %rcx
	salq	$3, %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rcx
	leaq	8(%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	jmp	.L20
.L26:
	nop
.L20:
	addq	$1, -56(%rbp)
.L18:
	movq	-80(%rbp), %rax
	cqto
	shrq	$63, %rdx
	addq	%rdx, %rax
	andl	$1, %eax
	subq	%rdx, %rax
	cmpq	%rax, -56(%rbp)
	jle	.L21
	addq	$1, -64(%rbp)
.L17:
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	cmpq	%rax, -64(%rbp)
	jle	.L22
	addq	$1, -72(%rbp)
.L16:
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	cmpq	%rax, -72(%rbp)
	jle	.L23
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	cqto
	shrq	$63, %rdx
	addq	%rdx, %rax
	andl	$1, %eax
	subq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	compair
	.type	compair, @function
compair:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rdx
	addq	8(%rdi), %rdx
	xorl	%eax, %eax
	subq	8(%rsi), %rdx
	subq	(%rsi), %rdx
	testq	%rdx, %rdx
	movl	$-1, %edx
	setne	%al
	cmovg	%edx, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compair, .-compair
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB40:
	.cfi_startproc
	endbr64
	cmpq	%rsi, %rdi
	movq	%rsi, %rax
	cmovle	%rdi, %rax
	ret
	.cfi_endproc
.LFE40:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	64(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	64(%rsp), %r12
	movq	%r12, %rdi
	salq	$4, %rdi
	call	malloc@PLT
	movq	%rax, 16(%rsp)
	testq	%r12, %r12
	jle	.L7
	movq	%rax, %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L8:
	leaq	8(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	64(%rsp), %r12
	addq	$1, %rbp
	addq	$16, %rbx
	cmpq	%rbp, %r12
	jg	.L8
.L7:
	movq	16(%rsp), %rdi
	leaq	compair(%rip), %rcx
	movl	$16, %edx
	movq	%r12, %rsi
	call	qsort@PLT
	movq	64(%rsp), %r15
	movq	%r15, %rax
	shrq	$63, %rax
	addq	%r15, %rax
	sarq	%rax
	leaq	16(,%rax,8), %rbp
	movq	%rax, (%rsp)
	movq	%rbp, %rdi
	movq	%rbp, 24(%rsp)
	call	malloc@PLT
	movq	%rax, 32(%rsp)
	movq	%rax, %r14
	cmpq	$-3, %r15
	jl	.L9
	movq	%r15, %rax
	movq	%r15, 56(%rsp)
	addq	%r14, %rbp
	shrq	$63, %rax
	movq	%rbp, 8(%rsp)
	movabsq	$1000000000000000000, %rbp
	leaq	(%r15,%rax), %rbx
	andl	$1, %ebx
	subq	%rax, %rbx
	movq	%rbx, 48(%rsp)
	leaq	8(,%rbx,8), %r13
	movq	%rbx, 40(%rsp)
	.p2align 4,,10
	.p2align 3
.L14:
	movq	24(%rsp), %r12
	movq	%r12, %rdi
	call	malloc@PLT
	movq	%rax, (%r14)
	movq	%rax, %r15
	addq	%rax, %r12
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r13, %rdi
	call	malloc@PLT
	movq	%rax, (%r15)
	cmpq	$-1, %rbx
	je	.L13
	movq	%rbp, (%rax)
	cmpq	$1, %rbx
	jne	.L13
	movq	%rbp, 8(%rax)
.L13:
	addq	$8, %r15
	cmpq	%r12, %r15
	jne	.L11
	addq	$8, %r14
	cmpq	8(%rsp), %r14
	jne	.L14
	movq	56(%rsp), %r15
.L15:
	movq	32(%rsp), %r10
	movq	(%r10), %rax
	movq	(%rax), %rax
	movq	$0, (%rax)
	cmpq	$-1, %r15
	jl	.L16
	movq	48(%rsp), %r13
	xorl	%r9d, %r9d
	cmpq	$-1, %r13
	je	.L16
	.p2align 4,,10
	.p2align 3
.L18:
	leaq	1(%r9), %rbx
	movq	16(%rsp), %rdx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	movq	%rbx, 8(%rsp)
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L42:
	movq	(%r10), %rbp
	movq	(%rdx), %rbx
	movq	8(%rdx), %r14
	movq	8(%r10), %rsi
	movq	0(%rbp,%rdi), %r11
	movq	0(%rbp,%rcx), %rbp
	leaq	(%r14,%rbx), %r8
	movq	(%rsi,%rdi), %r12
	movq	%r9, %rsi
	imulq	%r8, %rsi
	addq	(%r11), %rsi
	addq	%r14, %rsi
	movq	(%r12), %r14
	cmpq	%r14, %rsi
	cmovg	%r14, %rsi
	movq	%rsi, (%r12)
	movq	%rax, %rsi
	imulq	%r8, %rsi
	addq	(%r11), %rsi
	addq	%rbx, %rsi
	movq	0(%rbp), %rbx
	cmpq	%rbx, %rsi
	cmovg	%rbx, %rsi
	movq	%rsi, 0(%rbp)
	testq	%r13, %r13
	jne	.L41
.L20:
	addq	$1, %rax
	addq	$16, %rdx
	cmpq	%rax, (%rsp)
	jl	.L22
.L25:
	leaq	(%r9,%rax), %rsi
	movq	%rcx, %rdi
	addq	$8, %rcx
	cmpq	%rsi, %r15
	jg	.L42
	cmpq	$1, %r13
	jne	.L20
.L24:
	movq	8(%rsp), %rbx
	leaq	(%rbx,%rax), %rsi
	cmpq	%rsi, %r15
	jle	.L20
	movq	16(%rdx), %r8
	movq	24(%rdx), %r12
	movq	(%r10), %rbx
	movq	8(%r10), %rbp
	leaq	(%r8,%r12), %rsi
	movq	(%rbx,%rdi), %r11
	movq	0(%rbp,%rdi), %rbp
	movq	%rsi, %rdi
	imulq	%r9, %rdi
	addq	8(%r11), %rdi
	addq	%r12, %rdi
	movq	8(%rbp), %r12
	cmpq	%r12, %rdi
	cmovg	%r12, %rdi
	imulq	%rax, %rsi
	movq	%rdi, 8(%rbp)
	movq	(%rbx,%rcx), %rdi
	addq	8(%r11), %rsi
	addq	%r8, %rsi
	movq	8(%rdi), %r8
	cmpq	%r8, %rsi
	cmovg	%r8, %rsi
	addq	$1, %rax
	addq	$16, %rdx
	movq	%rsi, 8(%rdi)
	cmpq	%rax, (%rsp)
	jge	.L25
.L22:
	addq	$16, 16(%rsp)
	movq	8(%rsp), %r9
	addq	$8, %r10
	cmpq	%r9, (%rsp)
	jge	.L18
.L16:
	movq	24(%rsp), %rcx
	movq	32(%rsp), %rax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	movq	-16(%rax,%rcx), %rax
	movq	-16(%rax,%rcx), %rax
	movq	40(%rsp), %rcx
	movq	(%rax,%rcx,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$88, %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
.L41:
	.cfi_restore_state
	movq	8(%r11), %rsi
	imulq	(%rsp), %r8
	addq	(%r11), %r8
	cmpq	%rsi, %r8
	cmovg	%rsi, %r8
	movq	%r8, 8(%r11)
	jmp	.L24
.L9:
	movq	%r15, %rax
	movl	$2, %ecx
	cqto
	idivq	%rcx
	movq	%rdx, 48(%rsp)
	movq	%rdx, 40(%rsp)
	jmp	.L15
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE41:
	.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	compair
	.type	compair, @function
compair:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rdi), %rdx
	addq	8(%rdi), %rdx
	xorl	%eax, %eax
	subq	8(%rsi), %rdx
	subq	(%rsi), %rdx
	testq	%rdx, %rdx
	movl	$-1, %edx
	setne	%al
	cmovg	%edx, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	compair, .-compair
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB40:
	.cfi_startproc
	endbr64
	cmpq	%rsi, %rdi
	movq	%rsi, %rax
	cmovle	%rdi, %rax
	ret
	.cfi_endproc
.LFE40:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	64(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	64(%rsp), %r12
	movq	%r12, %rdi
	salq	$4, %rdi
	call	malloc@PLT
	movq	%rax, 16(%rsp)
	testq	%r12, %r12
	jle	.L7
	movq	%rax, %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L8:
	leaq	8(%rbx), %rdx
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	64(%rsp), %r12
	addq	$1, %rbp
	addq	$16, %rbx
	cmpq	%rbp, %r12
	jg	.L8
.L7:
	movq	16(%rsp), %rdi
	leaq	compair(%rip), %rcx
	movl	$16, %edx
	movq	%r12, %rsi
	call	qsort@PLT
	movq	64(%rsp), %r15
	movq	%r15, %rax
	shrq	$63, %rax
	addq	%r15, %rax
	sarq	%rax
	leaq	16(,%rax,8), %rbp
	movq	%rax, (%rsp)
	movq	%rbp, %rdi
	movq	%rbp, 24(%rsp)
	call	malloc@PLT
	movq	%rax, 32(%rsp)
	movq	%rax, %r14
	cmpq	$-3, %r15
	jl	.L9
	movq	%r15, %rax
	movq	%r15, 56(%rsp)
	addq	%r14, %rbp
	shrq	$63, %rax
	movq	%rbp, 8(%rsp)
	movabsq	$1000000000000000000, %rbp
	leaq	(%r15,%rax), %rbx
	andl	$1, %ebx
	subq	%rax, %rbx
	movq	%rbx, 48(%rsp)
	leaq	8(,%rbx,8), %r13
	movq	%rbx, 40(%rsp)
	.p2align 4,,10
	.p2align 3
.L14:
	movq	24(%rsp), %r12
	movq	%r12, %rdi
	call	malloc@PLT
	movq	%rax, (%r14)
	movq	%rax, %r15
	addq	%rax, %r12
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r13, %rdi
	call	malloc@PLT
	movq	%rax, (%r15)
	cmpq	$-1, %rbx
	je	.L13
	movq	%rbp, (%rax)
	cmpq	$1, %rbx
	jne	.L13
	movq	%rbp, 8(%rax)
.L13:
	addq	$8, %r15
	cmpq	%r12, %r15
	jne	.L11
	addq	$8, %r14
	cmpq	8(%rsp), %r14
	jne	.L14
	movq	56(%rsp), %r15
.L15:
	movq	32(%rsp), %r10
	movq	(%r10), %rax
	movq	(%rax), %rax
	movq	$0, (%rax)
	cmpq	$-1, %r15
	jl	.L16
	movq	48(%rsp), %r13
	xorl	%r9d, %r9d
	cmpq	$-1, %r13
	je	.L16
	.p2align 4,,10
	.p2align 3
.L18:
	leaq	1(%r9), %rbx
	movq	16(%rsp), %rdx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	movq	%rbx, 8(%rsp)
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L42:
	movq	(%r10), %rbp
	movq	(%rdx), %rbx
	movq	8(%rdx), %r14
	movq	8(%r10), %rsi
	movq	0(%rbp,%rdi), %r11
	movq	0(%rbp,%rcx), %rbp
	leaq	(%r14,%rbx), %r8
	movq	(%rsi,%rdi), %r12
	movq	%r9, %rsi
	imulq	%r8, %rsi
	addq	(%r11), %rsi
	addq	%r14, %rsi
	movq	(%r12), %r14
	cmpq	%r14, %rsi
	cmovg	%r14, %rsi
	movq	%rsi, (%r12)
	movq	%rax, %rsi
	imulq	%r8, %rsi
	addq	(%r11), %rsi
	addq	%rbx, %rsi
	movq	0(%rbp), %rbx
	cmpq	%rbx, %rsi
	cmovg	%rbx, %rsi
	movq	%rsi, 0(%rbp)
	testq	%r13, %r13
	jne	.L41
.L20:
	addq	$1, %rax
	addq	$16, %rdx
	cmpq	%rax, (%rsp)
	jl	.L22
.L25:
	leaq	(%r9,%rax), %rsi
	movq	%rcx, %rdi
	addq	$8, %rcx
	cmpq	%rsi, %r15
	jg	.L42
	cmpq	$1, %r13
	jne	.L20
.L24:
	movq	8(%rsp), %rbx
	leaq	(%rbx,%rax), %rsi
	cmpq	%rsi, %r15
	jle	.L20
	movq	16(%rdx), %r8
	movq	24(%rdx), %r12
	movq	(%r10), %rbx
	movq	8(%r10), %rbp
	leaq	(%r8,%r12), %rsi
	movq	(%rbx,%rdi), %r11
	movq	0(%rbp,%rdi), %rbp
	movq	%rsi, %rdi
	imulq	%r9, %rdi
	addq	8(%r11), %rdi
	addq	%r12, %rdi
	movq	8(%rbp), %r12
	cmpq	%r12, %rdi
	cmovg	%r12, %rdi
	imulq	%rax, %rsi
	movq	%rdi, 8(%rbp)
	movq	(%rbx,%rcx), %rdi
	addq	8(%r11), %rsi
	addq	%r8, %rsi
	movq	8(%rdi), %r8
	cmpq	%r8, %rsi
	cmovg	%r8, %rsi
	addq	$1, %rax
	addq	$16, %rdx
	movq	%rsi, 8(%rdi)
	cmpq	%rax, (%rsp)
	jge	.L25
.L22:
	addq	$16, 16(%rsp)
	movq	8(%rsp), %r9
	addq	$8, %r10
	cmpq	%r9, (%rsp)
	jge	.L18
.L16:
	movq	24(%rsp), %rcx
	movq	32(%rsp), %rax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	movq	-16(%rax,%rcx), %rax
	movq	-16(%rax,%rcx), %rax
	movq	40(%rsp), %rcx
	movq	(%rax,%rcx,8), %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	addq	$88, %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
.L41:
	.cfi_restore_state
	movq	8(%r11), %rsi
	imulq	(%rsp), %r8
	addq	(%r11), %r8
	cmpq	%rsi, %r8
	cmovg	%rsi, %r8
	movq	%r8, 8(%r11)
	jmp	.L24
.L9:
	movq	%r15, %rax
	movl	$2, %ecx
	cqto
	idivq	%rcx
	movq	%rdx, 48(%rsp)
	movq	%rdx, 40(%rsp)
	jmp	.L15
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE41:
	.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>
#define int long long
#define inf (int)(1e18)

typedef struct {
	int L;
	int R;
}pair;

signed compair(const void *a, const void *b){
	int sub = (((pair *)a)->L + ((pair *)a)->R) - (((pair *)b)->L + ((pair *)b)->R);
	if(sub > 0){
		return -1;
	}
	else if(sub == 0){
		return 0;
	}
	else{
		return 1;
	}
}

int min(int a, int b){
	return a <= b ? a : b;
}

signed main(){
	int N, i, j, k, l;
	scanf("%lld", &N);
	pair *ps = (pair *)malloc(sizeof(pair) * N);
	for(i = 0; i < N; i++){
		scanf("%lld%lld", &ps[i].L, &ps[i].R);
	}
	qsort(ps, N, sizeof(pair), compair);
	int ***dp = (int ***)malloc(sizeof(int **) * (N / 2 + 2));
	for(i = 0; i <= N / 2 + 1; i++){
		dp[i] = (int **)malloc(sizeof(int *) * (N / 2 + 2));
		for(j = 0; j <= N / 2 + 1; j++){
			dp[i][j] = (int *)malloc(sizeof(int) * (N % 2 + 1));
			for(k = 0; k <= N % 2; k++){
				dp[i][j][k] = inf;
			}
		}
	}
	dp[0][0][0] = 0;
	for(i = 0; i <= N / 2; i++){
		for(j = 0; j <= N / 2; j++){
			for(k = 0; k <= N % 2; k++){
//				printf("(i, j, k) = (%lld, %lld, %lld)\n", i, j, k);
//				printf("dp = %lld\n", dp[i][j][k]);
				l = i + j + k;
				if(l >= N){
					continue;
				}
				dp[i + 1][j][k] = min(dp[i + 1][j][k], dp[i][j][k] + i * (ps[l].L + ps[l].R) + ps[l].R);
//				printf("test\n");
				dp[i][j + 1][k] = min(dp[i][j + 1][k], dp[i][j][k] + j * (ps[l].L + ps[l].R) + ps[l].L);
//				printf("dp2 = %lld\n", dp[i][j + 1][k]);
				if(k == 0 && N % 2 == 1 && l < N){
					dp[i][j][1] = min(dp[i][j][1], dp[i][j][0] + (N / 2) * (ps[l].L + ps[l].R));
//					printf("dp3 = %lld\n", dp[i][j][1]);
				}
			}
		}
	}
/*	for(i = 0; i < N; i++){
		for(j = 0; j < N; j++){
			for(k = 0; k <= N % 2; k++){
				printf("dp[%lld][%lld][%lld] = %lld\n", i, j, k, dp[i][j][k]);
			}
		}
	}
*/	printf("%lld\n", dp[N / 2][N / 2][N % 2]);
	return 0;
}
20
97 2
75 25
82 84
17 56
32 2
28 37
57 39
18 11
79 6
55 68
68 16
40 63
93 49
91 10
55 68
31 80
57 18
34 28
76 55
21 80
 4
1 7
2 5
4 1
7 5
 20
97 2
75 25
82 84
17 56
32 2
28 37
57 39
18 11
79 6
55 68
68 16
40 63
93 49
91 10
55 68
31 50
57 18
34 28
76 55
21 80
 4
1 7
3 5
4 1
7 5
 20
97 2
75 25
82 84
17 56
32 2
28 37
57 39
18 11
79 6
55 68
68 16
40 63
93 49
91 10
55 68
31 50
57 18
34 28
76 55
21 73
 20
97 2
75 25
82 84
17 56
32 2
28 37
57 39
18 11
79 6
55 68
68 16
40 63
93 49
91 10
55 68
31 50
56 18
34 28
76 55
21 73
 4
1 7
3 5
5 1
2 5
 20
97 2
75 25
82 84
17 56
32 2
28 37
57 39
18 11
79 6
55 68
68 16
40 63
93 49
91 10
55 68
31 50
56 18
34 28
76 11
21 73
 4
1 7
3 5
8 1
2 5
 20
97 2
75 25
82 84
17 56
32 2
28 53
57 39
18 11
79 6
55 68
68 16
40 63
93 49
91 10
55 68
31 50
56 18
34 28
76 11
21 73

7385
 21
 7240
 23
 7210
 7203
 22
 7076
 24
 7185

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>
#define int long long
#define inf (int)(1e18)

typedef struct {
	int L;
	int R;
}pair;

signed compair(const void *a, const void *b){
	int sub = (((pair *)a)->L + ((pair *)a)->R) - (((pair *)b)->L + ((pair *)b)->R);
	if(sub > 0){
		return -1;
	}
	else if(sub == 0){
		return 0;
	}
	else{
		return 1;
	}
}

int min(int a, int b){
	return a <= b ? a : b;
}

signed main(){
	int N, i, j, k, l;
	scanf("%lld", &N);
	pair *ps = (pair *)malloc(sizeof(pair) * N);
	for(i = 0; i < N; i++){
		scanf("%lld%lld", &ps[i].L, &ps[i].R);
	}
	qsort(ps, N, sizeof(pair), compair);
	int ***dp = (int ***)malloc(sizeof(int **) * (N / 2 + 2));
	for(i = 0; i <= N / 2 + 1; i++){
		dp[i] = (int **)malloc(sizeof(int *) * (N / 2 + 2));
		for(j = 0; j <= N / 2 + 1; j++){
			dp[i][j] = (int *)malloc(sizeof(int) * (N % 2 + 1));
			for(k = 0; k <= N % 2; k++){
				dp[i][j][k] = inf;
			}
		}
	}
	dp[0][0][0] = 0;
	for(i = 0; i <= N / 2; i++){
		for(j = 0; j <= N / 2; j++){
			for(k = 0; k <= N % 2; k++){
//				printf("(i, j, k) = (%lld, %lld, %lld)\n", i, j, k);
//				printf("dp = %lld\n", dp[i][j][k]);
				l = i + j + k;
				if(l >= N){
					continue;
				}
				dp[i + 1][j][k] = min(dp[i + 1][j][k], dp[i][j][k] + i * (ps[l].L + ps[l].R) + ps[l].R);
//				printf("test\n");
				dp[i][j + 1][k] = min(dp[i][j + 1][k], dp[i][j][k] + j * (ps[l].L + ps[l].R) + ps[l].L);
//				printf("dp2 = %lld\n", dp[i][j + 1][k]);
				if(k == 0 && N % 2 == 1 && l < N){
					dp[i][j][1] = min(dp[i][j][1], dp[i][j][0] + (N / 2) * (ps[l].L + ps[l].R));
//					printf("dp3 = %lld\n", dp[i][j][1]);
				}
			}
		}
	}
/*	for(i = 0; i < N; i++){
		for(j = 0; j < N; j++){
			for(k = 0; k <= N % 2; k++){
				printf("dp[%lld][%lld][%lld] = %lld\n", i, j, k, dp[i][j][k]);
			}
		}
	}
*/	printf("%lld\n", dp[N / 2][N / 2][N % 2]);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	compair
	.type	compair, @function
compair:
.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), %rdx
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	movq	(%rax), %rcx
	movq	-32(%rbp), %rax
	movq	8(%rax), %rax
	addq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -8(%rbp)
	cmpq	$0, -8(%rbp)
	jle	.L2
	movl	$-1, %eax
	jmp	.L3
.L2:
	cmpq	$0, -8(%rbp)
	jne	.L4
	movl	$0, %eax
	jmp	.L3
.L4:
	movl	$1, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compair, .-compair
	.globl	min
	.type	min, @function
min:
.LFB7:
	.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), %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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	$72, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-80(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -48(%rbp)
	movq	$0, -72(%rbp)
	jmp	.L8
.L9:
	movq	-72(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	addq	$8, %rax
	movq	-72(%rbp), %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	movq	-48(%rbp), %rdx
	addq	%rcx, %rdx
	movq	%rdx, %rcx
	movq	%rax, %rdx
	movq	%rcx, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -72(%rbp)
.L8:
	movq	-80(%rbp), %rax
	cmpq	%rax, -72(%rbp)
	jl	.L9
	movq	-80(%rbp), %rax
	movq	%rax, %rsi
	movq	-48(%rbp), %rax
	leaq	compair(%rip), %rdx
	movq	%rdx, %rcx
	movl	$16, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	$2, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -40(%rbp)
	movq	$0, -72(%rbp)
	jmp	.L10
.L15:
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	$2, %rax
	salq	$3, %rax
	movq	-72(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-40(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movq	$0, -64(%rbp)
	jmp	.L11
.L14:
	movq	-80(%rbp), %rax
	cqto
	shrq	$63, %rdx
	addq	%rdx, %rax
	andl	$1, %eax
	subq	%rdx, %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	-72(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-40(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rdx), %rcx
	movq	-64(%rbp), %rdx
	salq	$3, %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movq	$0, -56(%rbp)
	jmp	.L12
.L13:
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-64(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-56(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movabsq	$1000000000000000000, %rbx
	movq	%rbx, (%rax)
	addq	$1, -56(%rbp)
.L12:
	movq	-80(%rbp), %rax
	cqto
	shrq	$63, %rdx
	addq	%rdx, %rax
	andl	$1, %eax
	subq	%rdx, %rax
	cmpq	%rax, -56(%rbp)
	jle	.L13
	addq	$1, -64(%rbp)
.L11:
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	$1, %rax
	cmpq	%rax, -64(%rbp)
	jle	.L14
	addq	$1, -72(%rbp)
.L10:
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	$1, %rax
	cmpq	%rax, -72(%rbp)
	jle	.L15
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	$0, (%rax)
	movq	$0, -72(%rbp)
	jmp	.L16
.L23:
	movq	$0, -64(%rbp)
	jmp	.L17
.L22:
	movq	$0, -56(%rbp)
	jmp	.L18
.L21:
	movq	-72(%rbp), %rdx
	movq	-64(%rbp), %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-80(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jge	.L26
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-64(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-56(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rsi
	movq	-48(%rbp), %rax
	addq	%rsi, %rax
	movq	8(%rax), %rax
	addq	%rcx, %rax
	imulq	-72(%rbp), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	8(%rax), %rax
	addq	%rax, %rdx
	movq	-72(%rbp), %rax
	addq	$1, %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-64(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-56(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx
	addq	$1, %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-40(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-64(%rbp), %rcx
	salq	$3, %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-56(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-64(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-56(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rsi
	movq	-48(%rbp), %rax
	addq	%rsi, %rax
	movq	8(%rax), %rax
	addq	%rcx, %rax
	imulq	-64(%rbp), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	addq	%rax, %rdx
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-64(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-56(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-40(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-64(%rbp), %rcx
	addq	$1, %rcx
	salq	$3, %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-56(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	cmpq	$0, -56(%rbp)
	jne	.L20
	movq	-80(%rbp), %rax
	cqto
	shrq	$63, %rdx
	addq	%rdx, %rax
	andl	$1, %eax
	subq	%rdx, %rax
	cmpq	$1, %rax
	jne	.L20
	movq	-80(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jge	.L20
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-64(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	movq	%rax, %rsi
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rdi
	movq	-48(%rbp), %rax
	addq	%rdi, %rax
	movq	8(%rax), %rax
	addq	%rcx, %rax
	imulq	%rsi, %rax
	addq	%rax, %rdx
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-64(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	addq	$8, %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-40(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-64(%rbp), %rcx
	salq	$3, %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rcx
	leaq	8(%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	jmp	.L20
.L26:
	nop
.L20:
	addq	$1, -56(%rbp)
.L18:
	movq	-80(%rbp), %rax
	cqto
	shrq	$63, %rdx
	addq	%rdx, %rax
	andl	$1, %eax
	subq	%rdx, %rax
	cmpq	%rax, -56(%rbp)
	jle	.L21
	addq	$1, -64(%rbp)
.L17:
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	cmpq	%rax, -64(%rbp)
	jle	.L22
	addq	$1, -72(%rbp)
.L16:
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	cmpq	%rax, -72(%rbp)
	jle	.L23
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	cqto
	shrq	$63, %rdx
	addq	%rdx, %rax
	andl	$1, %eax
	subq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	compair
	.type	compair, @function
compair:
.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), %rdx
	movq	-24(%rbp), %rax
	movq	8(%rax), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	movq	(%rax), %rcx
	movq	-32(%rbp), %rax
	movq	8(%rax), %rax
	addq	%rax, %rcx
	movq	%rdx, %rax
	subq	%rcx, %rax
	movq	%rax, -8(%rbp)
	cmpq	$0, -8(%rbp)
	jle	.L2
	movl	$-1, %eax
	jmp	.L3
.L2:
	cmpq	$0, -8(%rbp)
	jne	.L4
	movl	$0, %eax
	jmp	.L3
.L4:
	movl	$1, %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compair, .-compair
	.globl	min
	.type	min, @function
min:
.LFB7:
	.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), %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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	$72, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-80(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -48(%rbp)
	movq	$0, -72(%rbp)
	jmp	.L8
.L9:
	movq	-72(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	addq	$8, %rax
	movq	-72(%rbp), %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	movq	-48(%rbp), %rdx
	addq	%rcx, %rdx
	movq	%rdx, %rcx
	movq	%rax, %rdx
	movq	%rcx, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -72(%rbp)
.L8:
	movq	-80(%rbp), %rax
	cmpq	%rax, -72(%rbp)
	jl	.L9
	movq	-80(%rbp), %rax
	movq	%rax, %rsi
	movq	-48(%rbp), %rax
	leaq	compair(%rip), %rdx
	movq	%rdx, %rcx
	movl	$16, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	$2, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -40(%rbp)
	movq	$0, -72(%rbp)
	jmp	.L10
.L15:
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	$2, %rax
	salq	$3, %rax
	movq	-72(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-40(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movq	$0, -64(%rbp)
	jmp	.L11
.L14:
	movq	-80(%rbp), %rax
	cqto
	shrq	$63, %rdx
	addq	%rdx, %rax
	andl	$1, %eax
	subq	%rdx, %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	-72(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-40(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rdx), %rcx
	movq	-64(%rbp), %rdx
	salq	$3, %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movq	$0, -56(%rbp)
	jmp	.L12
.L13:
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-64(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-56(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movabsq	$1000000000000000000, %rbx
	movq	%rbx, (%rax)
	addq	$1, -56(%rbp)
.L12:
	movq	-80(%rbp), %rax
	cqto
	shrq	$63, %rdx
	addq	%rdx, %rax
	andl	$1, %eax
	subq	%rdx, %rax
	cmpq	%rax, -56(%rbp)
	jle	.L13
	addq	$1, -64(%rbp)
.L11:
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	$1, %rax
	cmpq	%rax, -64(%rbp)
	jle	.L14
	addq	$1, -72(%rbp)
.L10:
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	addq	$1, %rax
	cmpq	%rax, -72(%rbp)
	jle	.L15
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	$0, (%rax)
	movq	$0, -72(%rbp)
	jmp	.L16
.L23:
	movq	$0, -64(%rbp)
	jmp	.L17
.L22:
	movq	$0, -56(%rbp)
	jmp	.L18
.L21:
	movq	-72(%rbp), %rdx
	movq	-64(%rbp), %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-80(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jge	.L26
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-64(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-56(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rsi
	movq	-48(%rbp), %rax
	addq	%rsi, %rax
	movq	8(%rax), %rax
	addq	%rcx, %rax
	imulq	-72(%rbp), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	8(%rax), %rax
	addq	%rax, %rdx
	movq	-72(%rbp), %rax
	addq	$1, %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-64(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-56(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx
	addq	$1, %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-40(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-64(%rbp), %rcx
	salq	$3, %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-56(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-64(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-56(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rsi
	movq	-48(%rbp), %rax
	addq	%rsi, %rax
	movq	8(%rax), %rax
	addq	%rcx, %rax
	imulq	-64(%rbp), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	addq	%rax, %rdx
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-64(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-56(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-40(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-64(%rbp), %rcx
	addq	$1, %rcx
	salq	$3, %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-56(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	cmpq	$0, -56(%rbp)
	jne	.L20
	movq	-80(%rbp), %rax
	cqto
	shrq	$63, %rdx
	addq	%rdx, %rax
	andl	$1, %eax
	subq	%rdx, %rax
	cmpq	$1, %rax
	jne	.L20
	movq	-80(%rbp), %rax
	cmpq	%rax, -32(%rbp)
	jge	.L20
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-64(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	movq	%rax, %rsi
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-32(%rbp), %rax
	salq	$4, %rax
	movq	%rax, %rdi
	movq	-48(%rbp), %rax
	addq	%rdi, %rax
	movq	8(%rax), %rax
	addq	%rcx, %rax
	imulq	%rsi, %rax
	addq	%rax, %rdx
	movq	-72(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-64(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	addq	$8, %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-40(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-64(%rbp), %rcx
	salq	$3, %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rcx
	leaq	8(%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	jmp	.L20
.L26:
	nop
.L20:
	addq	$1, -56(%rbp)
.L18:
	movq	-80(%rbp), %rax
	cqto
	shrq	$63, %rdx
	addq	%rdx, %rax
	andl	$1, %eax
	subq	%rdx, %rax
	cmpq	%rax, -56(%rbp)
	jle	.L21
	addq	$1, -64(%rbp)
.L17:
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	cmpq	%rax, -64(%rbp)
	jle	.L22
	addq	$1, -72(%rbp)
.L16:
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	cmpq	%rax, -72(%rbp)
	jle	.L23
	movq	-80(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	movq	%rax, %rcx
	shrq	$63, %rcx
	addq	%rcx, %rax
	sarq	%rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	cqto
	shrq	$63, %rdx
	addq	%rdx, %rax
	andl	$1, %eax
	subq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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:
