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

```c
#define M_PI 3.14159265358979323846
#include <stdio.h>
#include <math.h>
 
 
int main(void){
    double PI=M_PI;
    double po=PI*2/100000;
    int N;
    scanf("%d",&N);
    double x[N],y[N];
    for(int i=0;i<N;i++)scanf("%lf %lf",&x[i],&y[i]);
    int kakuritu[N];
    for(int i=0;i<N;i++)kakuritu[i]=0;
    for(int i=0;i<1000000;i++){
        double max=cos(i*po)*x[0]+sin(i*po)*y[0];
        int maxj=0;
        for(int j=0;j<N;j++){
            if(max<cos(i*po)*x[j]+sin(i*po)*y[j]){max=cos(i*po)*x[j]+sin(i*po)*y[j];maxj=j;}
        }
        kakuritu[maxj]++;
    }
    for(int i=0;i<N;i++){
        printf("%.10f\n",(double)kakuritu[i]/1000000.0f);
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC2:
	.string	"%d"
.LC3:
	.string	"%lf %lf"
.LC5:
	.string	"%.10f\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$184, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, -120(%rbp)
	movsd	-120(%rbp), %xmm0
	addsd	%xmm0, %xmm0
	movsd	.LC1(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -112(%rbp)
	leaq	-156(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-156(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movslq	%edx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -96(%rbp)
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L8
.L9:
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-80(%rbp), %rax
	addq	%rax, %rdx
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-96(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -152(%rbp)
.L8:
	movl	-156(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L9
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L10:
	cmpq	%rdx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L12
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L12:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -148(%rbp)
	jmp	.L13
.L14:
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -148(%rbp)
.L13:
	movl	-156(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L14
	movl	$0, -144(%rbp)
	jmp	.L15
.L20:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	mulsd	-112(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movq	-96(%rbp), %rax
	movsd	(%rax), %xmm1
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -176(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	movapd	%xmm0, %xmm3
	mulsd	-112(%rbp), %xmm3
	movq	%xmm3, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movq	-80(%rbp), %rax
	movsd	(%rax), %xmm1
	mulsd	%xmm1, %xmm0
	addsd	-176(%rbp), %xmm0
	movsd	%xmm0, -128(%rbp)
	movl	$0, -140(%rbp)
	movl	$0, -136(%rbp)
	jmp	.L16
.L19:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	mulsd	-112(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movq	-96(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -176(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	movapd	%xmm0, %xmm5
	mulsd	-112(%rbp), %xmm5
	movq	%xmm5, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movq	-80(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	mulsd	%xmm1, %xmm0
	addsd	-176(%rbp), %xmm0
	comisd	-128(%rbp), %xmm0
	jbe	.L17
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	mulsd	-112(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movq	-96(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -176(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	movapd	%xmm0, %xmm7
	mulsd	-112(%rbp), %xmm7
	movq	%xmm7, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movq	-80(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	mulsd	%xmm1, %xmm0
	addsd	-176(%rbp), %xmm0
	movsd	%xmm0, -128(%rbp)
	movl	-136(%rbp), %eax
	movl	%eax, -140(%rbp)
.L17:
	addl	$1, -136(%rbp)
.L16:
	movl	-156(%rbp), %eax
	cmpl	%eax, -136(%rbp)
	jl	.L19
	movq	-64(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	1(%rax), %ecx
	movq	-64(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -144(%rbp)
.L15:
	cmpl	$999999, -144(%rbp)
	jle	.L20
	movl	$0, -132(%rbp)
	jmp	.L21
.L22:
	movq	-64(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC4(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	addl	$1, -132(%rbp)
.L21:
	movl	-156(%rbp), %eax
	cmpl	%eax, -132(%rbp)
	jl	.L22
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	1413754136
	.long	1074340347
	.align 8
.LC1:
	.long	0
	.long	1090021888
	.align 8
.LC4:
	.long	0
	.long	1093567616
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d"
.LC3:
	.string	"%lf %lf"
.LC6:
	.string	"%.10f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC2(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %r12
	movq	%rsp, %rcx
	leaq	15(,%r12,8), %rax
	movl	%r12d, -84(%rbp)
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
	cmpq	%rcx, %rsp
	je	.L3
.L50:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L50
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L51
.L4:
	leaq	7(%rsp), %r13
	movq	%rax, %rdx
	andq	$-4096, %rax
	movq	%r13, %rcx
	andq	$-16, %rdx
	andq	$-8, %r13
	shrq	$3, %rcx
	movq	%rcx, -96(%rbp)
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L51:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L52
.L7:
	leaq	7(%rsp), %rcx
	movq	%rcx, %rax
	andq	$-8, %rcx
	shrq	$3, %rax
	cmpl	$0, -84(%rbp)
	movq	%rcx, %r15
	movq	%rax, -104(%rbp)
	jle	.L8
	movq	%r13, %rbx
	movq	%rcx, %r14
	xorl	%r12d, %r12d
.L9:
	movq	%r14, %rdx
	movq	%rbx, %rsi
	leaq	.LC3(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addl	$1, %r12d
	addq	$8, %rbx
	addq	$8, %r14
	movl	%eax, -84(%rbp)
	cmpl	%r12d, %eax
	jg	.L9
	movslq	%eax, %r12
	movq	%rsp, %rsi
	leaq	15(,%r12,4), %rdx
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rsi
.L10:
	cmpq	%rsi, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L12
	orq	$0, -8(%rsp,%rax)
.L12:
	cmpl	$0, -84(%rbp)
	movq	%rsp, %rbx
	jle	.L13
	leaq	0(,%r12,4), %rdx
	xorl	%esi, %esi
	movq	%rbx, %rdi
	call	memset@PLT
.L13:
	movq	-96(%rbp), %rax
	movsd	.LC0(%rip), %xmm4
	pxor	%xmm3, %xmm3
	xorl	%r14d, %r14d
	movsd	0(,%rax,8), %xmm5
	movq	-104(%rbp), %rax
	movsd	0(,%rax,8), %xmm6
	movsd	%xmm5, -96(%rbp)
	movsd	%xmm6, -104(%rbp)
	.p2align 4,,10
	.p2align 3
.L20:
	movsd	-104(%rbp), %xmm0
	movsd	-96(%rbp), %xmm1
	movl	-84(%rbp), %eax
	mulsd	%xmm3, %xmm0
	mulsd	%xmm4, %xmm1
	addsd	%xmm0, %xmm1
	testl	%eax, %eax
	jle	.L27
	cmpl	$1, %eax
	je	.L27
	movl	$1, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L18:
	movsd	0(%r13,%rax,8), %xmm0
	movsd	(%r15,%rax,8), %xmm2
	mulsd	%xmm4, %xmm0
	mulsd	%xmm3, %xmm2
	addsd	%xmm2, %xmm0
	comisd	%xmm1, %xmm0
	maxsd	%xmm1, %xmm0
	cmova	%eax, %edx
	addq	$1, %rax
	movapd	%xmm0, %xmm1
	cmpq	%r12, %rax
	jne	.L18
.L14:
	movslq	%edx, %rdx
	addl	$1, %r14d
	addl	$1, (%rbx,%rdx,4)
	cmpl	$1000000, %r14d
	je	.L19
	pxor	%xmm0, %xmm0
	leaq	-72(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	cvtsi2sdl	%r14d, %xmm0
	mulsd	.LC4(%rip), %xmm0
	call	sincos@PLT
	movsd	-80(%rbp), %xmm4
	movsd	-72(%rbp), %xmm3
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L27:
	xorl	%edx, %edx
	jmp	.L14
.L19:
	movl	-84(%rbp), %eax
	xorl	%r13d, %r13d
	leaq	.LC6(%rip), %r14
	testl	%eax, %eax
	jle	.L22
.L21:
	pxor	%xmm0, %xmm0
	movq	%r14, %rsi
	movl	$1, %edi
	movl	$1, %eax
	cvtsi2sdl	(%rbx,%r13,4), %xmm0
	addq	$1, %r13
	divsd	.LC5(%rip), %xmm0
	call	__printf_chk@PLT
	cmpl	%r13d, -60(%rbp)
	jg	.L21
.L22:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L53
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L8:
	.cfi_restore_state
	leaq	15(,%r12,4), %rdx
	movq	%rsp, %rsi
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rsi
.L23:
	cmpq	%rsi, %rsp
	je	.L24
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L23
.L52:
	orq	$0, -8(%rsp,%rax)
	jmp	.L7
.L24:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L25
	orq	$0, -8(%rsp,%rax)
.L25:
	movq	%rsp, %rbx
	jmp	.L13
.L53:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 8
.LC4:
	.long	70273230
	.long	1058044051
	.align 8
.LC5:
	.long	0
	.long	1093567616
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d"
.LC3:
	.string	"%lf %lf"
.LC6:
	.string	"%.10f\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC2(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %r12
	movq	%rsp, %rcx
	leaq	15(,%r12,8), %rax
	movl	%r12d, -84(%rbp)
	movq	%rax, %rsi
	movq	%rax, %rdx
	andq	$-4096, %rsi
	andq	$-16, %rdx
	subq	%rsi, %rcx
	cmpq	%rcx, %rsp
	je	.L3
.L50:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L50
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L51
.L4:
	leaq	7(%rsp), %r13
	movq	%rax, %rdx
	andq	$-4096, %rax
	movq	%r13, %rcx
	andq	$-16, %rdx
	andq	$-8, %r13
	shrq	$3, %rcx
	movq	%rcx, -96(%rbp)
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L51:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	jne	.L52
.L7:
	leaq	7(%rsp), %rcx
	movq	%rcx, %rax
	andq	$-8, %rcx
	shrq	$3, %rax
	cmpl	$0, -84(%rbp)
	movq	%rcx, %r15
	movq	%rax, -104(%rbp)
	jle	.L8
	movq	%r13, %rbx
	movq	%rcx, %r14
	xorl	%r12d, %r12d
.L9:
	movq	%r14, %rdx
	movq	%rbx, %rsi
	leaq	.LC3(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %eax
	addl	$1, %r12d
	addq	$8, %rbx
	addq	$8, %r14
	movl	%eax, -84(%rbp)
	cmpl	%r12d, %eax
	jg	.L9
	movslq	%eax, %r12
	movq	%rsp, %rsi
	leaq	15(,%r12,4), %rdx
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rsi
.L10:
	cmpq	%rsi, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L12
	orq	$0, -8(%rsp,%rax)
.L12:
	cmpl	$0, -84(%rbp)
	movq	%rsp, %rbx
	jle	.L13
	leaq	0(,%r12,4), %rdx
	xorl	%esi, %esi
	movq	%rbx, %rdi
	call	memset@PLT
.L13:
	movq	-96(%rbp), %rax
	movsd	.LC0(%rip), %xmm4
	pxor	%xmm3, %xmm3
	xorl	%r14d, %r14d
	movsd	0(,%rax,8), %xmm5
	movq	-104(%rbp), %rax
	movsd	0(,%rax,8), %xmm6
	movsd	%xmm5, -96(%rbp)
	movsd	%xmm6, -104(%rbp)
	.p2align 4,,10
	.p2align 3
.L20:
	movsd	-104(%rbp), %xmm0
	movsd	-96(%rbp), %xmm1
	movl	-84(%rbp), %eax
	mulsd	%xmm3, %xmm0
	mulsd	%xmm4, %xmm1
	addsd	%xmm0, %xmm1
	testl	%eax, %eax
	jle	.L27
	cmpl	$1, %eax
	je	.L27
	movl	$1, %eax
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L18:
	movsd	0(%r13,%rax,8), %xmm0
	movsd	(%r15,%rax,8), %xmm2
	mulsd	%xmm4, %xmm0
	mulsd	%xmm3, %xmm2
	addsd	%xmm2, %xmm0
	comisd	%xmm1, %xmm0
	maxsd	%xmm1, %xmm0
	cmova	%eax, %edx
	addq	$1, %rax
	movapd	%xmm0, %xmm1
	cmpq	%r12, %rax
	jne	.L18
.L14:
	movslq	%edx, %rdx
	addl	$1, %r14d
	addl	$1, (%rbx,%rdx,4)
	cmpl	$1000000, %r14d
	je	.L19
	pxor	%xmm0, %xmm0
	leaq	-72(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	cvtsi2sdl	%r14d, %xmm0
	mulsd	.LC4(%rip), %xmm0
	call	sincos@PLT
	movsd	-80(%rbp), %xmm4
	movsd	-72(%rbp), %xmm3
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L27:
	xorl	%edx, %edx
	jmp	.L14
.L19:
	movl	-84(%rbp), %eax
	xorl	%r13d, %r13d
	leaq	.LC6(%rip), %r14
	testl	%eax, %eax
	jle	.L22
.L21:
	pxor	%xmm0, %xmm0
	movq	%r14, %rsi
	movl	$1, %edi
	movl	$1, %eax
	cvtsi2sdl	(%rbx,%r13,4), %xmm0
	addq	$1, %r13
	divsd	.LC5(%rip), %xmm0
	call	__printf_chk@PLT
	cmpl	%r13d, -60(%rbp)
	jg	.L21
.L22:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L53
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L8:
	.cfi_restore_state
	leaq	15(,%r12,4), %rdx
	movq	%rsp, %rsi
	movq	%rdx, %rax
	andq	$-4096, %rdx
	andq	$-16, %rax
	subq	%rdx, %rsi
.L23:
	cmpq	%rsi, %rsp
	je	.L24
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L23
.L52:
	orq	$0, -8(%rsp,%rax)
	jmp	.L7
.L24:
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L25
	orq	$0, -8(%rsp,%rax)
.L25:
	movq	%rsp, %rbx
	jmp	.L13
.L53:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 8
.LC4:
	.long	70273230
	.long	1058044051
	.align 8
.LC5:
	.long	0
	.long	1093567616
	.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:

#define M_PI 3.14159265358979323846
#include <stdio.h>
#include <math.h>
 
 
int main(void){
    double PI=M_PI;
    double po=PI*2/100000;
    int N;
    scanf("%d",&N);
    double x[N],y[N];
    for(int i=0;i<N;i++)scanf("%lf %lf",&x[i],&y[i]);
    int kakuritu[N];
    for(int i=0;i<N;i++)kakuritu[i]=0;
    for(int i=0;i<1000000;i++){
        double max=cos(i*po)*x[0]+sin(i*po)*y[0];
        int maxj=0;
        for(int j=0;j<N;j++){
            if(max<cos(i*po)*x[j]+sin(i*po)*y[j]){max=cos(i*po)*x[j]+sin(i*po)*y[j];maxj=j;}
        }
        kakuritu[maxj]++;
    }
    for(int i=0;i<N;i++){
        printf("%.10f\n",(double)kakuritu[i]/1000000.0f);
    }
    return 0;
}
2
0 0
1 0
 5
0 0
2 9
4 5
2 6
3 10
 5
0 0
3 9
4 5
2 6
3 10
 5
0 0
5 9
4 5
2 6
3 10
 5
0 0
5 9
4 8
2 6
3 10
 5
0 0
5 9
3 8
2 7
3 10
 5
-1 0
5 9
3 8
2 7
3 10
 5
-1 0
5 9
2 8
2 7
3 10
 5
-1 0
5 9
2 1
2 7
3 10
 5
-1 1
5 9
2 1
2 7
3 10

0.5000000000
0.5000000000
 0.4274200000
0.0901910000
0.1388000000
0.0000000000
0.3435890000
 0.4390000000
0.0000000000
0.1388000000
0.0000000000
0.4222000000
 0.4390000000
0.2151900000
0.0684000000
0.0000000000
0.2774100000
 0.4656800000
0.2569100000
0.0000000000
0.0000000000
0.2774100000
 0.4635900000
0.2569100000
0.0000000000
0.0069100000
0.2725900000
 0.4669700000
0.2697900000
0.0000000000
0.0000000000
0.2632400000
 0.4635200000
0.2697900000
0.0166900000
0.0000000000
0.2500000000
 0.3617600000
0.2333100000
0.1416900000
0.0000000000
0.2632400000
 0.3165700000
0.2333100000
0.1928900000
0.0000000000
0.2572300000

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

```c
#define M_PI 3.14159265358979323846
#include <stdio.h>
#include <math.h>
 
 
int main(void){
    double PI=M_PI;
    double po=PI*2/100000;
    int N;
    scanf("%d",&N);
    double x[N],y[N];
    for(int i=0;i<N;i++)scanf("%lf %lf",&x[i],&y[i]);
    int kakuritu[N];
    for(int i=0;i<N;i++)kakuritu[i]=0;
    for(int i=0;i<1000000;i++){
        double max=cos(i*po)*x[0]+sin(i*po)*y[0];
        int maxj=0;
        for(int j=0;j<N;j++){
            if(max<cos(i*po)*x[j]+sin(i*po)*y[j]){max=cos(i*po)*x[j]+sin(i*po)*y[j];maxj=j;}
        }
        kakuritu[maxj]++;
    }
    for(int i=0;i<N;i++){
        printf("%.10f\n",(double)kakuritu[i]/1000000.0f);
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC2:
	.string	"%d"
.LC3:
	.string	"%lf %lf"
.LC5:
	.string	"%.10f\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$184, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, -120(%rbp)
	movsd	-120(%rbp), %xmm0
	addsd	%xmm0, %xmm0
	movsd	.LC1(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -112(%rbp)
	leaq	-156(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-156(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movslq	%edx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -96(%rbp)
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L8
.L9:
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-80(%rbp), %rax
	addq	%rax, %rdx
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-96(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -152(%rbp)
.L8:
	movl	-156(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L9
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L10:
	cmpq	%rdx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L12
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L12:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -148(%rbp)
	jmp	.L13
.L14:
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -148(%rbp)
.L13:
	movl	-156(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L14
	movl	$0, -144(%rbp)
	jmp	.L15
.L20:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	mulsd	-112(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movq	-96(%rbp), %rax
	movsd	(%rax), %xmm1
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -176(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	movapd	%xmm0, %xmm3
	mulsd	-112(%rbp), %xmm3
	movq	%xmm3, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movq	-80(%rbp), %rax
	movsd	(%rax), %xmm1
	mulsd	%xmm1, %xmm0
	addsd	-176(%rbp), %xmm0
	movsd	%xmm0, -128(%rbp)
	movl	$0, -140(%rbp)
	movl	$0, -136(%rbp)
	jmp	.L16
.L19:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	mulsd	-112(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movq	-96(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -176(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	movapd	%xmm0, %xmm5
	mulsd	-112(%rbp), %xmm5
	movq	%xmm5, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movq	-80(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	mulsd	%xmm1, %xmm0
	addsd	-176(%rbp), %xmm0
	comisd	-128(%rbp), %xmm0
	jbe	.L17
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	mulsd	-112(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movq	-96(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -176(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	movapd	%xmm0, %xmm7
	mulsd	-112(%rbp), %xmm7
	movq	%xmm7, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movq	-80(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	mulsd	%xmm1, %xmm0
	addsd	-176(%rbp), %xmm0
	movsd	%xmm0, -128(%rbp)
	movl	-136(%rbp), %eax
	movl	%eax, -140(%rbp)
.L17:
	addl	$1, -136(%rbp)
.L16:
	movl	-156(%rbp), %eax
	cmpl	%eax, -136(%rbp)
	jl	.L19
	movq	-64(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	1(%rax), %ecx
	movq	-64(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -144(%rbp)
.L15:
	cmpl	$999999, -144(%rbp)
	jle	.L20
	movl	$0, -132(%rbp)
	jmp	.L21
.L22:
	movq	-64(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC4(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	addl	$1, -132(%rbp)
.L21:
	movl	-156(%rbp), %eax
	cmpl	%eax, -132(%rbp)
	jl	.L22
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	1413754136
	.long	1074340347
	.align 8
.LC1:
	.long	0
	.long	1090021888
	.align 8
.LC4:
	.long	0
	.long	1093567616
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC2:
	.string	"%d"
.LC3:
	.string	"%lf %lf"
.LC5:
	.string	"%.10f\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$184, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, -120(%rbp)
	movsd	-120(%rbp), %xmm0
	addsd	%xmm0, %xmm0
	movsd	.LC1(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -112(%rbp)
	leaq	-156(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-156(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -176(%rbp)
	movq	$0, -168(%rbp)
	movslq	%edx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -96(%rbp)
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -224(%rbp)
	movq	$0, -216(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L5:
	cmpq	%rdx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L7
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$7, %rax
	shrq	$3, %rax
	salq	$3, %rax
	movq	%rax, -80(%rbp)
	movl	$0, -152(%rbp)
	jmp	.L8
.L9:
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-80(%rbp), %rax
	addq	%rax, %rdx
	movl	-152(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-96(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -152(%rbp)
.L8:
	movl	-156(%rbp), %eax
	cmpl	%eax, -152(%rbp)
	jl	.L9
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L10:
	cmpq	%rdx, %rsp
	je	.L11
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L10
.L11:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L12
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L12:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -148(%rbp)
	jmp	.L13
.L14:
	movq	-64(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -148(%rbp)
.L13:
	movl	-156(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L14
	movl	$0, -144(%rbp)
	jmp	.L15
.L20:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	mulsd	-112(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movq	-96(%rbp), %rax
	movsd	(%rax), %xmm1
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -176(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	movapd	%xmm0, %xmm3
	mulsd	-112(%rbp), %xmm3
	movq	%xmm3, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movq	-80(%rbp), %rax
	movsd	(%rax), %xmm1
	mulsd	%xmm1, %xmm0
	addsd	-176(%rbp), %xmm0
	movsd	%xmm0, -128(%rbp)
	movl	$0, -140(%rbp)
	movl	$0, -136(%rbp)
	jmp	.L16
.L19:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	mulsd	-112(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movq	-96(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -176(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	movapd	%xmm0, %xmm5
	mulsd	-112(%rbp), %xmm5
	movq	%xmm5, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movq	-80(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	mulsd	%xmm1, %xmm0
	addsd	-176(%rbp), %xmm0
	comisd	-128(%rbp), %xmm0
	jbe	.L17
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	mulsd	-112(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movq	-96(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -176(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-144(%rbp), %xmm0
	movapd	%xmm0, %xmm7
	mulsd	-112(%rbp), %xmm7
	movq	%xmm7, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movq	-80(%rbp), %rax
	movl	-136(%rbp), %edx
	movslq	%edx, %rdx
	movsd	(%rax,%rdx,8), %xmm1
	mulsd	%xmm1, %xmm0
	addsd	-176(%rbp), %xmm0
	movsd	%xmm0, -128(%rbp)
	movl	-136(%rbp), %eax
	movl	%eax, -140(%rbp)
.L17:
	addl	$1, -136(%rbp)
.L16:
	movl	-156(%rbp), %eax
	cmpl	%eax, -136(%rbp)
	jl	.L19
	movq	-64(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	leal	1(%rax), %ecx
	movq	-64(%rbp), %rax
	movl	-140(%rbp), %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	addl	$1, -144(%rbp)
.L15:
	cmpl	$999999, -144(%rbp)
	jle	.L20
	movl	$0, -132(%rbp)
	jmp	.L21
.L22:
	movq	-64(%rbp), %rax
	movl	-132(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC4(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	addl	$1, -132(%rbp)
.L21:
	movl	-156(%rbp), %eax
	cmpl	%eax, -132(%rbp)
	jl	.L22
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	1413754136
	.long	1074340347
	.align 8
.LC1:
	.long	0
	.long	1090021888
	.align 8
.LC4:
	.long	0
	.long	1093567616
	.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:
