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)(1e14)

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

signed main(){
	int N, A, B, i, j;
	scanf("%lld%lld%lld", &N, &A, &B);
	int *p = (int *)malloc(sizeof(int) * (N + 1));
	int *p_inv = (int *)malloc(sizeof(int) * (N + 1));
	for(i = 1; i <= N; i++){
		scanf("%lld", &p[i]);
		p_inv[p[i]] = i;
	}
	int **dp1 = (int **)malloc(sizeof(int *) * (N + 1));
	int **dp2 = (int **)malloc(sizeof(int *) * (N + 1));
	int **m1 = (int **)malloc(sizeof(int *) * (N + 1));
	int **m2 = (int **)malloc(sizeof(int *) * (N + 1));
	for(i = 0; i <= N; i++){
		dp1[i] = (int *)malloc(sizeof(int) * (N + 1));
		dp2[i] = (int *)malloc(sizeof(int) * (N + 1));
		m1[i] = (int *)malloc(sizeof(int) * (N + 1));
		m2[i] = (int *)malloc(sizeof(int) * (N + 1));
	}
	for(j = 0; j <= N; j++){
		dp1[0][j] = 0;
		dp2[0][j] = 0;
		m1[0][j] = 0;
		m2[0][j] = 0;
	}
	for(i = 1; i <= N; i++){
		dp1[i][0] = inf;
		for(j = 1; j <= N; j++){
			dp1[i][j] = min(m1[i - 1][j - 1], m2[i - 1][j - 1]);
			if(j < p_inv[i]){
				dp1[i][j] += B;
			}
			if(j > p_inv[i]){
				dp1[i][j] += A;
			}
		}
		for(j = 0; j <= N; j++){
			dp2[i][j] = min(m1[i - 1][j], m2[i - 1][j]);
			if(j < p_inv[i]){
				dp2[i][j] += B;
			}
			else{
				dp2[i][j] += A;
			}
		}
		m1[i][0] = dp1[i][0];
		for(j = 1; j <= N; j++){
			m1[i][j] = min(m1[i][j - 1], dp1[i][j]);
		}
		m2[i][0] = dp2[i][0];
		for(j = 1; j <= N; j++){
			m2[i][j] = min(m2[i][j - 1], dp2[i][j]);
		}
	}
	printf("%lld\n", min(m1[N][N], m2[N][N]));
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%lld%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-96(%rbp), %rcx
	leaq	-104(%rbp), %rdx
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -72(%rbp)
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -64(%rbp)
	movq	$1, -88(%rbp)
	jmp	.L4
.L5:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rax, %rdx
	movq	-88(%rbp), %rax
	movq	%rax, (%rdx)
	addq	$1, -88(%rbp)
.L4:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jle	.L5
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -56(%rbp)
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -48(%rbp)
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -40(%rbp)
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -32(%rbp)
	movq	$0, -88(%rbp)
	jmp	.L6
.L7:
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	-88(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-56(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	-88(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-48(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	-88(%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	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	-88(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	addq	$1, -88(%rbp)
.L6:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jle	.L7
	movq	$0, -80(%rbp)
	jmp	.L8
.L9:
	movq	-56(%rbp), %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$0, (%rax)
	movq	-48(%rbp), %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$0, (%rax)
	movq	-40(%rbp), %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$0, (%rax)
	movq	-32(%rbp), %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$0, (%rax)
	addq	$1, -80(%rbp)
.L8:
	movq	-112(%rbp), %rax
	cmpq	%rax, -80(%rbp)
	jle	.L9
	movq	$1, -88(%rbp)
	jmp	.L10
.L23:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movabsq	$100000000000000, %rbx
	movq	%rbx, (%rax)
	movq	$1, -80(%rbp)
	jmp	.L11
.L14:
	movq	-88(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	subq	$8, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	subq	$8, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-56(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-80(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -80(%rbp)
	jge	.L12
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-96(%rbp), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rsi
	movq	-56(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rsi
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
.L12:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -80(%rbp)
	jle	.L13
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-104(%rbp), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rsi
	movq	-56(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rsi
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
.L13:
	addq	$1, -80(%rbp)
.L11:
	movq	-112(%rbp), %rax
	cmpq	%rax, -80(%rbp)
	jle	.L14
	movq	$0, -80(%rbp)
	jmp	.L15
.L18:
	movq	-88(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-48(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-80(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -80(%rbp)
	jge	.L16
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-96(%rbp), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rsi
	movq	-48(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rsi
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
	jmp	.L17
.L16:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-104(%rbp), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rsi
	movq	-48(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rsi
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
.L17:
	addq	$1, -80(%rbp)
.L15:
	movq	-112(%rbp), %rax
	cmpq	%rax, -80(%rbp)
	jle	.L18
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	(%rdx), %rdx
	movq	%rdx, (%rax)
	movq	$1, -80(%rbp)
	jmp	.L19
.L20:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	subq	$8, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-40(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-80(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	addq	$1, -80(%rbp)
.L19:
	movq	-112(%rbp), %rax
	cmpq	%rax, -80(%rbp)
	jle	.L20
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	(%rdx), %rdx
	movq	%rdx, (%rax)
	movq	$1, -80(%rbp)
	jmp	.L21
.L22:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	subq	$8, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-32(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-80(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	addq	$1, -80(%rbp)
.L21:
	movq	-112(%rbp), %rax
	cmpq	%rax, -80(%rbp)
	jle	.L22
	addq	$1, -88(%rbp)
.L10:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jle	.L23
	movq	-112(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-112(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-112(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-112(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	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
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB39:
	.cfi_startproc
	endbr64
	cmpq	%rsi, %rdi
	movq	%rsi, %rax
	cmovle	%rdi, %rax
	ret
	.cfi_endproc
.LFE39:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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), %rcx
	leaq	56(%rsp), %rdx
	leaq	48(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	48(%rsp), %r12
	leaq	1(%r12), %rbp
	leaq	0(,%rbp,8), %r13
	movq	%r13, %rdi
	call	malloc@PLT
	movq	%r13, %rdi
	movq	%rax, %rbx
	call	malloc@PLT
	movq	%rax, 32(%rsp)
	testq	%r12, %r12
	jle	.L4
	addq	$8, %rbx
	movl	$1, %ebp
	leaq	.LC1(%rip), %r13
	movq	%rax, %r14
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$8, %rbx
	call	__isoc99_scanf@PLT
	movq	-8(%rbx), %rax
	movq	48(%rsp), %r12
	movq	%rbp, (%r14,%rax,8)
	addq	$1, %rbp
	cmpq	%rbp, %r12
	jge	.L5
	leaq	1(%r12), %rbp
	leaq	0(,%rbp,8), %rbx
	movq	%rbx, %rdi
	call	malloc@PLT
	movq	%rbx, %rdi
	movq	%rax, 16(%rsp)
	call	malloc@PLT
	movq	%rbx, %rdi
	movq	%rax, 24(%rsp)
	call	malloc@PLT
	movq	%rbx, %rdi
	movq	%rax, 8(%rsp)
	call	malloc@PLT
	movq	%rax, %r13
	testq	%r12, %r12
	js	.L25
.L26:
	movq	%r12, 40(%rsp)
	movq	16(%rsp), %r15
	xorl	%r14d, %r14d
	movq	24(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbx, %rdi
	call	malloc@PLT
	movq	%rbx, %rdi
	movq	%rax, (%r15,%r14,8)
	call	malloc@PLT
	movq	%rbx, %rdi
	movq	%rax, (%r12,%r14,8)
	call	malloc@PLT
	movq	8(%rsp), %rdi
	movq	%rax, (%rdi,%r14,8)
	movq	%rbx, %rdi
	call	malloc@PLT
	movq	%rax, 0(%r13,%r14,8)
	addq	$1, %r14
	cmpq	%r14, %rbp
	jne	.L7
	movq	24(%rsp), %rax
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movq	40(%rsp), %r12
	movq	0(%r13), %r14
	movq	(%rax), %r8
	movq	8(%rsp), %rax
	movq	(%rax), %r15
	movq	16(%rsp), %rax
	movq	%r8, 40(%rsp)
	movq	(%rax), %rdi
	call	memset@PLT
	movq	40(%rsp), %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	call	memset@PLT
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movq	%r15, %rdi
	call	memset@PLT
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movq	%r14, %rdi
	call	memset@PLT
	testq	%r12, %r12
	jle	.L25
	movq	%rbx, 40(%rsp)
	movq	64(%rsp), %r9
	movl	$1, %r10d
	movq	56(%rsp), %r8
	movq	8(%rsp), %r11
	.p2align 4,,10
	.p2align 3
.L24:
	movq	16(%rsp), %rax
	movq	-8(%r13,%r10,8), %rcx
	movq	-8(%r11,%r10,8), %rsi
	movq	(%rax,%r10,8), %rdi
	movabsq	$100000000000000, %rax
	movq	%rax, (%rdi)
	movq	32(%rsp), %rax
	movq	(%rax,%r10,8), %rbx
	cmpq	$1, %rbx
	jle	.L29
	cmpq	%rbp, %rbx
	movq	%rbp, %r14
	movl	$1, %eax
	cmovle	%rbx, %r14
	.p2align 4,,10
	.p2align 3
.L11:
	movq	-8(%rcx,%rax,8), %r15
	movq	-8(%rsi,%rax,8), %rdx
	cmpq	%r15, %rdx
	cmovg	%r15, %rdx
	addq	%r9, %rdx
	cmpq	%rax, %rbx
	leaq	(%r8,%rdx), %r15
	cmovl	%r15, %rdx
	movq	%rdx, (%rdi,%rax,8)
	addq	$1, %rax
	cmpq	%r14, %rax
	jl	.L11
	cmpq	%rax, %r12
	jl	.L51
	.p2align 4,,10
	.p2align 3
.L14:
	movq	-8(%rsi,%rax,8), %r14
	movq	-8(%rcx,%rax,8), %rdx
	cmpq	%r14, %rdx
	cmovg	%r14, %rdx
	cmpq	%rax, %rbx
	leaq	(%r8,%rdx), %r14
	cmovl	%r14, %rdx
	movq	%rdx, (%rdi,%rax,8)
	addq	$1, %rax
	cmpq	%rax, %r12
	jge	.L14
	movq	24(%rsp), %rax
	movq	(%rax,%r10,8), %r14
	testq	%rbx, %rbx
	jg	.L27
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L20:
	movq	(%rsi,%rax,8), %rdx
	movq	(%rcx,%rax,8), %rbx
	cmpq	%rbx, %rdx
	cmovg	%rbx, %rdx
	addq	%r8, %rdx
	movq	%rdx, (%r14,%rax,8)
	addq	$1, %rax
	cmpq	%rax, %r12
	jge	.L20
.L21:
	movq	(%r11,%r10,8), %rsi
	movq	(%rdi), %rdx
	movl	$1, %eax
	movq	%rdx, (%rsi)
	.p2align 4,,10
	.p2align 3
.L22:
	movq	(%rdi,%rax,8), %rcx
	cmpq	%rcx, %rdx
	cmovg	%rcx, %rdx
	movq	%rdx, (%rsi,%rax,8)
	addq	$1, %rax
	cmpq	%rbp, %rax
	jne	.L22
	movq	0(%r13,%r10,8), %rsi
	movq	(%r14), %rdx
	movl	$1, %eax
	movq	%rdx, (%rsi)
	.p2align 4,,10
	.p2align 3
.L23:
	movq	(%r14,%rax,8), %rcx
	cmpq	%rcx, %rdx
	cmovg	%rcx, %rdx
	movq	%rdx, (%rsi,%rax,8)
	addq	$1, %rax
	cmpq	%rbp, %rax
	jne	.L23
	addq	$1, %r10
	cmpq	%rbp, %r10
	jne	.L24
	movq	40(%rsp), %rbx
.L25:
	movq	8(%rsp), %rdi
	movq	-8(%r13,%rbx), %rax
	leaq	.LC2(%rip), %rsi
	movq	-8(%rdi,%rbx), %rdx
	movq	-8(%rax,%rbx), %rax
	movl	$1, %edi
	movq	-8(%rdx,%rbx), %rdx
	cmpq	%rdx, %rax
	cmovle	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L52
	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
.L29:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L51:
	movq	24(%rsp), %rax
	movq	(%rax,%r10,8), %r14
	.p2align 4,,10
	.p2align 3
.L27:
	cmpq	%rbp, %rbx
	cmovg	%rbp, %rbx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L18:
	movq	(%rcx,%rax,8), %rdx
	movq	(%rsi,%rax,8), %r15
	cmpq	%r15, %rdx
	cmovg	%r15, %rdx
	addq	%r9, %rdx
	movq	%rdx, (%r14,%rax,8)
	addq	$1, %rax
	cmpq	%rbx, %rax
	jl	.L18
	cmpq	%rax, %r12
	jge	.L20
	jmp	.L21
.L4:
	movq	%r13, %rdi
	movq	%r13, %rbx
	call	malloc@PLT
	movq	%r13, %rdi
	movq	%rax, 16(%rsp)
	call	malloc@PLT
	movq	%r13, %rdi
	movq	%rax, 24(%rsp)
	call	malloc@PLT
	movq	%r13, %rdi
	movq	%rax, 8(%rsp)
	call	malloc@PLT
	movq	%rax, %r13
	testq	%r12, %r12
	je	.L26
	jmp	.L25
.L52:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	min
	.type	min, @function
min:
.LFB39:
	.cfi_startproc
	endbr64
	cmpq	%rsi, %rdi
	movq	%rsi, %rax
	cmovle	%rdi, %rax
	ret
	.cfi_endproc
.LFE39:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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), %rcx
	leaq	56(%rsp), %rdx
	leaq	48(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	48(%rsp), %r12
	leaq	1(%r12), %rbp
	leaq	0(,%rbp,8), %r13
	movq	%r13, %rdi
	call	malloc@PLT
	movq	%r13, %rdi
	movq	%rax, %rbx
	call	malloc@PLT
	movq	%rax, 32(%rsp)
	testq	%r12, %r12
	jle	.L4
	addq	$8, %rbx
	movl	$1, %ebp
	leaq	.LC1(%rip), %r13
	movq	%rax, %r14
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addq	$8, %rbx
	call	__isoc99_scanf@PLT
	movq	-8(%rbx), %rax
	movq	48(%rsp), %r12
	movq	%rbp, (%r14,%rax,8)
	addq	$1, %rbp
	cmpq	%rbp, %r12
	jge	.L5
	leaq	1(%r12), %rbp
	leaq	0(,%rbp,8), %rbx
	movq	%rbx, %rdi
	call	malloc@PLT
	movq	%rbx, %rdi
	movq	%rax, 16(%rsp)
	call	malloc@PLT
	movq	%rbx, %rdi
	movq	%rax, 24(%rsp)
	call	malloc@PLT
	movq	%rbx, %rdi
	movq	%rax, 8(%rsp)
	call	malloc@PLT
	movq	%rax, %r13
	testq	%r12, %r12
	js	.L25
.L26:
	movq	%r12, 40(%rsp)
	movq	16(%rsp), %r15
	xorl	%r14d, %r14d
	movq	24(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbx, %rdi
	call	malloc@PLT
	movq	%rbx, %rdi
	movq	%rax, (%r15,%r14,8)
	call	malloc@PLT
	movq	%rbx, %rdi
	movq	%rax, (%r12,%r14,8)
	call	malloc@PLT
	movq	8(%rsp), %rdi
	movq	%rax, (%rdi,%r14,8)
	movq	%rbx, %rdi
	call	malloc@PLT
	movq	%rax, 0(%r13,%r14,8)
	addq	$1, %r14
	cmpq	%r14, %rbp
	jne	.L7
	movq	24(%rsp), %rax
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movq	40(%rsp), %r12
	movq	0(%r13), %r14
	movq	(%rax), %r8
	movq	8(%rsp), %rax
	movq	(%rax), %r15
	movq	16(%rsp), %rax
	movq	%r8, 40(%rsp)
	movq	(%rax), %rdi
	call	memset@PLT
	movq	40(%rsp), %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	call	memset@PLT
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movq	%r15, %rdi
	call	memset@PLT
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movq	%r14, %rdi
	call	memset@PLT
	testq	%r12, %r12
	jle	.L25
	movq	%rbx, 40(%rsp)
	movq	64(%rsp), %r9
	movl	$1, %r10d
	movq	56(%rsp), %r8
	movq	8(%rsp), %r11
	.p2align 4,,10
	.p2align 3
.L24:
	movq	16(%rsp), %rax
	movq	-8(%r13,%r10,8), %rcx
	movq	-8(%r11,%r10,8), %rsi
	movq	(%rax,%r10,8), %rdi
	movabsq	$100000000000000, %rax
	movq	%rax, (%rdi)
	movq	32(%rsp), %rax
	movq	(%rax,%r10,8), %rbx
	cmpq	$1, %rbx
	jle	.L29
	cmpq	%rbp, %rbx
	movq	%rbp, %r14
	movl	$1, %eax
	cmovle	%rbx, %r14
	.p2align 4,,10
	.p2align 3
.L11:
	movq	-8(%rcx,%rax,8), %r15
	movq	-8(%rsi,%rax,8), %rdx
	cmpq	%r15, %rdx
	cmovg	%r15, %rdx
	addq	%r9, %rdx
	cmpq	%rax, %rbx
	leaq	(%r8,%rdx), %r15
	cmovl	%r15, %rdx
	movq	%rdx, (%rdi,%rax,8)
	addq	$1, %rax
	cmpq	%r14, %rax
	jl	.L11
	cmpq	%rax, %r12
	jl	.L51
	.p2align 4,,10
	.p2align 3
.L14:
	movq	-8(%rsi,%rax,8), %r14
	movq	-8(%rcx,%rax,8), %rdx
	cmpq	%r14, %rdx
	cmovg	%r14, %rdx
	cmpq	%rax, %rbx
	leaq	(%r8,%rdx), %r14
	cmovl	%r14, %rdx
	movq	%rdx, (%rdi,%rax,8)
	addq	$1, %rax
	cmpq	%rax, %r12
	jge	.L14
	movq	24(%rsp), %rax
	movq	(%rax,%r10,8), %r14
	testq	%rbx, %rbx
	jg	.L27
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L20:
	movq	(%rsi,%rax,8), %rdx
	movq	(%rcx,%rax,8), %rbx
	cmpq	%rbx, %rdx
	cmovg	%rbx, %rdx
	addq	%r8, %rdx
	movq	%rdx, (%r14,%rax,8)
	addq	$1, %rax
	cmpq	%rax, %r12
	jge	.L20
.L21:
	movq	(%r11,%r10,8), %rsi
	movq	(%rdi), %rdx
	movl	$1, %eax
	movq	%rdx, (%rsi)
	.p2align 4,,10
	.p2align 3
.L22:
	movq	(%rdi,%rax,8), %rcx
	cmpq	%rcx, %rdx
	cmovg	%rcx, %rdx
	movq	%rdx, (%rsi,%rax,8)
	addq	$1, %rax
	cmpq	%rbp, %rax
	jne	.L22
	movq	0(%r13,%r10,8), %rsi
	movq	(%r14), %rdx
	movl	$1, %eax
	movq	%rdx, (%rsi)
	.p2align 4,,10
	.p2align 3
.L23:
	movq	(%r14,%rax,8), %rcx
	cmpq	%rcx, %rdx
	cmovg	%rcx, %rdx
	movq	%rdx, (%rsi,%rax,8)
	addq	$1, %rax
	cmpq	%rbp, %rax
	jne	.L23
	addq	$1, %r10
	cmpq	%rbp, %r10
	jne	.L24
	movq	40(%rsp), %rbx
.L25:
	movq	8(%rsp), %rdi
	movq	-8(%r13,%rbx), %rax
	leaq	.LC2(%rip), %rsi
	movq	-8(%rdi,%rbx), %rdx
	movq	-8(%rax,%rbx), %rax
	movl	$1, %edi
	movq	-8(%rdx,%rbx), %rdx
	cmpq	%rdx, %rax
	cmovle	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L52
	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
.L29:
	.cfi_restore_state
	movl	$1, %eax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L51:
	movq	24(%rsp), %rax
	movq	(%rax,%r10,8), %r14
	.p2align 4,,10
	.p2align 3
.L27:
	cmpq	%rbp, %rbx
	cmovg	%rbp, %rbx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L18:
	movq	(%rcx,%rax,8), %rdx
	movq	(%rsi,%rax,8), %r15
	cmpq	%r15, %rdx
	cmovg	%r15, %rdx
	addq	%r9, %rdx
	movq	%rdx, (%r14,%rax,8)
	addq	$1, %rax
	cmpq	%rbx, %rax
	jl	.L18
	cmpq	%rax, %r12
	jge	.L20
	jmp	.L21
.L4:
	movq	%r13, %rdi
	movq	%r13, %rbx
	call	malloc@PLT
	movq	%r13, %rdi
	movq	%rax, 16(%rsp)
	call	malloc@PLT
	movq	%r13, %rdi
	movq	%rax, 24(%rsp)
	call	malloc@PLT
	movq	%r13, %rdi
	movq	%rax, 8(%rsp)
	call	malloc@PLT
	movq	%rax, %r13
	testq	%r12, %r12
	je	.L26
	jmp	.L25
.L52:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include <stdio.h>
#include <stdlib.h>
#define int long long
#define inf (int)(1e14)

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

signed main(){
	int N, A, B, i, j;
	scanf("%lld%lld%lld", &N, &A, &B);
	int *p = (int *)malloc(sizeof(int) * (N + 1));
	int *p_inv = (int *)malloc(sizeof(int) * (N + 1));
	for(i = 1; i <= N; i++){
		scanf("%lld", &p[i]);
		p_inv[p[i]] = i;
	}
	int **dp1 = (int **)malloc(sizeof(int *) * (N + 1));
	int **dp2 = (int **)malloc(sizeof(int *) * (N + 1));
	int **m1 = (int **)malloc(sizeof(int *) * (N + 1));
	int **m2 = (int **)malloc(sizeof(int *) * (N + 1));
	for(i = 0; i <= N; i++){
		dp1[i] = (int *)malloc(sizeof(int) * (N + 1));
		dp2[i] = (int *)malloc(sizeof(int) * (N + 1));
		m1[i] = (int *)malloc(sizeof(int) * (N + 1));
		m2[i] = (int *)malloc(sizeof(int) * (N + 1));
	}
	for(j = 0; j <= N; j++){
		dp1[0][j] = 0;
		dp2[0][j] = 0;
		m1[0][j] = 0;
		m2[0][j] = 0;
	}
	for(i = 1; i <= N; i++){
		dp1[i][0] = inf;
		for(j = 1; j <= N; j++){
			dp1[i][j] = min(m1[i - 1][j - 1], m2[i - 1][j - 1]);
			if(j < p_inv[i]){
				dp1[i][j] += B;
			}
			if(j > p_inv[i]){
				dp1[i][j] += A;
			}
		}
		for(j = 0; j <= N; j++){
			dp2[i][j] = min(m1[i - 1][j], m2[i - 1][j]);
			if(j < p_inv[i]){
				dp2[i][j] += B;
			}
			else{
				dp2[i][j] += A;
			}
		}
		m1[i][0] = dp1[i][0];
		for(j = 1; j <= N; j++){
			m1[i][j] = min(m1[i][j - 1], dp1[i][j]);
		}
		m2[i][0] = dp2[i][0];
		for(j = 1; j <= N; j++){
			m2[i][j] = min(m2[i][j - 1], dp2[i][j]);
		}
	}
	printf("%lld\n", min(m1[N][N], m2[N][N]));
	return 0;
}
3 26 30
3 1 2
 4 20 30
3 2 3 1
 9 40 87
5 3 4 7 6 1 2 9 8
 4 8 30
3 2 3 1
 4 11 30
3 2 3 1
 4 20 36
4 2 3 1
 4 20 46
4 2 3 1
 9 67 87
5 3 4 7 6 1 3 12 8
 9 72 87
5 3 4 7 6 1 3 12 8
 1 8 10
1

26
 50
 240
 24
 33
 56
 60
 402
 432
 0

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)(1e14)

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

signed main(){
	int N, A, B, i, j;
	scanf("%lld%lld%lld", &N, &A, &B);
	int *p = (int *)malloc(sizeof(int) * (N + 1));
	int *p_inv = (int *)malloc(sizeof(int) * (N + 1));
	for(i = 1; i <= N; i++){
		scanf("%lld", &p[i]);
		p_inv[p[i]] = i;
	}
	int **dp1 = (int **)malloc(sizeof(int *) * (N + 1));
	int **dp2 = (int **)malloc(sizeof(int *) * (N + 1));
	int **m1 = (int **)malloc(sizeof(int *) * (N + 1));
	int **m2 = (int **)malloc(sizeof(int *) * (N + 1));
	for(i = 0; i <= N; i++){
		dp1[i] = (int *)malloc(sizeof(int) * (N + 1));
		dp2[i] = (int *)malloc(sizeof(int) * (N + 1));
		m1[i] = (int *)malloc(sizeof(int) * (N + 1));
		m2[i] = (int *)malloc(sizeof(int) * (N + 1));
	}
	for(j = 0; j <= N; j++){
		dp1[0][j] = 0;
		dp2[0][j] = 0;
		m1[0][j] = 0;
		m2[0][j] = 0;
	}
	for(i = 1; i <= N; i++){
		dp1[i][0] = inf;
		for(j = 1; j <= N; j++){
			dp1[i][j] = min(m1[i - 1][j - 1], m2[i - 1][j - 1]);
			if(j < p_inv[i]){
				dp1[i][j] += B;
			}
			if(j > p_inv[i]){
				dp1[i][j] += A;
			}
		}
		for(j = 0; j <= N; j++){
			dp2[i][j] = min(m1[i - 1][j], m2[i - 1][j]);
			if(j < p_inv[i]){
				dp2[i][j] += B;
			}
			else{
				dp2[i][j] += A;
			}
		}
		m1[i][0] = dp1[i][0];
		for(j = 1; j <= N; j++){
			m1[i][j] = min(m1[i][j - 1], dp1[i][j]);
		}
		m2[i][0] = dp2[i][0];
		for(j = 1; j <= N; j++){
			m2[i][j] = min(m2[i][j - 1], dp2[i][j]);
		}
	}
	printf("%lld\n", min(m1[N][N], m2[N][N]));
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%lld%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-96(%rbp), %rcx
	leaq	-104(%rbp), %rdx
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -72(%rbp)
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -64(%rbp)
	movq	$1, -88(%rbp)
	jmp	.L4
.L5:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rax, %rdx
	movq	-88(%rbp), %rax
	movq	%rax, (%rdx)
	addq	$1, -88(%rbp)
.L4:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jle	.L5
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -56(%rbp)
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -48(%rbp)
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -40(%rbp)
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -32(%rbp)
	movq	$0, -88(%rbp)
	jmp	.L6
.L7:
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	-88(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-56(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	-88(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-48(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	-88(%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	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	-88(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	addq	$1, -88(%rbp)
.L6:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jle	.L7
	movq	$0, -80(%rbp)
	jmp	.L8
.L9:
	movq	-56(%rbp), %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$0, (%rax)
	movq	-48(%rbp), %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$0, (%rax)
	movq	-40(%rbp), %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$0, (%rax)
	movq	-32(%rbp), %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$0, (%rax)
	addq	$1, -80(%rbp)
.L8:
	movq	-112(%rbp), %rax
	cmpq	%rax, -80(%rbp)
	jle	.L9
	movq	$1, -88(%rbp)
	jmp	.L10
.L23:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movabsq	$100000000000000, %rbx
	movq	%rbx, (%rax)
	movq	$1, -80(%rbp)
	jmp	.L11
.L14:
	movq	-88(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	subq	$8, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	subq	$8, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-56(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-80(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -80(%rbp)
	jge	.L12
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-96(%rbp), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rsi
	movq	-56(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rsi
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
.L12:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -80(%rbp)
	jle	.L13
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-104(%rbp), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rsi
	movq	-56(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rsi
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
.L13:
	addq	$1, -80(%rbp)
.L11:
	movq	-112(%rbp), %rax
	cmpq	%rax, -80(%rbp)
	jle	.L14
	movq	$0, -80(%rbp)
	jmp	.L15
.L18:
	movq	-88(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-48(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-80(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -80(%rbp)
	jge	.L16
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-96(%rbp), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rsi
	movq	-48(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rsi
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
	jmp	.L17
.L16:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-104(%rbp), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rsi
	movq	-48(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rsi
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
.L17:
	addq	$1, -80(%rbp)
.L15:
	movq	-112(%rbp), %rax
	cmpq	%rax, -80(%rbp)
	jle	.L18
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	(%rdx), %rdx
	movq	%rdx, (%rax)
	movq	$1, -80(%rbp)
	jmp	.L19
.L20:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	subq	$8, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-40(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-80(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	addq	$1, -80(%rbp)
.L19:
	movq	-112(%rbp), %rax
	cmpq	%rax, -80(%rbp)
	jle	.L20
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	(%rdx), %rdx
	movq	%rdx, (%rax)
	movq	$1, -80(%rbp)
	jmp	.L21
.L22:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	subq	$8, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-32(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-80(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	addq	$1, -80(%rbp)
.L21:
	movq	-112(%rbp), %rax
	cmpq	%rax, -80(%rbp)
	jle	.L22
	addq	$1, -88(%rbp)
.L10:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jle	.L23
	movq	-112(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-112(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-112(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-112(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	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
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rdx
	movq	-16(%rbp), %rax
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%lld%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-96(%rbp), %rcx
	leaq	-104(%rbp), %rdx
	leaq	-112(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -72(%rbp)
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -64(%rbp)
	movq	$1, -88(%rbp)
	jmp	.L4
.L5:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-72(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rax, %rdx
	movq	-88(%rbp), %rax
	movq	%rax, (%rdx)
	addq	$1, -88(%rbp)
.L4:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jle	.L5
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -56(%rbp)
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -48(%rbp)
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -40(%rbp)
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -32(%rbp)
	movq	$0, -88(%rbp)
	jmp	.L6
.L7:
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	-88(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-56(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	-88(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-48(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	movq	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	-88(%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	-112(%rbp), %rax
	addq	$1, %rax
	salq	$3, %rax
	movq	-88(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-32(%rbp), %rdx
	leaq	(%rcx,%rdx), %rbx
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, (%rbx)
	addq	$1, -88(%rbp)
.L6:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jle	.L7
	movq	$0, -80(%rbp)
	jmp	.L8
.L9:
	movq	-56(%rbp), %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$0, (%rax)
	movq	-48(%rbp), %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$0, (%rax)
	movq	-40(%rbp), %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$0, (%rax)
	movq	-32(%rbp), %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	$0, (%rax)
	addq	$1, -80(%rbp)
.L8:
	movq	-112(%rbp), %rax
	cmpq	%rax, -80(%rbp)
	jle	.L9
	movq	$1, -88(%rbp)
	jmp	.L10
.L23:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	movabsq	$100000000000000, %rbx
	movq	%rbx, (%rax)
	movq	$1, -80(%rbp)
	jmp	.L11
.L14:
	movq	-88(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	subq	$8, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	subq	$8, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-56(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-80(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -80(%rbp)
	jge	.L12
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-96(%rbp), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rsi
	movq	-56(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rsi
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
.L12:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -80(%rbp)
	jle	.L13
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-104(%rbp), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rsi
	movq	-56(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rsi
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
.L13:
	addq	$1, -80(%rbp)
.L11:
	movq	-112(%rbp), %rax
	cmpq	%rax, -80(%rbp)
	jle	.L14
	movq	$0, -80(%rbp)
	jmp	.L15
.L18:
	movq	-88(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-48(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-80(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -80(%rbp)
	jge	.L16
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-96(%rbp), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rsi
	movq	-48(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rsi
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
	jmp	.L17
.L16:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rcx
	movq	-104(%rbp), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rsi
	movq	-48(%rbp), %rax
	addq	%rsi, %rax
	movq	(%rax), %rsi
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rsi, %rax
	addq	%rcx, %rdx
	movq	%rdx, (%rax)
.L17:
	addq	$1, -80(%rbp)
.L15:
	movq	-112(%rbp), %rax
	cmpq	%rax, -80(%rbp)
	jle	.L18
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	(%rdx), %rdx
	movq	%rdx, (%rax)
	movq	$1, -80(%rbp)
	jmp	.L19
.L20:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	subq	$8, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-40(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-80(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	addq	$1, -80(%rbp)
.L19:
	movq	-112(%rbp), %rax
	cmpq	%rax, -80(%rbp)
	jle	.L20
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	(%rdx), %rdx
	movq	%rdx, (%rax)
	movq	$1, -80(%rbp)
	jmp	.L21
.L22:
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-80(%rbp), %rax
	salq	$3, %rax
	subq	$8, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	-88(%rbp), %rcx
	leaq	0(,%rcx,8), %rsi
	movq	-32(%rbp), %rcx
	addq	%rsi, %rcx
	movq	(%rcx), %rsi
	movq	-80(%rbp), %rcx
	salq	$3, %rcx
	leaq	(%rsi,%rcx), %rbx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movq	%rax, (%rbx)
	addq	$1, -80(%rbp)
.L21:
	movq	-112(%rbp), %rax
	cmpq	%rax, -80(%rbp)
	jle	.L22
	addq	$1, -88(%rbp)
.L10:
	movq	-112(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	jle	.L23
	movq	-112(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-112(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movq	-112(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	movq	-40(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rcx
	movq	-112(%rbp), %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	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
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
