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

```c
// Aizu Vol-1 0166: Area of Polygon
// 2017.8.8

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

#define M	0.00872664625997164788461845384244
#define EPS 1e-8

int main()
{
	int i, n, v;
	double s[2];
	int a[2];

	while (1) {
		i = 2;
		while (i-- > 0) {
			s[i] = a[i] = 0;
			scanf("%d", &n); if (n == 0) return 0;
			while (--n > 0) {
				scanf("%d", &v);
				a[i] += v;
				s[i] += sin(M*v)*cos(M*v);
			}
			v = 360 - a[i];
			s[i] += sin(M*v)*cos(M*v);
		}
		if (fabs(s[0]-s[1]) <= EPS) putchar('0');
		else if (s[0] >= s[1]) putchar('2');
		else putchar('1');
		putchar('\n');
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC1:
	.string	"%d"
	.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	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L13:
	movl	$2, -44(%rbp)
	jmp	.L2
.L7:
	movl	-44(%rbp), %eax
	cltq
	movl	$0, -40(%rbp,%rax,4)
	movl	-44(%rbp), %eax
	cltq
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -32(%rbp,%rax,8)
	leaq	-52(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	jmp	.L17
.L6:
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cltq
	movl	-40(%rbp,%rax,4), %edx
	movl	-48(%rbp), %eax
	addl	%eax, %edx
	movl	-44(%rbp), %eax
	cltq
	movl	%edx, -40(%rbp,%rax,4)
	movl	-44(%rbp), %eax
	cltq
	movsd	-32(%rbp,%rax,8), %xmm2
	movsd	%xmm2, -72(%rbp)
	movl	-48(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movsd	%xmm0, -80(%rbp)
	movl	-48(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	mulsd	-80(%rbp), %xmm0
	addsd	-72(%rbp), %xmm0
	movl	-44(%rbp), %eax
	cltq
	movsd	%xmm0, -32(%rbp,%rax,8)
.L5:
	movl	-52(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -52(%rbp)
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jg	.L6
	movl	-44(%rbp), %eax
	cltq
	movl	-40(%rbp,%rax,4), %edx
	movl	$360, %eax
	subl	%edx, %eax
	movl	%eax, -48(%rbp)
	movl	-44(%rbp), %eax
	cltq
	movsd	-32(%rbp,%rax,8), %xmm4
	movsd	%xmm4, -72(%rbp)
	movl	-48(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movsd	%xmm0, -80(%rbp)
	movl	-48(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	mulsd	-80(%rbp), %xmm0
	addsd	-72(%rbp), %xmm0
	movl	-44(%rbp), %eax
	cltq
	movsd	%xmm0, -32(%rbp,%rax,8)
.L2:
	movl	-44(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -44(%rbp)
	testl	%eax, %eax
	jg	.L7
	movsd	-32(%rbp), %xmm0
	movsd	-24(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movq	.LC3(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L18
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L10
.L18:
	movsd	-32(%rbp), %xmm0
	movsd	-24(%rbp), %xmm1
	comisd	%xmm1, %xmm0
	jb	.L19
	movl	$50, %edi
	call	putchar@PLT
	jmp	.L10
.L19:
	movl	$49, %edi
	call	putchar@PLT
.L10:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L13
.L17:
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	-1571644103
	.long	1065475910
	.align 16
.LC3:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC4:
	.long	-500134854
	.long	1044740494
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC2(%rip), %r13
	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	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	72(%rsp), %rax
	movq	%rax, 32(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L11:
	leaq	68(%rsp), %rax
	movq	32(%rsp), %rbx
	movq	40(%rsp), %r15
	movq	%rax, (%rsp)
.L5:
	movl	$0, 4(%rbx)
	movq	8(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	movq	$0x000000000, 8(%r15)
	call	__isoc99_scanf@PLT
	movl	64(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	subl	$1, %eax
	leaq	56(%rsp), %rbp
	leaq	48(%rsp), %r12
	movl	%eax, 64(%rsp)
	testl	%eax, %eax
	jle	.L23
	.p2align 4,,10
	.p2align 3
.L3:
	movq	(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	68(%rsp), %eax
	movl	4(%rbx), %r14d
	movq	%r12, %rsi
	pxor	%xmm0, %xmm0
	movq	%rbp, %rdi
	cvtsi2sdl	%eax, %xmm0
	mulsd	.LC3(%rip), %xmm0
	addl	%eax, %r14d
	movl	%r14d, 4(%rbx)
	call	sincos@PLT
	movsd	56(%rsp), %xmm1
	movl	64(%rsp), %eax
	mulsd	48(%rsp), %xmm1
	addsd	8(%r15), %xmm1
	subl	$1, %eax
	movl	%eax, 64(%rsp)
	movsd	%xmm1, 8(%r15)
	testl	%eax, %eax
	jg	.L3
	movl	$360, %eax
	pxor	%xmm0, %xmm0
	movq	%r12, %rsi
	movq	%rbp, %rdi
	subl	%r14d, %eax
	movsd	%xmm1, 24(%rsp)
	cvtsi2sdl	%eax, %xmm0
	mulsd	.LC3(%rip), %xmm0
	movl	%eax, 20(%rsp)
	call	sincos@PLT
	movsd	56(%rsp), %xmm0
	mulsd	48(%rsp), %xmm0
	movsd	24(%rsp), %xmm1
	movl	20(%rsp), %eax
	addsd	%xmm1, %xmm0
.L4:
	movsd	%xmm0, 8(%r15)
	subq	$4, %rbx
	subq	$8, %r15
	movl	%eax, 68(%rsp)
	cmpq	%r15, 8(%rsp)
	jne	.L5
	movsd	80(%rsp), %xmm2
	movsd	88(%rsp), %xmm1
	movsd	.LC5(%rip), %xmm3
	movq	stdout(%rip), %rsi
	movapd	%xmm2, %xmm0
	subsd	%xmm1, %xmm0
	andpd	.LC4(%rip), %xmm0
	comisd	%xmm0, %xmm3
	jnb	.L24
	comisd	%xmm1, %xmm2
	jb	.L20
	movl	$50, %edi
	call	putc@PLT
.L8:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$49, %edi
	call	putc@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L24:
	movl	$48, %edi
	call	putc@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	movq	.LC0(%rip), %rax
	movq	%rax, %xmm0
	movl	$360, %eax
	jmp	.L4
.L2:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$120, %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	856972295
	.long	-1130256858
	.align 8
.LC3:
	.long	-1571644103
	.long	1065475910
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC5:
	.long	-500134854
	.long	1044740494
	.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	.LC2(%rip), %r13
	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	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	72(%rsp), %rax
	movq	%rax, 32(%rsp)
	leaq	80(%rsp), %rax
	movq	%rax, 40(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L11:
	leaq	68(%rsp), %rax
	movq	32(%rsp), %rbx
	movq	40(%rsp), %r15
	movq	%rax, (%rsp)
.L5:
	movl	$0, 4(%rbx)
	movq	8(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	movq	$0x000000000, 8(%r15)
	call	__isoc99_scanf@PLT
	movl	64(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	subl	$1, %eax
	leaq	56(%rsp), %rbp
	leaq	48(%rsp), %r12
	movl	%eax, 64(%rsp)
	testl	%eax, %eax
	jle	.L23
	.p2align 4,,10
	.p2align 3
.L3:
	movq	(%rsp), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	68(%rsp), %eax
	movl	4(%rbx), %r14d
	movq	%r12, %rsi
	pxor	%xmm0, %xmm0
	movq	%rbp, %rdi
	cvtsi2sdl	%eax, %xmm0
	mulsd	.LC3(%rip), %xmm0
	addl	%eax, %r14d
	movl	%r14d, 4(%rbx)
	call	sincos@PLT
	movsd	56(%rsp), %xmm1
	movl	64(%rsp), %eax
	mulsd	48(%rsp), %xmm1
	addsd	8(%r15), %xmm1
	subl	$1, %eax
	movl	%eax, 64(%rsp)
	movsd	%xmm1, 8(%r15)
	testl	%eax, %eax
	jg	.L3
	movl	$360, %eax
	pxor	%xmm0, %xmm0
	movq	%r12, %rsi
	movq	%rbp, %rdi
	subl	%r14d, %eax
	movsd	%xmm1, 24(%rsp)
	cvtsi2sdl	%eax, %xmm0
	mulsd	.LC3(%rip), %xmm0
	movl	%eax, 20(%rsp)
	call	sincos@PLT
	movsd	56(%rsp), %xmm0
	mulsd	48(%rsp), %xmm0
	movsd	24(%rsp), %xmm1
	movl	20(%rsp), %eax
	addsd	%xmm1, %xmm0
.L4:
	movsd	%xmm0, 8(%r15)
	subq	$4, %rbx
	subq	$8, %r15
	movl	%eax, 68(%rsp)
	cmpq	%r15, 8(%rsp)
	jne	.L5
	movsd	80(%rsp), %xmm2
	movsd	88(%rsp), %xmm1
	movsd	.LC5(%rip), %xmm3
	movq	stdout(%rip), %rsi
	movapd	%xmm2, %xmm0
	subsd	%xmm1, %xmm0
	andpd	.LC4(%rip), %xmm0
	comisd	%xmm0, %xmm3
	jnb	.L24
	comisd	%xmm1, %xmm2
	jb	.L20
	movl	$50, %edi
	call	putc@PLT
.L8:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	call	putc@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$49, %edi
	call	putc@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L24:
	movl	$48, %edi
	call	putc@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	movq	.LC0(%rip), %rax
	movq	%rax, %xmm0
	movl	$360, %eax
	jmp	.L4
.L2:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$120, %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	856972295
	.long	-1130256858
	.align 8
.LC3:
	.long	-1571644103
	.long	1065475910
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC4:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.section	.rodata.cst8
	.align 8
.LC5:
	.long	-500134854
	.long	1044740494
	.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 Vol-1 0166: Area of Polygon
// 2017.8.8

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

#define M	0.00872664625997164788461845384244
#define EPS 1e-8

int main()
{
	int i, n, v;
	double s[2];
	int a[2];

	while (1) {
		i = 2;
		while (i-- > 0) {
			s[i] = a[i] = 0;
			scanf("%d", &n); if (n == 0) return 0;
			while (--n > 0) {
				scanf("%d", &v);
				a[i] += v;
				s[i] += sin(M*v)*cos(M*v);
			}
			v = 360 - a[i];
			s[i] += sin(M*v)*cos(M*v);
		}
		if (fabs(s[0]-s[1]) <= EPS) putchar('0');
		else if (s[0] >= s[1]) putchar('2');
		else putchar('1');
		putchar('\n');
	}
	return 0;
}
4
30
125
75
4
30
125
75
5
30
125
75
65
4
30
125
75
4
30
125
75
6
30
50
50
29
75
0
 4
30
125
75
4
30
125
75
5
30
125
75
65
4
30
125
75
4
30
125
75
6
30
50
6
29
75
0
 4
30
84
75
4
30
125
75
5
30
125
75
65
4
30
125
75
4
30
125
75
6
52
50
50
25
75
0
 4
30
125
75
4
30
125
75
5
30
125
149
65
4
30
125
75
4
30
125
75
6
52
50
50
25
75
0
 4
30
125
75
4
21
125
75
5
30
125
75
65
4
30
125
75
4
30
125
75
6
30
50
6
29
75
0
 4
30
125
75
4
30
125
75
5
30
207
75
65
4
30
125
75
4
30
125
75
6
30
50
2
29
0
0
 4
30
125
75
4
30
125
30
5
30
125
75
65
4
30
125
75
4
30
211
75
6
30
50
50
29
35
0
 4
30
207
75
4
30
125
75
5
30
207
75
65
4
30
125
75
4
30
125
75
6
30
50
2
29
0
0
 4
30
84
75
4
30
125
75
5
30
7
14
65
4
30
125
75
4
30
125
75
6
52
50
50
7
75
0
 4
30
125
75
4
30
117
75
5
50
175
75
65
4
30
125
75
4
30
125
2
6
7
50
6
29
0
0

0
1
2
 0
1
1
 2
1
2
 0
2
2
 1
1
1
 0
2
1
 1
1
2
 2
2
1
 2
2
2
 1
2
1

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

```c
// Aizu Vol-1 0166: Area of Polygon
// 2017.8.8

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

#define M	0.00872664625997164788461845384244
#define EPS 1e-8

int main()
{
	int i, n, v;
	double s[2];
	int a[2];

	while (1) {
		i = 2;
		while (i-- > 0) {
			s[i] = a[i] = 0;
			scanf("%d", &n); if (n == 0) return 0;
			while (--n > 0) {
				scanf("%d", &v);
				a[i] += v;
				s[i] += sin(M*v)*cos(M*v);
			}
			v = 360 - a[i];
			s[i] += sin(M*v)*cos(M*v);
		}
		if (fabs(s[0]-s[1]) <= EPS) putchar('0');
		else if (s[0] >= s[1]) putchar('2');
		else putchar('1');
		putchar('\n');
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC1:
	.string	"%d"
	.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	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L13:
	movl	$2, -44(%rbp)
	jmp	.L2
.L7:
	movl	-44(%rbp), %eax
	cltq
	movl	$0, -40(%rbp,%rax,4)
	movl	-44(%rbp), %eax
	cltq
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -32(%rbp,%rax,8)
	leaq	-52(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	jmp	.L17
.L6:
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cltq
	movl	-40(%rbp,%rax,4), %edx
	movl	-48(%rbp), %eax
	addl	%eax, %edx
	movl	-44(%rbp), %eax
	cltq
	movl	%edx, -40(%rbp,%rax,4)
	movl	-44(%rbp), %eax
	cltq
	movsd	-32(%rbp,%rax,8), %xmm2
	movsd	%xmm2, -72(%rbp)
	movl	-48(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movsd	%xmm0, -80(%rbp)
	movl	-48(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	mulsd	-80(%rbp), %xmm0
	addsd	-72(%rbp), %xmm0
	movl	-44(%rbp), %eax
	cltq
	movsd	%xmm0, -32(%rbp,%rax,8)
.L5:
	movl	-52(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -52(%rbp)
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jg	.L6
	movl	-44(%rbp), %eax
	cltq
	movl	-40(%rbp,%rax,4), %edx
	movl	$360, %eax
	subl	%edx, %eax
	movl	%eax, -48(%rbp)
	movl	-44(%rbp), %eax
	cltq
	movsd	-32(%rbp,%rax,8), %xmm4
	movsd	%xmm4, -72(%rbp)
	movl	-48(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movsd	%xmm0, -80(%rbp)
	movl	-48(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	mulsd	-80(%rbp), %xmm0
	addsd	-72(%rbp), %xmm0
	movl	-44(%rbp), %eax
	cltq
	movsd	%xmm0, -32(%rbp,%rax,8)
.L2:
	movl	-44(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -44(%rbp)
	testl	%eax, %eax
	jg	.L7
	movsd	-32(%rbp), %xmm0
	movsd	-24(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movq	.LC3(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L18
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L10
.L18:
	movsd	-32(%rbp), %xmm0
	movsd	-24(%rbp), %xmm1
	comisd	%xmm1, %xmm0
	jb	.L19
	movl	$50, %edi
	call	putchar@PLT
	jmp	.L10
.L19:
	movl	$49, %edi
	call	putchar@PLT
.L10:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L13
.L17:
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	-1571644103
	.long	1065475910
	.align 16
.LC3:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC4:
	.long	-500134854
	.long	1044740494
	.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
.LC1:
	.string	"%d"
	.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	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
.L13:
	movl	$2, -44(%rbp)
	jmp	.L2
.L7:
	movl	-44(%rbp), %eax
	cltq
	movl	$0, -40(%rbp,%rax,4)
	movl	-44(%rbp), %eax
	cltq
	pxor	%xmm0, %xmm0
	movsd	%xmm0, -32(%rbp,%rax,8)
	leaq	-52(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	jmp	.L17
.L6:
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cltq
	movl	-40(%rbp,%rax,4), %edx
	movl	-48(%rbp), %eax
	addl	%eax, %edx
	movl	-44(%rbp), %eax
	cltq
	movl	%edx, -40(%rbp,%rax,4)
	movl	-44(%rbp), %eax
	cltq
	movsd	-32(%rbp,%rax,8), %xmm2
	movsd	%xmm2, -72(%rbp)
	movl	-48(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movsd	%xmm0, -80(%rbp)
	movl	-48(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	mulsd	-80(%rbp), %xmm0
	addsd	-72(%rbp), %xmm0
	movl	-44(%rbp), %eax
	cltq
	movsd	%xmm0, -32(%rbp,%rax,8)
.L5:
	movl	-52(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -52(%rbp)
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	jg	.L6
	movl	-44(%rbp), %eax
	cltq
	movl	-40(%rbp,%rax,4), %edx
	movl	$360, %eax
	subl	%edx, %eax
	movl	%eax, -48(%rbp)
	movl	-44(%rbp), %eax
	cltq
	movsd	-32(%rbp,%rax,8), %xmm4
	movsd	%xmm4, -72(%rbp)
	movl	-48(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	sin@PLT
	movsd	%xmm0, -80(%rbp)
	movl	-48(%rbp), %eax
	pxor	%xmm1, %xmm1
	cvtsi2sdl	%eax, %xmm1
	movsd	.LC2(%rip), %xmm0
	mulsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	movq	%rax, %xmm0
	call	cos@PLT
	mulsd	-80(%rbp), %xmm0
	addsd	-72(%rbp), %xmm0
	movl	-44(%rbp), %eax
	cltq
	movsd	%xmm0, -32(%rbp,%rax,8)
.L2:
	movl	-44(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -44(%rbp)
	testl	%eax, %eax
	jg	.L7
	movsd	-32(%rbp), %xmm0
	movsd	-24(%rbp), %xmm1
	subsd	%xmm1, %xmm0
	movq	.LC3(%rip), %xmm1
	andpd	%xmm0, %xmm1
	movsd	.LC4(%rip), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L18
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L10
.L18:
	movsd	-32(%rbp), %xmm0
	movsd	-24(%rbp), %xmm1
	comisd	%xmm1, %xmm0
	jb	.L19
	movl	$50, %edi
	call	putchar@PLT
	jmp	.L10
.L19:
	movl	$49, %edi
	call	putchar@PLT
.L10:
	movl	$10, %edi
	call	putchar@PLT
	jmp	.L13
.L17:
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	-1571644103
	.long	1065475910
	.align 16
.LC3:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC4:
	.long	-500134854
	.long	1044740494
	.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:
