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

```c
#include <stdio.h>

int main()
{
	int i, N;
	long double p[3000];
	scanf("%d", &N);
	for (i = 1; i <= N; i++) scanf("%Lf", &(p[i]));
	
	int j;
	long double dp[3000] = {1.0}, ans = 0.0;
	for (i = 1; i <= N; i++) {
		for (j = i; j >= 1; j--) dp[j] = dp[j] * (1.0 - p[i]) + dp[j-1] * p[i];
		dp[0] *= 1.0 - p[i];
	}
	for (i = N; i > N / 2; i--) ans += dp[i];
	printf("%.10Lf\n", ans);
	fflush(stdout);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%Lf"
.LC4:
	.string	"%.10Lf\n"
	.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	-94208(%rsp), %r11
	.cfi_def_cfa 11, 94256
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1824, %rsp
	.cfi_def_cfa_offset 96080
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 96024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L2
	leaq	32(%rsp), %rbx
	movl	$1, %r12d
	leaq	.LC2(%rip), %r14
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	addq	$16, %r13
	cmpl	%r12d, %ebp
	jge	.L3
	leaq	48016(%rsp), %rdi
	movl	$48000, %edx
	xorl	%esi, %esi
	call	memset@PLT
	fld1
	movq	%rax, %rdi
	fld	%st(0)
	fstpt	48016(%rsp)
	testl	%ebp, %ebp
	jle	.L19
	leaq	48032(%rsp), %rcx
	leal	1(%rbp), %r9d
	xorl	%esi, %esi
	movl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L6:
	fldt	(%rbx,%rsi)
	leaq	-16(%rcx), %rdx
	movq	%rcx, %rax
	subq	%rsi, %rdx
	fld	%st(1)
	fsub	%st(1), %st
	fldt	(%rcx)
	.p2align 4,,10
	.p2align 3
.L5:
	subq	$16, %rax
	fmul	%st(1), %st
	fldt	(%rax)
	fld	%st(3)
	fmul	%st(1), %st
	faddp	%st, %st(2)
	fxch	%st(1)
	fstpt	16(%rax)
	cmpq	%rdx, %rax
	jne	.L5
	fstp	%st(0)
	fstp	%st(1)
	fldt	48016(%rsp)
	addl	$1, %r8d
	addq	$16, %rcx
	addq	$16, %rsi
	fmulp	%st, %st(1)
	fstpt	48016(%rsp)
	cmpl	%r9d, %r8d
	jne	.L6
	fstp	%st(0)
	jmp	.L4
.L19:
	fstp	%st(0)
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%ebp, %ecx
	shrl	$31, %ecx
	addl	%ebp, %ecx
	sarl	%ecx
	cmpl	%ecx, %ebp
	jle	.L10
	movslq	%ebp, %rdx
	fldz
	subl	$1, %ebp
	salq	$4, %rdx
	subl	%ecx, %ebp
	leaq	(%rdi,%rdx), %rax
	salq	$4, %rbp
	leaq	48000(%rsp,%rdx), %rdx
	subq	%rbp, %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	fldt	(%rax)
	subq	$16, %rax
	faddp	%st, %st(1)
	cmpq	%rax, %rdx
	jne	.L8
.L7:
	subq	$16, %rsp
	.cfi_def_cfa_offset 96096
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	fstpt	(%rsp)
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	popq	%rax
	.cfi_def_cfa_offset 96088
	popq	%rdx
	.cfi_def_cfa_offset 96080
	movq	96024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$96032, %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
	leaq	48016(%rsp), %rdi
	movl	$48000, %edx
	xorl	%esi, %esi
	call	memset@PLT
	fld1
	movq	%rax, %rdi
	fstpt	48016(%rsp)
	jmp	.L4
.L10:
	fldz
	jmp	.L7
.L18:
	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:
```

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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%Lf"
.LC4:
	.string	"%.10Lf\n"
	.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	-94208(%rsp), %r11
	.cfi_def_cfa 11, 94256
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1824, %rsp
	.cfi_def_cfa_offset 96080
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 96024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L2
	leaq	32(%rsp), %rbx
	movl	$1, %r12d
	leaq	.LC2(%rip), %r14
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	addq	$16, %r13
	cmpl	%r12d, %ebp
	jge	.L3
	leaq	48016(%rsp), %rdi
	movl	$48000, %edx
	xorl	%esi, %esi
	call	memset@PLT
	fld1
	movq	%rax, %rdi
	fld	%st(0)
	fstpt	48016(%rsp)
	testl	%ebp, %ebp
	jle	.L19
	leaq	48032(%rsp), %rcx
	leal	1(%rbp), %r9d
	xorl	%esi, %esi
	movl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L6:
	fldt	(%rbx,%rsi)
	leaq	-16(%rcx), %rdx
	movq	%rcx, %rax
	subq	%rsi, %rdx
	fld	%st(1)
	fsub	%st(1), %st
	fldt	(%rcx)
	.p2align 4,,10
	.p2align 3
.L5:
	subq	$16, %rax
	fmul	%st(1), %st
	fldt	(%rax)
	fld	%st(3)
	fmul	%st(1), %st
	faddp	%st, %st(2)
	fxch	%st(1)
	fstpt	16(%rax)
	cmpq	%rdx, %rax
	jne	.L5
	fstp	%st(0)
	fstp	%st(1)
	fldt	48016(%rsp)
	addl	$1, %r8d
	addq	$16, %rcx
	addq	$16, %rsi
	fmulp	%st, %st(1)
	fstpt	48016(%rsp)
	cmpl	%r9d, %r8d
	jne	.L6
	fstp	%st(0)
	jmp	.L4
.L19:
	fstp	%st(0)
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%ebp, %ecx
	shrl	$31, %ecx
	addl	%ebp, %ecx
	sarl	%ecx
	cmpl	%ecx, %ebp
	jle	.L10
	movslq	%ebp, %rdx
	fldz
	subl	$1, %ebp
	salq	$4, %rdx
	subl	%ecx, %ebp
	leaq	(%rdi,%rdx), %rax
	salq	$4, %rbp
	leaq	48000(%rsp,%rdx), %rdx
	subq	%rbp, %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	fldt	(%rax)
	subq	$16, %rax
	faddp	%st, %st(1)
	cmpq	%rax, %rdx
	jne	.L8
.L7:
	subq	$16, %rsp
	.cfi_def_cfa_offset 96096
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	fstpt	(%rsp)
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	popq	%rax
	.cfi_def_cfa_offset 96088
	popq	%rdx
	.cfi_def_cfa_offset 96080
	movq	96024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$96032, %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
	leaq	48016(%rsp), %rdi
	movl	$48000, %edx
	xorl	%esi, %esi
	call	memset@PLT
	fld1
	movq	%rax, %rdi
	fstpt	48016(%rsp)
	jmp	.L4
.L10:
	fldz
	jmp	.L7
.L18:
	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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%Lf"
.LC4:
	.string	"%.10Lf\n"
	.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	-94208(%rsp), %r11
	.cfi_def_cfa 11, 94256
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1824, %rsp
	.cfi_def_cfa_offset 96080
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 96024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L2
	leaq	32(%rsp), %rbx
	movl	$1, %r12d
	leaq	.LC2(%rip), %r14
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	addq	$16, %r13
	cmpl	%r12d, %ebp
	jge	.L3
	leaq	48016(%rsp), %rdi
	movl	$48000, %edx
	xorl	%esi, %esi
	call	memset@PLT
	fld1
	movq	%rax, %rdi
	fld	%st(0)
	fstpt	48016(%rsp)
	testl	%ebp, %ebp
	jle	.L19
	leaq	48032(%rsp), %rcx
	leal	1(%rbp), %r9d
	xorl	%esi, %esi
	movl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L6:
	fldt	(%rbx,%rsi)
	leaq	-16(%rcx), %rdx
	movq	%rcx, %rax
	subq	%rsi, %rdx
	fld	%st(1)
	fsub	%st(1), %st
	fldt	(%rcx)
	.p2align 4,,10
	.p2align 3
.L5:
	subq	$16, %rax
	fmul	%st(1), %st
	fldt	(%rax)
	fld	%st(3)
	fmul	%st(1), %st
	faddp	%st, %st(2)
	fxch	%st(1)
	fstpt	16(%rax)
	cmpq	%rdx, %rax
	jne	.L5
	fstp	%st(0)
	fstp	%st(1)
	fldt	48016(%rsp)
	addl	$1, %r8d
	addq	$16, %rcx
	addq	$16, %rsi
	fmulp	%st, %st(1)
	fstpt	48016(%rsp)
	cmpl	%r9d, %r8d
	jne	.L6
	fstp	%st(0)
	jmp	.L4
.L19:
	fstp	%st(0)
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%ebp, %ecx
	shrl	$31, %ecx
	addl	%ebp, %ecx
	sarl	%ecx
	cmpl	%ecx, %ebp
	jle	.L10
	movslq	%ebp, %rdx
	fldz
	subl	$1, %ebp
	salq	$4, %rdx
	subl	%ecx, %ebp
	leaq	(%rdi,%rdx), %rax
	salq	$4, %rbp
	leaq	48000(%rsp,%rdx), %rdx
	subq	%rbp, %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	fldt	(%rax)
	subq	$16, %rax
	faddp	%st, %st(1)
	cmpq	%rax, %rdx
	jne	.L8
.L7:
	subq	$16, %rsp
	.cfi_def_cfa_offset 96096
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	fstpt	(%rsp)
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	popq	%rax
	.cfi_def_cfa_offset 96088
	popq	%rdx
	.cfi_def_cfa_offset 96080
	movq	96024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$96032, %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
	leaq	48016(%rsp), %rdi
	movl	$48000, %edx
	xorl	%esi, %esi
	call	memset@PLT
	fld1
	movq	%rax, %rdi
	fstpt	48016(%rsp)
	jmp	.L4
.L10:
	fldz
	jmp	.L7
.L18:
	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:
```
```c
#include <stdio.h>

int main()
{
	int i, N;
	long double p[3000];
	scanf("%d", &N);
	for (i = 1; i <= N; i++) scanf("%Lf", &(p[i]));
	
	int j;
	long double dp[3000] = {1.0}, ans = 0.0;
	for (i = 1; i <= N; i++) {
		for (j = i; j >= 1; j--) dp[j] = dp[j] * (1.0 - p[i]) + dp[j-1] * p[i];
		dp[0] *= 1.0 - p[i];
	}
	for (i = N; i > N / 2; i--) ans += dp[i];
	printf("%.10Lf\n", ans);
	fflush(stdout);
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main()
{
	int i, N;
	long double p[3000];
	scanf("%d", &N);
	for (i = 1; i <= N; i++) scanf("%Lf", &(p[i]));
	
	int j;
	long double dp[3000] = {1.0}, ans = 0.0;
	for (i = 1; i <= N; i++) {
		for (j = i; j >= 1; j--) dp[j] = dp[j] * (1.0 - p[i]) + dp[j-1] * p[i];
		dp[0] *= 1.0 - p[i];
	}
	for (i = N; i > N / 2; i--) ans += dp[i];
	printf("%.10Lf\n", ans);
	fflush(stdout);
	return 0;
}```

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.
Optimized Assembly Code:

5
1.024501914223776 0.01 0.42 0.99 0.42
 1
1.0727834824798
 3
0.5605093833878567 0.60 0.80
 5
1.024501914223776 0.01 0.5446982864891694 0.99 0.42
 1
1.4147366857390051
 3
0.63370309829039 0.60 0.80
 5
1.024501914223776 0.01 0.5446982864891694 1.8265871769248951 0.42
 1
1.7909231128005865
 3
1.2830063329674655 0.60 0.80
 5
1.024501914223776 0.01 1.1183883728508386 1.8265871769248951 0.42

0.6739324428
 1.0727834825
 0.7266241287
 0.7458182458
 1.4147366857
 0.7588293632
 1.1736606376
 1.7909231128
 1.0445227865
 1.5745054790

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

```c
#include <stdio.h>

int main()
{
	int i, N;
	long double p[3000];
	scanf("%d", &N);
	for (i = 1; i <= N; i++) scanf("%Lf", &(p[i]));
	
	int j;
	long double dp[3000] = {1.0}, ans = 0.0;
	for (i = 1; i <= N; i++) {
		for (j = i; j >= 1; j--) dp[j] = dp[j] * (1.0 - p[i]) + dp[j-1] * p[i];
		dp[0] *= 1.0 - p[i];
	}
	for (i = N; i > N / 2; i--) ans += dp[i];
	printf("%.10Lf\n", ans);
	fflush(stdout);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%Lf"
.LC4:
	.string	"%.10Lf\n"
	.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	-94208(%rsp), %r11
	.cfi_def_cfa 11, 94256
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1824, %rsp
	.cfi_def_cfa_offset 96080
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 96024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L2
	leaq	32(%rsp), %rbx
	movl	$1, %r12d
	leaq	.LC2(%rip), %r14
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	addq	$16, %r13
	cmpl	%r12d, %ebp
	jge	.L3
	leaq	48016(%rsp), %rdi
	movl	$48000, %edx
	xorl	%esi, %esi
	call	memset@PLT
	fld1
	movq	%rax, %rdi
	fld	%st(0)
	fstpt	48016(%rsp)
	testl	%ebp, %ebp
	jle	.L19
	leaq	48032(%rsp), %rcx
	leal	1(%rbp), %r9d
	xorl	%esi, %esi
	movl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L6:
	fldt	(%rbx,%rsi)
	leaq	-16(%rcx), %rdx
	movq	%rcx, %rax
	subq	%rsi, %rdx
	fld	%st(1)
	fsub	%st(1), %st
	fldt	(%rcx)
	.p2align 4,,10
	.p2align 3
.L5:
	subq	$16, %rax
	fmul	%st(1), %st
	fldt	(%rax)
	fld	%st(3)
	fmul	%st(1), %st
	faddp	%st, %st(2)
	fxch	%st(1)
	fstpt	16(%rax)
	cmpq	%rdx, %rax
	jne	.L5
	fstp	%st(0)
	fstp	%st(1)
	fldt	48016(%rsp)
	addl	$1, %r8d
	addq	$16, %rcx
	addq	$16, %rsi
	fmulp	%st, %st(1)
	fstpt	48016(%rsp)
	cmpl	%r9d, %r8d
	jne	.L6
	fstp	%st(0)
	jmp	.L4
.L19:
	fstp	%st(0)
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%ebp, %ecx
	shrl	$31, %ecx
	addl	%ebp, %ecx
	sarl	%ecx
	cmpl	%ecx, %ebp
	jle	.L10
	movslq	%ebp, %rdx
	fldz
	subl	$1, %ebp
	salq	$4, %rdx
	subl	%ecx, %ebp
	leaq	(%rdi,%rdx), %rax
	salq	$4, %rbp
	leaq	48000(%rsp,%rdx), %rdx
	subq	%rbp, %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	fldt	(%rax)
	subq	$16, %rax
	faddp	%st, %st(1)
	cmpq	%rax, %rdx
	jne	.L8
.L7:
	subq	$16, %rsp
	.cfi_def_cfa_offset 96096
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	fstpt	(%rsp)
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	popq	%rax
	.cfi_def_cfa_offset 96088
	popq	%rdx
	.cfi_def_cfa_offset 96080
	movq	96024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$96032, %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
	leaq	48016(%rsp), %rdi
	movl	$48000, %edx
	xorl	%esi, %esi
	call	memset@PLT
	fld1
	movq	%rax, %rdi
	fstpt	48016(%rsp)
	jmp	.L4
.L10:
	fldz
	jmp	.L7
.L18:
	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:
```

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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%Lf"
.LC4:
	.string	"%.10Lf\n"
	.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	-94208(%rsp), %r11
	.cfi_def_cfa 11, 94256
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1824, %rsp
	.cfi_def_cfa_offset 96080
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 96024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	testl	%ebp, %ebp
	jle	.L2
	leaq	32(%rsp), %rbx
	movl	$1, %r12d
	leaq	.LC2(%rip), %r14
	movq	%rbx, %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r13, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ebp
	addq	$16, %r13
	cmpl	%r12d, %ebp
	jge	.L3
	leaq	48016(%rsp), %rdi
	movl	$48000, %edx
	xorl	%esi, %esi
	call	memset@PLT
	fld1
	movq	%rax, %rdi
	fld	%st(0)
	fstpt	48016(%rsp)
	testl	%ebp, %ebp
	jle	.L19
	leaq	48032(%rsp), %rcx
	leal	1(%rbp), %r9d
	xorl	%esi, %esi
	movl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L6:
	fldt	(%rbx,%rsi)
	leaq	-16(%rcx), %rdx
	movq	%rcx, %rax
	subq	%rsi, %rdx
	fld	%st(1)
	fsub	%st(1), %st
	fldt	(%rcx)
	.p2align 4,,10
	.p2align 3
.L5:
	subq	$16, %rax
	fmul	%st(1), %st
	fldt	(%rax)
	fld	%st(3)
	fmul	%st(1), %st
	faddp	%st, %st(2)
	fxch	%st(1)
	fstpt	16(%rax)
	cmpq	%rdx, %rax
	jne	.L5
	fstp	%st(0)
	fstp	%st(1)
	fldt	48016(%rsp)
	addl	$1, %r8d
	addq	$16, %rcx
	addq	$16, %rsi
	fmulp	%st, %st(1)
	fstpt	48016(%rsp)
	cmpl	%r9d, %r8d
	jne	.L6
	fstp	%st(0)
	jmp	.L4
.L19:
	fstp	%st(0)
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%ebp, %ecx
	shrl	$31, %ecx
	addl	%ebp, %ecx
	sarl	%ecx
	cmpl	%ecx, %ebp
	jle	.L10
	movslq	%ebp, %rdx
	fldz
	subl	$1, %ebp
	salq	$4, %rdx
	subl	%ecx, %ebp
	leaq	(%rdi,%rdx), %rax
	salq	$4, %rbp
	leaq	48000(%rsp,%rdx), %rdx
	subq	%rbp, %rdx
	.p2align 4,,10
	.p2align 3
.L8:
	fldt	(%rax)
	subq	$16, %rax
	faddp	%st, %st(1)
	cmpq	%rax, %rdx
	jne	.L8
.L7:
	subq	$16, %rsp
	.cfi_def_cfa_offset 96096
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	fstpt	(%rsp)
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	popq	%rax
	.cfi_def_cfa_offset 96088
	popq	%rdx
	.cfi_def_cfa_offset 96080
	movq	96024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L18
	addq	$96032, %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
	leaq	48016(%rsp), %rdi
	movl	$48000, %edx
	xorl	%esi, %esi
	call	memset@PLT
	fld1
	movq	%rax, %rdi
	fstpt	48016(%rsp)
	jmp	.L4
.L10:
	fldz
	jmp	.L7
.L18:
	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:
```