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<math.h>
int min(int a,int b)
{
    if(a<b)
    {
        return a;
    }else{
        return b;
    }
}
int main()
{
    int n;
    scanf("%d",&n);
    int arr[n], sum=0;
    for(int i=0;i<n;i++)
    {
        scanf("%d",&arr[i]);
    }
    int dp[n];
    dp[0]=0;
    dp[1]=abs(arr[0]-arr[1]);
    for(int i=2;i<n;i++)
    {
        dp[i]=min(dp[i-2]+abs(arr[i-2]-arr[i]),dp[i-1]+abs(arr[i-1]-arr[i]));
    }

        printf("%d ",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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d "
	.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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-104(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -128(%rbp)
	movq	$0, -120(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -92(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L8
.L9:
	movl	-100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -100(%rbp)
.L8:
	movl	-104(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L9
	movl	-104(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L10:
	cmpq	%rdx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L12
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L12:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movl	$0, (%rax)
	movq	-80(%rbp), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movq	-64(%rbp), %rax
	movl	%edx, 4(%rax)
	movl	$2, -96(%rbp)
	jmp	.L13
.L14:
	movl	-96(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movl	-96(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-80(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-80(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rsi,%rax), %edx
	movl	-96(%rbp), %eax
	leal	-2(%rax), %ecx
	movq	-64(%rbp), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edi
	movl	-96(%rbp), %eax
	leal	-2(%rax), %ecx
	movq	-80(%rbp), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	-80(%rbp), %rax
	movl	-96(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%esi, %eax
	subl	%ecx, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	addl	%edi, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movq	-64(%rbp), %rdx
	movl	-96(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	%eax, (%rdx,%rcx,4)
	addl	$1, -96(%rbp)
.L13:
	movl	-104(%rbp), %eax
	cmpl	%eax, -96(%rbp)
	jl	.L14
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	leaq	.LC0(%rip), %r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rsi
	movq	%rsp, %rdi
	leaq	15(,%rsi,4), %rdx
	movq	%rsi, %rax
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L5
.L36:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L36
.L5:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L37
.L6:
	leaq	3(%rsp), %rbx
	movq	%rbx, %r12
	andq	$-4, %rbx
	shrq	$2, %r12
	testl	%eax, %eax
	jle	.L7
	movq	%rbx, %r15
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addq	$4, %r15
	cmpl	%r13d, %eax
	jg	.L8
	movslq	%eax, %rdx
	movq	%rsp, %rsi
	leaq	15(,%rdx,4), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	andq	$-16, %rcx
	subq	%rdx, %rsi
.L9:
	cmpq	%rsi, %rsp
	je	.L10
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L9
.L10:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L38
.L11:
	movl	0(,%r12,4), %r11d
	movl	4(,%r12,4), %r10d
	leaq	3(%rsp), %rdx
	movq	%rdx, %rdi
	andq	$-4, %rdx
	movl	%r11d, %esi
	shrq	$2, %rdi
	movq	%rdx, -80(%rbp)
	movl	$0, 0(,%rdi,4)
	subl	%r10d, %esi
	movl	%esi, %ecx
	negl	%ecx
	cmovs	%esi, %ecx
	movl	%ecx, 4(,%rdi,4)
	cmpl	$2, %eax
	jle	.L16
	leal	-5(%rax), %esi
	movl	%esi, -68(%rbp)
	cmpl	$8, %eax
	jle	.L21
	movl	%eax, -72(%rbp)
	leaq	8(%rbx), %r12
	movl	$8, %r13d
	xorl	%r9d, %r9d
.L14:
	movl	(%r12), %edi
	movl	%r10d, %eax
	subl	%edi, %eax
	movl	%eax, %esi
	negl	%esi
	cmovs	%eax, %esi
	subl	%edi, %r11d
	movl	%r11d, %eax
	addl	%ecx, %esi
	negl	%eax
	cmovs	%r11d, %eax
	movl	16(%r12), %r11d
	addl	%r9d, %eax
	movl	4(%r12), %r9d
	movl	%r11d, %r15d
	cmpl	%eax, %esi
	cmovg	%eax, %esi
	movl	%edi, %eax
	movl	%r9d, %r8d
	subl	%r9d, %eax
	movl	%eax, %r14d
	movd	%esi, %xmm0
	negl	%r14d
	cmovs	%eax, %r14d
	subl	%r9d, %r10d
	movl	%r10d, %eax
	addl	%esi, %r14d
	negl	%eax
	cmovs	%r10d, %eax
	addl	%ecx, %eax
	movl	8(%r12), %ecx
	cmpl	%eax, %r14d
	cmovg	%eax, %r14d
	subl	%ecx, %r8d
	movl	%ecx, %r10d
	movl	%r8d, %eax
	negl	%eax
	movd	%r14d, %xmm1
	cmovs	%r8d, %eax
	subl	%ecx, %edi
	punpckldq	%xmm1, %xmm0
	movl	%edi, %r8d
	movq	%xmm0, -24(%rdx,%r13,4)
	addl	%r14d, %eax
	negl	%r8d
	cmovns	%r8d, %edi
	addl	%esi, %edi
	movl	%r13d, %esi
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	12(%r12), %edi
	subl	%edi, %r10d
	movd	%eax, %xmm0
	movl	%r10d, %r8d
	negl	%r8d
	cmovs	%r10d, %r8d
	subl	%edi, %r9d
	movl	%r9d, %r10d
	addl	%eax, %r8d
	negl	%r10d
	cmovns	%r10d, %r9d
	movl	%edi, %r10d
	addl	%r14d, %r9d
	cmpl	%r9d, %r8d
	cmovg	%r9d, %r8d
	subl	%r11d, %r10d
	movl	%r10d, %r9d
	negl	%r9d
	movd	%r8d, %xmm2
	cmovs	%r10d, %r9d
	subl	%r11d, %ecx
	punpckldq	%xmm2, %xmm0
	movl	%ecx, %r10d
	movq	%xmm0, -16(%rdx,%r13,4)
	addl	%r8d, %r9d
	negl	%r10d
	cmovns	%r10d, %ecx
	movl	20(%r12), %r10d
	addl	%eax, %ecx
	cmpl	%ecx, %r9d
	cmovg	%ecx, %r9d
	subl	%r10d, %r15d
	movl	%r15d, %ecx
	negl	%ecx
	movd	%r9d, %xmm0
	cmovs	%r15d, %ecx
	subl	%r10d, %edi
	movl	%edi, %r15d
	addl	%r9d, %ecx
	negl	%edi
	cmovs	%r15d, %edi
	addl	%r8d, %edi
	cmpl	%edi, %ecx
	cmovg	%edi, %ecx
	addq	$24, %r12
	movd	%ecx, %xmm3
	punpckldq	%xmm3, %xmm0
	movq	%xmm0, -8(%rdx,%r13,4)
	addq	$6, %r13
	leal	-5(%r13), %eax
	cmpl	%eax, -68(%rbp)
	jg	.L14
	movl	-72(%rbp), %eax
.L13:
	movslq	%esi, %rcx
	.p2align 4,,10
	.p2align 3
.L15:
	movl	-8(%rbx,%rcx,4), %edi
	subl	(%rbx,%rcx,4), %edi
	movl	%edi, %esi
	movl	-4(%rbx,%rcx,4), %r8d
	negl	%esi
	cmovs	%edi, %esi
	subl	(%rbx,%rcx,4), %r8d
	addl	-8(%rdx,%rcx,4), %esi
	movl	%r8d, %edi
	negl	%edi
	cmovs	%r8d, %edi
	addl	-4(%rdx,%rcx,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	movl	%esi, (%rdx,%rcx,4)
	addq	$1, %rcx
	cmpl	%ecx, %eax
	jg	.L15
.L16:
	subl	$1, %eax
	movq	-80(%rbp), %rbx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	cltq
	movl	(%rbx,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L39
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L37:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L6
.L38:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L11
.L7:
	leaq	15(,%rsi,4), %rdx
	movq	%rsp, %rsi
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	andq	$-16, %rcx
	subq	%rdx, %rsi
.L17:
	cmpq	%rsi, %rsp
	je	.L18
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L17
.L21:
	movl	$2, %esi
	jmp	.L13
.L18:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	je	.L19
	orq	$0, -8(%rsp,%rcx)
.L19:
	leaq	3(%rsp), %rdx
	movq	%rdx, %rsi
	andq	$-4, %rdx
	movq	%rdx, -80(%rbp)
	movl	0(,%r12,4), %edx
	shrq	$2, %rsi
	subl	4(,%r12,4), %edx
	movl	$0, 0(,%rsi,4)
	movl	%edx, %ecx
	negl	%ecx
	cmovns	%ecx, %edx
	movl	%edx, 4(,%rsi,4)
	jmp	.L16
.L39:
	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
	cmpl	%esi, %edi
	movl	%esi, %eax
	cmovle	%edi, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	min, .-min
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d "
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	leaq	.LC0(%rip), %r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	movq	%r14, %rdi
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rsi
	movq	%rsp, %rdi
	leaq	15(,%rsi,4), %rdx
	movq	%rsi, %rax
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rdi
	andq	$-16, %rcx
	cmpq	%rdi, %rsp
	je	.L5
.L36:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rdi, %rsp
	jne	.L36
.L5:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L37
.L6:
	leaq	3(%rsp), %rbx
	movq	%rbx, %r12
	andq	$-4, %rbx
	shrq	$2, %r12
	testl	%eax, %eax
	jle	.L7
	movq	%rbx, %r15
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addq	$4, %r15
	cmpl	%r13d, %eax
	jg	.L8
	movslq	%eax, %rdx
	movq	%rsp, %rsi
	leaq	15(,%rdx,4), %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	andq	$-16, %rcx
	subq	%rdx, %rsi
.L9:
	cmpq	%rsi, %rsp
	je	.L10
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L9
.L10:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L38
.L11:
	movl	0(,%r12,4), %r11d
	movl	4(,%r12,4), %r10d
	leaq	3(%rsp), %rdx
	movq	%rdx, %rdi
	andq	$-4, %rdx
	movl	%r11d, %esi
	shrq	$2, %rdi
	movq	%rdx, -80(%rbp)
	movl	$0, 0(,%rdi,4)
	subl	%r10d, %esi
	movl	%esi, %ecx
	negl	%ecx
	cmovs	%esi, %ecx
	movl	%ecx, 4(,%rdi,4)
	cmpl	$2, %eax
	jle	.L16
	leal	-5(%rax), %esi
	movl	%esi, -68(%rbp)
	cmpl	$8, %eax
	jle	.L21
	movl	%eax, -72(%rbp)
	leaq	8(%rbx), %r12
	movl	$8, %r13d
	xorl	%r9d, %r9d
.L14:
	movl	(%r12), %edi
	movl	%r10d, %eax
	subl	%edi, %eax
	movl	%eax, %esi
	negl	%esi
	cmovs	%eax, %esi
	subl	%edi, %r11d
	movl	%r11d, %eax
	addl	%ecx, %esi
	negl	%eax
	cmovs	%r11d, %eax
	movl	16(%r12), %r11d
	addl	%r9d, %eax
	movl	4(%r12), %r9d
	movl	%r11d, %r15d
	cmpl	%eax, %esi
	cmovg	%eax, %esi
	movl	%edi, %eax
	movl	%r9d, %r8d
	subl	%r9d, %eax
	movl	%eax, %r14d
	movd	%esi, %xmm0
	negl	%r14d
	cmovs	%eax, %r14d
	subl	%r9d, %r10d
	movl	%r10d, %eax
	addl	%esi, %r14d
	negl	%eax
	cmovs	%r10d, %eax
	addl	%ecx, %eax
	movl	8(%r12), %ecx
	cmpl	%eax, %r14d
	cmovg	%eax, %r14d
	subl	%ecx, %r8d
	movl	%ecx, %r10d
	movl	%r8d, %eax
	negl	%eax
	movd	%r14d, %xmm1
	cmovs	%r8d, %eax
	subl	%ecx, %edi
	punpckldq	%xmm1, %xmm0
	movl	%edi, %r8d
	movq	%xmm0, -24(%rdx,%r13,4)
	addl	%r14d, %eax
	negl	%r8d
	cmovns	%r8d, %edi
	addl	%esi, %edi
	movl	%r13d, %esi
	cmpl	%edi, %eax
	cmovg	%edi, %eax
	movl	12(%r12), %edi
	subl	%edi, %r10d
	movd	%eax, %xmm0
	movl	%r10d, %r8d
	negl	%r8d
	cmovs	%r10d, %r8d
	subl	%edi, %r9d
	movl	%r9d, %r10d
	addl	%eax, %r8d
	negl	%r10d
	cmovns	%r10d, %r9d
	movl	%edi, %r10d
	addl	%r14d, %r9d
	cmpl	%r9d, %r8d
	cmovg	%r9d, %r8d
	subl	%r11d, %r10d
	movl	%r10d, %r9d
	negl	%r9d
	movd	%r8d, %xmm2
	cmovs	%r10d, %r9d
	subl	%r11d, %ecx
	punpckldq	%xmm2, %xmm0
	movl	%ecx, %r10d
	movq	%xmm0, -16(%rdx,%r13,4)
	addl	%r8d, %r9d
	negl	%r10d
	cmovns	%r10d, %ecx
	movl	20(%r12), %r10d
	addl	%eax, %ecx
	cmpl	%ecx, %r9d
	cmovg	%ecx, %r9d
	subl	%r10d, %r15d
	movl	%r15d, %ecx
	negl	%ecx
	movd	%r9d, %xmm0
	cmovs	%r15d, %ecx
	subl	%r10d, %edi
	movl	%edi, %r15d
	addl	%r9d, %ecx
	negl	%edi
	cmovs	%r15d, %edi
	addl	%r8d, %edi
	cmpl	%edi, %ecx
	cmovg	%edi, %ecx
	addq	$24, %r12
	movd	%ecx, %xmm3
	punpckldq	%xmm3, %xmm0
	movq	%xmm0, -8(%rdx,%r13,4)
	addq	$6, %r13
	leal	-5(%r13), %eax
	cmpl	%eax, -68(%rbp)
	jg	.L14
	movl	-72(%rbp), %eax
.L13:
	movslq	%esi, %rcx
	.p2align 4,,10
	.p2align 3
.L15:
	movl	-8(%rbx,%rcx,4), %edi
	subl	(%rbx,%rcx,4), %edi
	movl	%edi, %esi
	movl	-4(%rbx,%rcx,4), %r8d
	negl	%esi
	cmovs	%edi, %esi
	subl	(%rbx,%rcx,4), %r8d
	addl	-8(%rdx,%rcx,4), %esi
	movl	%r8d, %edi
	negl	%edi
	cmovs	%r8d, %edi
	addl	-4(%rdx,%rcx,4), %edi
	cmpl	%edi, %esi
	cmovg	%edi, %esi
	movl	%esi, (%rdx,%rcx,4)
	addq	$1, %rcx
	cmpl	%ecx, %eax
	jg	.L15
.L16:
	subl	$1, %eax
	movq	-80(%rbp), %rbx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	cltq
	movl	(%rbx,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L39
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L37:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L6
.L38:
	orq	$0, -8(%rsp,%rcx)
	jmp	.L11
.L7:
	leaq	15(,%rsi,4), %rdx
	movq	%rsp, %rsi
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	andq	$-16, %rcx
	subq	%rdx, %rsi
.L17:
	cmpq	%rsi, %rsp
	je	.L18
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L17
.L21:
	movl	$2, %esi
	jmp	.L13
.L18:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	je	.L19
	orq	$0, -8(%rsp,%rcx)
.L19:
	leaq	3(%rsp), %rdx
	movq	%rdx, %rsi
	andq	$-4, %rdx
	movq	%rdx, -80(%rbp)
	movl	0(,%r12,4), %edx
	shrq	$2, %rsi
	subl	4(,%r12,4), %edx
	movl	$0, 0(,%rsi,4)
	movl	%edx, %ecx
	negl	%ecx
	cmovns	%ecx, %edx
	movl	%edx, 4(,%rsi,4)
	jmp	.L16
.L39:
	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<math.h>
int min(int a,int b)
{
    if(a<b)
    {
        return a;
    }else{
        return b;
    }
}
int main()
{
    int n;
    scanf("%d",&n);
    int arr[n], sum=0;
    for(int i=0;i<n;i++)
    {
        scanf("%d",&arr[i]);
    }
    int dp[n];
    dp[0]=0;
    dp[1]=abs(arr[0]-arr[1]);
    for(int i=2;i<n;i++)
    {
        dp[i]=min(dp[i-2]+abs(arr[i-2]-arr[i]),dp[i-1]+abs(arr[i-1]-arr[i]));
    }

        printf("%d ",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<stdio.h>
#include<stdlib.h>
#include<math.h>
int min(int a,int b)
{
    if(a<b)
    {
        return a;
    }else{
        return b;
    }
}
int main()
{
    int n;
    scanf("%d",&n);
    int arr[n], sum=0;
    for(int i=0;i<n;i++)
    {
        scanf("%d",&arr[i]);
    }
    int dp[n];
    dp[0]=0;
    dp[1]=abs(arr[0]-arr[1]);
    for(int i=2;i<n;i++)
    {
        dp[i]=min(dp[i-2]+abs(arr[i-2]-arr[i]),dp[i-1]+abs(arr[i-1]-arr[i]));
    }

        printf("%d ",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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d "
	.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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-104(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -128(%rbp)
	movq	$0, -120(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -92(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L8
.L9:
	movl	-100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -100(%rbp)
.L8:
	movl	-104(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L9
	movl	-104(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L10:
	cmpq	%rdx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L12
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L12:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movl	$0, (%rax)
	movq	-80(%rbp), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movq	-64(%rbp), %rax
	movl	%edx, 4(%rax)
	movl	$2, -96(%rbp)
	jmp	.L13
.L14:
	movl	-96(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movl	-96(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-80(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-80(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rsi,%rax), %edx
	movl	-96(%rbp), %eax
	leal	-2(%rax), %ecx
	movq	-64(%rbp), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edi
	movl	-96(%rbp), %eax
	leal	-2(%rax), %ecx
	movq	-80(%rbp), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	-80(%rbp), %rax
	movl	-96(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%esi, %eax
	subl	%ecx, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	addl	%edi, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movq	-64(%rbp), %rdx
	movl	-96(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	%eax, (%rdx,%rcx,4)
	addl	$1, -96(%rbp)
.L13:
	movl	-104(%rbp), %eax
	cmpl	%eax, -96(%rbp)
	jl	.L14
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jge	.L2
	movl	-4(%rbp), %eax
	jmp	.L3
.L2:
	movl	-8(%rbp), %eax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	min, .-min
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d "
	.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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	leaq	-104(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-104(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -128(%rbp)
	movq	$0, -120(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -144(%rbp)
	movq	$0, -136(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -92(%rbp)
	movl	$0, -100(%rbp)
	jmp	.L8
.L9:
	movl	-100(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -100(%rbp)
.L8:
	movl	-104(%rbp), %eax
	cmpl	%eax, -100(%rbp)
	jl	.L9
	movl	-104(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L10:
	cmpq	%rdx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L12
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L12:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movq	-64(%rbp), %rax
	movl	$0, (%rax)
	movq	-80(%rbp), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovs	%eax, %edx
	movq	-64(%rbp), %rax
	movl	%edx, 4(%rax)
	movl	$2, -96(%rbp)
	jmp	.L13
.L14:
	movl	-96(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movl	-96(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-80(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-80(%rbp), %rax
	movl	-96(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edx
	movl	%ecx, %eax
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rsi,%rax), %edx
	movl	-96(%rbp), %eax
	leal	-2(%rax), %ecx
	movq	-64(%rbp), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edi
	movl	-96(%rbp), %eax
	leal	-2(%rax), %ecx
	movq	-80(%rbp), %rax
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	-80(%rbp), %rax
	movl	-96(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%esi, %eax
	subl	%ecx, %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovns	%ecx, %eax
	addl	%edi, %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	min
	movq	-64(%rbp), %rdx
	movl	-96(%rbp), %ecx
	movslq	%ecx, %rcx
	movl	%eax, (%rdx,%rcx,4)
	addl	$1, -96(%rbp)
.L13:
	movl	-104(%rbp), %eax
	cmpl	%eax, -96(%rbp)
	jl	.L14
	movl	-104(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-64(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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:
