Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <math.h>
#include <stdio.h>
#define INF 1001001001
int min(int x, int y) {
	return x < y ? x : y;
}
int main() {
	int n, h[100000];
	int dp[100005];
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%d", &h[i]);
		dp[i] = INF;
	}
	dp[0] = 0;
	for (int i = 0; i < n; i++) {
		dp[i + 1] = min(dp[i + 1], dp[i] + abs(h[i] - h[i + 1]));
		dp[i + 2] = min(dp[i + 2], dp[i] + abs(h[i] - h[i + 2]));
	}
	printf("%d\n", dp[n - 1]);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1336, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-800060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800056(%rbp)
	jmp	.L4
.L5:
	leaq	-800048(%rbp), %rdx
	movl	-800056(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-800056(%rbp), %eax
	cltq
	movl	$1001001001, -400048(%rbp,%rax,4)
	addl	$1, -800056(%rbp)
.L4:
	movl	-800060(%rbp), %eax
	cmpl	%eax, -800056(%rbp)
	jl	.L5
	movl	$0, -400048(%rbp)
	movl	$0, -800052(%rbp)
	jmp	.L6
.L7:
	movl	-800052(%rbp), %eax
	cltq
	movl	-400048(%rbp,%rax,4), %ecx
	movl	-800052(%rbp), %eax
	cltq
	movl	-800048(%rbp,%rax,4), %edx
	movl	-800052(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-800048(%rbp,%rax,4), %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	-800052(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	movl	-800052(%rbp), %ecx
	leal	1(%rcx), %ebx
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movslq	%ebx, %rdx
	movl	%eax, -400048(%rbp,%rdx,4)
	movl	-800052(%rbp), %eax
	cltq
	movl	-400048(%rbp,%rax,4), %ecx
	movl	-800052(%rbp), %eax
	cltq
	movl	-800048(%rbp,%rax,4), %edx
	movl	-800052(%rbp), %eax
	addl	$2, %eax
	cltq
	movl	-800048(%rbp,%rax,4), %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	-800052(%rbp), %eax
	addl	$2, %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	movl	-800052(%rbp), %ecx
	leal	2(%rcx), %ebx
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movslq	%ebx, %rdx
	movl	%eax, -400048(%rbp,%rdx,4)
	addl	$1, -800052(%rbp)
.L6:
	movl	-800060(%rbp), %eax
	cmpl	%eax, -800052(%rbp)
	jl	.L7
	movl	-800060(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	movl	%edi, %eax
	cmovle	%esi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798768
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1328, %rsp
	.cfi_def_cfa_offset 800096
	leaq	.LC0(%rip), %r14
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, 800040(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	jle	.L4
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	leaq	400016(%rsp), %r13
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	movl	$1001001001, 0(%r13,%rbx,4)
	addq	$1, %rbx
	cmpl	%ebx, %edi
	jg	.L5
	movl	$0, 400016(%rsp)
	testl	%edi, %edi
	jle	.L6
	cmpl	$2, %edi
	jle	.L11
	leal	-3(%rdi), %eax
	movl	16(%rsp), %r10d
	movl	20(%rsp), %r8d
	leaq	400020(%rsp), %rcx
	shrl	%eax
	movl	400020(%rsp), %edx
	movl	$2, %esi
	leal	2(%rax), %r11d
	xorl	%eax, %eax
	addq	%r11, %r11
.L8:
	movl	%r10d, %r9d
	movl	%r10d, %ebp
	movl	(%r12,%rsi,4), %r10d
	subl	%r8d, %r9d
	movl	%r9d, %ebx
	negl	%ebx
	cmovs	%r9d, %ebx
	movl	%esi, %r9d
	addl	%eax, %ebx
	cmpl	%edx, %ebx
	cmovg	%edx, %ebx
	subl	%r10d, %ebp
	movl	%ebp, %edx
	negl	%edx
	movl	%ebx, (%rcx)
	cmovs	%ebp, %edx
	movl	%r8d, %ebp
	addl	%eax, %edx
	movl	4(%rcx), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	subl	%r10d, %ebp
	movl	%ebp, %eax
	negl	%eax
	cmovs	%ebp, %eax
	movl	%r8d, %ebp
	movl	4(%r12,%rsi,4), %r8d
	addl	%ebx, %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	subl	%r8d, %ebp
	movl	%ebp, %edx
	negl	%edx
	movl	%eax, 4(%rcx)
	cmovs	%ebp, %edx
	addl	%ebx, %edx
	movl	8(%rcx), %ebx
	cmpl	%ebx, %edx
	cmovg	%ebx, %edx
	addq	$2, %rsi
	addq	$8, %rcx
	movl	%edx, (%rcx)
	cmpq	%r11, %rsi
	jne	.L8
.L7:
	movslq	%r9d, %rdx
	salq	$2, %rdx
	leaq	0(%r13,%rdx), %rax
	leaq	(%r12,%rdx), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%rcx), %edx
	addl	$1, %r9d
	movl	(%rax), %r10d
	movl	%edx, %r8d
	subl	4(%rcx), %r8d
	movl	%r8d, %esi
	negl	%esi
	cmovs	%r8d, %esi
	movl	4(%rax), %r8d
	addl	%r10d, %esi
	cmpl	%r8d, %esi
	cmovg	%r8d, %esi
	subl	8(%rcx), %edx
	movl	%esi, 4(%rax)
	movl	%edx, %esi
	negl	%esi
	cmovns	%esi, %edx
	movl	8(%rax), %esi
	addl	%r10d, %edx
	cmpl	%esi, %edx
	cmovg	%esi, %edx
	addq	$4, %rax
	addq	$4, %rcx
	movl	%edx, 4(%rax)
	cmpl	%r9d, %edi
	jg	.L9
.L6:
	subl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movslq	%edi, %rdi
	movl	400016(%rsp,%rdi,4), %edx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$800048, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	movl	$0, 400016(%rsp)
	jmp	.L6
.L11:
	xorl	%r9d, %r9d
	jmp	.L7
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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:
.LFB23:
	.cfi_startproc
	endbr64
	cmpl	%edi, %esi
	movl	%edi, %eax
	cmovle	%esi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-798720(%rsp), %r11
	.cfi_def_cfa 11, 798768
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1328, %rsp
	.cfi_def_cfa_offset 800096
	leaq	.LC0(%rip), %r14
	movq	%r14, %rdi
	movq	%fs:40, %rax
	movq	%rax, 800040(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	testl	%edi, %edi
	jle	.L4
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	leaq	400016(%rsp), %r13
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$4, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %edi
	movl	$1001001001, 0(%r13,%rbx,4)
	addq	$1, %rbx
	cmpl	%ebx, %edi
	jg	.L5
	movl	$0, 400016(%rsp)
	testl	%edi, %edi
	jle	.L6
	cmpl	$2, %edi
	jle	.L11
	leal	-3(%rdi), %eax
	movl	16(%rsp), %r10d
	movl	20(%rsp), %r8d
	leaq	400020(%rsp), %rcx
	shrl	%eax
	movl	400020(%rsp), %edx
	movl	$2, %esi
	leal	2(%rax), %r11d
	xorl	%eax, %eax
	addq	%r11, %r11
.L8:
	movl	%r10d, %r9d
	movl	%r10d, %ebp
	movl	(%r12,%rsi,4), %r10d
	subl	%r8d, %r9d
	movl	%r9d, %ebx
	negl	%ebx
	cmovs	%r9d, %ebx
	movl	%esi, %r9d
	addl	%eax, %ebx
	cmpl	%edx, %ebx
	cmovg	%edx, %ebx
	subl	%r10d, %ebp
	movl	%ebp, %edx
	negl	%edx
	movl	%ebx, (%rcx)
	cmovs	%ebp, %edx
	movl	%r8d, %ebp
	addl	%eax, %edx
	movl	4(%rcx), %eax
	cmpl	%eax, %edx
	cmovg	%eax, %edx
	subl	%r10d, %ebp
	movl	%ebp, %eax
	negl	%eax
	cmovs	%ebp, %eax
	movl	%r8d, %ebp
	movl	4(%r12,%rsi,4), %r8d
	addl	%ebx, %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	subl	%r8d, %ebp
	movl	%ebp, %edx
	negl	%edx
	movl	%eax, 4(%rcx)
	cmovs	%ebp, %edx
	addl	%ebx, %edx
	movl	8(%rcx), %ebx
	cmpl	%ebx, %edx
	cmovg	%ebx, %edx
	addq	$2, %rsi
	addq	$8, %rcx
	movl	%edx, (%rcx)
	cmpq	%r11, %rsi
	jne	.L8
.L7:
	movslq	%r9d, %rdx
	salq	$2, %rdx
	leaq	0(%r13,%rdx), %rax
	leaq	(%r12,%rdx), %rcx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	(%rcx), %edx
	addl	$1, %r9d
	movl	(%rax), %r10d
	movl	%edx, %r8d
	subl	4(%rcx), %r8d
	movl	%r8d, %esi
	negl	%esi
	cmovs	%r8d, %esi
	movl	4(%rax), %r8d
	addl	%r10d, %esi
	cmpl	%r8d, %esi
	cmovg	%r8d, %esi
	subl	8(%rcx), %edx
	movl	%esi, 4(%rax)
	movl	%edx, %esi
	negl	%esi
	cmovns	%esi, %edx
	movl	8(%rax), %esi
	addl	%r10d, %edx
	cmpl	%esi, %edx
	cmovg	%esi, %edx
	addq	$4, %rax
	addq	$4, %rcx
	movl	%edx, 4(%rax)
	cmpl	%r9d, %edi
	jg	.L9
.L6:
	subl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movslq	%edi, %rdi
	movl	400016(%rsp,%rdi,4), %edx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	800040(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$800048, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	movl	$0, 400016(%rsp)
	jmp	.L6
.L11:
	xorl	%r9d, %r9d
	jmp	.L7
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.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 <math.h>
#include <stdio.h>
#define INF 1001001001
int min(int x, int y) {
	return x < y ? x : y;
}
int main() {
	int n, h[100000];
	int dp[100005];
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%d", &h[i]);
		dp[i] = INF;
	}
	dp[0] = 0;
	for (int i = 0; i < n; i++) {
		dp[i + 1] = min(dp[i + 1], dp[i] + abs(h[i] - h[i + 1]));
		dp[i + 2] = min(dp[i + 2], dp[i] + abs(h[i] - h[i + 2]));
	}
	printf("%d\n", dp[n - 1]);
	return 0;
}
6
30 10 60 10 60 57
 4
10 14 40 20
 2
18 10
 4
5 14 40 20
 2
33 10
 6
30 12 60 10 60 9
 2
9 10
 6
30 12 60 17 60 9
 2
9 18
 6
30 12 60 33 60 9

33
 10
 8
 15
 23
 21
 1
 31
 9
 63

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <math.h>
#include <stdio.h>
#define INF 1001001001
int min(int x, int y) {
	return x < y ? x : y;
}
int main() {
	int n, h[100000];
	int dp[100005];
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		scanf("%d", &h[i]);
		dp[i] = INF;
	}
	dp[0] = 0;
	for (int i = 0; i < n; i++) {
		dp[i + 1] = min(dp[i + 1], dp[i] + abs(h[i] - h[i + 1]));
		dp[i + 2] = min(dp[i + 2], dp[i] + abs(h[i] - h[i + 2]));
	}
	printf("%d\n", dp[n - 1]);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	min
	.type	min, @function
min:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1336, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-800060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800056(%rbp)
	jmp	.L4
.L5:
	leaq	-800048(%rbp), %rdx
	movl	-800056(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-800056(%rbp), %eax
	cltq
	movl	$1001001001, -400048(%rbp,%rax,4)
	addl	$1, -800056(%rbp)
.L4:
	movl	-800060(%rbp), %eax
	cmpl	%eax, -800056(%rbp)
	jl	.L5
	movl	$0, -400048(%rbp)
	movl	$0, -800052(%rbp)
	jmp	.L6
.L7:
	movl	-800052(%rbp), %eax
	cltq
	movl	-400048(%rbp,%rax,4), %ecx
	movl	-800052(%rbp), %eax
	cltq
	movl	-800048(%rbp,%rax,4), %edx
	movl	-800052(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-800048(%rbp,%rax,4), %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	-800052(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	movl	-800052(%rbp), %ecx
	leal	1(%rcx), %ebx
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movslq	%ebx, %rdx
	movl	%eax, -400048(%rbp,%rdx,4)
	movl	-800052(%rbp), %eax
	cltq
	movl	-400048(%rbp,%rax,4), %ecx
	movl	-800052(%rbp), %eax
	cltq
	movl	-800048(%rbp,%rax,4), %edx
	movl	-800052(%rbp), %eax
	addl	$2, %eax
	cltq
	movl	-800048(%rbp,%rax,4), %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	-800052(%rbp), %eax
	addl	$2, %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	movl	-800052(%rbp), %ecx
	leal	2(%rcx), %ebx
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movslq	%ebx, %rdx
	movl	%eax, -400048(%rbp,%rdx,4)
	addl	$1, -800052(%rbp)
.L6:
	movl	-800060(%rbp), %eax
	cmpl	%eax, -800052(%rbp)
	jl	.L7
	movl	-800060(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1336, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-800060(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800056(%rbp)
	jmp	.L4
.L5:
	leaq	-800048(%rbp), %rdx
	movl	-800056(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-800056(%rbp), %eax
	cltq
	movl	$1001001001, -400048(%rbp,%rax,4)
	addl	$1, -800056(%rbp)
.L4:
	movl	-800060(%rbp), %eax
	cmpl	%eax, -800056(%rbp)
	jl	.L5
	movl	$0, -400048(%rbp)
	movl	$0, -800052(%rbp)
	jmp	.L6
.L7:
	movl	-800052(%rbp), %eax
	cltq
	movl	-400048(%rbp,%rax,4), %ecx
	movl	-800052(%rbp), %eax
	cltq
	movl	-800048(%rbp,%rax,4), %edx
	movl	-800052(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-800048(%rbp,%rax,4), %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	-800052(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	movl	-800052(%rbp), %ecx
	leal	1(%rcx), %ebx
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movslq	%ebx, %rdx
	movl	%eax, -400048(%rbp,%rdx,4)
	movl	-800052(%rbp), %eax
	cltq
	movl	-400048(%rbp,%rax,4), %ecx
	movl	-800052(%rbp), %eax
	cltq
	movl	-800048(%rbp,%rax,4), %edx
	movl	-800052(%rbp), %eax
	addl	$2, %eax
	cltq
	movl	-800048(%rbp,%rax,4), %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	-800052(%rbp), %eax
	addl	$2, %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	movl	-800052(%rbp), %ecx
	leal	2(%rcx), %ebx
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movslq	%ebx, %rdx
	movl	%eax, -400048(%rbp,%rdx,4)
	addl	$1, -800052(%rbp)
.L6:
	movl	-800060(%rbp), %eax
	cmpl	%eax, -800052(%rbp)
	jl	.L7
	movl	-800060(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-400048(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
