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

```c
// Aizu 1107: Spiral Footrace
// 2017.9.16 bal4u@uu

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

#define EPS 1e-6

int x[405], y[405];
char f[405];
double ans;

double theta(int x1, int y1, int x2, int y2)
{
    int dx, dy, ax, ay;
    double t;

    dx = x2 - x1;
    ax = dx < 0 ? -dx : dx;
    dy = y2 - y1;
    ay = dy < 0 ? -dy : dy;
    t = (ax + ay == 0) ? 0 : (double)dy/(double)(ax+ay);
    if (dx < 0) t = 2 - t;
    else if (dy < 0) t = 4 + t;
    return t * 90.0;
}

void convexHull(int pn, int *x, int *y)
{
    int i, j, px, py;
    int min;
    double minang, nowang;
    double dist, d, rad;

    min = 0, minang = 90, px = py = 0;
    for (j = 0; j < pn; j++) {
        dist = 0x7ffffff, nowang = minang; minang = -360;
		if (nowang < 0) nowang += 360;
        for (i = 0; i < pn; i++) {
			if (f[i]) continue;
            d = sqrt((x[i]-px)*(x[i]-px)+(y[i]-py)*(y[i]-py));
            rad = theta(px, py, x[i], y[i]);
	        if (d == 0) continue;
			if (rad > nowang) rad -= 360;
            if (rad < nowang+EPS) {
                if (rad - EPS > minang) {
                    dist = d;
                    minang = rad;
                    min = i;
                } else if (fabs(rad-minang) <= EPS && d < dist) {
                    dist = d;
                    minang = rad;
                    min = i;
                }
            }
#if 0
			else if (fabs(rad-nowang) < EPS && d > EPS &&
                       fabs(rad-minang) > EPS || d < dist) {
                dist = d;
                minang = rad;
                min = i;
            }
#endif
        }
		f[min] = 1;
		ans += sqrt((px-x[min])*(px-x[min])+(py-y[min])*(py-y[min]));
		px = x[min], py = y[min];
    }
}

int main()
{
	int n, i;

	while (scanf("%d", &n) && n) {
		memset(f, 0, sizeof(f));
		for (i = 0; i < n; i++) scanf("%d%d", x+i, y+i);
		ans = 0; convexHull(n, x, y);
		printf("%.1lf\n", ans);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	x
	.bss
	.align 32
	.type	x, @object
	.size	x, 1620
x:
	.zero	1620
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 1620
y:
	.zero	1620
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 405
f:
	.zero	405
	.globl	ans
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.text
	.globl	theta
	.type	theta, @function
theta:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	%edx, -44(%rbp)
	movl	%ecx, -48(%rbp)
	movl	-44(%rbp), %eax
	subl	-36(%rbp), %eax
	movl	%eax, -24(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -20(%rbp)
	movl	-48(%rbp), %eax
	subl	-40(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	testl	%eax, %eax
	je	.L2
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-16(%rbp), %xmm0
	movl	-20(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
	jmp	.L3
.L2:
	pxor	%xmm0, %xmm0
.L3:
	movsd	%xmm0, -8(%rbp)
	cmpl	$0, -24(%rbp)
	jns	.L4
	movsd	.LC1(%rip), %xmm0
	subsd	-8(%rbp), %xmm0
	movsd	%xmm0, -8(%rbp)
	jmp	.L5
.L4:
	cmpl	$0, -16(%rbp)
	jns	.L5
	movsd	-8(%rbp), %xmm1
	movsd	.LC2(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
.L5:
	movsd	-8(%rbp), %xmm1
	movsd	.LC3(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	theta, .-theta
	.globl	convexHull
	.type	convexHull, @function
convexHull:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movl	%edi, -68(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%rdx, -88(%rbp)
	movl	$0, -44(%rbp)
	movsd	.LC3(%rip), %xmm0
	movsd	%xmm0, -40(%rbp)
	movl	$0, -48(%rbp)
	movl	-48(%rbp), %eax
	movl	%eax, -52(%rbp)
	movl	$0, -56(%rbp)
	jmp	.L8
.L24:
	movsd	.LC4(%rip), %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-40(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	.LC5(%rip), %xmm0
	movsd	%xmm0, -40(%rbp)
	pxor	%xmm0, %xmm0
	comisd	-32(%rbp), %xmm0
	jbe	.L9
	movsd	-32(%rbp), %xmm1
	movsd	.LC6(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
.L9:
	movl	$0, -60(%rbp)
	jmp	.L11
.L23:
	movl	-60(%rbp), %eax
	cltq
	leaq	f(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L32
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	subl	-52(%rbp), %eax
	movl	%eax, %edx
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-80(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	subl	-52(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	subl	-48(%rbp), %eax
	movl	%eax, %edx
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-88(%rbp), %rax
	addq	%rsi, %rax
	movl	(%rax), %eax
	subl	-48(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -8(%rbp)
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-48(%rbp), %esi
	movl	-52(%rbp), %eax
	movl	%eax, %edi
	call	theta
	movq	%xmm0, %rax
	movq	%rax, -16(%rbp)
	pxor	%xmm0, %xmm0
	ucomisd	-8(%rbp), %xmm0
	jp	.L14
	pxor	%xmm0, %xmm0
	ucomisd	-8(%rbp), %xmm0
	je	.L33
.L14:
	movsd	-16(%rbp), %xmm0
	comisd	-32(%rbp), %xmm0
	jbe	.L16
	movsd	-16(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
.L16:
	movsd	-32(%rbp), %xmm1
	movsd	.LC7(%rip), %xmm0
	addsd	%xmm1, %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L13
	movsd	-16(%rbp), %xmm0
	movsd	.LC7(%rip), %xmm1
	subsd	%xmm1, %xmm0
	comisd	-40(%rbp), %xmm0
	jbe	.L31
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -40(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -44(%rbp)
	jmp	.L13
.L31:
	movsd	-16(%rbp), %xmm0
	subsd	-40(%rbp), %xmm0
	movq	.LC8(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC7(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L13
	movsd	-24(%rbp), %xmm0
	comisd	-8(%rbp), %xmm0
	jbe	.L13
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -40(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -44(%rbp)
	jmp	.L13
.L32:
	nop
	jmp	.L13
.L33:
	nop
.L13:
	addl	$1, -60(%rbp)
.L11:
	movl	-60(%rbp), %eax
	cmpl	-68(%rbp), %eax
	jl	.L23
	movl	-44(%rbp), %eax
	cltq
	leaq	f(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-52(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-80(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %ecx
	movl	-52(%rbp), %eax
	subl	%ecx, %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %eax
	subl	%esi, %eax
	movl	%eax, %edx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-88(%rbp), %rax
	addq	%rsi, %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %eax
	subl	%esi, %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%eax, %xmm3
	movq	%xmm3, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movsd	ans(%rip), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, ans(%rip)
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	addl	$1, -56(%rbp)
.L8:
	movl	-56(%rbp), %eax
	cmpl	-68(%rbp), %eax
	jl	.L24
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	convexHull, .-convexHull
	.section	.rodata
.LC9:
	.string	"%d%d"
.LC10:
	.string	"%.1lf\n"
.LC11:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L35
.L39:
	movl	$405, %edx
	movl	$0, %esi
	leaq	f(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -12(%rbp)
	jmp	.L36
.L37:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	x(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC9(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12(%rbp)
.L36:
	movl	-16(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L37
	pxor	%xmm0, %xmm0
	movsd	%xmm0, ans(%rip)
	movl	-16(%rbp), %eax
	leaq	y(%rip), %rdx
	leaq	x(%rip), %rcx
	movq	%rcx, %rsi
	movl	%eax, %edi
	call	convexHull
	movq	ans(%rip), %rax
	movq	%rax, %xmm0
	leaq	.LC10(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
.L35:
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC11(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L38
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jne	.L39
.L38:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1073741824
	.align 8
.LC2:
	.long	0
	.long	1074790400
	.align 8
.LC3:
	.long	0
	.long	1079410688
	.align 8
.LC4:
	.long	-67108864
	.long	1101004799
	.align 8
.LC5:
	.long	0
	.long	-1065975808
	.align 8
.LC6:
	.long	0
	.long	1081507840
	.align 8
.LC7:
	.long	-1598689907
	.long	1051772663
	.align 16
.LC8:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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	theta
	.type	theta, @function
theta:
.LFB35:
	.cfi_startproc
	endbr64
	subl	%edi, %edx
	subl	%esi, %ecx
	pxor	%xmm0, %xmm0
	movl	%edx, %eax
	movl	%ecx, %esi
	negl	%eax
	cmovs	%edx, %eax
	negl	%esi
	cmovs	%ecx, %esi
	addl	%esi, %eax
	je	.L2
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ecx, %xmm0
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
.L2:
	testl	%edx, %edx
	js	.L8
	testl	%ecx, %ecx
	js	.L9
	mulsd	.LC3(%rip), %xmm0
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	addsd	.LC2(%rip), %xmm0
	mulsd	.LC3(%rip), %xmm0
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	movsd	.LC1(%rip), %xmm1
	subsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	mulsd	.LC3(%rip), %xmm0
	ret
	.cfi_endproc
.LFE35:
	.size	theta, .-theta
	.p2align 4
	.globl	convexHull
	.type	convexHull, @function
convexHull:
.LFB36:
	.cfi_startproc
	endbr64
	movl	%edi, %r8d
	testl	%edi, %edi
	jle	.L49
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdx, %rdi
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pxor	%xmm1, %xmm1
	xorl	%r14d, %r14d
	movslq	%r8d, %rcx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	f(%rip), %r15
	xorl	%r13d, %r13d
	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	$88, %rsp
	.cfi_def_cfa_offset 144
	movsd	.LC3(%rip), %xmm6
	movsd	ans(%rip), %xmm5
	movsd	.LC4(%rip), %xmm10
	movsd	.LC5(%rip), %xmm9
	movsd	.LC7(%rip), %xmm4
	movapd	%xmm6, %xmm3
	movq	.LC8(%rip), %xmm11
	movsd	.LC6(%rip), %xmm8
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%ebx, %ebx
	movapd	%xmm10, %xmm14
	movapd	%xmm9, %xmm2
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L20:
	testl	%ebp, %ebp
	jns	.L21
	addsd	.LC2(%rip), %xmm0
.L21:
	ucomisd	%xmm1, %xmm12
	jp	.L38
	je	.L15
.L38:
	mulsd	%xmm6, %xmm0
	comisd	%xmm3, %xmm0
	jbe	.L23
	subsd	%xmm8, %xmm0
.L23:
	movapd	%xmm3, %xmm7
	addsd	%xmm4, %xmm7
	comisd	%xmm0, %xmm7
	jbe	.L15
	movapd	%xmm0, %xmm7
	subsd	%xmm4, %xmm7
	comisd	%xmm2, %xmm7
	ja	.L35
	movapd	%xmm0, %xmm13
	subsd	%xmm2, %xmm13
	andpd	%xmm11, %xmm13
	comisd	%xmm13, %xmm4
	jb	.L15
	comisd	%xmm12, %xmm14
	jbe	.L15
.L35:
	movapd	%xmm12, %xmm14
	movapd	%xmm0, %xmm2
	movl	%edx, %r10d
	.p2align 4,,10
	.p2align 3
.L15:
	addq	$1, %rbx
	cmpq	%rbx, %rcx
	je	.L52
.L28:
	cmpb	$0, (%r15,%rbx)
	movl	%ebx, %edx
	jne	.L15
	movl	(%rsi,%rbx,4), %r12d
	movl	(%rdi,%rbx,4), %ebp
	pxor	%xmm12, %xmm12
	subl	%r13d, %r12d
	subl	%r14d, %ebp
	movl	%r12d, %eax
	movl	%ebp, %r11d
	imull	%r12d, %eax
	imull	%ebp, %r11d
	addl	%r11d, %eax
	cvtsi2sdl	%eax, %xmm12
	ucomisd	%xmm12, %xmm1
	ja	.L46
	sqrtsd	%xmm12, %xmm12
.L18:
	movl	%r12d, %eax
	movl	%ebp, %r11d
	movapd	%xmm1, %xmm0
	negl	%eax
	cmovs	%r12d, %eax
	negl	%r11d
	cmovs	%ebp, %r11d
	addl	%r11d, %eax
	je	.L19
	pxor	%xmm0, %xmm0
	pxor	%xmm13, %xmm13
	cvtsi2sdl	%ebp, %xmm0
	cvtsi2sdl	%eax, %xmm13
	divsd	%xmm13, %xmm0
.L19:
	testl	%r12d, %r12d
	jns	.L20
	movsd	.LC1(%rip), %xmm13
	subsd	%xmm0, %xmm13
	movapd	%xmm13, %xmm0
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L52:
	movslq	%r10d, %rax
	pxor	%xmm0, %xmm0
	movb	$1, (%r15,%rax)
	salq	$2, %rax
	leaq	(%rsi,%rax), %rbx
	addq	%rdi, %rax
	movl	(%rbx), %edx
	movl	(%rax), %r11d
	subl	%edx, %r13d
	subl	%r11d, %r14d
	imull	%r13d, %r13d
	imull	%r14d, %r14d
	addl	%r14d, %r13d
	cvtsi2sdl	%r13d, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L47
	sqrtsd	%xmm0, %xmm0
.L31:
	addsd	%xmm0, %xmm5
	addl	$1, %r9d
	movsd	%xmm5, ans(%rip)
	cmpl	%r9d, %r8d
	je	.L53
	comisd	%xmm2, %xmm1
	jbe	.L13
	addsd	.LC6(%rip), %xmm2
.L13:
	movl	%r11d, %r14d
	movl	%edx, %r13d
	movapd	%xmm2, %xmm3
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L53:
	addq	$88, %rsp
	.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
.L49:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
.L46:
	.cfi_def_cfa_offset 144
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	movapd	%xmm12, %xmm0
	movq	%rcx, 72(%rsp)
	movq	%rdi, 64(%rsp)
	movq	%rsi, 56(%rsp)
	movl	%r8d, 48(%rsp)
	movl	%r9d, 40(%rsp)
	movl	%r10d, 28(%rsp)
	movsd	%xmm14, 32(%rsp)
	movsd	%xmm3, 16(%rsp)
	movsd	%xmm2, 8(%rsp)
	movsd	%xmm5, (%rsp)
	movl	%ebx, 24(%rsp)
	call	sqrt@PLT
	movq	.LC6(%rip), %rax
	movq	72(%rsp), %rcx
	pxor	%xmm1, %xmm1
	movq	64(%rsp), %rdi
	movq	56(%rsp), %rsi
	movapd	%xmm0, %xmm12
	movq	%rax, %xmm8
	movl	48(%rsp), %r8d
	movq	.LC7(%rip), %rax
	movl	40(%rsp), %r9d
	movsd	32(%rsp), %xmm14
	movq	%rax, %xmm4
	movq	.LC5(%rip), %rax
	movl	28(%rsp), %r10d
	movq	.LC8(%rip), %xmm11
	movl	24(%rsp), %edx
	movq	%rax, %xmm9
	movsd	16(%rsp), %xmm3
	movsd	8(%rsp), %xmm2
	movq	.LC4(%rip), %rax
	movsd	(%rsp), %xmm5
	movq	%rax, %xmm10
	movq	.LC3(%rip), %rax
	movq	%rax, %xmm6
	jmp	.L18
.L47:
	movq	%rcx, 56(%rsp)
	movq	%rdi, 48(%rsp)
	movq	%rsi, 40(%rsp)
	movl	%r8d, 32(%rsp)
	movl	%r9d, 28(%rsp)
	movl	%r10d, 24(%rsp)
	movq	%rax, (%rsp)
	movsd	%xmm2, 16(%rsp)
	movsd	%xmm5, 8(%rsp)
	call	sqrt@PLT
	movq	(%rsp), %rax
	movl	(%rbx), %edx
	pxor	%xmm1, %xmm1
	movq	56(%rsp), %rcx
	movq	48(%rsp), %rdi
	movl	(%rax), %r11d
	movq	.LC6(%rip), %rax
	movq	40(%rsp), %rsi
	movl	32(%rsp), %r8d
	movq	%rax, %xmm8
	movq	.LC7(%rip), %rax
	movl	28(%rsp), %r9d
	movl	24(%rsp), %r10d
	movsd	16(%rsp), %xmm2
	movq	%rax, %xmm4
	movq	.LC5(%rip), %rax
	movq	.LC8(%rip), %xmm11
	movsd	8(%rsp), %xmm5
	movq	%rax, %xmm9
	movq	.LC4(%rip), %rax
	movq	%rax, %xmm10
	movq	.LC3(%rip), %rax
	movq	%rax, %xmm6
	jmp	.L31
	.cfi_endproc
.LFE36:
	.size	convexHull, .-convexHull
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC9:
	.string	"%d%d"
.LC10:
	.string	"%.1lf\n"
.LC11:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC11(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC9(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	y(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L55:
	xorl	%eax, %eax
	movq	%r14, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L58
	movl	4(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L58
	movl	$50, %ecx
	movl	$0, %eax
	leaq	f(%rip), %rdi
	rep stosq
	movl	$0, (%rdi)
	movb	$0, 404+f(%rip)
	jle	.L56
	leaq	x(%rip), %r15
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L57:
	leaq	(%rbx,%r12,4), %rdx
	movq	%r15, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r8d
	addq	$1, %r12
	addq	$4, %r15
	cmpl	%r12d, %r8d
	jg	.L57
.L56:
	movl	%r8d, %edi
	movq	%rbx, %rdx
	leaq	x(%rip), %rsi
	movq	$0x000000000, ans(%rip)
	call	convexHull
	movl	$1, %edi
	movl	$1, %eax
	movsd	ans(%rip), %xmm0
	leaq	.LC10(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L58:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L67
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L67:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.size	main, .-main
	.globl	ans
	.bss
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 405
f:
	.zero	405
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 1620
y:
	.zero	1620
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 1620
x:
	.zero	1620
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1073741824
	.align 8
.LC2:
	.long	0
	.long	1074790400
	.align 8
.LC3:
	.long	0
	.long	1079410688
	.align 8
.LC4:
	.long	-67108864
	.long	1101004799
	.align 8
.LC5:
	.long	0
	.long	-1065975808
	.align 8
.LC6:
	.long	0
	.long	1081507840
	.align 8
.LC7:
	.long	-1598689907
	.long	1051772663
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC8:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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	theta
	.type	theta, @function
theta:
.LFB35:
	.cfi_startproc
	endbr64
	subl	%edi, %edx
	subl	%esi, %ecx
	pxor	%xmm0, %xmm0
	movl	%edx, %eax
	movl	%ecx, %esi
	negl	%eax
	cmovs	%edx, %eax
	negl	%esi
	cmovs	%ecx, %esi
	addl	%esi, %eax
	je	.L2
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%ecx, %xmm0
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
.L2:
	testl	%edx, %edx
	js	.L8
	testl	%ecx, %ecx
	js	.L9
	mulsd	.LC3(%rip), %xmm0
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	addsd	.LC2(%rip), %xmm0
	mulsd	.LC3(%rip), %xmm0
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	movsd	.LC1(%rip), %xmm1
	subsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	mulsd	.LC3(%rip), %xmm0
	ret
	.cfi_endproc
.LFE35:
	.size	theta, .-theta
	.p2align 4
	.globl	convexHull
	.type	convexHull, @function
convexHull:
.LFB36:
	.cfi_startproc
	endbr64
	movl	%edi, %r8d
	testl	%edi, %edi
	jle	.L49
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdx, %rdi
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pxor	%xmm1, %xmm1
	xorl	%r14d, %r14d
	movslq	%r8d, %rcx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	f(%rip), %r15
	xorl	%r13d, %r13d
	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	$88, %rsp
	.cfi_def_cfa_offset 144
	movsd	.LC3(%rip), %xmm6
	movsd	ans(%rip), %xmm5
	movsd	.LC4(%rip), %xmm10
	movsd	.LC5(%rip), %xmm9
	movsd	.LC7(%rip), %xmm4
	movapd	%xmm6, %xmm3
	movq	.LC8(%rip), %xmm11
	movsd	.LC6(%rip), %xmm8
	.p2align 4,,10
	.p2align 3
.L12:
	xorl	%ebx, %ebx
	movapd	%xmm10, %xmm14
	movapd	%xmm9, %xmm2
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L20:
	testl	%ebp, %ebp
	jns	.L21
	addsd	.LC2(%rip), %xmm0
.L21:
	ucomisd	%xmm1, %xmm12
	jp	.L38
	je	.L15
.L38:
	mulsd	%xmm6, %xmm0
	comisd	%xmm3, %xmm0
	jbe	.L23
	subsd	%xmm8, %xmm0
.L23:
	movapd	%xmm3, %xmm7
	addsd	%xmm4, %xmm7
	comisd	%xmm0, %xmm7
	jbe	.L15
	movapd	%xmm0, %xmm7
	subsd	%xmm4, %xmm7
	comisd	%xmm2, %xmm7
	ja	.L35
	movapd	%xmm0, %xmm13
	subsd	%xmm2, %xmm13
	andpd	%xmm11, %xmm13
	comisd	%xmm13, %xmm4
	jb	.L15
	comisd	%xmm12, %xmm14
	jbe	.L15
.L35:
	movapd	%xmm12, %xmm14
	movapd	%xmm0, %xmm2
	movl	%edx, %r10d
	.p2align 4,,10
	.p2align 3
.L15:
	addq	$1, %rbx
	cmpq	%rbx, %rcx
	je	.L52
.L28:
	cmpb	$0, (%r15,%rbx)
	movl	%ebx, %edx
	jne	.L15
	movl	(%rsi,%rbx,4), %r12d
	movl	(%rdi,%rbx,4), %ebp
	pxor	%xmm12, %xmm12
	subl	%r13d, %r12d
	subl	%r14d, %ebp
	movl	%r12d, %eax
	movl	%ebp, %r11d
	imull	%r12d, %eax
	imull	%ebp, %r11d
	addl	%r11d, %eax
	cvtsi2sdl	%eax, %xmm12
	ucomisd	%xmm12, %xmm1
	ja	.L46
	sqrtsd	%xmm12, %xmm12
.L18:
	movl	%r12d, %eax
	movl	%ebp, %r11d
	movapd	%xmm1, %xmm0
	negl	%eax
	cmovs	%r12d, %eax
	negl	%r11d
	cmovs	%ebp, %r11d
	addl	%r11d, %eax
	je	.L19
	pxor	%xmm0, %xmm0
	pxor	%xmm13, %xmm13
	cvtsi2sdl	%ebp, %xmm0
	cvtsi2sdl	%eax, %xmm13
	divsd	%xmm13, %xmm0
.L19:
	testl	%r12d, %r12d
	jns	.L20
	movsd	.LC1(%rip), %xmm13
	subsd	%xmm0, %xmm13
	movapd	%xmm13, %xmm0
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L52:
	movslq	%r10d, %rax
	pxor	%xmm0, %xmm0
	movb	$1, (%r15,%rax)
	salq	$2, %rax
	leaq	(%rsi,%rax), %rbx
	addq	%rdi, %rax
	movl	(%rbx), %edx
	movl	(%rax), %r11d
	subl	%edx, %r13d
	subl	%r11d, %r14d
	imull	%r13d, %r13d
	imull	%r14d, %r14d
	addl	%r14d, %r13d
	cvtsi2sdl	%r13d, %xmm0
	ucomisd	%xmm0, %xmm1
	ja	.L47
	sqrtsd	%xmm0, %xmm0
.L31:
	addsd	%xmm0, %xmm5
	addl	$1, %r9d
	movsd	%xmm5, ans(%rip)
	cmpl	%r9d, %r8d
	je	.L53
	comisd	%xmm2, %xmm1
	jbe	.L13
	addsd	.LC6(%rip), %xmm2
.L13:
	movl	%r11d, %r14d
	movl	%edx, %r13d
	movapd	%xmm2, %xmm3
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L53:
	addq	$88, %rsp
	.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
.L49:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
.L46:
	.cfi_def_cfa_offset 144
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	movapd	%xmm12, %xmm0
	movq	%rcx, 72(%rsp)
	movq	%rdi, 64(%rsp)
	movq	%rsi, 56(%rsp)
	movl	%r8d, 48(%rsp)
	movl	%r9d, 40(%rsp)
	movl	%r10d, 28(%rsp)
	movsd	%xmm14, 32(%rsp)
	movsd	%xmm3, 16(%rsp)
	movsd	%xmm2, 8(%rsp)
	movsd	%xmm5, (%rsp)
	movl	%ebx, 24(%rsp)
	call	sqrt@PLT
	movq	.LC6(%rip), %rax
	movq	72(%rsp), %rcx
	pxor	%xmm1, %xmm1
	movq	64(%rsp), %rdi
	movq	56(%rsp), %rsi
	movapd	%xmm0, %xmm12
	movq	%rax, %xmm8
	movl	48(%rsp), %r8d
	movq	.LC7(%rip), %rax
	movl	40(%rsp), %r9d
	movsd	32(%rsp), %xmm14
	movq	%rax, %xmm4
	movq	.LC5(%rip), %rax
	movl	28(%rsp), %r10d
	movq	.LC8(%rip), %xmm11
	movl	24(%rsp), %edx
	movq	%rax, %xmm9
	movsd	16(%rsp), %xmm3
	movsd	8(%rsp), %xmm2
	movq	.LC4(%rip), %rax
	movsd	(%rsp), %xmm5
	movq	%rax, %xmm10
	movq	.LC3(%rip), %rax
	movq	%rax, %xmm6
	jmp	.L18
.L47:
	movq	%rcx, 56(%rsp)
	movq	%rdi, 48(%rsp)
	movq	%rsi, 40(%rsp)
	movl	%r8d, 32(%rsp)
	movl	%r9d, 28(%rsp)
	movl	%r10d, 24(%rsp)
	movq	%rax, (%rsp)
	movsd	%xmm2, 16(%rsp)
	movsd	%xmm5, 8(%rsp)
	call	sqrt@PLT
	movq	(%rsp), %rax
	movl	(%rbx), %edx
	pxor	%xmm1, %xmm1
	movq	56(%rsp), %rcx
	movq	48(%rsp), %rdi
	movl	(%rax), %r11d
	movq	.LC6(%rip), %rax
	movq	40(%rsp), %rsi
	movl	32(%rsp), %r8d
	movq	%rax, %xmm8
	movq	.LC7(%rip), %rax
	movl	28(%rsp), %r9d
	movl	24(%rsp), %r10d
	movsd	16(%rsp), %xmm2
	movq	%rax, %xmm4
	movq	.LC5(%rip), %rax
	movq	.LC8(%rip), %xmm11
	movsd	8(%rsp), %xmm5
	movq	%rax, %xmm9
	movq	.LC4(%rip), %rax
	movq	%rax, %xmm10
	movq	.LC3(%rip), %rax
	movq	%rax, %xmm6
	jmp	.L31
	.cfi_endproc
.LFE36:
	.size	convexHull, .-convexHull
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC9:
	.string	"%d%d"
.LC10:
	.string	"%.1lf\n"
.LC11:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC11(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC9(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	y(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %r14
	.p2align 4,,10
	.p2align 3
.L55:
	xorl	%eax, %eax
	movq	%r14, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L58
	movl	4(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L58
	movl	$50, %ecx
	movl	$0, %eax
	leaq	f(%rip), %rdi
	rep stosq
	movl	$0, (%rdi)
	movb	$0, 404+f(%rip)
	jle	.L56
	leaq	x(%rip), %r15
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L57:
	leaq	(%rbx,%r12,4), %rdx
	movq	%r15, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r8d
	addq	$1, %r12
	addq	$4, %r15
	cmpl	%r12d, %r8d
	jg	.L57
.L56:
	movl	%r8d, %edi
	movq	%rbx, %rdx
	leaq	x(%rip), %rsi
	movq	$0x000000000, ans(%rip)
	call	convexHull
	movl	$1, %edi
	movl	$1, %eax
	movsd	ans(%rip), %xmm0
	leaq	.LC10(%rip), %rsi
	call	__printf_chk@PLT
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L58:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L67
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L67:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE37:
	.size	main, .-main
	.globl	ans
	.bss
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 405
f:
	.zero	405
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 1620
y:
	.zero	1620
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 1620
x:
	.zero	1620
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	0
	.long	1073741824
	.align 8
.LC2:
	.long	0
	.long	1074790400
	.align 8
.LC3:
	.long	0
	.long	1079410688
	.align 8
.LC4:
	.long	-67108864
	.long	1101004799
	.align 8
.LC5:
	.long	0
	.long	-1065975808
	.align 8
.LC6:
	.long	0
	.long	1081507840
	.align 8
.LC7:
	.long	-1598689907
	.long	1051772663
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC8:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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:

// Aizu 1107: Spiral Footrace
// 2017.9.16 bal4u@uu

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

#define EPS 1e-6

int x[405], y[405];
char f[405];
double ans;

double theta(int x1, int y1, int x2, int y2)
{
    int dx, dy, ax, ay;
    double t;

    dx = x2 - x1;
    ax = dx < 0 ? -dx : dx;
    dy = y2 - y1;
    ay = dy < 0 ? -dy : dy;
    t = (ax + ay == 0) ? 0 : (double)dy/(double)(ax+ay);
    if (dx < 0) t = 2 - t;
    else if (dy < 0) t = 4 + t;
    return t * 90.0;
}

void convexHull(int pn, int *x, int *y)
{
    int i, j, px, py;
    int min;
    double minang, nowang;
    double dist, d, rad;

    min = 0, minang = 90, px = py = 0;
    for (j = 0; j < pn; j++) {
        dist = 0x7ffffff, nowang = minang; minang = -360;
		if (nowang < 0) nowang += 360;
        for (i = 0; i < pn; i++) {
			if (f[i]) continue;
            d = sqrt((x[i]-px)*(x[i]-px)+(y[i]-py)*(y[i]-py));
            rad = theta(px, py, x[i], y[i]);
	        if (d == 0) continue;
			if (rad > nowang) rad -= 360;
            if (rad < nowang+EPS) {
                if (rad - EPS > minang) {
                    dist = d;
                    minang = rad;
                    min = i;
                } else if (fabs(rad-minang) <= EPS && d < dist) {
                    dist = d;
                    minang = rad;
                    min = i;
                }
            }
#if 0
			else if (fabs(rad-nowang) < EPS && d > EPS &&
                       fabs(rad-minang) > EPS || d < dist) {
                dist = d;
                minang = rad;
                min = i;
            }
#endif
        }
		f[min] = 1;
		ans += sqrt((px-x[min])*(px-x[min])+(py-y[min])*(py-y[min]));
		px = x[min], py = y[min];
    }
}

int main()
{
	int n, i;

	while (scanf("%d", &n) && n) {
		memset(f, 0, sizeof(f));
		for (i = 0; i < n; i++) scanf("%d%d", x+i, y+i);
		ans = 0; convexHull(n, x, y);
		printf("%.1lf\n", ans);
	}
	return 0;
}
8
   60  70
   20  40
   50  50
   70  10
   10  70
   80  90
   70  50
  100  50
5
   60  50
    0  80
   60  20
   10  20
   60  80
0

388.9
250.0

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

```c
// Aizu 1107: Spiral Footrace
// 2017.9.16 bal4u@uu

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

#define EPS 1e-6

int x[405], y[405];
char f[405];
double ans;

double theta(int x1, int y1, int x2, int y2)
{
    int dx, dy, ax, ay;
    double t;

    dx = x2 - x1;
    ax = dx < 0 ? -dx : dx;
    dy = y2 - y1;
    ay = dy < 0 ? -dy : dy;
    t = (ax + ay == 0) ? 0 : (double)dy/(double)(ax+ay);
    if (dx < 0) t = 2 - t;
    else if (dy < 0) t = 4 + t;
    return t * 90.0;
}

void convexHull(int pn, int *x, int *y)
{
    int i, j, px, py;
    int min;
    double minang, nowang;
    double dist, d, rad;

    min = 0, minang = 90, px = py = 0;
    for (j = 0; j < pn; j++) {
        dist = 0x7ffffff, nowang = minang; minang = -360;
		if (nowang < 0) nowang += 360;
        for (i = 0; i < pn; i++) {
			if (f[i]) continue;
            d = sqrt((x[i]-px)*(x[i]-px)+(y[i]-py)*(y[i]-py));
            rad = theta(px, py, x[i], y[i]);
	        if (d == 0) continue;
			if (rad > nowang) rad -= 360;
            if (rad < nowang+EPS) {
                if (rad - EPS > minang) {
                    dist = d;
                    minang = rad;
                    min = i;
                } else if (fabs(rad-minang) <= EPS && d < dist) {
                    dist = d;
                    minang = rad;
                    min = i;
                }
            }
#if 0
			else if (fabs(rad-nowang) < EPS && d > EPS &&
                       fabs(rad-minang) > EPS || d < dist) {
                dist = d;
                minang = rad;
                min = i;
            }
#endif
        }
		f[min] = 1;
		ans += sqrt((px-x[min])*(px-x[min])+(py-y[min])*(py-y[min]));
		px = x[min], py = y[min];
    }
}

int main()
{
	int n, i;

	while (scanf("%d", &n) && n) {
		memset(f, 0, sizeof(f));
		for (i = 0; i < n; i++) scanf("%d%d", x+i, y+i);
		ans = 0; convexHull(n, x, y);
		printf("%.1lf\n", ans);
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	x
	.bss
	.align 32
	.type	x, @object
	.size	x, 1620
x:
	.zero	1620
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 1620
y:
	.zero	1620
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 405
f:
	.zero	405
	.globl	ans
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.text
	.globl	theta
	.type	theta, @function
theta:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	%edx, -44(%rbp)
	movl	%ecx, -48(%rbp)
	movl	-44(%rbp), %eax
	subl	-36(%rbp), %eax
	movl	%eax, -24(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -20(%rbp)
	movl	-48(%rbp), %eax
	subl	-40(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	testl	%eax, %eax
	je	.L2
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-16(%rbp), %xmm0
	movl	-20(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
	jmp	.L3
.L2:
	pxor	%xmm0, %xmm0
.L3:
	movsd	%xmm0, -8(%rbp)
	cmpl	$0, -24(%rbp)
	jns	.L4
	movsd	.LC1(%rip), %xmm0
	subsd	-8(%rbp), %xmm0
	movsd	%xmm0, -8(%rbp)
	jmp	.L5
.L4:
	cmpl	$0, -16(%rbp)
	jns	.L5
	movsd	-8(%rbp), %xmm1
	movsd	.LC2(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
.L5:
	movsd	-8(%rbp), %xmm1
	movsd	.LC3(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	theta, .-theta
	.globl	convexHull
	.type	convexHull, @function
convexHull:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movl	%edi, -68(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%rdx, -88(%rbp)
	movl	$0, -44(%rbp)
	movsd	.LC3(%rip), %xmm0
	movsd	%xmm0, -40(%rbp)
	movl	$0, -48(%rbp)
	movl	-48(%rbp), %eax
	movl	%eax, -52(%rbp)
	movl	$0, -56(%rbp)
	jmp	.L8
.L24:
	movsd	.LC4(%rip), %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-40(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	.LC5(%rip), %xmm0
	movsd	%xmm0, -40(%rbp)
	pxor	%xmm0, %xmm0
	comisd	-32(%rbp), %xmm0
	jbe	.L9
	movsd	-32(%rbp), %xmm1
	movsd	.LC6(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
.L9:
	movl	$0, -60(%rbp)
	jmp	.L11
.L23:
	movl	-60(%rbp), %eax
	cltq
	leaq	f(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L32
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	subl	-52(%rbp), %eax
	movl	%eax, %edx
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-80(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	subl	-52(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	subl	-48(%rbp), %eax
	movl	%eax, %edx
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-88(%rbp), %rax
	addq	%rsi, %rax
	movl	(%rax), %eax
	subl	-48(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -8(%rbp)
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-48(%rbp), %esi
	movl	-52(%rbp), %eax
	movl	%eax, %edi
	call	theta
	movq	%xmm0, %rax
	movq	%rax, -16(%rbp)
	pxor	%xmm0, %xmm0
	ucomisd	-8(%rbp), %xmm0
	jp	.L14
	pxor	%xmm0, %xmm0
	ucomisd	-8(%rbp), %xmm0
	je	.L33
.L14:
	movsd	-16(%rbp), %xmm0
	comisd	-32(%rbp), %xmm0
	jbe	.L16
	movsd	-16(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
.L16:
	movsd	-32(%rbp), %xmm1
	movsd	.LC7(%rip), %xmm0
	addsd	%xmm1, %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L13
	movsd	-16(%rbp), %xmm0
	movsd	.LC7(%rip), %xmm1
	subsd	%xmm1, %xmm0
	comisd	-40(%rbp), %xmm0
	jbe	.L31
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -40(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -44(%rbp)
	jmp	.L13
.L31:
	movsd	-16(%rbp), %xmm0
	subsd	-40(%rbp), %xmm0
	movq	.LC8(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC7(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L13
	movsd	-24(%rbp), %xmm0
	comisd	-8(%rbp), %xmm0
	jbe	.L13
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -40(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -44(%rbp)
	jmp	.L13
.L32:
	nop
	jmp	.L13
.L33:
	nop
.L13:
	addl	$1, -60(%rbp)
.L11:
	movl	-60(%rbp), %eax
	cmpl	-68(%rbp), %eax
	jl	.L23
	movl	-44(%rbp), %eax
	cltq
	leaq	f(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-52(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-80(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %ecx
	movl	-52(%rbp), %eax
	subl	%ecx, %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %eax
	subl	%esi, %eax
	movl	%eax, %edx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-88(%rbp), %rax
	addq	%rsi, %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %eax
	subl	%esi, %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%eax, %xmm3
	movq	%xmm3, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movsd	ans(%rip), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, ans(%rip)
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	addl	$1, -56(%rbp)
.L8:
	movl	-56(%rbp), %eax
	cmpl	-68(%rbp), %eax
	jl	.L24
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	convexHull, .-convexHull
	.section	.rodata
.LC9:
	.string	"%d%d"
.LC10:
	.string	"%.1lf\n"
.LC11:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L35
.L39:
	movl	$405, %edx
	movl	$0, %esi
	leaq	f(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -12(%rbp)
	jmp	.L36
.L37:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	x(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC9(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12(%rbp)
.L36:
	movl	-16(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L37
	pxor	%xmm0, %xmm0
	movsd	%xmm0, ans(%rip)
	movl	-16(%rbp), %eax
	leaq	y(%rip), %rdx
	leaq	x(%rip), %rcx
	movq	%rcx, %rsi
	movl	%eax, %edi
	call	convexHull
	movq	ans(%rip), %rax
	movq	%rax, %xmm0
	leaq	.LC10(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
.L35:
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC11(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L38
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jne	.L39
.L38:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1073741824
	.align 8
.LC2:
	.long	0
	.long	1074790400
	.align 8
.LC3:
	.long	0
	.long	1079410688
	.align 8
.LC4:
	.long	-67108864
	.long	1101004799
	.align 8
.LC5:
	.long	0
	.long	-1065975808
	.align 8
.LC6:
	.long	0
	.long	1081507840
	.align 8
.LC7:
	.long	-1598689907
	.long	1051772663
	.align 16
.LC8:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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.
val
	.file	"temp.c"
	.text
	.globl	x
	.bss
	.align 32
	.type	x, @object
	.size	x, 1620
x:
	.zero	1620
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 1620
y:
	.zero	1620
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 405
f:
	.zero	405
	.globl	ans
	.align 8
	.type	ans, @object
	.size	ans, 8
ans:
	.zero	8
	.text
	.globl	theta
	.type	theta, @function
theta:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	%edx, -44(%rbp)
	movl	%ecx, -48(%rbp)
	movl	-44(%rbp), %eax
	subl	-36(%rbp), %eax
	movl	%eax, -24(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -20(%rbp)
	movl	-48(%rbp), %eax
	subl	-40(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, %edx
	negl	%edx
	cmovns	%edx, %eax
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	testl	%eax, %eax
	je	.L2
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-16(%rbp), %xmm0
	movl	-20(%rbp), %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	divsd	%xmm1, %xmm0
	jmp	.L3
.L2:
	pxor	%xmm0, %xmm0
.L3:
	movsd	%xmm0, -8(%rbp)
	cmpl	$0, -24(%rbp)
	jns	.L4
	movsd	.LC1(%rip), %xmm0
	subsd	-8(%rbp), %xmm0
	movsd	%xmm0, -8(%rbp)
	jmp	.L5
.L4:
	cmpl	$0, -16(%rbp)
	jns	.L5
	movsd	-8(%rbp), %xmm1
	movsd	.LC2(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
.L5:
	movsd	-8(%rbp), %xmm1
	movsd	.LC3(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	theta, .-theta
	.globl	convexHull
	.type	convexHull, @function
convexHull:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$96, %rsp
	movl	%edi, -68(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%rdx, -88(%rbp)
	movl	$0, -44(%rbp)
	movsd	.LC3(%rip), %xmm0
	movsd	%xmm0, -40(%rbp)
	movl	$0, -48(%rbp)
	movl	-48(%rbp), %eax
	movl	%eax, -52(%rbp)
	movl	$0, -56(%rbp)
	jmp	.L8
.L24:
	movsd	.LC4(%rip), %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-40(%rbp), %xmm0
	movsd	%xmm0, -32(%rbp)
	movsd	.LC5(%rip), %xmm0
	movsd	%xmm0, -40(%rbp)
	pxor	%xmm0, %xmm0
	comisd	-32(%rbp), %xmm0
	jbe	.L9
	movsd	-32(%rbp), %xmm1
	movsd	.LC6(%rip), %xmm0
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)
.L9:
	movl	$0, -60(%rbp)
	jmp	.L11
.L23:
	movl	-60(%rbp), %eax
	cltq
	leaq	f(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L32
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	subl	-52(%rbp), %eax
	movl	%eax, %edx
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-80(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %eax
	subl	-52(%rbp), %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	subl	-48(%rbp), %eax
	movl	%eax, %edx
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-88(%rbp), %rax
	addq	%rsi, %rax
	movl	(%rax), %eax
	subl	-48(%rbp), %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movq	%xmm0, %rax
	movq	%rax, -8(%rbp)
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-60(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %edx
	movl	-48(%rbp), %esi
	movl	-52(%rbp), %eax
	movl	%eax, %edi
	call	theta
	movq	%xmm0, %rax
	movq	%rax, -16(%rbp)
	pxor	%xmm0, %xmm0
	ucomisd	-8(%rbp), %xmm0
	jp	.L14
	pxor	%xmm0, %xmm0
	ucomisd	-8(%rbp), %xmm0
	je	.L33
.L14:
	movsd	-16(%rbp), %xmm0
	comisd	-32(%rbp), %xmm0
	jbe	.L16
	movsd	-16(%rbp), %xmm0
	movsd	.LC6(%rip), %xmm1
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)
.L16:
	movsd	-32(%rbp), %xmm1
	movsd	.LC7(%rip), %xmm0
	addsd	%xmm1, %xmm0
	comisd	-16(%rbp), %xmm0
	jbe	.L13
	movsd	-16(%rbp), %xmm0
	movsd	.LC7(%rip), %xmm1
	subsd	%xmm1, %xmm0
	comisd	-40(%rbp), %xmm0
	jbe	.L31
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -40(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -44(%rbp)
	jmp	.L13
.L31:
	movsd	-16(%rbp), %xmm0
	subsd	-40(%rbp), %xmm0
	movq	.LC8(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC7(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L13
	movsd	-24(%rbp), %xmm0
	comisd	-8(%rbp), %xmm0
	jbe	.L13
	movsd	-8(%rbp), %xmm0
	movsd	%xmm0, -24(%rbp)
	movsd	-16(%rbp), %xmm0
	movsd	%xmm0, -40(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -44(%rbp)
	jmp	.L13
.L32:
	nop
	jmp	.L13
.L33:
	nop
.L13:
	addl	$1, -60(%rbp)
.L11:
	movl	-60(%rbp), %eax
	cmpl	-68(%rbp), %eax
	jl	.L23
	movl	-44(%rbp), %eax
	cltq
	leaq	f(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-52(%rbp), %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-80(%rbp), %rax
	addq	%rcx, %rax
	movl	(%rax), %ecx
	movl	-52(%rbp), %eax
	subl	%ecx, %eax
	movl	%edx, %ecx
	imull	%eax, %ecx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %eax
	subl	%esi, %eax
	movl	%eax, %edx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rsi
	movq	-88(%rbp), %rax
	addq	%rsi, %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %eax
	subl	%esi, %eax
	imull	%edx, %eax
	addl	%ecx, %eax
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%eax, %xmm3
	movq	%xmm3, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movsd	ans(%rip), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, ans(%rip)
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-88(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	addl	$1, -56(%rbp)
.L8:
	movl	-56(%rbp), %eax
	cmpl	-68(%rbp), %eax
	jl	.L24
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	convexHull, .-convexHull
	.section	.rodata
.LC9:
	.string	"%d%d"
.LC10:
	.string	"%.1lf\n"
.LC11:
	.string	"%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L35
.L39:
	movl	$405, %edx
	movl	$0, %esi
	leaq	f(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -12(%rbp)
	jmp	.L36
.L37:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	addq	%rax, %rdx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	x(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC9(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -12(%rbp)
.L36:
	movl	-16(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L37
	pxor	%xmm0, %xmm0
	movsd	%xmm0, ans(%rip)
	movl	-16(%rbp), %eax
	leaq	y(%rip), %rdx
	leaq	x(%rip), %rcx
	movq	%rcx, %rsi
	movl	%eax, %edi
	call	convexHull
	movq	ans(%rip), %rax
	movq	%rax, %xmm0
	leaq	.LC10(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
.L35:
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC11(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L38
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jne	.L39
.L38:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1073741824
	.align 8
.LC2:
	.long	0
	.long	1074790400
	.align 8
.LC3:
	.long	0
	.long	1079410688
	.align 8
.LC4:
	.long	-67108864
	.long	1101004799
	.align 8
.LC5:
	.long	0
	.long	-1065975808
	.align 8
.LC6:
	.long	0
	.long	1081507840
	.align 8
.LC7:
	.long	-1598689907
	.long	1051772663
	.align 16
.LC8:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.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:
