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>
#include <math.h>

int main(void) {
	int N;
	int cylinders[512];
	int i, j;
	double cylinders_pos[512];
	double max, current;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%d", &cylinders[i]) != 1) return 1;
	}
	for (i = 0; i < N; i++) {
		max = cylinders[i];
		for (j = 0; j < i; j++) {
			current = cylinders_pos[j] + sqrt(
				(cylinders[j] + cylinders[i]) * (cylinders[j] + cylinders[i]) -
				(cylinders[j] - cylinders[i]) * (cylinders[j] - cylinders[i]));
			if (current > max) max = current;
		}
		cylinders_pos[i] = max;
	}
	max = 0;
	for (i = 0; i < N; i++) {
		current = cylinders_pos[i] + cylinders[i];
		if (current > max) max = current;
	}
	printf("%.15f\n", max);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%.15f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$2120, %rsp
	.cfi_def_cfa_offset 6272
	leaq	.LC1(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 6200(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L5
	cmpl	$0, 44(%rsp)
	jle	.L4
	leaq	48(%rsp), %r13
	xorl	%ebp, %ebp
	movq	%r13, %rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L33:
	movslq	44(%rsp), %r15
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %r15d
	jle	.L32
.L6:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L33
.L5:
	movl	$1, %eax
.L1:
	movq	6200(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L34
	addq	$6216, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L32:
	.cfi_restore_state
	testl	%r15d, %r15d
	jle	.L4
	pxor	%xmm0, %xmm0
	cvtsi2sdl	48(%rsp), %xmm0
	movsd	%xmm0, 2096(%rsp)
	cmpl	$1, %r15d
	je	.L35
	movl	$1, %r12d
	leaq	2096(%rsp), %r14
	pxor	%xmm3, %xmm3
	.p2align 4,,10
	.p2align 3
.L14:
	movl	0(%r13,%r12,4), %ebp
	pxor	%xmm2, %xmm2
	xorl	%ebx, %ebx
	cvtsi2sdl	%ebp, %xmm2
	.p2align 4,,10
	.p2align 3
.L13:
	movl	0(%r13,%rbx,4), %eax
	pxor	%xmm0, %xmm0
	movsd	(%r14,%rbx,8), %xmm1
	leal	0(%rbp,%rax), %edx
	subl	%ebp, %eax
	imull	%edx, %edx
	imull	%eax, %eax
	subl	%eax, %edx
	cvtsi2sdl	%edx, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L29
	sqrtsd	%xmm0, %xmm0
.L10:
	addsd	%xmm0, %xmm1
	addq	$1, %rbx
	maxsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm2
	cmpq	%rbx, %r12
	jne	.L13
	movsd	%xmm1, (%r14,%r12,8)
	addq	$1, %r12
	cmpq	%r15, %r12
	jne	.L14
.L20:
	xorl	%eax, %eax
	movapd	%xmm3, %xmm0
	.p2align 4,,10
	.p2align 3
.L17:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	0(%r13,%rax,4), %xmm1
	addsd	(%r14,%rax,8), %xmm1
	addq	$1, %rax
	maxsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	cmpq	%rax, %r15
	jne	.L17
.L18:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L1
.L4:
	pxor	%xmm0, %xmm0
	jmp	.L18
.L35:
	movl	$1, %r15d
	leaq	2096(%rsp), %r14
	pxor	%xmm3, %xmm3
	jmp	.L20
.L29:
	movsd	%xmm3, 24(%rsp)
	movsd	%xmm2, 16(%rsp)
	movsd	%xmm1, 8(%rsp)
	call	sqrt@PLT
	movsd	24(%rsp), %xmm3
	movsd	16(%rsp), %xmm2
	movsd	8(%rsp), %xmm1
	jmp	.L10
.L34:
	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	"%.15f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$2120, %rsp
	.cfi_def_cfa_offset 6272
	leaq	.LC1(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 6200(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L5
	cmpl	$0, 44(%rsp)
	jle	.L4
	leaq	48(%rsp), %r13
	xorl	%ebp, %ebp
	movq	%r13, %rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L33:
	movslq	44(%rsp), %r15
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %r15d
	jle	.L32
.L6:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L33
.L5:
	movl	$1, %eax
.L1:
	movq	6200(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L34
	addq	$6216, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L32:
	.cfi_restore_state
	testl	%r15d, %r15d
	jle	.L4
	pxor	%xmm0, %xmm0
	cvtsi2sdl	48(%rsp), %xmm0
	movsd	%xmm0, 2096(%rsp)
	cmpl	$1, %r15d
	je	.L35
	movl	$1, %r12d
	leaq	2096(%rsp), %r14
	pxor	%xmm3, %xmm3
	.p2align 4,,10
	.p2align 3
.L14:
	movl	0(%r13,%r12,4), %ebp
	pxor	%xmm2, %xmm2
	xorl	%ebx, %ebx
	cvtsi2sdl	%ebp, %xmm2
	.p2align 4,,10
	.p2align 3
.L13:
	movl	0(%r13,%rbx,4), %eax
	pxor	%xmm0, %xmm0
	movsd	(%r14,%rbx,8), %xmm1
	leal	0(%rbp,%rax), %edx
	subl	%ebp, %eax
	imull	%edx, %edx
	imull	%eax, %eax
	subl	%eax, %edx
	cvtsi2sdl	%edx, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L29
	sqrtsd	%xmm0, %xmm0
.L10:
	addsd	%xmm0, %xmm1
	addq	$1, %rbx
	maxsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm2
	cmpq	%rbx, %r12
	jne	.L13
	movsd	%xmm1, (%r14,%r12,8)
	addq	$1, %r12
	cmpq	%r15, %r12
	jne	.L14
.L20:
	xorl	%eax, %eax
	movapd	%xmm3, %xmm0
	.p2align 4,,10
	.p2align 3
.L17:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	0(%r13,%rax,4), %xmm1
	addsd	(%r14,%rax,8), %xmm1
	addq	$1, %rax
	maxsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	cmpq	%rax, %r15
	jne	.L17
.L18:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L1
.L4:
	pxor	%xmm0, %xmm0
	jmp	.L18
.L35:
	movl	$1, %r15d
	leaq	2096(%rsp), %r14
	pxor	%xmm3, %xmm3
	jmp	.L20
.L29:
	movsd	%xmm3, 24(%rsp)
	movsd	%xmm2, 16(%rsp)
	movsd	%xmm1, 8(%rsp)
	call	sqrt@PLT
	movsd	24(%rsp), %xmm3
	movsd	16(%rsp), %xmm2
	movsd	8(%rsp), %xmm1
	jmp	.L10
.L34:
	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	"%.15f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$2120, %rsp
	.cfi_def_cfa_offset 6272
	leaq	.LC1(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 6200(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L5
	cmpl	$0, 44(%rsp)
	jle	.L4
	leaq	48(%rsp), %r13
	xorl	%ebp, %ebp
	movq	%r13, %rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L33:
	movslq	44(%rsp), %r15
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %r15d
	jle	.L32
.L6:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L33
.L5:
	movl	$1, %eax
.L1:
	movq	6200(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L34
	addq	$6216, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L32:
	.cfi_restore_state
	testl	%r15d, %r15d
	jle	.L4
	pxor	%xmm0, %xmm0
	cvtsi2sdl	48(%rsp), %xmm0
	movsd	%xmm0, 2096(%rsp)
	cmpl	$1, %r15d
	je	.L35
	movl	$1, %r12d
	leaq	2096(%rsp), %r14
	pxor	%xmm3, %xmm3
	.p2align 4,,10
	.p2align 3
.L14:
	movl	0(%r13,%r12,4), %ebp
	pxor	%xmm2, %xmm2
	xorl	%ebx, %ebx
	cvtsi2sdl	%ebp, %xmm2
	.p2align 4,,10
	.p2align 3
.L13:
	movl	0(%r13,%rbx,4), %eax
	pxor	%xmm0, %xmm0
	movsd	(%r14,%rbx,8), %xmm1
	leal	0(%rbp,%rax), %edx
	subl	%ebp, %eax
	imull	%edx, %edx
	imull	%eax, %eax
	subl	%eax, %edx
	cvtsi2sdl	%edx, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L29
	sqrtsd	%xmm0, %xmm0
.L10:
	addsd	%xmm0, %xmm1
	addq	$1, %rbx
	maxsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm2
	cmpq	%rbx, %r12
	jne	.L13
	movsd	%xmm1, (%r14,%r12,8)
	addq	$1, %r12
	cmpq	%r15, %r12
	jne	.L14
.L20:
	xorl	%eax, %eax
	movapd	%xmm3, %xmm0
	.p2align 4,,10
	.p2align 3
.L17:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	0(%r13,%rax,4), %xmm1
	addsd	(%r14,%rax,8), %xmm1
	addq	$1, %rax
	maxsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	cmpq	%rax, %r15
	jne	.L17
.L18:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L1
.L4:
	pxor	%xmm0, %xmm0
	jmp	.L18
.L35:
	movl	$1, %r15d
	leaq	2096(%rsp), %r14
	pxor	%xmm3, %xmm3
	jmp	.L20
.L29:
	movsd	%xmm3, 24(%rsp)
	movsd	%xmm2, 16(%rsp)
	movsd	%xmm1, 8(%rsp)
	call	sqrt@PLT
	movsd	24(%rsp), %xmm3
	movsd	16(%rsp), %xmm2
	movsd	8(%rsp), %xmm1
	jmp	.L10
.L34:
	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>
#include <math.h>

int main(void) {
	int N;
	int cylinders[512];
	int i, j;
	double cylinders_pos[512];
	double max, current;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%d", &cylinders[i]) != 1) return 1;
	}
	for (i = 0; i < N; i++) {
		max = cylinders[i];
		for (j = 0; j < i; j++) {
			current = cylinders_pos[j] + sqrt(
				(cylinders[j] + cylinders[i]) * (cylinders[j] + cylinders[i]) -
				(cylinders[j] - cylinders[i]) * (cylinders[j] - cylinders[i]));
			if (current > max) max = current;
		}
		cylinders_pos[i] = max;
	}
	max = 0;
	for (i = 0; i < N; i++) {
		current = cylinders_pos[i] + cylinders[i];
		if (current > max) max = current;
	}
	printf("%.15f\n", max);
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <math.h>

int main(void) {
	int N;
	int cylinders[512];
	int i, j;
	double cylinders_pos[512];
	double max, current;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%d", &cylinders[i]) != 1) return 1;
	}
	for (i = 0; i < N; i++) {
		max = cylinders[i];
		for (j = 0; j < i; j++) {
			current = cylinders_pos[j] + sqrt(
				(cylinders[j] + cylinders[i]) * (cylinders[j] + cylinders[i]) -
				(cylinders[j] - cylinders[i]) * (cylinders[j] - cylinders[i]));
			if (current > max) max = current;
		}
		cylinders_pos[i] = max;
	}
	max = 0;
	for (i = 0; i < N; i++) {
		current = cylinders_pos[i] + cylinders[i];
		if (current > max) max = current;
	}
	printf("%.15f\n", max);
	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:

2
10 4
 2
3 4
 2
3 1
 2
4 1
 2
4 2
 2
7 2
 2
1 2
 2
1 0
 2
2 0
 2
4 0

26.649110640673520
 13.928203230275509
 7.464101615137754
 9.000000000000000
 11.656854249492380
 16.483314773547882
 5.828427124746190
 2.000000000000000
 4.000000000000000
 8.000000000000000

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>
#include <math.h>

int main(void) {
	int N;
	int cylinders[512];
	int i, j;
	double cylinders_pos[512];
	double max, current;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%d", &cylinders[i]) != 1) return 1;
	}
	for (i = 0; i < N; i++) {
		max = cylinders[i];
		for (j = 0; j < i; j++) {
			current = cylinders_pos[j] + sqrt(
				(cylinders[j] + cylinders[i]) * (cylinders[j] + cylinders[i]) -
				(cylinders[j] - cylinders[i]) * (cylinders[j] - cylinders[i]));
			if (current > max) max = current;
		}
		cylinders_pos[i] = max;
	}
	max = 0;
	for (i = 0; i < N; i++) {
		current = cylinders_pos[i] + cylinders[i];
		if (current > max) max = current;
	}
	printf("%.15f\n", max);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%d"
.LC2:
	.string	"%.15f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$2120, %rsp
	.cfi_def_cfa_offset 6272
	leaq	.LC1(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 6200(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L5
	cmpl	$0, 44(%rsp)
	jle	.L4
	leaq	48(%rsp), %r13
	xorl	%ebp, %ebp
	movq	%r13, %rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L33:
	movslq	44(%rsp), %r15
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %r15d
	jle	.L32
.L6:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L33
.L5:
	movl	$1, %eax
.L1:
	movq	6200(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L34
	addq	$6216, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L32:
	.cfi_restore_state
	testl	%r15d, %r15d
	jle	.L4
	pxor	%xmm0, %xmm0
	cvtsi2sdl	48(%rsp), %xmm0
	movsd	%xmm0, 2096(%rsp)
	cmpl	$1, %r15d
	je	.L35
	movl	$1, %r12d
	leaq	2096(%rsp), %r14
	pxor	%xmm3, %xmm3
	.p2align 4,,10
	.p2align 3
.L14:
	movl	0(%r13,%r12,4), %ebp
	pxor	%xmm2, %xmm2
	xorl	%ebx, %ebx
	cvtsi2sdl	%ebp, %xmm2
	.p2align 4,,10
	.p2align 3
.L13:
	movl	0(%r13,%rbx,4), %eax
	pxor	%xmm0, %xmm0
	movsd	(%r14,%rbx,8), %xmm1
	leal	0(%rbp,%rax), %edx
	subl	%ebp, %eax
	imull	%edx, %edx
	imull	%eax, %eax
	subl	%eax, %edx
	cvtsi2sdl	%edx, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L29
	sqrtsd	%xmm0, %xmm0
.L10:
	addsd	%xmm0, %xmm1
	addq	$1, %rbx
	maxsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm2
	cmpq	%rbx, %r12
	jne	.L13
	movsd	%xmm1, (%r14,%r12,8)
	addq	$1, %r12
	cmpq	%r15, %r12
	jne	.L14
.L20:
	xorl	%eax, %eax
	movapd	%xmm3, %xmm0
	.p2align 4,,10
	.p2align 3
.L17:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	0(%r13,%rax,4), %xmm1
	addsd	(%r14,%rax,8), %xmm1
	addq	$1, %rax
	maxsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	cmpq	%rax, %r15
	jne	.L17
.L18:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L1
.L4:
	pxor	%xmm0, %xmm0
	jmp	.L18
.L35:
	movl	$1, %r15d
	leaq	2096(%rsp), %r14
	pxor	%xmm3, %xmm3
	jmp	.L20
.L29:
	movsd	%xmm3, 24(%rsp)
	movsd	%xmm2, 16(%rsp)
	movsd	%xmm1, 8(%rsp)
	call	sqrt@PLT
	movsd	24(%rsp), %xmm3
	movsd	16(%rsp), %xmm2
	movsd	8(%rsp), %xmm1
	jmp	.L10
.L34:
	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	"%.15f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$2120, %rsp
	.cfi_def_cfa_offset 6272
	leaq	.LC1(%rip), %r12
	movq	%r12, %rdi
	movq	%fs:40, %rax
	movq	%rax, 6200(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rsi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L5
	cmpl	$0, 44(%rsp)
	jle	.L4
	leaq	48(%rsp), %r13
	xorl	%ebp, %ebp
	movq	%r13, %rbx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L33:
	movslq	44(%rsp), %r15
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %r15d
	jle	.L32
.L6:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L33
.L5:
	movl	$1, %eax
.L1:
	movq	6200(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L34
	addq	$6216, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L32:
	.cfi_restore_state
	testl	%r15d, %r15d
	jle	.L4
	pxor	%xmm0, %xmm0
	cvtsi2sdl	48(%rsp), %xmm0
	movsd	%xmm0, 2096(%rsp)
	cmpl	$1, %r15d
	je	.L35
	movl	$1, %r12d
	leaq	2096(%rsp), %r14
	pxor	%xmm3, %xmm3
	.p2align 4,,10
	.p2align 3
.L14:
	movl	0(%r13,%r12,4), %ebp
	pxor	%xmm2, %xmm2
	xorl	%ebx, %ebx
	cvtsi2sdl	%ebp, %xmm2
	.p2align 4,,10
	.p2align 3
.L13:
	movl	0(%r13,%rbx,4), %eax
	pxor	%xmm0, %xmm0
	movsd	(%r14,%rbx,8), %xmm1
	leal	0(%rbp,%rax), %edx
	subl	%ebp, %eax
	imull	%edx, %edx
	imull	%eax, %eax
	subl	%eax, %edx
	cvtsi2sdl	%edx, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L29
	sqrtsd	%xmm0, %xmm0
.L10:
	addsd	%xmm0, %xmm1
	addq	$1, %rbx
	maxsd	%xmm2, %xmm1
	movapd	%xmm1, %xmm2
	cmpq	%rbx, %r12
	jne	.L13
	movsd	%xmm1, (%r14,%r12,8)
	addq	$1, %r12
	cmpq	%r15, %r12
	jne	.L14
.L20:
	xorl	%eax, %eax
	movapd	%xmm3, %xmm0
	.p2align 4,,10
	.p2align 3
.L17:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	0(%r13,%rax,4), %xmm1
	addsd	(%r14,%rax,8), %xmm1
	addq	$1, %rax
	maxsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	cmpq	%rax, %r15
	jne	.L17
.L18:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movl	$1, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L1
.L4:
	pxor	%xmm0, %xmm0
	jmp	.L18
.L35:
	movl	$1, %r15d
	leaq	2096(%rsp), %r14
	pxor	%xmm3, %xmm3
	jmp	.L20
.L29:
	movsd	%xmm3, 24(%rsp)
	movsd	%xmm2, 16(%rsp)
	movsd	%xmm1, 8(%rsp)
	call	sqrt@PLT
	movsd	24(%rsp), %xmm3
	movsd	16(%rsp), %xmm2
	movsd	8(%rsp), %xmm1
	jmp	.L10
.L34:
	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:
```