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

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

#define M_PI 3.14159265358979323846
 
 
int main(void){
    double PI=M_PI;
    double p=PI*2/1000000;

    int N;
    double x[100],y[100];
    int kakuritu[100] ={};

    scanf("%d",&N);
    for(int i=0; i<N; i++)
        scanf("%lf %lf",&x[i],&y[i]);

    for(int i=0; i<1000000; i++) {
        double max = cos(i*p)*x[0]+sin(i*p)*y[0];
        int maxj=0;
        for(int j=0; j<N; j++) {
            if(max < cos(i*p)*x[j]+sin(i*p)*y[j]) {
                max = cos(i*p)*x[j] + sin(i*p)*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"
.LC4:
	.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
	subq	$2080, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, -2032(%rbp)
	movsd	-2032(%rbp), %xmm0
	addsd	%xmm0, %xmm0
	movsd	.LC1(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -2024(%rbp)
	leaq	-2016(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-2064(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2060(%rbp)
	jmp	.L2
.L3:
	leaq	-816(%rbp), %rdx
	movl	-2060(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rax, %rdx
	leaq	-1616(%rbp), %rcx
	movl	-2060(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2060(%rbp)
.L2:
	movl	-2064(%rbp), %eax
	cmpl	%eax, -2060(%rbp)
	jl	.L3
	movl	$0, -2056(%rbp)
	jmp	.L4
.L9:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-2056(%rbp), %xmm0
	mulsd	-2024(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movsd	-1616(%rbp), %xmm1
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -2072(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-2056(%rbp), %xmm0
	movapd	%xmm0, %xmm3
	mulsd	-2024(%rbp), %xmm3
	movq	%xmm3, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movsd	-816(%rbp), %xmm1
	mulsd	%xmm1, %xmm0
	addsd	-2072(%rbp), %xmm0
	movsd	%xmm0, -2040(%rbp)
	movl	$0, -2052(%rbp)
	movl	$0, -2048(%rbp)
	jmp	.L5
.L8:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-2056(%rbp), %xmm0
	mulsd	-2024(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movl	-2048(%rbp), %eax
	cltq
	movsd	-1616(%rbp,%rax,8), %xmm1
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -2072(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-2056(%rbp), %xmm0
	movapd	%xmm0, %xmm5
	mulsd	-2024(%rbp), %xmm5
	movq	%xmm5, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movl	-2048(%rbp), %eax
	cltq
	movsd	-816(%rbp,%rax,8), %xmm1
	mulsd	%xmm1, %xmm0
	addsd	-2072(%rbp), %xmm0
	comisd	-2040(%rbp), %xmm0
	jbe	.L6
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-2056(%rbp), %xmm0
	mulsd	-2024(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movl	-2048(%rbp), %eax
	cltq
	movsd	-1616(%rbp,%rax,8), %xmm1
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -2072(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-2056(%rbp), %xmm0
	movapd	%xmm0, %xmm7
	mulsd	-2024(%rbp), %xmm7
	movq	%xmm7, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movl	-2048(%rbp), %eax
	cltq
	movsd	-816(%rbp,%rax,8), %xmm1
	mulsd	%xmm1, %xmm0
	addsd	-2072(%rbp), %xmm0
	movsd	%xmm0, -2040(%rbp)
	movl	-2048(%rbp), %eax
	movl	%eax, -2052(%rbp)
.L6:
	addl	$1, -2048(%rbp)
.L5:
	movl	-2064(%rbp), %eax
	cmpl	%eax, -2048(%rbp)
	jl	.L8
	movl	-2052(%rbp), %eax
	cltq
	movl	-2016(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-2052(%rbp), %eax
	cltq
	movl	%edx, -2016(%rbp,%rax,4)
	addl	$1, -2056(%rbp)
.L4:
	cmpl	$999999, -2056(%rbp)
	jle	.L9
	movl	$0, -2044(%rbp)
	jmp	.L10
.L11:
	movl	-2044(%rbp), %eax
	cltq
	movl	-2016(%rbp,%rax,4), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC1(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	addl	$1, -2044(%rbp)
.L10:
	movl	-2064(%rbp), %eax
	cmpl	%eax, -2044(%rbp)
	jl	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.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	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	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$50, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$2072, %rsp
	.cfi_def_cfa_offset 2128
	movq	%fs:40, %rax
	movq	%rax, 2056(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rbp
	leaq	44(%rsp), %rsi
	movq	%rbp, %rdi
	rep stosq
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %r13d
	testl	%r13d, %r13d
	jle	.L2
	leaq	448(%rsp), %r14
	xorl	%r12d, %r12d
	leaq	1248(%rsp), %rbx
	leaq	.LC3(%rip), %r15
.L3:
	leaq	(%rbx,%r12,8), %rdx
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %r13d
	addq	$1, %r12
	addq	$8, %r14
	cmpl	%r12d, %r13d
	jg	.L3
.L2:
	movsd	448(%rsp), %xmm5
	movsd	.LC0(%rip), %xmm4
	pxor	%xmm3, %xmm3
	xorl	%r12d, %r12d
	movsd	1248(%rsp), %xmm6
	movsd	%xmm5, (%rsp)
	movsd	%xmm6, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	movsd	8(%rsp), %xmm0
	movsd	(%rsp), %xmm1
	mulsd	%xmm3, %xmm0
	mulsd	%xmm4, %xmm1
	addsd	%xmm0, %xmm1
	testl	%r13d, %r13d
	jle	.L14
	cmpl	$1, %r13d
	je	.L14
	movslq	%r13d, %rsi
	movl	$1, %eax
	xorl	%edx, %edx
	leaq	448(%rsp), %rcx
	leaq	1248(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L8:
	movsd	(%rbx,%rax,8), %xmm0
	movsd	(%rcx,%rax,8), %xmm2
	mulsd	%xmm3, %xmm0
	mulsd	%xmm4, %xmm2
	addsd	%xmm2, %xmm0
	comisd	%xmm1, %xmm0
	maxsd	%xmm1, %xmm0
	cmova	%eax, %edx
	addq	$1, %rax
	movapd	%xmm0, %xmm1
	cmpq	%rsi, %rax
	jne	.L8
.L4:
	movslq	%edx, %rdx
	addl	$1, %r12d
	addl	$1, 48(%rsp,%rdx,4)
	cmpl	$1000000, %r12d
	je	.L9
	pxor	%xmm0, %xmm0
	leaq	24(%rsp), %rdi
	leaq	16(%rsp), %rsi
	cvtsi2sdl	%r12d, %xmm0
	mulsd	.LC4(%rip), %xmm0
	call	sincos@PLT
	movsd	16(%rsp), %xmm4
	movsd	24(%rsp), %xmm3
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L14:
	xorl	%edx, %edx
	jmp	.L4
.L9:
	xorl	%ebx, %ebx
	leaq	.LC6(%rip), %r12
	testl	%r13d, %r13d
	jle	.L12
.L11:
	pxor	%xmm0, %xmm0
	movq	%r12, %rsi
	movl	$1, %edi
	movl	$1, %eax
	cvtsi2sdl	0(%rbp,%rbx,4), %xmm0
	addq	$1, %rbx
	divsd	.LC5(%rip), %xmm0
	call	__printf_chk@PLT
	cmpl	%ebx, 44(%rsp)
	jg	.L11
.L12:
	movq	2056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$2072, %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
.L25:
	.cfi_restore_state
	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	-746556290
	.long	1054497412
	.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	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	$50, %ecx
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$2072, %rsp
	.cfi_def_cfa_offset 2128
	movq	%fs:40, %rax
	movq	%rax, 2056(%rsp)
	xorl	%eax, %eax
	leaq	48(%rsp), %rbp
	leaq	44(%rsp), %rsi
	movq	%rbp, %rdi
	rep stosq
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %r13d
	testl	%r13d, %r13d
	jle	.L2
	leaq	448(%rsp), %r14
	xorl	%r12d, %r12d
	leaq	1248(%rsp), %rbx
	leaq	.LC3(%rip), %r15
.L3:
	leaq	(%rbx,%r12,8), %rdx
	movq	%r14, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %r13d
	addq	$1, %r12
	addq	$8, %r14
	cmpl	%r12d, %r13d
	jg	.L3
.L2:
	movsd	448(%rsp), %xmm5
	movsd	.LC0(%rip), %xmm4
	pxor	%xmm3, %xmm3
	xorl	%r12d, %r12d
	movsd	1248(%rsp), %xmm6
	movsd	%xmm5, (%rsp)
	movsd	%xmm6, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L10:
	movsd	8(%rsp), %xmm0
	movsd	(%rsp), %xmm1
	mulsd	%xmm3, %xmm0
	mulsd	%xmm4, %xmm1
	addsd	%xmm0, %xmm1
	testl	%r13d, %r13d
	jle	.L14
	cmpl	$1, %r13d
	je	.L14
	movslq	%r13d, %rsi
	movl	$1, %eax
	xorl	%edx, %edx
	leaq	448(%rsp), %rcx
	leaq	1248(%rsp), %rbx
	.p2align 4,,10
	.p2align 3
.L8:
	movsd	(%rbx,%rax,8), %xmm0
	movsd	(%rcx,%rax,8), %xmm2
	mulsd	%xmm3, %xmm0
	mulsd	%xmm4, %xmm2
	addsd	%xmm2, %xmm0
	comisd	%xmm1, %xmm0
	maxsd	%xmm1, %xmm0
	cmova	%eax, %edx
	addq	$1, %rax
	movapd	%xmm0, %xmm1
	cmpq	%rsi, %rax
	jne	.L8
.L4:
	movslq	%edx, %rdx
	addl	$1, %r12d
	addl	$1, 48(%rsp,%rdx,4)
	cmpl	$1000000, %r12d
	je	.L9
	pxor	%xmm0, %xmm0
	leaq	24(%rsp), %rdi
	leaq	16(%rsp), %rsi
	cvtsi2sdl	%r12d, %xmm0
	mulsd	.LC4(%rip), %xmm0
	call	sincos@PLT
	movsd	16(%rsp), %xmm4
	movsd	24(%rsp), %xmm3
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L14:
	xorl	%edx, %edx
	jmp	.L4
.L9:
	xorl	%ebx, %ebx
	leaq	.LC6(%rip), %r12
	testl	%r13d, %r13d
	jle	.L12
.L11:
	pxor	%xmm0, %xmm0
	movq	%r12, %rsi
	movl	$1, %edi
	movl	$1, %eax
	cvtsi2sdl	0(%rbp,%rbx,4), %xmm0
	addq	$1, %rbx
	divsd	.LC5(%rip), %xmm0
	call	__printf_chk@PLT
	cmpl	%ebx, 44(%rsp)
	jg	.L11
.L12:
	movq	2056(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$2072, %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
.L25:
	.cfi_restore_state
	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	-746556290
	.long	1054497412
	.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:

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

#define M_PI 3.14159265358979323846
 
 
int main(void){
    double PI=M_PI;
    double p=PI*2/1000000;

    int N;
    double x[100],y[100];
    int kakuritu[100] ={};

    scanf("%d",&N);
    for(int i=0; i<N; i++)
        scanf("%lf %lf",&x[i],&y[i]);

    for(int i=0; i<1000000; i++) {
        double max = cos(i*p)*x[0]+sin(i*p)*y[0];
        int maxj=0;
        for(int j=0; j<N; j++) {
            if(max < cos(i*p)*x[j]+sin(i*p)*y[j]) {
                max = cos(i*p)*x[j] + sin(i*p)*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.4274140000
0.0901980000
0.1388050000
0.0000000000
0.3435830000
 0.4389980000
0.0000000000
0.1388050000
0.0000000000
0.4221970000
 0.4389980000
0.2151980000
0.0683990000
0.0000000000
0.2774050000
 0.4656790000
0.2569160000
0.0000000000
0.0000000000
0.2774050000
 0.4635850000
0.2569160000
0.0000000000
0.0069160000
0.2725830000
 0.4669760000
0.2697920000
0.0000000000
0.0000000000
0.2632320000
 0.4635170000
0.2697920000
0.0166910000
0.0000000000
0.2500000000
 0.3617680000
0.2333090000
0.1416910000
0.0000000000
0.2632320000
 0.3165630000
0.2333090000
0.1928990000
0.0000000000
0.2572290000

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

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

#define M_PI 3.14159265358979323846
 
 
int main(void){
    double PI=M_PI;
    double p=PI*2/1000000;

    int N;
    double x[100],y[100];
    int kakuritu[100] ={};

    scanf("%d",&N);
    for(int i=0; i<N; i++)
        scanf("%lf %lf",&x[i],&y[i]);

    for(int i=0; i<1000000; i++) {
        double max = cos(i*p)*x[0]+sin(i*p)*y[0];
        int maxj=0;
        for(int j=0; j<N; j++) {
            if(max < cos(i*p)*x[j]+sin(i*p)*y[j]) {
                max = cos(i*p)*x[j] + sin(i*p)*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"
.LC4:
	.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
	subq	$2080, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, -2032(%rbp)
	movsd	-2032(%rbp), %xmm0
	addsd	%xmm0, %xmm0
	movsd	.LC1(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -2024(%rbp)
	leaq	-2016(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-2064(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2060(%rbp)
	jmp	.L2
.L3:
	leaq	-816(%rbp), %rdx
	movl	-2060(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rax, %rdx
	leaq	-1616(%rbp), %rcx
	movl	-2060(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2060(%rbp)
.L2:
	movl	-2064(%rbp), %eax
	cmpl	%eax, -2060(%rbp)
	jl	.L3
	movl	$0, -2056(%rbp)
	jmp	.L4
.L9:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-2056(%rbp), %xmm0
	mulsd	-2024(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movsd	-1616(%rbp), %xmm1
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -2072(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-2056(%rbp), %xmm0
	movapd	%xmm0, %xmm3
	mulsd	-2024(%rbp), %xmm3
	movq	%xmm3, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movsd	-816(%rbp), %xmm1
	mulsd	%xmm1, %xmm0
	addsd	-2072(%rbp), %xmm0
	movsd	%xmm0, -2040(%rbp)
	movl	$0, -2052(%rbp)
	movl	$0, -2048(%rbp)
	jmp	.L5
.L8:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-2056(%rbp), %xmm0
	mulsd	-2024(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movl	-2048(%rbp), %eax
	cltq
	movsd	-1616(%rbp,%rax,8), %xmm1
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -2072(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-2056(%rbp), %xmm0
	movapd	%xmm0, %xmm5
	mulsd	-2024(%rbp), %xmm5
	movq	%xmm5, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movl	-2048(%rbp), %eax
	cltq
	movsd	-816(%rbp,%rax,8), %xmm1
	mulsd	%xmm1, %xmm0
	addsd	-2072(%rbp), %xmm0
	comisd	-2040(%rbp), %xmm0
	jbe	.L6
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-2056(%rbp), %xmm0
	mulsd	-2024(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movl	-2048(%rbp), %eax
	cltq
	movsd	-1616(%rbp,%rax,8), %xmm1
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -2072(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-2056(%rbp), %xmm0
	movapd	%xmm0, %xmm7
	mulsd	-2024(%rbp), %xmm7
	movq	%xmm7, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movl	-2048(%rbp), %eax
	cltq
	movsd	-816(%rbp,%rax,8), %xmm1
	mulsd	%xmm1, %xmm0
	addsd	-2072(%rbp), %xmm0
	movsd	%xmm0, -2040(%rbp)
	movl	-2048(%rbp), %eax
	movl	%eax, -2052(%rbp)
.L6:
	addl	$1, -2048(%rbp)
.L5:
	movl	-2064(%rbp), %eax
	cmpl	%eax, -2048(%rbp)
	jl	.L8
	movl	-2052(%rbp), %eax
	cltq
	movl	-2016(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-2052(%rbp), %eax
	cltq
	movl	%edx, -2016(%rbp,%rax,4)
	addl	$1, -2056(%rbp)
.L4:
	cmpl	$999999, -2056(%rbp)
	jle	.L9
	movl	$0, -2044(%rbp)
	jmp	.L10
.L11:
	movl	-2044(%rbp), %eax
	cltq
	movl	-2016(%rbp,%rax,4), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC1(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	addl	$1, -2044(%rbp)
.L10:
	movl	-2064(%rbp), %eax
	cmpl	%eax, -2044(%rbp)
	jl	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.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	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"
.LC4:
	.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
	subq	$2080, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movsd	.LC0(%rip), %xmm0
	movsd	%xmm0, -2032(%rbp)
	movsd	-2032(%rbp), %xmm0
	addsd	%xmm0, %xmm0
	movsd	.LC1(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -2024(%rbp)
	leaq	-2016(%rbp), %rdx
	movl	$0, %eax
	movl	$50, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-2064(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2060(%rbp)
	jmp	.L2
.L3:
	leaq	-816(%rbp), %rdx
	movl	-2060(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rax, %rdx
	leaq	-1616(%rbp), %rcx
	movl	-2060(%rbp), %eax
	cltq
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -2060(%rbp)
.L2:
	movl	-2064(%rbp), %eax
	cmpl	%eax, -2060(%rbp)
	jl	.L3
	movl	$0, -2056(%rbp)
	jmp	.L4
.L9:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-2056(%rbp), %xmm0
	mulsd	-2024(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movsd	-1616(%rbp), %xmm1
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -2072(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-2056(%rbp), %xmm0
	movapd	%xmm0, %xmm3
	mulsd	-2024(%rbp), %xmm3
	movq	%xmm3, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movsd	-816(%rbp), %xmm1
	mulsd	%xmm1, %xmm0
	addsd	-2072(%rbp), %xmm0
	movsd	%xmm0, -2040(%rbp)
	movl	$0, -2052(%rbp)
	movl	$0, -2048(%rbp)
	jmp	.L5
.L8:
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-2056(%rbp), %xmm0
	mulsd	-2024(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movl	-2048(%rbp), %eax
	cltq
	movsd	-1616(%rbp,%rax,8), %xmm1
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -2072(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-2056(%rbp), %xmm0
	movapd	%xmm0, %xmm5
	mulsd	-2024(%rbp), %xmm5
	movq	%xmm5, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movl	-2048(%rbp), %eax
	cltq
	movsd	-816(%rbp,%rax,8), %xmm1
	mulsd	%xmm1, %xmm0
	addsd	-2072(%rbp), %xmm0
	comisd	-2040(%rbp), %xmm0
	jbe	.L6
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-2056(%rbp), %xmm0
	mulsd	-2024(%rbp), %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	movl	-2048(%rbp), %eax
	cltq
	movsd	-1616(%rbp,%rax,8), %xmm1
	mulsd	%xmm1, %xmm0
	movsd	%xmm0, -2072(%rbp)
	pxor	%xmm0, %xmm0
	cvtsi2sdl	-2056(%rbp), %xmm0
	movapd	%xmm0, %xmm7
	mulsd	-2024(%rbp), %xmm7
	movq	%xmm7, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movl	-2048(%rbp), %eax
	cltq
	movsd	-816(%rbp,%rax,8), %xmm1
	mulsd	%xmm1, %xmm0
	addsd	-2072(%rbp), %xmm0
	movsd	%xmm0, -2040(%rbp)
	movl	-2048(%rbp), %eax
	movl	%eax, -2052(%rbp)
.L6:
	addl	$1, -2048(%rbp)
.L5:
	movl	-2064(%rbp), %eax
	cmpl	%eax, -2048(%rbp)
	jl	.L8
	movl	-2052(%rbp), %eax
	cltq
	movl	-2016(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-2052(%rbp), %eax
	cltq
	movl	%edx, -2016(%rbp,%rax,4)
	addl	$1, -2056(%rbp)
.L4:
	cmpl	$999999, -2056(%rbp)
	jle	.L9
	movl	$0, -2044(%rbp)
	jmp	.L10
.L11:
	movl	-2044(%rbp), %eax
	cltq
	movl	-2016(%rbp,%rax,4), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC1(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rax
	movq	%rax, %xmm0
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$1, %eax
	call	printf@PLT
	addl	$1, -2044(%rbp)
.L10:
	movl	-2064(%rbp), %eax
	cmpl	%eax, -2044(%rbp)
	jl	.L11
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.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	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:
