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 rep(i,l,r)for(int i=(l);i<(r);i++)
#define min(p,q)((p)<(q)?(p):(q))

double dp[150][220];//√2倍まで
int main(){
	int n;
	scanf("%d",&n);
	rep(j,0,220)dp[0][j]=1e9;
	dp[0][1]=0;
	rep(i,0,n){
		int t;
		scanf("%d",&t);
		rep(j,1,220){
			double temp=1e9;
			rep(k,1,220){
				if(j<=t^k<=t){
					int a=abs(t-j);
					int b=abs(t-k);
					temp=min(temp,dp[i][k]+(a*a+b*b)/2.0/(a+b));
				}else temp=min(temp,dp[i][k]+abs(t+t-j-k)/2.0);
			}
			dp[i+1][j]=temp;
		}
	}
	double ans=1e9;
	rep(j,1,220)ans=min(ans,dp[n][j]);
	printf("%.9f\n",ans);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 264000
dp:
	.zero	264000
	.section	.rodata
.LC0:
	.string	"%d"
.LC4:
	.string	"%.9f\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-60(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -52(%rbp)
	jmp	.L2
.L3:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -52(%rbp)
.L2:
	cmpl	$219, -52(%rbp)
	jle	.L3
	pxor	%xmm0, %xmm0
	movsd	%xmm0, 8+dp(%rip)
	movl	$0, -48(%rbp)
	jmp	.L4
.L17:
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -44(%rbp)
	jmp	.L5
.L16:
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	$1, -40(%rbp)
	jmp	.L6
.L15:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	setle	%dl
	movl	-56(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	setle	%al
	xorl	%edx, %eax
	testb	%al, %al
	je	.L7
	movl	-56(%rbp), %eax
	subl	-44(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -32(%rbp)
	movl	-56(%rbp), %eax
	subl	-40(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -28(%rbp)
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	imulq	$220, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-32(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-28(%rbp), %eax
	imull	%eax, %eax
	addl	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC3(%rip), %xmm2
	divsd	%xmm2, %xmm0
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	divsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	comisd	-24(%rbp), %xmm0
	jbe	.L28
	movsd	-24(%rbp), %xmm0
	jmp	.L10
.L28:
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	imulq	$220, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-32(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-28(%rbp), %eax
	imull	%eax, %eax
	addl	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC3(%rip), %xmm2
	divsd	%xmm2, %xmm0
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	divsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
.L10:
	movsd	%xmm0, -24(%rbp)
	jmp	.L11
.L7:
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	imulq	$220, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-56(%rbp), %eax
	addl	%eax, %eax
	subl	-44(%rbp), %eax
	subl	-40(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC3(%rip), %xmm2
	divsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	comisd	-24(%rbp), %xmm0
	jbe	.L29
	movsd	-24(%rbp), %xmm0
	jmp	.L14
.L29:
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	imulq	$220, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-56(%rbp), %eax
	addl	%eax, %eax
	subl	-44(%rbp), %eax
	subl	-40(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC3(%rip), %xmm2
	divsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
.L14:
	movsd	%xmm0, -24(%rbp)
.L11:
	addl	$1, -40(%rbp)
.L6:
	cmpl	$219, -40(%rbp)
	jle	.L15
	movl	-48(%rbp), %eax
	leal	1(%rax), %edx
	movl	-44(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$220, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	-24(%rbp), %xmm0
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -44(%rbp)
.L5:
	cmpl	$219, -44(%rbp)
	jle	.L16
	addl	$1, -48(%rbp)
.L4:
	movl	-60(%rbp), %eax
	cmpl	%eax, -48(%rbp)
	jl	.L17
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -16(%rbp)
	movl	$1, -36(%rbp)
	jmp	.L18
.L22:
	movl	-60(%rbp), %eax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	imulq	$220, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L30
	movsd	-16(%rbp), %xmm0
	jmp	.L21
.L30:
	movl	-60(%rbp), %eax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	imulq	$220, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
.L21:
	movsd	%xmm0, -16(%rbp)
	addl	$1, -36(%rbp)
.L18:
	cmpl	$219, -36(%rbp)
	jle	.L22
	movq	-16(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1104006501
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.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
.LC1:
	.string	"%d"
.LC5:
	.string	"%.9f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.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
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	dp(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movapd	.LC2(%rip), %xmm0
	movq	%rbx, %rax
.L2:
	movaps	%xmm0, (%rax)
	leaq	1760+dp(%rip), %rdi
	addq	$16, %rax
	cmpq	%rdi, %rax
	jne	.L2
	movslq	16(%rsp), %rax
	movsd	.LC0(%rip), %xmm0
	movq	$0x000000000, 8+dp(%rip)
	testl	%eax, %eax
	jle	.L3
	leaq	20(%rsp), %rax
	movsd	.LC0(%rip), %xmm0
	xorl	%r12d, %r12d
	movq	%rax, (%rsp)
.L9:
	movq	(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	movsd	%xmm0, 8(%rsp)
	addl	$1, %r12d
	movl	$1, %ebp
	leaq	1760(%rbx), %r14
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %esi
	movq	.LC4(%rip), %rax
	movsd	8(%rsp), %xmm0
	leal	-1(%rsi), %r11d
	leal	-220(%rsi), %r15d
	movq	%rax, %xmm5
.L4:
	cmpl	%ebp, %esi
	movl	%r11d, %r8d
	movl	%r11d, %r9d
	movl	$1, %eax
	setge	%dil
	leal	(%rsi,%r11), %r10d
	movapd	%xmm0, %xmm2
	negl	%r8d
	cmovs	%r11d, %r8d
	imull	%r11d, %r9d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%esi, %ecx
	pxor	%xmm1, %xmm1
	pxor	%xmm4, %xmm4
	subl	%eax, %ecx
	movl	%ecx, %edx
	imull	%ecx, %edx
	addl	%r9d, %edx
	cvtsi2sdl	%edx, %xmm1
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	addq	$1, %rax
	mulsd	%xmm5, %xmm1
	addl	%r8d, %edx
	cvtsi2sdl	%edx, %xmm4
	divsd	%xmm4, %xmm1
	addsd	%xmm3, %xmm1
	minsd	%xmm1, %xmm2
	cmpq	$220, %rax
	je	.L23
.L7:
	cmpl	%eax, %esi
	movsd	(%rbx,%rax,8), %xmm3
	setge	%dl
	cmpb	%dl, %dil
	jne	.L24
	movl	%r10d, %edx
	pxor	%xmm1, %xmm1
	subl	%eax, %edx
	movl	%edx, %ecx
	negl	%ecx
	cmovns	%ecx, %edx
	addq	$1, %rax
	cvtsi2sdl	%edx, %xmm1
	mulsd	%xmm5, %xmm1
	addsd	%xmm3, %xmm1
	minsd	%xmm1, %xmm2
	cmpq	$220, %rax
	jne	.L7
.L23:
	subl	$1, %r11d
	movsd	%xmm2, (%r14,%rbp,8)
	addq	$1, %rbp
	cmpl	%r15d, %r11d
	jne	.L4
	movslq	16(%rsp), %rax
	cmpl	%r12d, %eax
	jle	.L3
	movq	%r14, %rbx
	jmp	.L9
.L3:
	imulq	$1760, %rax, %rax
	leaq	dp(%rip), %rdi
	leaq	8(%rdi,%rax), %rdx
	addq	$1760, %rdi
	addq	%rdi, %rax
.L12:
	minsd	(%rdx), %xmm0
	addq	$8, %rdx
	cmpq	%rdx, %rax
	jne	.L12
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$40, %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
.L25:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 264000
dp:
	.zero	264000
	.set	.LC0,.LC2
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	1104006501
	.long	0
	.long	1104006501
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC4:
	.long	0
	.long	1071644672
	.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
.LC1:
	.string	"%d"
.LC5:
	.string	"%.9f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.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
	leaq	.LC1(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	dp(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movapd	.LC2(%rip), %xmm0
	movq	%rbx, %rax
.L2:
	movaps	%xmm0, (%rax)
	leaq	1760+dp(%rip), %rdi
	addq	$16, %rax
	cmpq	%rdi, %rax
	jne	.L2
	movslq	16(%rsp), %rax
	movsd	.LC0(%rip), %xmm0
	movq	$0x000000000, 8+dp(%rip)
	testl	%eax, %eax
	jle	.L3
	leaq	20(%rsp), %rax
	movsd	.LC0(%rip), %xmm0
	xorl	%r12d, %r12d
	movq	%rax, (%rsp)
.L9:
	movq	(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	movsd	%xmm0, 8(%rsp)
	addl	$1, %r12d
	movl	$1, %ebp
	leaq	1760(%rbx), %r14
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %esi
	movq	.LC4(%rip), %rax
	movsd	8(%rsp), %xmm0
	leal	-1(%rsi), %r11d
	leal	-220(%rsi), %r15d
	movq	%rax, %xmm5
.L4:
	cmpl	%ebp, %esi
	movl	%r11d, %r8d
	movl	%r11d, %r9d
	movl	$1, %eax
	setge	%dil
	leal	(%rsi,%r11), %r10d
	movapd	%xmm0, %xmm2
	negl	%r8d
	cmovs	%r11d, %r8d
	imull	%r11d, %r9d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%esi, %ecx
	pxor	%xmm1, %xmm1
	pxor	%xmm4, %xmm4
	subl	%eax, %ecx
	movl	%ecx, %edx
	imull	%ecx, %edx
	addl	%r9d, %edx
	cvtsi2sdl	%edx, %xmm1
	movl	%ecx, %edx
	negl	%edx
	cmovs	%ecx, %edx
	addq	$1, %rax
	mulsd	%xmm5, %xmm1
	addl	%r8d, %edx
	cvtsi2sdl	%edx, %xmm4
	divsd	%xmm4, %xmm1
	addsd	%xmm3, %xmm1
	minsd	%xmm1, %xmm2
	cmpq	$220, %rax
	je	.L23
.L7:
	cmpl	%eax, %esi
	movsd	(%rbx,%rax,8), %xmm3
	setge	%dl
	cmpb	%dl, %dil
	jne	.L24
	movl	%r10d, %edx
	pxor	%xmm1, %xmm1
	subl	%eax, %edx
	movl	%edx, %ecx
	negl	%ecx
	cmovns	%ecx, %edx
	addq	$1, %rax
	cvtsi2sdl	%edx, %xmm1
	mulsd	%xmm5, %xmm1
	addsd	%xmm3, %xmm1
	minsd	%xmm1, %xmm2
	cmpq	$220, %rax
	jne	.L7
.L23:
	subl	$1, %r11d
	movsd	%xmm2, (%r14,%rbp,8)
	addq	$1, %rbp
	cmpl	%r15d, %r11d
	jne	.L4
	movslq	16(%rsp), %rax
	cmpl	%r12d, %eax
	jle	.L3
	movq	%r14, %rbx
	jmp	.L9
.L3:
	imulq	$1760, %rax, %rax
	leaq	dp(%rip), %rdi
	leaq	8(%rdi,%rax), %rdx
	addq	$1760, %rdi
	addq	%rdi, %rax
.L12:
	minsd	(%rdx), %xmm0
	addq	$8, %rdx
	cmpq	%rdx, %rax
	jne	.L12
	leaq	.LC5(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$40, %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
.L25:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 264000
dp:
	.zero	264000
	.set	.LC0,.LC2
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.long	0
	.long	1104006501
	.long	0
	.long	1104006501
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC4:
	.long	0
	.long	1071644672
	.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 rep(i,l,r)for(int i=(l);i<(r);i++)
#define min(p,q)((p)<(q)?(p):(q))

double dp[150][220];//√2倍まで
int main(){
	int n;
	scanf("%d",&n);
	rep(j,0,220)dp[0][j]=1e9;
	dp[0][1]=0;
	rep(i,0,n){
		int t;
		scanf("%d",&t);
		rep(j,1,220){
			double temp=1e9;
			rep(k,1,220){
				if(j<=t^k<=t){
					int a=abs(t-j);
					int b=abs(t-k);
					temp=min(temp,dp[i][k]+(a*a+b*b)/2.0/(a+b));
				}else temp=min(temp,dp[i][k]+abs(t+t-j-k)/2.0);
			}
			dp[i+1][j]=temp;
		}
	}
	double ans=1e9;
	rep(j,1,220)ans=min(ans,dp[n][j]);
	printf("%.9f\n",ans);
}

7
2 1 9 2 2 5 1
 3
1 1 4
 2
0 3
 7
2 1 9 2 1 5 1
 3
0 1 4
 2
0 1
 7
4 1 9 2 1 5 1
 3
0 1 7
 2
0 0
 7
4 1 9 2 1 5 2

11.375000000
 1.250000000
 1.833333333
 12.125000000
 2.250000000
 1.000000000
 14.125000000
 3.500000000
 2.000000000
 13.375000000

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 rep(i,l,r)for(int i=(l);i<(r);i++)
#define min(p,q)((p)<(q)?(p):(q))

double dp[150][220];//√2倍まで
int main(){
	int n;
	scanf("%d",&n);
	rep(j,0,220)dp[0][j]=1e9;
	dp[0][1]=0;
	rep(i,0,n){
		int t;
		scanf("%d",&t);
		rep(j,1,220){
			double temp=1e9;
			rep(k,1,220){
				if(j<=t^k<=t){
					int a=abs(t-j);
					int b=abs(t-k);
					temp=min(temp,dp[i][k]+(a*a+b*b)/2.0/(a+b));
				}else temp=min(temp,dp[i][k]+abs(t+t-j-k)/2.0);
			}
			dp[i+1][j]=temp;
		}
	}
	double ans=1e9;
	rep(j,1,220)ans=min(ans,dp[n][j]);
	printf("%.9f\n",ans);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 264000
dp:
	.zero	264000
	.section	.rodata
.LC0:
	.string	"%d"
.LC4:
	.string	"%.9f\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-60(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -52(%rbp)
	jmp	.L2
.L3:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -52(%rbp)
.L2:
	cmpl	$219, -52(%rbp)
	jle	.L3
	pxor	%xmm0, %xmm0
	movsd	%xmm0, 8+dp(%rip)
	movl	$0, -48(%rbp)
	jmp	.L4
.L17:
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -44(%rbp)
	jmp	.L5
.L16:
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	$1, -40(%rbp)
	jmp	.L6
.L15:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	setle	%dl
	movl	-56(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	setle	%al
	xorl	%edx, %eax
	testb	%al, %al
	je	.L7
	movl	-56(%rbp), %eax
	subl	-44(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -32(%rbp)
	movl	-56(%rbp), %eax
	subl	-40(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -28(%rbp)
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	imulq	$220, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-32(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-28(%rbp), %eax
	imull	%eax, %eax
	addl	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC3(%rip), %xmm2
	divsd	%xmm2, %xmm0
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	divsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	comisd	-24(%rbp), %xmm0
	jbe	.L28
	movsd	-24(%rbp), %xmm0
	jmp	.L10
.L28:
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	imulq	$220, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-32(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-28(%rbp), %eax
	imull	%eax, %eax
	addl	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC3(%rip), %xmm2
	divsd	%xmm2, %xmm0
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	divsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
.L10:
	movsd	%xmm0, -24(%rbp)
	jmp	.L11
.L7:
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	imulq	$220, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-56(%rbp), %eax
	addl	%eax, %eax
	subl	-44(%rbp), %eax
	subl	-40(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC3(%rip), %xmm2
	divsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	comisd	-24(%rbp), %xmm0
	jbe	.L29
	movsd	-24(%rbp), %xmm0
	jmp	.L14
.L29:
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	imulq	$220, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-56(%rbp), %eax
	addl	%eax, %eax
	subl	-44(%rbp), %eax
	subl	-40(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC3(%rip), %xmm2
	divsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
.L14:
	movsd	%xmm0, -24(%rbp)
.L11:
	addl	$1, -40(%rbp)
.L6:
	cmpl	$219, -40(%rbp)
	jle	.L15
	movl	-48(%rbp), %eax
	leal	1(%rax), %edx
	movl	-44(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$220, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	-24(%rbp), %xmm0
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -44(%rbp)
.L5:
	cmpl	$219, -44(%rbp)
	jle	.L16
	addl	$1, -48(%rbp)
.L4:
	movl	-60(%rbp), %eax
	cmpl	%eax, -48(%rbp)
	jl	.L17
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -16(%rbp)
	movl	$1, -36(%rbp)
	jmp	.L18
.L22:
	movl	-60(%rbp), %eax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	imulq	$220, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L30
	movsd	-16(%rbp), %xmm0
	jmp	.L21
.L30:
	movl	-60(%rbp), %eax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	imulq	$220, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
.L21:
	movsd	%xmm0, -16(%rbp)
	addl	$1, -36(%rbp)
.L18:
	cmpl	$219, -36(%rbp)
	jle	.L22
	movq	-16(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1104006501
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.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	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 264000
dp:
	.zero	264000
	.section	.rodata
.LC0:
	.string	"%d"
.LC4:
	.string	"%.9f\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-60(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -52(%rbp)
	jmp	.L2
.L3:
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -52(%rbp)
.L2:
	cmpl	$219, -52(%rbp)
	jle	.L3
	pxor	%xmm0, %xmm0
	movsd	%xmm0, 8+dp(%rip)
	movl	$0, -48(%rbp)
	jmp	.L4
.L17:
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -44(%rbp)
	jmp	.L5
.L16:
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	$1, -40(%rbp)
	jmp	.L6
.L15:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	setle	%dl
	movl	-56(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	setle	%al
	xorl	%edx, %eax
	testb	%al, %al
	je	.L7
	movl	-56(%rbp), %eax
	subl	-44(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -32(%rbp)
	movl	-56(%rbp), %eax
	subl	-40(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -28(%rbp)
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	imulq	$220, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-32(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-28(%rbp), %eax
	imull	%eax, %eax
	addl	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC3(%rip), %xmm2
	divsd	%xmm2, %xmm0
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	divsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	comisd	-24(%rbp), %xmm0
	jbe	.L28
	movsd	-24(%rbp), %xmm0
	jmp	.L10
.L28:
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	imulq	$220, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-32(%rbp), %eax
	imull	%eax, %eax
	movl	%eax, %edx
	movl	-28(%rbp), %eax
	imull	%eax, %eax
	addl	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC3(%rip), %xmm2
	divsd	%xmm2, %xmm0
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %eax
	addl	%edx, %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	divsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
.L10:
	movsd	%xmm0, -24(%rbp)
	jmp	.L11
.L7:
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	imulq	$220, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-56(%rbp), %eax
	addl	%eax, %eax
	subl	-44(%rbp), %eax
	subl	-40(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC3(%rip), %xmm2
	divsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	comisd	-24(%rbp), %xmm0
	jbe	.L29
	movsd	-24(%rbp), %xmm0
	jmp	.L14
.L29:
	movl	-40(%rbp), %eax
	movslq	%eax, %rdx
	movl	-48(%rbp), %eax
	cltq
	imulq	$220, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-56(%rbp), %eax
	addl	%eax, %eax
	subl	-44(%rbp), %eax
	subl	-40(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC3(%rip), %xmm2
	divsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
.L14:
	movsd	%xmm0, -24(%rbp)
.L11:
	addl	$1, -40(%rbp)
.L6:
	cmpl	$219, -40(%rbp)
	jle	.L15
	movl	-48(%rbp), %eax
	leal	1(%rax), %edx
	movl	-44(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$220, %rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	-24(%rbp), %xmm0
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -44(%rbp)
.L5:
	cmpl	$219, -44(%rbp)
	jle	.L16
	addl	$1, -48(%rbp)
.L4:
	movl	-60(%rbp), %eax
	cmpl	%eax, -48(%rbp)
	jl	.L17
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -16(%rbp)
	movl	$1, -36(%rbp)
	jmp	.L18
.L22:
	movl	-60(%rbp), %eax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	imulq	$220, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L30
	movsd	-16(%rbp), %xmm0
	jmp	.L21
.L30:
	movl	-60(%rbp), %eax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	imulq	$220, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dp(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
.L21:
	movsd	%xmm0, -16(%rbp)
	addl	$1, -36(%rbp)
.L18:
	cmpl	$219, -36(%rbp)
	jle	.L22
	movq	-16(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1104006501
	.align 8
.LC3:
	.long	0
	.long	1073741824
	.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:
