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

```c
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#include<math.h>
#define rep(i,l,r) for(int i=l;i<r;i++)

typedef long long ll;

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

int main() {
    ll n, k, h[100000];
    scanf("%lld%lld", &n, &k);
    rep(i, 0, n) scanf("%lld", &h[i]);
    ll dp[100000];
    dp[0] = 0;
    rep(i, 1, n) {
        dp[i] = dp[i - 1] + labs(h[i] - h[i - 1]);
        rep(j, 2, k + 1) {
            if (i >= j)dp[i] = min(dp[i], dp[i - j] + labs(h[i] - h[i - j]));
        }
    }
    printf("%lld", dp[n - 1]);

    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	-16(%rbp), %rdx
	movq	-8(%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"
.LC1:
	.string	"%lld"
	.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
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2608, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600024(%rbp), %rdx
	leaq	-1600032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600044(%rbp)
	jmp	.L4
.L5:
	leaq	-1600016(%rbp), %rdx
	movl	-1600044(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1600044(%rbp)
.L4:
	movl	-1600044(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600032(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L5
	movq	$0, -800016(%rbp)
	movl	$1, -1600040(%rbp)
	jmp	.L6
.L10:
	movl	-1600040(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rcx
	movl	-1600040(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rdx
	movl	-1600040(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	movl	-1600040(%rbp), %eax
	cltq
	movq	%rdx, -800016(%rbp,%rax,8)
	movl	$2, -1600036(%rbp)
	jmp	.L7
.L9:
	movl	-1600040(%rbp), %eax
	cmpl	-1600036(%rbp), %eax
	jl	.L8
	movl	-1600040(%rbp), %eax
	subl	-1600036(%rbp), %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rcx
	movl	-1600040(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rdx
	movl	-1600040(%rbp), %eax
	subl	-1600036(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	movl	-1600040(%rbp), %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movl	-1600040(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rax, -800016(%rbp,%rdx,8)
.L8:
	addl	$1, -1600036(%rbp)
.L7:
	movl	-1600036(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600024(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L9
	addl	$1, -1600040(%rbp)
.L6:
	movl	-1600040(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600032(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L10
	movq	-1600032(%rbp), %rax
	subq	$1, %rax
	movq	-800016(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	%rdi, %rsi
	movq	%rdi, %rax
	cmovle	%rsi, %rax
	ret
	.cfi_endproc
.LFE39:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld"
	.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
	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
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597496
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2632, %rsp
	.cfi_def_cfa_offset 1600128
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1600056(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rdx
	leaq	32(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %r14
	testq	%r14, %r14
	jle	.L4
	leaq	48(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %r14
	addq	$8, %r13
	cmpq	%rbp, %r14
	jg	.L5
	movq	$0, 800048(%rsp)
	cmpq	$1, %r14
	jle	.L11
	movq	40(%rsp), %rax
	leaq	800048(%rsp), %r11
	movq	%r14, 16(%rsp)
	movq	%rbx, %r13
	movq	%r12, 24(%rsp)
	leaq	800056(%rsp), %r8
	movl	%r14d, %r12d
	movl	$1, %ebp
	movq	%rax, 8(%rsp)
	movl	%eax, %r15d
	movq	$-16, %rax
	subq	%r11, %rax
	movq	%rax, %r14
	.p2align 4,,10
	.p2align 3
.L10:
	movq	8(%r13), %r9
	movq	%r9, %rax
	subq	0(%r13), %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovs	%rax, %rdx
	addq	-8(%r8), %rdx
	cmpq	$1, 8(%rsp)
	movq	%rdx, (%r8)
	jle	.L7
	cmpl	$1, %ebp
	je	.L7
	cmpl	%ebp, %r15d
	movl	%ebp, %r10d
	leaq	(%r14,%r8), %rcx
	movl	$2, %edi
	cmovle	%r15d, %r10d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r9, %rsi
	subq	(%rbx,%rcx), %rsi
	movq	%rsi, %rax
	negq	%rax
	cmovs	%rsi, %rax
	addq	(%r11,%rcx), %rax
	cmpq	%rax, %rdx
	cmovg	%rax, %rdx
	addl	$1, %edi
	subq	$8, %rcx
	movq	%rdx, (%r8)
	cmpl	%r10d, %edi
	jle	.L9
.L7:
	addl	$1, %ebp
	addq	$8, %r13
	addq	$8, %r8
	cmpl	%r12d, %ebp
	jne	.L10
	movq	16(%rsp), %r14
	movq	24(%rsp), %r12
.L11:
	movq	800040(%rsp,%r14,8), %rdx
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	1600056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$1600072, %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
.L4:
	.cfi_restore_state
	movq	$0, 800048(%rsp)
	leaq	.LC1(%rip), %r12
	jmp	.L11
.L21:
	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	%rdi, %rsi
	movq	%rdi, %rax
	cmovle	%rsi, %rax
	ret
	.cfi_endproc
.LFE39:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld"
	.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
	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
	leaq	-1597440(%rsp), %r11
	.cfi_def_cfa 11, 1597496
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2632, %rsp
	.cfi_def_cfa_offset 1600128
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 1600056(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rdx
	leaq	32(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %r14
	testq	%r14, %r14
	jle	.L4
	leaq	48(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r13, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbp
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %r14
	addq	$8, %r13
	cmpq	%rbp, %r14
	jg	.L5
	movq	$0, 800048(%rsp)
	cmpq	$1, %r14
	jle	.L11
	movq	40(%rsp), %rax
	leaq	800048(%rsp), %r11
	movq	%r14, 16(%rsp)
	movq	%rbx, %r13
	movq	%r12, 24(%rsp)
	leaq	800056(%rsp), %r8
	movl	%r14d, %r12d
	movl	$1, %ebp
	movq	%rax, 8(%rsp)
	movl	%eax, %r15d
	movq	$-16, %rax
	subq	%r11, %rax
	movq	%rax, %r14
	.p2align 4,,10
	.p2align 3
.L10:
	movq	8(%r13), %r9
	movq	%r9, %rax
	subq	0(%r13), %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovs	%rax, %rdx
	addq	-8(%r8), %rdx
	cmpq	$1, 8(%rsp)
	movq	%rdx, (%r8)
	jle	.L7
	cmpl	$1, %ebp
	je	.L7
	cmpl	%ebp, %r15d
	movl	%ebp, %r10d
	leaq	(%r14,%r8), %rcx
	movl	$2, %edi
	cmovle	%r15d, %r10d
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%r9, %rsi
	subq	(%rbx,%rcx), %rsi
	movq	%rsi, %rax
	negq	%rax
	cmovs	%rsi, %rax
	addq	(%r11,%rcx), %rax
	cmpq	%rax, %rdx
	cmovg	%rax, %rdx
	addl	$1, %edi
	subq	$8, %rcx
	movq	%rdx, (%r8)
	cmpl	%r10d, %edi
	jle	.L9
.L7:
	addl	$1, %ebp
	addq	$8, %r13
	addq	$8, %r8
	cmpl	%r12d, %ebp
	jne	.L10
	movq	16(%rsp), %r14
	movq	24(%rsp), %r12
.L11:
	movq	800040(%rsp,%r14,8), %rdx
	xorl	%eax, %eax
	movq	%r12, %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	1600056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$1600072, %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
.L4:
	.cfi_restore_state
	movq	$0, 800048(%rsp)
	leaq	.LC1(%rip), %r12
	jmp	.L11
.L21:
	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>
#include<stdbool.h>
#include<math.h>
#define rep(i,l,r) for(int i=l;i<r;i++)

typedef long long ll;

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

int main() {
    ll n, k, h[100000];
    scanf("%lld%lld", &n, &k);
    rep(i, 0, n) scanf("%lld", &h[i]);
    ll dp[100000];
    dp[0] = 0;
    rep(i, 1, n) {
        dp[i] = dp[i - 1] + labs(h[i] - h[i - 1]);
        rep(j, 2, k + 1) {
            if (i >= j)dp[i] = min(dp[i], dp[i - j] + labs(h[i] - h[i - j]));
        }
    }
    printf("%lld", dp[n - 1]);

    return 0;
}
2 100
10 9
 5 3
10 30 40 50 24
 3 4
40 10 20 70 80 10 20 70 80 60
 3 1
0 20 10
 3 4
40 10 17 70 80 10 20 70 80 60
 2 100
7 10
 10 4
40 9 20 70 80 10 20 70 80 60
 3 1
9 20 10
 2 100
17 9
 3 4
40 10 34 70 80 10 20 70 80 60

1 26 20 30 23 3 40 21 8 6
Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
#include<math.h>
#define rep(i,l,r) for(int i=l;i<r;i++)

typedef long long ll;

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

int main() {
    ll n, k, h[100000];
    scanf("%lld%lld", &n, &k);
    rep(i, 0, n) scanf("%lld", &h[i]);
    ll dp[100000];
    dp[0] = 0;
    rep(i, 1, n) {
        dp[i] = dp[i - 1] + labs(h[i] - h[i - 1]);
        rep(j, 2, k + 1) {
            if (i >= j)dp[i] = min(dp[i], dp[i - j] + labs(h[i] - h[i - j]));
        }
    }
    printf("%lld", dp[n - 1]);

    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	-16(%rbp), %rdx
	movq	-8(%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"
.LC1:
	.string	"%lld"
	.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
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2608, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600024(%rbp), %rdx
	leaq	-1600032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600044(%rbp)
	jmp	.L4
.L5:
	leaq	-1600016(%rbp), %rdx
	movl	-1600044(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1600044(%rbp)
.L4:
	movl	-1600044(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600032(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L5
	movq	$0, -800016(%rbp)
	movl	$1, -1600040(%rbp)
	jmp	.L6
.L10:
	movl	-1600040(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rcx
	movl	-1600040(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rdx
	movl	-1600040(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	movl	-1600040(%rbp), %eax
	cltq
	movq	%rdx, -800016(%rbp,%rax,8)
	movl	$2, -1600036(%rbp)
	jmp	.L7
.L9:
	movl	-1600040(%rbp), %eax
	cmpl	-1600036(%rbp), %eax
	jl	.L8
	movl	-1600040(%rbp), %eax
	subl	-1600036(%rbp), %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rcx
	movl	-1600040(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rdx
	movl	-1600040(%rbp), %eax
	subl	-1600036(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	movl	-1600040(%rbp), %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movl	-1600040(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rax, -800016(%rbp,%rdx,8)
.L8:
	addl	$1, -1600036(%rbp)
.L7:
	movl	-1600036(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600024(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L9
	addl	$1, -1600040(%rbp)
.L6:
	movl	-1600040(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600032(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L10
	movq	-1600032(%rbp), %rax
	subq	$1, %rax
	movq	-800016(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	-16(%rbp), %rdx
	movq	-8(%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"
.LC1:
	.string	"%lld"
	.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
	leaq	-1597440(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2608, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-1600024(%rbp), %rdx
	leaq	-1600032(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -1600044(%rbp)
	jmp	.L4
.L5:
	leaq	-1600016(%rbp), %rdx
	movl	-1600044(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -1600044(%rbp)
.L4:
	movl	-1600044(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600032(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L5
	movq	$0, -800016(%rbp)
	movl	$1, -1600040(%rbp)
	jmp	.L6
.L10:
	movl	-1600040(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rcx
	movl	-1600040(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rdx
	movl	-1600040(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	movl	-1600040(%rbp), %eax
	cltq
	movq	%rdx, -800016(%rbp,%rax,8)
	movl	$2, -1600036(%rbp)
	jmp	.L7
.L9:
	movl	-1600040(%rbp), %eax
	cmpl	-1600036(%rbp), %eax
	jl	.L8
	movl	-1600040(%rbp), %eax
	subl	-1600036(%rbp), %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rcx
	movl	-1600040(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rdx
	movl	-1600040(%rbp), %eax
	subl	-1600036(%rbp), %eax
	cltq
	movq	-1600016(%rbp,%rax,8), %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	movq	%rax, %rdx
	negq	%rdx
	cmovns	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	movl	-1600040(%rbp), %eax
	cltq
	movq	-800016(%rbp,%rax,8), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	min
	movl	-1600040(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rax, -800016(%rbp,%rdx,8)
.L8:
	addl	$1, -1600036(%rbp)
.L7:
	movl	-1600036(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600024(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L9
	addl	$1, -1600040(%rbp)
.L6:
	movl	-1600040(%rbp), %eax
	movslq	%eax, %rdx
	movq	-1600032(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L10
	movq	-1600032(%rbp), %rax
	subq	$1, %rax
	movq	-800016(%rbp,%rax,8), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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:
