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

```c
// AOJ 323 ruins
// 2018.2.25 bal4u

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#define LIM		50
#define MAX		1000002
#define EPS		1e-8
 
typedef struct { int x, r; double r2; } T;
T tbl[100002];
int n;

//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0;
	int c = getchar_unlocked();
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
	while (c >= '0');
	return n;
}

int check(double d)
{
	int i;
	double xmin, xmax, xx, d2;

	d2 = d*d;
	xmin = -MAX, xmax = MAX;
	for (i = 0; i < n; i++) {
		if (tbl[i].r < d) return 0;
		xx = sqrt(tbl[i].r2 - d2);
		if (tbl[i].x - xx > xmin) xmin = tbl[i].x - xx;
		if (tbl[i].x + xx < xmax) xmax = tbl[i].x + xx;
		if (xmin > xmax) return 0;
	}
	return 1;
}

int cmp(T *a, T *b) { return a->r - b->r; }

int main()
{
	int i;
	double a, hi, lo, mi;

	n = in();
	for (i = 0; i < n; i++) {
		tbl[i].x = in(), a = tbl[i].r = in();
		tbl[i].r2 = a*a;
	}
	if (i == 1) { printf("%.12lf\n", (double)tbl[0].r); return 0; }

	qsort(tbl, n, sizeof(T), cmp);
	lo = 0, hi = MAX;
	for (i = 0; i < LIM; i++) {
		mi = 0.5*(lo + hi);
		if (check(mi)) lo = mi; else hi = mi;
	}
	printf("%.12lf\n", lo);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	tbl
	.bss
	.align 32
	.type	tbl, @object
	.size	tbl, 1600032
tbl:
	.zero	1600032
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.text
	.globl	in
	.type	in, @function
in:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %eax
	leal	0(,%rax,8), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	in, .-in
	.globl	check
	.type	check, @function
check:
.LFB7:
	.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
	movsd	%xmm0, -56(%rbp)
	movsd	-56(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	$0, -36(%rbp)
	jmp	.L5
.L15:
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+tbl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	-56(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L20
	movl	$0, %eax
	jmp	.L8
.L20:
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+tbl(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	subsd	-16(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -8(%rbp)
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	tbl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	subsd	-8(%rbp), %xmm0
	comisd	-32(%rbp), %xmm0
	jbe	.L9
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	tbl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	subsd	-8(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
.L9:
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	tbl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movapd	%xmm0, %xmm1
	addsd	-8(%rbp), %xmm1
	movsd	-24(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L11
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	tbl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
.L11:
	movsd	-32(%rbp), %xmm0
	comisd	-24(%rbp), %xmm0
	jbe	.L21
	movl	$0, %eax
	jmp	.L8
.L21:
	addl	$1, -36(%rbp)
.L5:
	movl	n(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L15
	movl	$1, %eax
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	check, .-check
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	cmp, .-cmp
	.section	.rodata
.LC2:
	.string	"%.12lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, n(%rip)
	movl	$0, -36(%rbp)
	jmp	.L25
.L26:
	movl	$0, %eax
	call	in
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	tbl(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	4+tbl(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+tbl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	-8(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+tbl(%rip), %rax
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -36(%rbp)
.L25:
	movl	n(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L26
	cmpl	$1, -36(%rbp)
	jne	.L27
	movl	4+tbl(%rip), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L28
.L27:
	movl	n(%rip), %eax
	cltq
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$16, %edx
	movq	%rax, %rsi
	leaq	tbl(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -32(%rbp)
	movl	$0, -36(%rbp)
	jmp	.L29
.L32:
	movsd	-24(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	addsd	-32(%rbp), %xmm1
	movsd	.LC4(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, %xmm0
	call	check
	testl	%eax, %eax
	je	.L30
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	jmp	.L31
.L30:
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
.L31:
	addl	$1, -36(%rbp)
.L29:
	cmpl	$49, -36(%rbp)
	jle	.L32
	movq	-24(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	-1053916028
	.align 8
.LC1:
	.long	0
	.long	1093567620
	.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:
```

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
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB41:
	.cfi_startproc
	endbr64
	movl	4(%rdi), %eax
	subl	4(%rsi), %eax
	ret
	.cfi_endproc
.LFE41:
	.size	cmp, .-cmp
	.p2align 4
	.globl	in
	.type	in, @function
in:
.LFB39:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L12
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L5:
	xorl	%r12d, %r12d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L3
.L7:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L9:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L6
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L3
	movq	stdin(%rip), %rdi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L5
	.cfi_endproc
.LFE39:
	.size	in, .-in
	.p2align 4
	.globl	check
	.type	check, @function
check:
.LFB40:
	.cfi_startproc
	endbr64
	movl	n(%rip), %eax
	movapd	%xmm0, %xmm6
	mulsd	%xmm0, %xmm6
	testl	%eax, %eax
	jle	.L34
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leal	-1(%rax), %ebp
	movapd	%xmm0, %xmm5
	pxor	%xmm7, %xmm7
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	tbl(%rip), %rbx
	salq	$4, %rbp
	leaq	16(%rbx), %rax
	addq	%rax, %rbp
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movsd	.LC0(%rip), %xmm3
	movsd	.LC1(%rip), %xmm2
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L31:
	movsd	8(%rbx), %xmm0
	subsd	%xmm6, %xmm0
	ucomisd	%xmm0, %xmm7
	ja	.L32
	sqrtsd	%xmm0, %xmm0
.L20:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	(%rbx), %xmm1
	movapd	%xmm1, %xmm4
	addsd	%xmm0, %xmm1
	subsd	%xmm0, %xmm4
	minsd	%xmm3, %xmm1
	maxsd	%xmm2, %xmm4
	movapd	%xmm1, %xmm3
	comisd	%xmm1, %xmm4
	movapd	%xmm4, %xmm2
	ja	.L25
	addq	$16, %rbx
	cmpq	%rbp, %rbx
	je	.L38
.L26:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	4(%rbx), %xmm0
	comisd	%xmm0, %xmm5
	jbe	.L31
.L25:
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L38:
	.cfi_restore_state
	addq	$40, %rsp
	.cfi_def_cfa_offset 24
	movl	$1, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L34:
	.cfi_restore 3
	.cfi_restore 6
	movl	$1, %eax
	ret
.L32:
	.cfi_def_cfa_offset 64
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	movsd	%xmm5, 24(%rsp)
	movsd	%xmm6, 16(%rsp)
	movsd	%xmm3, 8(%rsp)
	movsd	%xmm2, (%rsp)
	call	sqrt@PLT
	movsd	24(%rsp), %xmm5
	movsd	16(%rsp), %xmm6
	pxor	%xmm7, %xmm7
	movsd	8(%rsp), %xmm3
	movsd	(%rsp), %xmm2
	jmp	.L20
	.cfi_endproc
.LFE40:
	.size	check, .-check
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%.12lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB42:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xorl	%eax, %eax
	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
	leaq	tbl(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rbp, %r12
	xorl	%ebx, %ebx
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	call	in
	movl	%eax, n(%rip)
	testl	%eax, %eax
	jle	.L40
	.p2align 4,,10
	.p2align 3
.L53:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L79
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L42:
	xorl	%r13d, %r13d
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L43:
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L45
.L44:
	movq	%rsi, %rdx
.L46:
	leal	0(%r13,%r13,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r13d
	cmpq	%rcx, %rdx
	jb	.L43
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	cmpl	$47, %eax
	jg	.L44
	.p2align 4,,10
	.p2align 3
.L45:
	movl	%r13d, (%r12)
	cmpq	%rsi, %rcx
	jbe	.L80
	leaq	1(%rsi), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rsi), %eax
.L48:
	xorl	%r13d, %r13d
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L49:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L51
.L50:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L52:
	leal	0(%r13,%r13,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r13d
	cmpq	%rcx, %rdx
	jb	.L49
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L51
	movq	stdin(%rip), %rdi
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L51:
	pxor	%xmm0, %xmm0
	addl	$1, %ebx
	movl	%r13d, 4(%r12)
	addq	$16, %r12
	cvtsi2sdl	%r13d, %xmm0
	movl	n(%rip), %eax
	mulsd	%xmm0, %xmm0
	movsd	%xmm0, -8(%r12)
	cmpl	%ebx, %eax
	jg	.L53
	cmpl	$1, %ebx
	je	.L81
.L40:
	movslq	%eax, %rsi
	leaq	cmp(%rip), %rcx
	movl	$16, %edx
	movq	%rbp, %rdi
	call	qsort@PLT
	movl	n(%rip), %r14d
	pxor	%xmm6, %xmm6
	movsd	.LC0(%rip), %xmm10
	leaq	16+tbl(%rip), %rax
	movl	$50, %r13d
	movapd	%xmm6, %xmm8
	movsd	.LC4(%rip), %xmm9
	leal	-1(%r14), %r12d
	movapd	%xmm10, %xmm7
	salq	$4, %r12
	addq	%rax, %r12
	.p2align 4,,10
	.p2align 3
.L64:
	movapd	%xmm7, %xmm4
	addsd	%xmm8, %xmm4
	mulsd	%xmm9, %xmm4
	movapd	%xmm4, %xmm5
	mulsd	%xmm4, %xmm5
	testl	%r14d, %r14d
	jle	.L65
	movsd	.LC1(%rip), %xmm1
	movq	%rbp, %rbx
	movapd	%xmm10, %xmm2
	jmp	.L63
	.p2align 4,,10
	.p2align 3
.L82:
	movsd	8(%rbx), %xmm0
	subsd	%xmm5, %xmm0
	ucomisd	%xmm0, %xmm6
	ja	.L77
	sqrtsd	%xmm0, %xmm0
.L58:
	pxor	%xmm3, %xmm3
	cvtsi2sdl	(%rbx), %xmm3
	movapd	%xmm3, %xmm11
	subsd	%xmm0, %xmm11
	addsd	%xmm3, %xmm0
	maxsd	%xmm1, %xmm11
	minsd	%xmm2, %xmm0
	comisd	%xmm0, %xmm11
	movapd	%xmm11, %xmm1
	movapd	%xmm0, %xmm2
	ja	.L67
	addq	$16, %rbx
	cmpq	%r12, %rbx
	je	.L65
.L63:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	4(%rbx), %xmm0
	comisd	%xmm0, %xmm4
	jbe	.L82
.L67:
	movapd	%xmm4, %xmm7
.L55:
	subl	$1, %r13d
	jne	.L64
	movapd	%xmm8, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
.L54:
	addq	$48, %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
	.p2align 4,,10
	.p2align 3
.L65:
	.cfi_restore_state
	movapd	%xmm4, %xmm8
	jmp	.L55
.L79:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L42
.L80:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L48
.L81:
	pxor	%xmm0, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	cvtsi2sdl	4+tbl(%rip), %xmm0
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L54
.L77:
	movsd	%xmm2, 40(%rsp)
	movsd	%xmm5, 32(%rsp)
	movsd	%xmm4, 24(%rsp)
	movsd	%xmm8, 16(%rsp)
	movsd	%xmm7, 8(%rsp)
	movsd	%xmm1, (%rsp)
	call	sqrt@PLT
	movq	.LC4(%rip), %rax
	movsd	(%rsp), %xmm1
	pxor	%xmm6, %xmm6
	movsd	40(%rsp), %xmm2
	movsd	32(%rsp), %xmm5
	movq	%rax, %xmm9
	movq	.LC0(%rip), %rax
	movsd	24(%rsp), %xmm4
	movsd	16(%rsp), %xmm8
	movsd	8(%rsp), %xmm7
	movq	%rax, %xmm10
	jmp	.L58
	.cfi_endproc
.LFE42:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	tbl
	.align 32
	.type	tbl, @object
	.size	tbl, 1600032
tbl:
	.zero	1600032
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1093567620
	.align 8
.LC1:
	.long	0
	.long	-1053916028
	.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
	.p2align 4
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB41:
	.cfi_startproc
	endbr64
	movl	4(%rdi), %eax
	subl	4(%rsi), %eax
	ret
	.cfi_endproc
.LFE41:
	.size	cmp, .-cmp
	.p2align 4
	.globl	in
	.type	in, @function
in:
.LFB39:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L12
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L5:
	xorl	%r12d, %r12d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L3
.L7:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L9:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L6
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L3
	movq	stdin(%rip), %rdi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L5
	.cfi_endproc
.LFE39:
	.size	in, .-in
	.p2align 4
	.globl	check
	.type	check, @function
check:
.LFB40:
	.cfi_startproc
	endbr64
	movl	n(%rip), %eax
	movapd	%xmm0, %xmm6
	mulsd	%xmm0, %xmm6
	testl	%eax, %eax
	jle	.L34
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leal	-1(%rax), %ebp
	movapd	%xmm0, %xmm5
	pxor	%xmm7, %xmm7
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	tbl(%rip), %rbx
	salq	$4, %rbp
	leaq	16(%rbx), %rax
	addq	%rax, %rbp
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movsd	.LC0(%rip), %xmm3
	movsd	.LC1(%rip), %xmm2
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L31:
	movsd	8(%rbx), %xmm0
	subsd	%xmm6, %xmm0
	ucomisd	%xmm0, %xmm7
	ja	.L32
	sqrtsd	%xmm0, %xmm0
.L20:
	pxor	%xmm1, %xmm1
	cvtsi2sdl	(%rbx), %xmm1
	movapd	%xmm1, %xmm4
	addsd	%xmm0, %xmm1
	subsd	%xmm0, %xmm4
	minsd	%xmm3, %xmm1
	maxsd	%xmm2, %xmm4
	movapd	%xmm1, %xmm3
	comisd	%xmm1, %xmm4
	movapd	%xmm4, %xmm2
	ja	.L25
	addq	$16, %rbx
	cmpq	%rbp, %rbx
	je	.L38
.L26:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	4(%rbx), %xmm0
	comisd	%xmm0, %xmm5
	jbe	.L31
.L25:
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L38:
	.cfi_restore_state
	addq	$40, %rsp
	.cfi_def_cfa_offset 24
	movl	$1, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L34:
	.cfi_restore 3
	.cfi_restore 6
	movl	$1, %eax
	ret
.L32:
	.cfi_def_cfa_offset 64
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	movsd	%xmm5, 24(%rsp)
	movsd	%xmm6, 16(%rsp)
	movsd	%xmm3, 8(%rsp)
	movsd	%xmm2, (%rsp)
	call	sqrt@PLT
	movsd	24(%rsp), %xmm5
	movsd	16(%rsp), %xmm6
	pxor	%xmm7, %xmm7
	movsd	8(%rsp), %xmm3
	movsd	(%rsp), %xmm2
	jmp	.L20
	.cfi_endproc
.LFE40:
	.size	check, .-check
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%.12lf\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB42:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xorl	%eax, %eax
	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
	leaq	tbl(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	movq	%rbp, %r12
	xorl	%ebx, %ebx
	subq	$48, %rsp
	.cfi_def_cfa_offset 96
	call	in
	movl	%eax, n(%rip)
	testl	%eax, %eax
	jle	.L40
	.p2align 4,,10
	.p2align 3
.L53:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L79
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L42:
	xorl	%r13d, %r13d
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L43:
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L45
.L44:
	movq	%rsi, %rdx
.L46:
	leal	0(%r13,%r13,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r13d
	cmpq	%rcx, %rdx
	jb	.L43
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	cmpl	$47, %eax
	jg	.L44
	.p2align 4,,10
	.p2align 3
.L45:
	movl	%r13d, (%r12)
	cmpq	%rsi, %rcx
	jbe	.L80
	leaq	1(%rsi), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rsi), %eax
.L48:
	xorl	%r13d, %r13d
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L49:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L51
.L50:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L52:
	leal	0(%r13,%r13,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r13d
	cmpq	%rcx, %rdx
	jb	.L49
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L51
	movq	stdin(%rip), %rdi
	jmp	.L50
	.p2align 4,,10
	.p2align 3
.L51:
	pxor	%xmm0, %xmm0
	addl	$1, %ebx
	movl	%r13d, 4(%r12)
	addq	$16, %r12
	cvtsi2sdl	%r13d, %xmm0
	movl	n(%rip), %eax
	mulsd	%xmm0, %xmm0
	movsd	%xmm0, -8(%r12)
	cmpl	%ebx, %eax
	jg	.L53
	cmpl	$1, %ebx
	je	.L81
.L40:
	movslq	%eax, %rsi
	leaq	cmp(%rip), %rcx
	movl	$16, %edx
	movq	%rbp, %rdi
	call	qsort@PLT
	movl	n(%rip), %r14d
	pxor	%xmm6, %xmm6
	movsd	.LC0(%rip), %xmm10
	leaq	16+tbl(%rip), %rax
	movl	$50, %r13d
	movapd	%xmm6, %xmm8
	movsd	.LC4(%rip), %xmm9
	leal	-1(%r14), %r12d
	movapd	%xmm10, %xmm7
	salq	$4, %r12
	addq	%rax, %r12
	.p2align 4,,10
	.p2align 3
.L64:
	movapd	%xmm7, %xmm4
	addsd	%xmm8, %xmm4
	mulsd	%xmm9, %xmm4
	movapd	%xmm4, %xmm5
	mulsd	%xmm4, %xmm5
	testl	%r14d, %r14d
	jle	.L65
	movsd	.LC1(%rip), %xmm1
	movq	%rbp, %rbx
	movapd	%xmm10, %xmm2
	jmp	.L63
	.p2align 4,,10
	.p2align 3
.L82:
	movsd	8(%rbx), %xmm0
	subsd	%xmm5, %xmm0
	ucomisd	%xmm0, %xmm6
	ja	.L77
	sqrtsd	%xmm0, %xmm0
.L58:
	pxor	%xmm3, %xmm3
	cvtsi2sdl	(%rbx), %xmm3
	movapd	%xmm3, %xmm11
	subsd	%xmm0, %xmm11
	addsd	%xmm3, %xmm0
	maxsd	%xmm1, %xmm11
	minsd	%xmm2, %xmm0
	comisd	%xmm0, %xmm11
	movapd	%xmm11, %xmm1
	movapd	%xmm0, %xmm2
	ja	.L67
	addq	$16, %rbx
	cmpq	%r12, %rbx
	je	.L65
.L63:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	4(%rbx), %xmm0
	comisd	%xmm0, %xmm4
	jbe	.L82
.L67:
	movapd	%xmm4, %xmm7
.L55:
	subl	$1, %r13d
	jne	.L64
	movapd	%xmm8, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
.L54:
	addq	$48, %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
	.p2align 4,,10
	.p2align 3
.L65:
	.cfi_restore_state
	movapd	%xmm4, %xmm8
	jmp	.L55
.L79:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L42
.L80:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L48
.L81:
	pxor	%xmm0, %xmm0
	movl	$1, %edi
	movl	$1, %eax
	cvtsi2sdl	4+tbl(%rip), %xmm0
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L54
.L77:
	movsd	%xmm2, 40(%rsp)
	movsd	%xmm5, 32(%rsp)
	movsd	%xmm4, 24(%rsp)
	movsd	%xmm8, 16(%rsp)
	movsd	%xmm7, 8(%rsp)
	movsd	%xmm1, (%rsp)
	call	sqrt@PLT
	movq	.LC4(%rip), %rax
	movsd	(%rsp), %xmm1
	pxor	%xmm6, %xmm6
	movsd	40(%rsp), %xmm2
	movsd	32(%rsp), %xmm5
	movq	%rax, %xmm9
	movq	.LC0(%rip), %rax
	movsd	24(%rsp), %xmm4
	movsd	16(%rsp), %xmm8
	movsd	8(%rsp), %xmm7
	movq	%rax, %xmm10
	jmp	.L58
	.cfi_endproc
.LFE42:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	tbl
	.align 32
	.type	tbl, @object
	.size	tbl, 1600032
tbl:
	.zero	1600032
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1093567620
	.align 8
.LC1:
	.long	0
	.long	-1053916028
	.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:

// AOJ 323 ruins
// 2018.2.25 bal4u

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#define LIM		50
#define MAX		1000002
#define EPS		1e-8
 
typedef struct { int x, r; double r2; } T;
T tbl[100002];
int n;

//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0;
	int c = getchar_unlocked();
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
	while (c >= '0');
	return n;
}

int check(double d)
{
	int i;
	double xmin, xmax, xx, d2;

	d2 = d*d;
	xmin = -MAX, xmax = MAX;
	for (i = 0; i < n; i++) {
		if (tbl[i].r < d) return 0;
		xx = sqrt(tbl[i].r2 - d2);
		if (tbl[i].x - xx > xmin) xmin = tbl[i].x - xx;
		if (tbl[i].x + xx < xmax) xmax = tbl[i].x + xx;
		if (xmin > xmax) return 0;
	}
	return 1;
}

int cmp(T *a, T *b) { return a->r - b->r; }

int main()
{
	int i;
	double a, hi, lo, mi;

	n = in();
	for (i = 0; i < n; i++) {
		tbl[i].x = in(), a = tbl[i].r = in();
		tbl[i].r2 = a*a;
	}
	if (i == 1) { printf("%.12lf\n", (double)tbl[0].r); return 0; }

	qsort(tbl, n, sizeof(T), cmp);
	lo = 0, hi = MAX;
	for (i = 0; i < LIM; i++) {
		mi = 0.5*(lo + hi);
		if (check(mi)) lo = mi; else hi = mi;
	}
	printf("%.12lf\n", lo);
	return 0;
}

2
1 2
1 2
 2
0 1
4 2
 2
1 2
0 2
 2
2 2
0 2
 2
2 2
0 1
 2
3 2
0 2
 2
0 2
0 1
 3
-1 3
1 2
2 2
 2
1 1
0 1
 2
0 3
1 3

1.999999999916
 0.000000000000
 1.936491672423
 1.732050806979
 0.968245835768
 1.322875655103
 0.999999999958
 0.000000000000
 0.866025403489
 2.958039891166

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

```c
// AOJ 323 ruins
// 2018.2.25 bal4u

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#define LIM		50
#define MAX		1000002
#define EPS		1e-8
 
typedef struct { int x, r; double r2; } T;
T tbl[100002];
int n;

//#define getchar_unlocked()  getchar()
int in()
{
	int n = 0;
	int c = getchar_unlocked();
	do n = (n<<3)+(n<<1) + (c & 0xf), c = getchar_unlocked();
	while (c >= '0');
	return n;
}

int check(double d)
{
	int i;
	double xmin, xmax, xx, d2;

	d2 = d*d;
	xmin = -MAX, xmax = MAX;
	for (i = 0; i < n; i++) {
		if (tbl[i].r < d) return 0;
		xx = sqrt(tbl[i].r2 - d2);
		if (tbl[i].x - xx > xmin) xmin = tbl[i].x - xx;
		if (tbl[i].x + xx < xmax) xmax = tbl[i].x + xx;
		if (xmin > xmax) return 0;
	}
	return 1;
}

int cmp(T *a, T *b) { return a->r - b->r; }

int main()
{
	int i;
	double a, hi, lo, mi;

	n = in();
	for (i = 0; i < n; i++) {
		tbl[i].x = in(), a = tbl[i].r = in();
		tbl[i].r2 = a*a;
	}
	if (i == 1) { printf("%.12lf\n", (double)tbl[0].r); return 0; }

	qsort(tbl, n, sizeof(T), cmp);
	lo = 0, hi = MAX;
	for (i = 0; i < LIM; i++) {
		mi = 0.5*(lo + hi);
		if (check(mi)) lo = mi; else hi = mi;
	}
	printf("%.12lf\n", lo);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	tbl
	.bss
	.align 32
	.type	tbl, @object
	.size	tbl, 1600032
tbl:
	.zero	1600032
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.text
	.globl	in
	.type	in, @function
in:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %eax
	leal	0(,%rax,8), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	in, .-in
	.globl	check
	.type	check, @function
check:
.LFB7:
	.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
	movsd	%xmm0, -56(%rbp)
	movsd	-56(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	$0, -36(%rbp)
	jmp	.L5
.L15:
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+tbl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	-56(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L20
	movl	$0, %eax
	jmp	.L8
.L20:
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+tbl(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	subsd	-16(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -8(%rbp)
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	tbl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	subsd	-8(%rbp), %xmm0
	comisd	-32(%rbp), %xmm0
	jbe	.L9
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	tbl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	subsd	-8(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
.L9:
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	tbl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movapd	%xmm0, %xmm1
	addsd	-8(%rbp), %xmm1
	movsd	-24(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L11
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	tbl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
.L11:
	movsd	-32(%rbp), %xmm0
	comisd	-24(%rbp), %xmm0
	jbe	.L21
	movl	$0, %eax
	jmp	.L8
.L21:
	addl	$1, -36(%rbp)
.L5:
	movl	n(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L15
	movl	$1, %eax
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	check, .-check
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	cmp, .-cmp
	.section	.rodata
.LC2:
	.string	"%.12lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, n(%rip)
	movl	$0, -36(%rbp)
	jmp	.L25
.L26:
	movl	$0, %eax
	call	in
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	tbl(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	4+tbl(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+tbl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	-8(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+tbl(%rip), %rax
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -36(%rbp)
.L25:
	movl	n(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L26
	cmpl	$1, -36(%rbp)
	jne	.L27
	movl	4+tbl(%rip), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L28
.L27:
	movl	n(%rip), %eax
	cltq
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$16, %edx
	movq	%rax, %rsi
	leaq	tbl(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -32(%rbp)
	movl	$0, -36(%rbp)
	jmp	.L29
.L32:
	movsd	-24(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	addsd	-32(%rbp), %xmm1
	movsd	.LC4(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, %xmm0
	call	check
	testl	%eax, %eax
	je	.L30
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	jmp	.L31
.L30:
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
.L31:
	addl	$1, -36(%rbp)
.L29:
	cmpl	$49, -36(%rbp)
	jle	.L32
	movq	-24(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	-1053916028
	.align 8
.LC1:
	.long	0
	.long	1093567620
	.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:
```

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	tbl
	.bss
	.align 32
	.type	tbl, @object
	.size	tbl, 1600032
tbl:
	.zero	1600032
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.text
	.globl	in
	.type	in, @function
in:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %eax
	leal	0(,%rax,8), %edx
	movl	-8(%rbp), %eax
	addl	%eax, %eax
	addl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	in, .-in
	.globl	check
	.type	check, @function
check:
.LFB7:
	.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
	movsd	%xmm0, -56(%rbp)
	movsd	-56(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	movsd	%xmm0, -16(%rbp)
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -24(%rbp)
	movl	$0, -36(%rbp)
	jmp	.L5
.L15:
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+tbl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	-56(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L20
	movl	$0, %eax
	jmp	.L8
.L20:
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+tbl(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	subsd	-16(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -8(%rbp)
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	tbl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	subsd	-8(%rbp), %xmm0
	comisd	-32(%rbp), %xmm0
	jbe	.L9
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	tbl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	subsd	-8(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
.L9:
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	tbl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movapd	%xmm0, %xmm1
	addsd	-8(%rbp), %xmm1
	movsd	-24(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jbe	.L11
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	tbl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	-8(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -24(%rbp)
.L11:
	movsd	-32(%rbp), %xmm0
	comisd	-24(%rbp), %xmm0
	jbe	.L21
	movl	$0, %eax
	jmp	.L8
.L21:
	addl	$1, -36(%rbp)
.L5:
	movl	n(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L15
	movl	$1, %eax
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	check, .-check
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	cmp, .-cmp
	.section	.rodata
.LC2:
	.string	"%.12lf\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, n(%rip)
	movl	$0, -36(%rbp)
	jmp	.L25
.L26:
	movl	$0, %eax
	call	in
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	tbl(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	4+tbl(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	4+tbl(%rip), %rax
	movl	(%rdx,%rax), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	-8(%rbp), %xmm0
	mulsd	%xmm0, %xmm0
	movl	-36(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+tbl(%rip), %rax
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -36(%rbp)
.L25:
	movl	n(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L26
	cmpl	$1, -36(%rbp)
	jne	.L27
	movl	4+tbl(%rip), %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L28
.L27:
	movl	n(%rip), %eax
	cltq
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$16, %edx
	movq	%rax, %rsi
	leaq	tbl(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	.LC1(%rip), %xmm0
	movsd	%xmm0, -32(%rbp)
	movl	$0, -36(%rbp)
	jmp	.L29
.L32:
	movsd	-24(%rbp), %xmm0
	movapd	%xmm0, %xmm1
	addsd	-32(%rbp), %xmm1
	movsd	.LC4(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, %xmm0
	call	check
	testl	%eax, %eax
	je	.L30
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	jmp	.L31
.L30:
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
.L31:
	addl	$1, -36(%rbp)
.L29:
	cmpl	$49, -36(%rbp)
	jle	.L32
	movq	-24(%rbp), %rax
	movq	%rax, %xmm0
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	movl	$0, %eax
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	-1053916028
	.align 8
.LC1:
	.long	0
	.long	1093567620
	.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:
