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 1000

int main(void){
	int i , n;
	scanf("%d",&n);
	double a[n];
	
	for(i = 0; i < n; i++){
		scanf("%lf",&a[i]);
	}
	
	double b[n+1];
	for(i = 0; i<= n; i++){
		scanf("%lf",&b[i]);
	}
	
	double c[n+1][n+1];
	double d[n+1];
	c[0][0]=b[0];
	d[0]=a[0]+b[0];
	
	for(i = 1; i <= n; i++){
		c[i][i] = b[i];
		c[i-1][i] = a[i-1]+(b[i-1]+b[i])*2;
		d[i] = d[i-1]+a[i]+b[i];
	}
	
	int j , k;
	double x,y;
	for(i = 1;i < n; i++){
		for(j = 0; j < n-i; j++){
			x = c[j][j] + c[j+1][i+j+1];
			for(k = j; k <i+j; k++){
				y = c[j][k+1]+c[k+2][i+j+1];
				if(x>y) x = y;
			}
			c[j][i+j+1] = x + d[i+j] - d[j-1] + b[i+j+1];
		}
	}
	printf("%lf\n",c[0][n]);
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf"
.LC2:
	.string	"%lf\n"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$264, %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	-160(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-160(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -136(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%edx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L2:
	cmpq	%rcx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L4
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -128(%rbp)
	movl	$0, -156(%rbp)
	jmp	.L5
.L6:
	movl	-156(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-128(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -156(%rbp)
.L5:
	movl	-160(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L6
	movl	-160(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%edx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%edx, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L7:
	cmpq	%rcx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L9
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -112(%rbp)
	movl	$0, -156(%rbp)
	jmp	.L10
.L11:
	movl	-156(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-112(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -156(%rbp)
.L10:
	movl	-160(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jle	.L11
	movl	-160(%rbp), %eax
	leal	1(%rax), %esi
	movl	-160(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%esi, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,8), %r8
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%esi, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edi, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	-192(%rbp), %r9
	movq	-184(%rbp), %r10
	movq	%r10, %rdx
	imulq	-176(%rbp), %rdx
	movq	-168(%rbp), %rax
	imulq	%r9, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r9, %rax
	mulq	-176(%rbp)
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,8), %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
.L12:
	cmpq	%rdx, %rsp
	je	.L13
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L12
.L13:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L14
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L14:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -88(%rbp)
	movl	-160(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -80(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -288(%rbp)
	movq	$0, -280(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -304(%rbp)
	movq	$0, -296(%rbp)
	cltq
	leaq	0(,%rax,8), %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
.L15:
	cmpq	%rdx, %rsp
	je	.L16
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L15
.L16:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L17
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L17:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -72(%rbp)
	movq	-112(%rbp), %rax
	movsd	(%rax), %xmm0
	movq	-88(%rbp), %rax
	movsd	%xmm0, (%rax)
	movq	-128(%rbp), %rax
	movsd	(%rax), %xmm1
	movq	-112(%rbp), %rax
	movsd	(%rax), %xmm0
	addsd	%xmm1, %xmm0
	movq	-72(%rbp), %rax
	movsd	%xmm0, (%rax)
	movl	$1, -156(%rbp)
	jmp	.L18
.L19:
	movq	%r8, %rcx
	shrq	$3, %rcx
	movq	-112(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	movq	-88(%rbp), %rax
	addq	$1, %rcx
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	movsd	%xmm0, (%rax,%rdx,8)
	movl	-156(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-128(%rbp), %rax
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	movl	-156(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-112(%rbp), %rax
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm2
	movq	-112(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	addsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm0
	movq	%r8, %rcx
	shrq	$3, %rcx
	movl	-156(%rbp), %eax
	leal	-1(%rax), %esi
	addsd	%xmm1, %xmm0
	movq	-88(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdi
	movslq	%esi, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movsd	%xmm0, (%rax,%rdx,8)
	movl	-156(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-72(%rbp), %rax
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	movq	-128(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	addsd	%xmm0, %xmm1
	movq	-112(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	addsd	%xmm1, %xmm0
	movq	-72(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movsd	%xmm0, (%rax,%rdx,8)
	addl	$1, -156(%rbp)
.L18:
	movl	-160(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jle	.L19
	movl	$1, -156(%rbp)
	jmp	.L20
.L27:
	movl	$0, -152(%rbp)
	jmp	.L21
.L26:
	movq	%r8, %rdx
	shrq	$3, %rdx
	movq	-88(%rbp), %rax
	leaq	1(%rdx), %rcx
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	movq	%r8, %rcx
	shrq	$3, %rcx
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movl	-156(%rbp), %esi
	movl	-152(%rbp), %eax
	addl	%esi, %eax
	leal	1(%rax), %esi
	movq	-88(%rbp), %rax
	movslq	%esi, %rsi
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -144(%rbp)
	movl	-152(%rbp), %eax
	movl	%eax, -148(%rbp)
	jmp	.L22
.L25:
	movq	%r8, %rcx
	shrq	$3, %rcx
	movl	-148(%rbp), %eax
	leal	1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	movq	%r8, %rcx
	shrq	$3, %rcx
	movl	-148(%rbp), %eax
	leal	2(%rax), %edx
	movl	-156(%rbp), %esi
	movl	-152(%rbp), %eax
	addl	%esi, %eax
	leal	1(%rax), %esi
	movq	-88(%rbp), %rax
	movslq	%esi, %rsi
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -64(%rbp)
	movsd	-144(%rbp), %xmm0
	comisd	-64(%rbp), %xmm0
	jbe	.L23
	movsd	-64(%rbp), %xmm0
	movsd	%xmm0, -144(%rbp)
.L23:
	addl	$1, -148(%rbp)
.L22:
	movl	-156(%rbp), %edx
	movl	-152(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -148(%rbp)
	jl	.L25
	movl	-156(%rbp), %edx
	movl	-152(%rbp), %eax
	addl	%eax, %edx
	movq	-72(%rbp), %rax
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	addsd	-144(%rbp), %xmm0
	movl	-152(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-72(%rbp), %rax
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movl	-156(%rbp), %edx
	movl	-152(%rbp), %eax
	addl	%edx, %eax
	leal	1(%rax), %edx
	movq	-112(%rbp), %rax
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	movq	%r8, %rcx
	shrq	$3, %rcx
	movl	-156(%rbp), %edx
	movl	-152(%rbp), %eax
	addl	%edx, %eax
	leal	1(%rax), %edx
	addsd	%xmm1, %xmm0
	movq	-88(%rbp), %rax
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movsd	%xmm0, (%rax,%rdx,8)
	addl	$1, -152(%rbp)
.L21:
	movl	-160(%rbp), %eax
	subl	-156(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L26
	addl	$1, -156(%rbp)
.L20:
	movl	-160(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L27
	movl	-160(%rbp), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, %xmm0
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf"
.LC2:
	.string	"%lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %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
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	movq	%rsp, %rcx
	leaq	15(,%rax,8), %rdx
	movl	%eax, -88(%rbp)
	movq	%rdx, %rax
	andq	$-4096, %rdx
	subq	%rdx, %rcx
	andq	$-16, %rax
	cmpq	%rcx, %rsp
	je	.L3
.L57:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L57
.L3:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L58
.L4:
	leaq	7(%rsp), %rbx
	movq	%rbx, %rax
	andq	$-8, %rbx
	shrq	$3, %rax
	cmpl	$0, -88(%rbp)
	movq	%rax, -72(%rbp)
	jle	.L5
	movq	%rbx, %r15
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addq	$8, %r15
	cmpl	%r13d, %eax
	jg	.L6
	movl	%eax, -88(%rbp)
.L5:
	movl	-88(%rbp), %eax
	movq	%rsp, %rsi
	addl	$1, %eax
	movslq	%eax, %rdx
	leaq	15(,%rdx,8), %rcx
	movq	%rcx, %rdx
	andq	$-4096, %rcx
	subq	%rcx, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L8
.L59:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L59
.L8:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L60
.L9:
	leaq	7(%rsp), %r15
	movq	%r15, %rdi
	andq	$-8, %r15
	shrq	$3, %rdi
	cmpl	$0, -88(%rbp)
	movq	%rdi, -80(%rbp)
	js	.L10
	movq	%r15, %r13
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addq	$8, %r13
	cmpl	%r12d, %eax
	jge	.L11
	movl	%eax, -88(%rbp)
	addl	$1, %eax
.L10:
	cltq
	movq	%rsp, %rsi
	leaq	0(,%rax,8), %rdx
	imulq	%rax, %rax
	leaq	15(,%rax,8), %rcx
	movq	%rcx, %rax
	andq	$-4096, %rcx
	subq	%rcx, %rsi
	andq	$-16, %rax
	cmpq	%rsi, %rsp
	je	.L13
.L61:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L61
.L13:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L62
.L14:
	leaq	7(%rsp), %r8
	leaq	15(%rdx), %rcx
	movq	%rsp, %rdi
	movq	%r8, %rsi
	movq	%rcx, %rax
	andq	$-4096, %rcx
	andq	$-8, %r8
	shrq	$3, %rsi
	andq	$-16, %rax
	subq	%rcx, %rdi
.L15:
	cmpq	%rdi, %rsp
	je	.L16
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L15
.L62:
	orq	$0, -8(%rsp,%rax)
	jmp	.L14
.L60:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L9
.L58:
	orq	$0, -8(%rsp,%rax)
	jmp	.L4
.L16:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L63
.L17:
	movq	-80(%rbp), %rdi
	leaq	7(%rsp), %r14
	movq	%rdx, %r10
	movq	%r14, %rax
	shrq	$3, %r10
	andq	$-8, %r14
	movsd	0(,%rdi,8), %xmm0
	movq	-72(%rbp), %rdi
	shrq	$3, %rax
	cmpl	$0, -88(%rbp)
	movsd	0(,%rdi,8), %xmm3
	movapd	%xmm0, %xmm1
	movsd	%xmm0, 0(,%rsi,8)
	addsd	%xmm3, %xmm1
	movsd	%xmm1, 0(,%rax,8)
	jle	.L29
	movl	-88(%rbp), %eax
	cmpl	$2, %eax
	jle	.L33
	subl	$3, %eax
	movl	$1, %ecx
	shrl	%eax
	leaq	3(%rax,%rax), %rsi
	leaq	1(%r10), %rax
	movq	%rax, -80(%rbp)
.L22:
	movq	-80(%rbp), %r11
	movsd	(%r15,%rcx,8), %xmm2
	movslq	%ecx, %rdi
	movq	%r11, %rax
	addsd	%xmm2, %xmm0
	imulq	%rdi, %rax
	addsd	%xmm0, %xmm0
	movsd	%xmm2, (%r8,%rax,8)
	leal	-1(%rcx), %eax
	cltq
	imulq	%r10, %rax
	addsd	%xmm3, %xmm0
	movsd	(%rbx,%rcx,8), %xmm3
	addsd	%xmm3, %xmm1
	addq	%rdi, %rax
	imulq	%r10, %rdi
	movsd	%xmm0, (%r8,%rax,8)
	movsd	8(%r15,%rcx,8), %xmm0
	leal	1(%rcx), %eax
	addsd	%xmm2, %xmm1
	cltq
	imulq	%rax, %r11
	addsd	%xmm0, %xmm2
	addq	%rdi, %rax
	movsd	%xmm1, (%r14,%rcx,8)
	addsd	%xmm2, %xmm2
	movsd	%xmm0, (%r8,%r11,8)
	addsd	%xmm3, %xmm2
	movsd	8(%rbx,%rcx,8), %xmm3
	addsd	%xmm3, %xmm1
	movsd	%xmm2, (%r8,%rax,8)
	leal	2(%rcx), %eax
	addsd	%xmm0, %xmm1
	movsd	%xmm1, 8(%r14,%rcx,8)
	addq	$2, %rcx
	cmpq	%rsi, %rcx
	jne	.L22
.L21:
	movl	-88(%rbp), %esi
	movq	-80(%rbp), %rdi
	cltq
	.p2align 4,,10
	.p2align 3
.L23:
	movslq	%eax, %r9
	movq	%rdi, %rcx
	movsd	(%r15,%rax,8), %xmm1
	movsd	-8(%r15,%rax,8), %xmm0
	imulq	%r9, %rcx
	addsd	%xmm1, %xmm0
	movsd	%xmm1, (%r8,%rcx,8)
	leal	-1(%rax), %ecx
	movslq	%ecx, %rcx
	addsd	%xmm0, %xmm0
	addsd	-8(%rbx,%rax,8), %xmm0
	imulq	%r10, %rcx
	addq	%rcx, %r9
	movsd	%xmm0, (%r8,%r9,8)
	movsd	(%rbx,%rax,8), %xmm0
	addsd	-8(%r14,%rax,8), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, (%r14,%rax,8)
	addq	$1, %rax
	cmpl	%eax, %esi
	jge	.L23
	movl	-88(%rbp), %eax
	cmpl	$1, %eax
	jle	.L29
	subl	$1, %eax
	movl	$1, -84(%rbp)
	leaq	8(%r15), %r12
	leaq	8(%r14), %r13
	movl	%eax, -92(%rbp)
	leaq	8(%rdx), %r15
	.p2align 4,,10
	.p2align 3
.L20:
	movl	-88(%rbp), %eax
	subl	-84(%rbp), %eax
	testl	%eax, %eax
	jle	.L31
	movl	-84(%rbp), %esi
	movl	-92(%rbp), %eax
	leaq	8(%r8), %rbx
	xorl	%r9d, %r9d
	subl	%esi, %eax
	leal	2(%rsi), %edi
	movq	%rax, -72(%rbp)
	.p2align 4,,10
	.p2align 3
.L28:
	leal	1(%r9), %eax
	leal	-1(%rdi), %esi
	movslq	%r9d, %rdx
	movslq	%r9d, %r11
	cltq
	imulq	-80(%rbp), %rdx
	movslq	%esi, %rsi
	imulq	%r10, %rax
	addq	%rsi, %rax
	movsd	(%r8,%rax,8), %xmm1
	leal	-2(%rdi), %eax
	addsd	(%r8,%rdx,8), %xmm1
	cmpl	%r9d, %eax
	jle	.L25
	leal	2(%r9), %edx
	movq	%rbx, %rcx
	.p2align 4,,10
	.p2align 3
.L27:
	movslq	%edx, %rax
	addl	$1, %edx
	addq	$8, %rcx
	imulq	%r10, %rax
	addq	%rsi, %rax
	movsd	(%r8,%rax,8), %xmm0
	addsd	-8(%rcx), %xmm0
	minsd	%xmm1, %xmm0
	movapd	%xmm0, %xmm1
	cmpl	%edx, %edi
	jne	.L27
.L25:
	imulq	%r10, %r11
	leaq	1(%r9), %rax
	addl	$1, %edi
	addq	%r15, %rbx
	addsd	0(%r13,%r9,8), %xmm1
	subsd	-8(%r14,%r9,8), %xmm1
	addsd	8(%r12,%r9,8), %xmm1
	addq	%rsi, %r11
	movsd	%xmm1, (%r8,%r11,8)
	cmpq	-72(%rbp), %r9
	je	.L31
	movq	%rax, %r9
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L31:
	addl	$1, -84(%rbp)
	addq	$8, %r13
	movl	-84(%rbp), %eax
	addq	$8, %r12
	cmpl	-88(%rbp), %eax
	jne	.L20
.L29:
	movslq	-88(%rbp), %rax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movsd	(%r8,%rax,8), %xmm0
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L64
	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
.L33:
	.cfi_restore_state
	leaq	1(%r10), %rdi
	movl	$1, %eax
	movq	%rdi, -80(%rbp)
	jmp	.L21
.L63:
	orq	$0, -8(%rsp,%rax)
	jmp	.L17
.L64:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf"
.LC2:
	.string	"%lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %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
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	movq	%rsp, %rcx
	leaq	15(,%rax,8), %rdx
	movl	%eax, -88(%rbp)
	movq	%rdx, %rax
	andq	$-4096, %rdx
	subq	%rdx, %rcx
	andq	$-16, %rax
	cmpq	%rcx, %rsp
	je	.L3
.L57:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L57
.L3:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L58
.L4:
	leaq	7(%rsp), %rbx
	movq	%rbx, %rax
	andq	$-8, %rbx
	shrq	$3, %rax
	cmpl	$0, -88(%rbp)
	movq	%rax, -72(%rbp)
	jle	.L5
	movq	%rbx, %r15
	xorl	%r13d, %r13d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r13d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addq	$8, %r15
	cmpl	%r13d, %eax
	jg	.L6
	movl	%eax, -88(%rbp)
.L5:
	movl	-88(%rbp), %eax
	movq	%rsp, %rsi
	addl	$1, %eax
	movslq	%eax, %rdx
	leaq	15(,%rdx,8), %rcx
	movq	%rcx, %rdx
	andq	$-4096, %rcx
	subq	%rcx, %rsi
	andq	$-16, %rdx
	cmpq	%rsi, %rsp
	je	.L8
.L59:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L59
.L8:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L60
.L9:
	leaq	7(%rsp), %r15
	movq	%r15, %rdi
	andq	$-8, %r15
	shrq	$3, %rdi
	cmpl	$0, -88(%rbp)
	movq	%rdi, -80(%rbp)
	js	.L10
	movq	%r15, %r13
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L11:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addq	$8, %r13
	cmpl	%r12d, %eax
	jge	.L11
	movl	%eax, -88(%rbp)
	addl	$1, %eax
.L10:
	cltq
	movq	%rsp, %rsi
	leaq	0(,%rax,8), %rdx
	imulq	%rax, %rax
	leaq	15(,%rax,8), %rcx
	movq	%rcx, %rax
	andq	$-4096, %rcx
	subq	%rcx, %rsi
	andq	$-16, %rax
	cmpq	%rsi, %rsp
	je	.L13
.L61:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L61
.L13:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L62
.L14:
	leaq	7(%rsp), %r8
	leaq	15(%rdx), %rcx
	movq	%rsp, %rdi
	movq	%r8, %rsi
	movq	%rcx, %rax
	andq	$-4096, %rcx
	andq	$-8, %r8
	shrq	$3, %rsi
	andq	$-16, %rax
	subq	%rcx, %rdi
.L15:
	cmpq	%rdi, %rsp
	je	.L16
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L15
.L62:
	orq	$0, -8(%rsp,%rax)
	jmp	.L14
.L60:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L9
.L58:
	orq	$0, -8(%rsp,%rax)
	jmp	.L4
.L16:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L63
.L17:
	movq	-80(%rbp), %rdi
	leaq	7(%rsp), %r14
	movq	%rdx, %r10
	movq	%r14, %rax
	shrq	$3, %r10
	andq	$-8, %r14
	movsd	0(,%rdi,8), %xmm0
	movq	-72(%rbp), %rdi
	shrq	$3, %rax
	cmpl	$0, -88(%rbp)
	movsd	0(,%rdi,8), %xmm3
	movapd	%xmm0, %xmm1
	movsd	%xmm0, 0(,%rsi,8)
	addsd	%xmm3, %xmm1
	movsd	%xmm1, 0(,%rax,8)
	jle	.L29
	movl	-88(%rbp), %eax
	cmpl	$2, %eax
	jle	.L33
	subl	$3, %eax
	movl	$1, %ecx
	shrl	%eax
	leaq	3(%rax,%rax), %rsi
	leaq	1(%r10), %rax
	movq	%rax, -80(%rbp)
.L22:
	movq	-80(%rbp), %r11
	movsd	(%r15,%rcx,8), %xmm2
	movslq	%ecx, %rdi
	movq	%r11, %rax
	addsd	%xmm2, %xmm0
	imulq	%rdi, %rax
	addsd	%xmm0, %xmm0
	movsd	%xmm2, (%r8,%rax,8)
	leal	-1(%rcx), %eax
	cltq
	imulq	%r10, %rax
	addsd	%xmm3, %xmm0
	movsd	(%rbx,%rcx,8), %xmm3
	addsd	%xmm3, %xmm1
	addq	%rdi, %rax
	imulq	%r10, %rdi
	movsd	%xmm0, (%r8,%rax,8)
	movsd	8(%r15,%rcx,8), %xmm0
	leal	1(%rcx), %eax
	addsd	%xmm2, %xmm1
	cltq
	imulq	%rax, %r11
	addsd	%xmm0, %xmm2
	addq	%rdi, %rax
	movsd	%xmm1, (%r14,%rcx,8)
	addsd	%xmm2, %xmm2
	movsd	%xmm0, (%r8,%r11,8)
	addsd	%xmm3, %xmm2
	movsd	8(%rbx,%rcx,8), %xmm3
	addsd	%xmm3, %xmm1
	movsd	%xmm2, (%r8,%rax,8)
	leal	2(%rcx), %eax
	addsd	%xmm0, %xmm1
	movsd	%xmm1, 8(%r14,%rcx,8)
	addq	$2, %rcx
	cmpq	%rsi, %rcx
	jne	.L22
.L21:
	movl	-88(%rbp), %esi
	movq	-80(%rbp), %rdi
	cltq
	.p2align 4,,10
	.p2align 3
.L23:
	movslq	%eax, %r9
	movq	%rdi, %rcx
	movsd	(%r15,%rax,8), %xmm1
	movsd	-8(%r15,%rax,8), %xmm0
	imulq	%r9, %rcx
	addsd	%xmm1, %xmm0
	movsd	%xmm1, (%r8,%rcx,8)
	leal	-1(%rax), %ecx
	movslq	%ecx, %rcx
	addsd	%xmm0, %xmm0
	addsd	-8(%rbx,%rax,8), %xmm0
	imulq	%r10, %rcx
	addq	%rcx, %r9
	movsd	%xmm0, (%r8,%r9,8)
	movsd	(%rbx,%rax,8), %xmm0
	addsd	-8(%r14,%rax,8), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, (%r14,%rax,8)
	addq	$1, %rax
	cmpl	%eax, %esi
	jge	.L23
	movl	-88(%rbp), %eax
	cmpl	$1, %eax
	jle	.L29
	subl	$1, %eax
	movl	$1, -84(%rbp)
	leaq	8(%r15), %r12
	leaq	8(%r14), %r13
	movl	%eax, -92(%rbp)
	leaq	8(%rdx), %r15
	.p2align 4,,10
	.p2align 3
.L20:
	movl	-88(%rbp), %eax
	subl	-84(%rbp), %eax
	testl	%eax, %eax
	jle	.L31
	movl	-84(%rbp), %esi
	movl	-92(%rbp), %eax
	leaq	8(%r8), %rbx
	xorl	%r9d, %r9d
	subl	%esi, %eax
	leal	2(%rsi), %edi
	movq	%rax, -72(%rbp)
	.p2align 4,,10
	.p2align 3
.L28:
	leal	1(%r9), %eax
	leal	-1(%rdi), %esi
	movslq	%r9d, %rdx
	movslq	%r9d, %r11
	cltq
	imulq	-80(%rbp), %rdx
	movslq	%esi, %rsi
	imulq	%r10, %rax
	addq	%rsi, %rax
	movsd	(%r8,%rax,8), %xmm1
	leal	-2(%rdi), %eax
	addsd	(%r8,%rdx,8), %xmm1
	cmpl	%r9d, %eax
	jle	.L25
	leal	2(%r9), %edx
	movq	%rbx, %rcx
	.p2align 4,,10
	.p2align 3
.L27:
	movslq	%edx, %rax
	addl	$1, %edx
	addq	$8, %rcx
	imulq	%r10, %rax
	addq	%rsi, %rax
	movsd	(%r8,%rax,8), %xmm0
	addsd	-8(%rcx), %xmm0
	minsd	%xmm1, %xmm0
	movapd	%xmm0, %xmm1
	cmpl	%edx, %edi
	jne	.L27
.L25:
	imulq	%r10, %r11
	leaq	1(%r9), %rax
	addl	$1, %edi
	addq	%r15, %rbx
	addsd	0(%r13,%r9,8), %xmm1
	subsd	-8(%r14,%r9,8), %xmm1
	addsd	8(%r12,%r9,8), %xmm1
	addq	%rsi, %r11
	movsd	%xmm1, (%r8,%r11,8)
	cmpq	-72(%rbp), %r9
	je	.L31
	movq	%rax, %r9
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L31:
	addl	$1, -84(%rbp)
	addq	$8, %r13
	movl	-84(%rbp), %eax
	addq	$8, %r12
	cmpl	-88(%rbp), %eax
	jne	.L20
.L29:
	movslq	-88(%rbp), %rax
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movsd	(%r8,%rax,8), %xmm0
	movl	$1, %eax
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L64
	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
.L33:
	.cfi_restore_state
	leaq	1(%r10), %rdi
	movl	$1, %eax
	movq	%rdi, -80(%rbp)
	jmp	.L21
.L63:
	orq	$0, -8(%rsp,%rax)
	jmp	.L17
.L64:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>
#define N 1000

int main(void){
	int i , n;
	scanf("%d",&n);
	double a[n];
	
	for(i = 0; i < n; i++){
		scanf("%lf",&a[i]);
	}
	
	double b[n+1];
	for(i = 0; i<= n; i++){
		scanf("%lf",&b[i]);
	}
	
	double c[n+1][n+1];
	double d[n+1];
	c[0][0]=b[0];
	d[0]=a[0]+b[0];
	
	for(i = 1; i <= n; i++){
		c[i][i] = b[i];
		c[i-1][i] = a[i-1]+(b[i-1]+b[i])*2;
		d[i] = d[i-1]+a[i]+b[i];
	}
	
	int j , k;
	double x,y;
	for(i = 1;i < n; i++){
		for(j = 0; j < n-i; j++){
			x = c[j][j] + c[j+1][i+j+1];
			for(k = j; k <i+j; k++){
				y = c[j][k+1]+c[k+2][i+j+1];
				if(x>y) x = y;
			}
			c[j][i+j+1] = x + d[i+j] - d[j-1] + b[i+j+1];
		}
	}
	printf("%lf\n",c[0][n]);
	return 0;
}


5
0.1500 0.1000 0.0500 0.1000 0.2000
0.0500 0.1000 0.0500 0.0500 0.0500 0.1000
 5
0.1500 0.1000 0.0500 0.1000 0.2000
0.0500 0.1000 0.0500 0.0500 0.0500 0.1000
 7
0.0400 0.0600 0.0800 0.0200 0.1000 0.1200 0.1400
0.0600 0.0600 0.0600 0.0600 0.0500 0.0500 0.0500 0.0500

2.750000
 2.750000
 3.120000

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 1000

int main(void){
	int i , n;
	scanf("%d",&n);
	double a[n];
	
	for(i = 0; i < n; i++){
		scanf("%lf",&a[i]);
	}
	
	double b[n+1];
	for(i = 0; i<= n; i++){
		scanf("%lf",&b[i]);
	}
	
	double c[n+1][n+1];
	double d[n+1];
	c[0][0]=b[0];
	d[0]=a[0]+b[0];
	
	for(i = 1; i <= n; i++){
		c[i][i] = b[i];
		c[i-1][i] = a[i-1]+(b[i-1]+b[i])*2;
		d[i] = d[i-1]+a[i]+b[i];
	}
	
	int j , k;
	double x,y;
	for(i = 1;i < n; i++){
		for(j = 0; j < n-i; j++){
			x = c[j][j] + c[j+1][i+j+1];
			for(k = j; k <i+j; k++){
				y = c[j][k+1]+c[k+2][i+j+1];
				if(x>y) x = y;
			}
			c[j][i+j+1] = x + d[i+j] - d[j-1] + b[i+j+1];
		}
	}
	printf("%lf\n",c[0][n]);
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf"
.LC2:
	.string	"%lf\n"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$264, %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	-160(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-160(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -136(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%edx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L2:
	cmpq	%rcx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L4
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -128(%rbp)
	movl	$0, -156(%rbp)
	jmp	.L5
.L6:
	movl	-156(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-128(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -156(%rbp)
.L5:
	movl	-160(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L6
	movl	-160(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%edx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%edx, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L7:
	cmpq	%rcx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L9
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -112(%rbp)
	movl	$0, -156(%rbp)
	jmp	.L10
.L11:
	movl	-156(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-112(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -156(%rbp)
.L10:
	movl	-160(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jle	.L11
	movl	-160(%rbp), %eax
	leal	1(%rax), %esi
	movl	-160(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%esi, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,8), %r8
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%esi, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edi, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	-192(%rbp), %r9
	movq	-184(%rbp), %r10
	movq	%r10, %rdx
	imulq	-176(%rbp), %rdx
	movq	-168(%rbp), %rax
	imulq	%r9, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r9, %rax
	mulq	-176(%rbp)
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,8), %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
.L12:
	cmpq	%rdx, %rsp
	je	.L13
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L12
.L13:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L14
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L14:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -88(%rbp)
	movl	-160(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -80(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -288(%rbp)
	movq	$0, -280(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -304(%rbp)
	movq	$0, -296(%rbp)
	cltq
	leaq	0(,%rax,8), %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
.L15:
	cmpq	%rdx, %rsp
	je	.L16
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L15
.L16:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L17
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L17:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -72(%rbp)
	movq	-112(%rbp), %rax
	movsd	(%rax), %xmm0
	movq	-88(%rbp), %rax
	movsd	%xmm0, (%rax)
	movq	-128(%rbp), %rax
	movsd	(%rax), %xmm1
	movq	-112(%rbp), %rax
	movsd	(%rax), %xmm0
	addsd	%xmm1, %xmm0
	movq	-72(%rbp), %rax
	movsd	%xmm0, (%rax)
	movl	$1, -156(%rbp)
	jmp	.L18
.L19:
	movq	%r8, %rcx
	shrq	$3, %rcx
	movq	-112(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	movq	-88(%rbp), %rax
	addq	$1, %rcx
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	movsd	%xmm0, (%rax,%rdx,8)
	movl	-156(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-128(%rbp), %rax
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	movl	-156(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-112(%rbp), %rax
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm2
	movq	-112(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	addsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm0
	movq	%r8, %rcx
	shrq	$3, %rcx
	movl	-156(%rbp), %eax
	leal	-1(%rax), %esi
	addsd	%xmm1, %xmm0
	movq	-88(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdi
	movslq	%esi, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movsd	%xmm0, (%rax,%rdx,8)
	movl	-156(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-72(%rbp), %rax
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	movq	-128(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	addsd	%xmm0, %xmm1
	movq	-112(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	addsd	%xmm1, %xmm0
	movq	-72(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movsd	%xmm0, (%rax,%rdx,8)
	addl	$1, -156(%rbp)
.L18:
	movl	-160(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jle	.L19
	movl	$1, -156(%rbp)
	jmp	.L20
.L27:
	movl	$0, -152(%rbp)
	jmp	.L21
.L26:
	movq	%r8, %rdx
	shrq	$3, %rdx
	movq	-88(%rbp), %rax
	leaq	1(%rdx), %rcx
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	movq	%r8, %rcx
	shrq	$3, %rcx
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movl	-156(%rbp), %esi
	movl	-152(%rbp), %eax
	addl	%esi, %eax
	leal	1(%rax), %esi
	movq	-88(%rbp), %rax
	movslq	%esi, %rsi
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -144(%rbp)
	movl	-152(%rbp), %eax
	movl	%eax, -148(%rbp)
	jmp	.L22
.L25:
	movq	%r8, %rcx
	shrq	$3, %rcx
	movl	-148(%rbp), %eax
	leal	1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	movq	%r8, %rcx
	shrq	$3, %rcx
	movl	-148(%rbp), %eax
	leal	2(%rax), %edx
	movl	-156(%rbp), %esi
	movl	-152(%rbp), %eax
	addl	%esi, %eax
	leal	1(%rax), %esi
	movq	-88(%rbp), %rax
	movslq	%esi, %rsi
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -64(%rbp)
	movsd	-144(%rbp), %xmm0
	comisd	-64(%rbp), %xmm0
	jbe	.L23
	movsd	-64(%rbp), %xmm0
	movsd	%xmm0, -144(%rbp)
.L23:
	addl	$1, -148(%rbp)
.L22:
	movl	-156(%rbp), %edx
	movl	-152(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -148(%rbp)
	jl	.L25
	movl	-156(%rbp), %edx
	movl	-152(%rbp), %eax
	addl	%eax, %edx
	movq	-72(%rbp), %rax
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	addsd	-144(%rbp), %xmm0
	movl	-152(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-72(%rbp), %rax
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movl	-156(%rbp), %edx
	movl	-152(%rbp), %eax
	addl	%edx, %eax
	leal	1(%rax), %edx
	movq	-112(%rbp), %rax
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	movq	%r8, %rcx
	shrq	$3, %rcx
	movl	-156(%rbp), %edx
	movl	-152(%rbp), %eax
	addl	%edx, %eax
	leal	1(%rax), %edx
	addsd	%xmm1, %xmm0
	movq	-88(%rbp), %rax
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movsd	%xmm0, (%rax,%rdx,8)
	addl	$1, -152(%rbp)
.L21:
	movl	-160(%rbp), %eax
	subl	-156(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L26
	addl	$1, -156(%rbp)
.L20:
	movl	-160(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L27
	movl	-160(%rbp), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, %xmm0
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lf"
.LC2:
	.string	"%lf\n"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$264, %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	-160(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-160(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -136(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%edx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L2:
	cmpq	%rcx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L4
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -128(%rbp)
	movl	$0, -156(%rbp)
	jmp	.L5
.L6:
	movl	-156(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-128(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -156(%rbp)
.L5:
	movl	-160(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L6
	movl	-160(%rbp), %eax
	leal	1(%rax), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%edx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%edx, %rax
	movq	%rax, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L7:
	cmpq	%rcx, %rsp
	je	.L8
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L7
.L8:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L9
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L9:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -112(%rbp)
	movl	$0, -156(%rbp)
	jmp	.L10
.L11:
	movl	-156(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-112(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -156(%rbp)
.L10:
	movl	-160(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jle	.L11
	movl	-160(%rbp), %eax
	leal	1(%rax), %esi
	movl	-160(%rbp), %eax
	leal	1(%rax), %edi
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%esi, %rax
	movq	%rax, -272(%rbp)
	movq	$0, -264(%rbp)
	movslq	%esi, %rax
	leaq	0(,%rax,8), %r8
	movslq	%edi, %rax
	subq	$1, %rax
	movq	%rax, -96(%rbp)
	movslq	%esi, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edi, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movq	-192(%rbp), %r9
	movq	-184(%rbp), %r10
	movq	%r10, %rdx
	imulq	-176(%rbp), %rdx
	movq	-168(%rbp), %rax
	imulq	%r9, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r9, %rax
	mulq	-176(%rbp)
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rcx
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rcx
	movq	%rcx, %rdx
	movslq	%esi, %rdx
	movslq	%edi, %rax
	imulq	%rdx, %rax
	leaq	0(,%rax,8), %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
.L12:
	cmpq	%rdx, %rsp
	je	.L13
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L12
.L13:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L14
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L14:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -88(%rbp)
	movl	-160(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -80(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -288(%rbp)
	movq	$0, -280(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -304(%rbp)
	movq	$0, -296(%rbp)
	cltq
	leaq	0(,%rax,8), %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
.L15:
	cmpq	%rdx, %rsp
	je	.L16
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L15
.L16:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L17
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L17:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -72(%rbp)
	movq	-112(%rbp), %rax
	movsd	(%rax), %xmm0
	movq	-88(%rbp), %rax
	movsd	%xmm0, (%rax)
	movq	-128(%rbp), %rax
	movsd	(%rax), %xmm1
	movq	-112(%rbp), %rax
	movsd	(%rax), %xmm0
	addsd	%xmm1, %xmm0
	movq	-72(%rbp), %rax
	movsd	%xmm0, (%rax)
	movl	$1, -156(%rbp)
	jmp	.L18
.L19:
	movq	%r8, %rcx
	shrq	$3, %rcx
	movq	-112(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	movq	-88(%rbp), %rax
	addq	$1, %rcx
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	movsd	%xmm0, (%rax,%rdx,8)
	movl	-156(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-128(%rbp), %rax
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	movl	-156(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-112(%rbp), %rax
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm2
	movq	-112(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	addsd	%xmm2, %xmm0
	addsd	%xmm0, %xmm0
	movq	%r8, %rcx
	shrq	$3, %rcx
	movl	-156(%rbp), %eax
	leal	-1(%rax), %esi
	addsd	%xmm1, %xmm0
	movq	-88(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdi
	movslq	%esi, %rdx
	imulq	%rcx, %rdx
	addq	%rdi, %rdx
	movsd	%xmm0, (%rax,%rdx,8)
	movl	-156(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-72(%rbp), %rax
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	movq	-128(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	addsd	%xmm0, %xmm1
	movq	-112(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	addsd	%xmm1, %xmm0
	movq	-72(%rbp), %rax
	movl	-156(%rbp), %edx
	movslq	%edx, %rdx
	movsd	%xmm0, (%rax,%rdx,8)
	addl	$1, -156(%rbp)
.L18:
	movl	-160(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jle	.L19
	movl	$1, -156(%rbp)
	jmp	.L20
.L27:
	movl	$0, -152(%rbp)
	jmp	.L21
.L26:
	movq	%r8, %rdx
	shrq	$3, %rdx
	movq	-88(%rbp), %rax
	leaq	1(%rdx), %rcx
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	movq	%r8, %rcx
	shrq	$3, %rcx
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movl	-156(%rbp), %esi
	movl	-152(%rbp), %eax
	addl	%esi, %eax
	leal	1(%rax), %esi
	movq	-88(%rbp), %rax
	movslq	%esi, %rsi
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -144(%rbp)
	movl	-152(%rbp), %eax
	movl	%eax, -148(%rbp)
	jmp	.L22
.L25:
	movq	%r8, %rcx
	shrq	$3, %rcx
	movl	-148(%rbp), %eax
	leal	1(%rax), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	movq	%r8, %rcx
	shrq	$3, %rcx
	movl	-148(%rbp), %eax
	leal	2(%rax), %edx
	movl	-156(%rbp), %esi
	movl	-152(%rbp), %eax
	addl	%esi, %eax
	leal	1(%rax), %esi
	movq	-88(%rbp), %rax
	movslq	%esi, %rsi
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -64(%rbp)
	movsd	-144(%rbp), %xmm0
	comisd	-64(%rbp), %xmm0
	jbe	.L23
	movsd	-64(%rbp), %xmm0
	movsd	%xmm0, -144(%rbp)
.L23:
	addl	$1, -148(%rbp)
.L22:
	movl	-156(%rbp), %edx
	movl	-152(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -148(%rbp)
	jl	.L25
	movl	-156(%rbp), %edx
	movl	-152(%rbp), %eax
	addl	%eax, %edx
	movq	-72(%rbp), %rax
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	addsd	-144(%rbp), %xmm0
	movl	-152(%rbp), %eax
	leal	-1(%rax), %edx
	movq	-72(%rbp), %rax
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm2
	movapd	%xmm0, %xmm1
	subsd	%xmm2, %xmm1
	movl	-156(%rbp), %edx
	movl	-152(%rbp), %eax
	addl	%edx, %eax
	leal	1(%rax), %edx
	movq	-112(%rbp), %rax
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm0
	movq	%r8, %rcx
	shrq	$3, %rcx
	movl	-156(%rbp), %edx
	movl	-152(%rbp), %eax
	addl	%edx, %eax
	leal	1(%rax), %edx
	addsd	%xmm1, %xmm0
	movq	-88(%rbp), %rax
	movslq	%edx, %rsi
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	addq	%rsi, %rdx
	movsd	%xmm0, (%rax,%rdx,8)
	addl	$1, -152(%rbp)
.L21:
	movl	-160(%rbp), %eax
	subl	-156(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L26
	addl	$1, -156(%rbp)
.L20:
	movl	-160(%rbp), %eax
	cmpl	%eax, -156(%rbp)
	jl	.L27
	movl	-160(%rbp), %edx
	movq	-88(%rbp), %rax
	movslq	%edx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	%rax, %xmm0
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
