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>
#define N 100000

int abs(int a);

int main(void){
	int i;
	int h[N];
	int min[N]={0};
	int n;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&h[i]);
	}
	min[0]=0;
	min[1]=abs(h[1]-h[0]);
	for(i=2;i<n;i++){
		/*最小コストをminに格納*/
		if((min[i-2] + abs(h[i-2] - h[i])) < (min[i-1] + abs(h[i-1] - h[i]))){
			min[i]=min[i-2]+abs(h[i-2]-h[i]);
		}else{
			min[i]=min[i-1]+abs(h[i-1]-h[i]);
		}
	}
	printf("%d",min[n-1]);
	return 0;
}

int abs(int a){
	int ret;
	if(a<0){
		ret=(-1)*a;
	}else{
		ret=a;
	}
	return ret;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1312, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400016(%rbp), %rax
	movl	$400000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-800024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800020(%rbp)
	jmp	.L2
.L3:
	leaq	-800016(%rbp), %rdx
	movl	-800020(%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
	addl	$1, -800020(%rbp)
.L2:
	movl	-800024(%rbp), %eax
	cmpl	%eax, -800020(%rbp)
	jl	.L3
	movl	$0, -400016(%rbp)
	movl	-800012(%rbp), %eax
	movl	-800016(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -400012(%rbp)
	movl	$2, -800020(%rbp)
	jmp	.L4
.L7:
	movl	-800020(%rbp), %eax
	subl	$2, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %ecx
	movl	-800020(%rbp), %eax
	subl	$2, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edx
	movl	-800020(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%eax, %ecx
	movl	-800020(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %esi
	movl	-800020(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edx
	movl	-800020(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edi
	movl	%edx, %eax
	subl	%edi, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%esi, %eax
	cmpl	%eax, %ecx
	jge	.L5
	movl	-800020(%rbp), %eax
	subl	$2, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %ecx
	movl	-800020(%rbp), %eax
	subl	$2, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edx
	movl	-800020(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	-800020(%rbp), %eax
	cltq
	movl	%edx, -400016(%rbp,%rax,4)
	jmp	.L6
.L5:
	movl	-800020(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %ecx
	movl	-800020(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edx
	movl	-800020(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	-800020(%rbp), %eax
	cltq
	movl	%edx, -400016(%rbp,%rax,4)
.L6:
	addl	$1, -800020(%rbp)
.L4:
	movl	-800024(%rbp), %eax
	cmpl	%eax, -800020(%rbp)
	jl	.L7
	movl	-800024(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	abs
	.type	abs, @function
abs:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	cmpl	$0, -20(%rbp)
	jns	.L11
	movl	-20(%rbp), %eax
	negl	%eax
	movl	%eax, -4(%rbp)
	jmp	.L12
.L11:
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
.L12:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	abs, .-abs
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	$1312, %rsp
	.cfi_def_cfa_offset 800080
	movl	$400000, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 800024(%rsp)
	xorl	%eax, %eax
	leaq	400016(%rsp), %r12
	movq	%r12, %rdi
	call	memset@PLT
	leaq	12(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L2
	leaq	16(%rsp), %rbx
	xorl	%r13d, %r13d
	movq	%rbx, %r14
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	addq	$4, %r14
	cmpl	%r13d, %r8d
	jg	.L3
	movl	20(%rsp), %edi
	movl	16(%rsp), %esi
	movl	%edi, %edx
	subl	%esi, %edx
	movl	%edx, %eax
	negl	%eax
	cmovs	%edx, %eax
	movl	%eax, 400020(%rsp)
	cmpl	$2, %r8d
	jle	.L8
	cmpl	$4, %r8d
	jle	.L10
	leal	-5(%r8), %edx
	movl	$4, %ecx
	shrl	%edx
	leal	3(%rdx), %r10d
	xorl	%edx, %edx
	addq	%r10, %r10
.L6:
	movl	%esi, %r11d
	movl	-8(%rbx,%rcx,4), %esi
	subl	%esi, %r11d
	movl	%r11d, %r9d
	negl	%r9d
	cmovs	%r11d, %r9d
	movl	%edi, %r11d
	subl	%esi, %r11d
	addl	%edx, %r9d
	movl	%r11d, %edx
	negl	%edx
	cmovs	%r11d, %edx
	movl	%edi, %r11d
	movl	-4(%rbx,%rcx,4), %edi
	addl	%eax, %edx
	cmpl	%edx, %r9d
	cmovle	%r9d, %edx
	subl	%edi, %r11d
	movl	%r11d, %r9d
	negl	%r9d
	movd	%edx, %xmm0
	cmovs	%r11d, %r9d
	movl	%esi, %r11d
	subl	%edi, %r11d
	addl	%eax, %r9d
	movl	%r11d, %eax
	negl	%eax
	cmovs	%r11d, %eax
	addl	%edx, %eax
	cmpl	%eax, %r9d
	cmovle	%r9d, %eax
	movl	%ecx, %r9d
	movd	%eax, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%r12,%rcx,4)
	addq	$2, %rcx
	cmpq	%r10, %rcx
	jne	.L6
.L5:
	movslq	%r9d, %rax
	salq	$2, %rax
	leaq	(%r12,%rax), %rdi
	leaq	(%rbx,%rax), %rsi
	.p2align 4,,10
	.p2align 3
.L7:
	movl	-4(%rsi), %edx
	subl	(%rsi), %edx
	movl	%edx, %eax
	movl	-8(%rsi), %ecx
	negl	%eax
	cmovs	%edx, %eax
	subl	(%rsi), %ecx
	addl	-4(%rdi), %eax
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	addl	-8(%rdi), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	addl	$1, %r9d
	addq	$4, %rdi
	addq	$4, %rsi
	movl	%eax, -4(%rdi)
	cmpl	%r9d, %r8d
	jg	.L7
.L8:
	subl	$1, %r8d
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	movslq	%r8d, %r8
	movl	400016(%rsp,%r8,4), %edx
	call	__printf_chk@PLT
	movq	800024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$800032, %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
.L2:
	.cfi_restore_state
	movl	20(%rsp), %eax
	subl	16(%rsp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, 400020(%rsp)
	jmp	.L8
.L10:
	movl	$2, %r9d
	jmp	.L5
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	abs
	.type	abs, @function
abs:
.LFB24:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	negl	%eax
	cmovs	%edi, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	abs, .-abs
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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	$1312, %rsp
	.cfi_def_cfa_offset 800080
	movl	$400000, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %rbp
	movq	%fs:40, %rax
	movq	%rax, 800024(%rsp)
	xorl	%eax, %eax
	leaq	400016(%rsp), %r12
	movq	%r12, %rdi
	call	memset@PLT
	leaq	12(%rsp), %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	testl	%r8d, %r8d
	jle	.L2
	leaq	16(%rsp), %rbx
	xorl	%r13d, %r13d
	movq	%rbx, %r14
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r14, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	addq	$4, %r14
	cmpl	%r13d, %r8d
	jg	.L3
	movl	20(%rsp), %edi
	movl	16(%rsp), %esi
	movl	%edi, %edx
	subl	%esi, %edx
	movl	%edx, %eax
	negl	%eax
	cmovs	%edx, %eax
	movl	%eax, 400020(%rsp)
	cmpl	$2, %r8d
	jle	.L8
	cmpl	$4, %r8d
	jle	.L10
	leal	-5(%r8), %edx
	movl	$4, %ecx
	shrl	%edx
	leal	3(%rdx), %r10d
	xorl	%edx, %edx
	addq	%r10, %r10
.L6:
	movl	%esi, %r11d
	movl	-8(%rbx,%rcx,4), %esi
	subl	%esi, %r11d
	movl	%r11d, %r9d
	negl	%r9d
	cmovs	%r11d, %r9d
	movl	%edi, %r11d
	subl	%esi, %r11d
	addl	%edx, %r9d
	movl	%r11d, %edx
	negl	%edx
	cmovs	%r11d, %edx
	movl	%edi, %r11d
	movl	-4(%rbx,%rcx,4), %edi
	addl	%eax, %edx
	cmpl	%edx, %r9d
	cmovle	%r9d, %edx
	subl	%edi, %r11d
	movl	%r11d, %r9d
	negl	%r9d
	movd	%edx, %xmm0
	cmovs	%r11d, %r9d
	movl	%esi, %r11d
	subl	%edi, %r11d
	addl	%eax, %r9d
	movl	%r11d, %eax
	negl	%eax
	cmovs	%r11d, %eax
	addl	%edx, %eax
	cmpl	%eax, %r9d
	cmovle	%r9d, %eax
	movl	%ecx, %r9d
	movd	%eax, %xmm1
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, -8(%r12,%rcx,4)
	addq	$2, %rcx
	cmpq	%r10, %rcx
	jne	.L6
.L5:
	movslq	%r9d, %rax
	salq	$2, %rax
	leaq	(%r12,%rax), %rdi
	leaq	(%rbx,%rax), %rsi
	.p2align 4,,10
	.p2align 3
.L7:
	movl	-4(%rsi), %edx
	subl	(%rsi), %edx
	movl	%edx, %eax
	movl	-8(%rsi), %ecx
	negl	%eax
	cmovs	%edx, %eax
	subl	(%rsi), %ecx
	addl	-4(%rdi), %eax
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	addl	-8(%rdi), %edx
	cmpl	%edx, %eax
	cmovg	%edx, %eax
	addl	$1, %r9d
	addq	$4, %rdi
	addq	$4, %rsi
	movl	%eax, -4(%rdi)
	cmpl	%r9d, %r8d
	jg	.L7
.L8:
	subl	$1, %r8d
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movl	$1, %edi
	movslq	%r8d, %r8
	movl	400016(%rsp,%r8,4), %edx
	call	__printf_chk@PLT
	movq	800024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$800032, %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
.L2:
	.cfi_restore_state
	movl	20(%rsp), %eax
	subl	16(%rsp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, 400020(%rsp)
	jmp	.L8
.L10:
	movl	$2, %r9d
	jmp	.L5
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	abs
	.type	abs, @function
abs:
.LFB24:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	negl	%eax
	cmovs	%edi, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	abs, .-abs
	.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>
#define N 100000

int abs(int a);

int main(void){
	int i;
	int h[N];
	int min[N]={0};
	int n;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&h[i]);
	}
	min[0]=0;
	min[1]=abs(h[1]-h[0]);
	for(i=2;i<n;i++){
		/*最小コストをminに格納*/
		if((min[i-2] + abs(h[i-2] - h[i])) < (min[i-1] + abs(h[i-1] - h[i]))){
			min[i]=min[i-2]+abs(h[i-2]-h[i]);
		}else{
			min[i]=min[i-1]+abs(h[i-1]-h[i]);
		}
	}
	printf("%d",min[n-1]);
	return 0;
}

int abs(int a){
	int ret;
	if(a<0){
		ret=(-1)*a;
	}else{
		ret=a;
	}
	return ret;
}
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>
#define N 100000

int abs(int a);

int main(void){
	int i;
	int h[N];
	int min[N]={0};
	int n;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d",&h[i]);
	}
	min[0]=0;
	min[1]=abs(h[1]-h[0]);
	for(i=2;i<n;i++){
		/*最小コストをminに格納*/
		if((min[i-2] + abs(h[i-2] - h[i])) < (min[i-1] + abs(h[i-1] - h[i]))){
			min[i]=min[i-2]+abs(h[i-2]-h[i]);
		}else{
			min[i]=min[i-1]+abs(h[i-1]-h[i]);
		}
	}
	printf("%d",min[n-1]);
	return 0;
}

int abs(int a){
	int ret;
	if(a<0){
		ret=(-1)*a;
	}else{
		ret=a;
	}
	return ret;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1312, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400016(%rbp), %rax
	movl	$400000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-800024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800020(%rbp)
	jmp	.L2
.L3:
	leaq	-800016(%rbp), %rdx
	movl	-800020(%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
	addl	$1, -800020(%rbp)
.L2:
	movl	-800024(%rbp), %eax
	cmpl	%eax, -800020(%rbp)
	jl	.L3
	movl	$0, -400016(%rbp)
	movl	-800012(%rbp), %eax
	movl	-800016(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -400012(%rbp)
	movl	$2, -800020(%rbp)
	jmp	.L4
.L7:
	movl	-800020(%rbp), %eax
	subl	$2, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %ecx
	movl	-800020(%rbp), %eax
	subl	$2, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edx
	movl	-800020(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%eax, %ecx
	movl	-800020(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %esi
	movl	-800020(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edx
	movl	-800020(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edi
	movl	%edx, %eax
	subl	%edi, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%esi, %eax
	cmpl	%eax, %ecx
	jge	.L5
	movl	-800020(%rbp), %eax
	subl	$2, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %ecx
	movl	-800020(%rbp), %eax
	subl	$2, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edx
	movl	-800020(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	-800020(%rbp), %eax
	cltq
	movl	%edx, -400016(%rbp,%rax,4)
	jmp	.L6
.L5:
	movl	-800020(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %ecx
	movl	-800020(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edx
	movl	-800020(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	-800020(%rbp), %eax
	cltq
	movl	%edx, -400016(%rbp,%rax,4)
.L6:
	addl	$1, -800020(%rbp)
.L4:
	movl	-800024(%rbp), %eax
	cmpl	%eax, -800020(%rbp)
	jl	.L7
	movl	-800024(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	abs
	.type	abs, @function
abs:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	cmpl	$0, -20(%rbp)
	jns	.L11
	movl	-20(%rbp), %eax
	negl	%eax
	movl	%eax, -4(%rbp)
	jmp	.L12
.L11:
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
.L12:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	abs, .-abs
	.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
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-798720(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1312, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400016(%rbp), %rax
	movl	$400000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-800024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -800020(%rbp)
	jmp	.L2
.L3:
	leaq	-800016(%rbp), %rdx
	movl	-800020(%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
	addl	$1, -800020(%rbp)
.L2:
	movl	-800024(%rbp), %eax
	cmpl	%eax, -800020(%rbp)
	jl	.L3
	movl	$0, -400016(%rbp)
	movl	-800012(%rbp), %eax
	movl	-800016(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -400012(%rbp)
	movl	$2, -800020(%rbp)
	jmp	.L4
.L7:
	movl	-800020(%rbp), %eax
	subl	$2, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %ecx
	movl	-800020(%rbp), %eax
	subl	$2, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edx
	movl	-800020(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%eax, %ecx
	movl	-800020(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %esi
	movl	-800020(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edx
	movl	-800020(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edi
	movl	%edx, %eax
	subl	%edi, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	addl	%esi, %eax
	cmpl	%eax, %ecx
	jge	.L5
	movl	-800020(%rbp), %eax
	subl	$2, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %ecx
	movl	-800020(%rbp), %eax
	subl	$2, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edx
	movl	-800020(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	-800020(%rbp), %eax
	cltq
	movl	%edx, -400016(%rbp,%rax,4)
	jmp	.L6
.L5:
	movl	-800020(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %ecx
	movl	-800020(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-800016(%rbp,%rax,4), %edx
	movl	-800020(%rbp), %eax
	cltq
	movl	-800016(%rbp,%rax,4), %esi
	movl	%edx, %eax
	subl	%esi, %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	leal	(%rcx,%rax), %edx
	movl	-800020(%rbp), %eax
	cltq
	movl	%edx, -400016(%rbp,%rax,4)
.L6:
	addl	$1, -800020(%rbp)
.L4:
	movl	-800024(%rbp), %eax
	cmpl	%eax, -800020(%rbp)
	jl	.L7
	movl	-800024(%rbp), %eax
	subl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	abs
	.type	abs, @function
abs:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	cmpl	$0, -20(%rbp)
	jns	.L11
	movl	-20(%rbp), %eax
	negl	%eax
	movl	%eax, -4(%rbp)
	jmp	.L12
.L11:
	movl	-20(%rbp), %eax
	movl	%eax, -4(%rbp)
.L12:
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	abs, .-abs
	.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:
