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

```c
#define Z(x,i)(x[i]+x[n/2+i])
x[99],y[99],X,Y;
n,i;main(){
	for(gets(x);~scanf("%d %d",x+n,y+n);n++);
	if(!(n&1))for(X=Z(x,0),Y=Z(y,0);++i<n/2&&Z(x,i)==X&&Z(y,i)==Y;);
	printf(i==n/2?"%f %f\n":"NA\n",X/2.0,Y/2.0);exit(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	x
	.bss
	.align 32
	.type	x, @object
	.size	x, 396
x:
	.zero	396
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 396
y:
	.zero	396
	.globl	X
	.align 4
	.type	X, @object
	.size	X, 4
X:
	.zero	4
	.globl	Y
	.align 4
	.type	Y, @object
	.size	Y, 4
Y:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC2:
	.string	"%f %f\n"
.LC3:
	.string	"NA\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
	leaq	x(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	jmp	.L2
.L3:
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
.L2:
	movl	n(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	addq	%rax, %rdx
	movl	n(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	x(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L3
	movl	n(%rip), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L4
	movl	x(%rip), %ecx
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, X(%rip)
	movl	y(%rip), %ecx
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, Y(%rip)
	nop
.L5:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	cmpl	%eax, %edx
	jge	.L4
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	i(%rip), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edx
	movl	X(%rip), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	i(%rip), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edx
	movl	Y(%rip), %eax
	cmpl	%eax, %edx
	je	.L5
.L4:
	movl	Y(%rip), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC1(%rip), %xmm1
	movapd	%xmm0, %xmm2
	divsd	%xmm1, %xmm2
	movl	X(%rip), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC1(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rdx
	movl	n(%rip), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	i(%rip), %eax
	cmpl	%eax, %ecx
	jne	.L6
	leaq	.LC2(%rip), %rax
	jmp	.L7
.L6:
	leaq	.LC3(%rip), %rax
.L7:
	movapd	%xmm2, %xmm1
	movq	%rdx, %xmm0
	movq	%rax, %rdi
	movl	$2, %eax
	call	printf@PLT
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1073741824
	.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
.LC0:
	.string	"%f %f\n"
.LC1:
	.string	"NA\n"
.LC2:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xorl	%eax, %eax
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	y(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	x(%rip), %rbx
	movq	%rbx, %rdi
	call	gets@PLT
	movl	n(%rip), %esi
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	leal	1(%rax), %esi
	movl	%esi, n(%rip)
.L2:
	movslq	%esi, %rsi
	xorl	%eax, %eax
	movq	%r12, %rdi
	salq	$2, %rsi
	leaq	0(%rbp,%rsi), %rdx
	addq	%rbx, %rsi
	call	scanf@PLT
	cmpl	$-1, %eax
	movl	n(%rip), %eax
	jne	.L3
	movl	%eax, %ecx
	movslq	i(%rip), %rdx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	testb	$1, %al
	jne	.L4
	movslq	%ecx, %rax
	leal	1(%rdx), %r8d
	imulq	$-4, %rdx, %rdx
	movl	(%rbx,%rax,4), %esi
	movl	0(%rbp,%rax,4), %edi
	movslq	%r8d, %rax
	addl	%ecx, %r8d
	addl	(%rbx), %esi
	addl	0(%rbp), %edi
	movslq	%r8d, %r8
	movl	%esi, X(%rip)
	leaq	(%rdx,%r8,4), %r8
	movl	%edi, Y(%rip)
	leaq	(%rbx,%r8), %r10
	addq	%rbp, %r8
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	movl	-4(%r10,%rax,4), %edx
	addl	(%rbx,%rax,4), %edx
	cmpl	%edx, %esi
	jne	.L6
	movl	-4(%r8,%rax,4), %edx
	addl	0(%rbp,%rax,4), %edx
	addq	$1, %rax
	cmpl	%edx, %edi
	jne	.L6
.L7:
	movl	%eax, %r9d
	cmpl	%eax, %ecx
	jg	.L13
	movl	%eax, i(%rip)
.L4:
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	movsd	.LC3(%rip), %xmm2
	cmpl	%ecx, i(%rip)
	cvtsi2sdl	Y(%rip), %xmm1
	leaq	.LC0(%rip), %rdi
	cvtsi2sdl	X(%rip), %xmm0
	leaq	.LC1(%rip), %rax
	cmovne	%rax, %rdi
	mulsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm0
.L8:
	movl	$2, %eax
	call	printf@PLT
	xorl	%edi, %edi
	call	exit@PLT
.L6:
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	movsd	.LC3(%rip), %xmm2
	movl	%r9d, i(%rip)
	cvtsi2sdl	%edi, %xmm1
	leaq	.LC1(%rip), %rdi
	cvtsi2sdl	%esi, %xmm0
	mulsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm0
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	Y
	.align 4
	.type	Y, @object
	.size	Y, 4
Y:
	.zero	4
	.globl	X
	.align 4
	.type	X, @object
	.size	X, 4
X:
	.zero	4
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 396
y:
	.zero	396
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 396
x:
	.zero	396
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%f %f\n"
.LC1:
	.string	"NA\n"
.LC2:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xorl	%eax, %eax
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	y(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	x(%rip), %rbx
	movq	%rbx, %rdi
	call	gets@PLT
	movl	n(%rip), %esi
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	leal	1(%rax), %esi
	movl	%esi, n(%rip)
.L2:
	movslq	%esi, %rsi
	xorl	%eax, %eax
	movq	%r12, %rdi
	salq	$2, %rsi
	leaq	0(%rbp,%rsi), %rdx
	addq	%rbx, %rsi
	call	scanf@PLT
	cmpl	$-1, %eax
	movl	n(%rip), %eax
	jne	.L3
	movl	%eax, %ecx
	movslq	i(%rip), %rdx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	testb	$1, %al
	jne	.L4
	movslq	%ecx, %rax
	leal	1(%rdx), %r8d
	imulq	$-4, %rdx, %rdx
	movl	(%rbx,%rax,4), %esi
	movl	0(%rbp,%rax,4), %edi
	movslq	%r8d, %rax
	addl	%ecx, %r8d
	addl	(%rbx), %esi
	addl	0(%rbp), %edi
	movslq	%r8d, %r8
	movl	%esi, X(%rip)
	leaq	(%rdx,%r8,4), %r8
	movl	%edi, Y(%rip)
	leaq	(%rbx,%r8), %r10
	addq	%rbp, %r8
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	movl	-4(%r10,%rax,4), %edx
	addl	(%rbx,%rax,4), %edx
	cmpl	%edx, %esi
	jne	.L6
	movl	-4(%r8,%rax,4), %edx
	addl	0(%rbp,%rax,4), %edx
	addq	$1, %rax
	cmpl	%edx, %edi
	jne	.L6
.L7:
	movl	%eax, %r9d
	cmpl	%eax, %ecx
	jg	.L13
	movl	%eax, i(%rip)
.L4:
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	movsd	.LC3(%rip), %xmm2
	cmpl	%ecx, i(%rip)
	cvtsi2sdl	Y(%rip), %xmm1
	leaq	.LC0(%rip), %rdi
	cvtsi2sdl	X(%rip), %xmm0
	leaq	.LC1(%rip), %rax
	cmovne	%rax, %rdi
	mulsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm0
.L8:
	movl	$2, %eax
	call	printf@PLT
	xorl	%edi, %edi
	call	exit@PLT
.L6:
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	movsd	.LC3(%rip), %xmm2
	movl	%r9d, i(%rip)
	cvtsi2sdl	%edi, %xmm1
	leaq	.LC1(%rip), %rdi
	cvtsi2sdl	%esi, %xmm0
	mulsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm0
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	Y
	.align 4
	.type	Y, @object
	.size	Y, 4
Y:
	.zero	4
	.globl	X
	.align 4
	.type	X, @object
	.size	X, 4
X:
	.zero	4
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 396
y:
	.zero	396
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 396
x:
	.zero	396
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	0
	.long	1071644672
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#define Z(x,i)(x[i]+x[n/2+i])
x[99],y[99],X,Y;
n,i;main(){
	for(gets(x);~scanf("%d %d",x+n,y+n);n++);
	if(!(n&1))for(X=Z(x,0),Y=Z(y,0);++i<n/2&&Z(x,i)==X&&Z(y,i)==Y;);
	printf(i==n/2?"%f %f\n":"NA\n",X/2.0,Y/2.0);exit(0);
}
4
000 100
0 100
0 0
100 0
 3
100 100
0 100
1 0
 4
000 101
0 100
0 0
100 0
 3
100 100
0 100
1 1
 4
000 101
0 000
0 0
100 0
 3
100 100
0 000
1 1
 4
000 101
0 000
0 0
110 0
 3
100 100
1 000
1 1
 4
000 100
0 000
0 0
110 0
 3
100 100
2 000
1 1

NA
 NA
 NA
 NA
 NA
 NA
 NA
 NA
 NA
 NA

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

```c
#define Z(x,i)(x[i]+x[n/2+i])
x[99],y[99],X,Y;
n,i;main(){
	for(gets(x);~scanf("%d %d",x+n,y+n);n++);
	if(!(n&1))for(X=Z(x,0),Y=Z(y,0);++i<n/2&&Z(x,i)==X&&Z(y,i)==Y;);
	printf(i==n/2?"%f %f\n":"NA\n",X/2.0,Y/2.0);exit(0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	x
	.bss
	.align 32
	.type	x, @object
	.size	x, 396
x:
	.zero	396
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 396
y:
	.zero	396
	.globl	X
	.align 4
	.type	X, @object
	.size	X, 4
X:
	.zero	4
	.globl	Y
	.align 4
	.type	Y, @object
	.size	Y, 4
Y:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC2:
	.string	"%f %f\n"
.LC3:
	.string	"NA\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
	leaq	x(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	jmp	.L2
.L3:
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
.L2:
	movl	n(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	addq	%rax, %rdx
	movl	n(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	x(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L3
	movl	n(%rip), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L4
	movl	x(%rip), %ecx
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, X(%rip)
	movl	y(%rip), %ecx
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, Y(%rip)
	nop
.L5:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	cmpl	%eax, %edx
	jge	.L4
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	i(%rip), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edx
	movl	X(%rip), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	i(%rip), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edx
	movl	Y(%rip), %eax
	cmpl	%eax, %edx
	je	.L5
.L4:
	movl	Y(%rip), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC1(%rip), %xmm1
	movapd	%xmm0, %xmm2
	divsd	%xmm1, %xmm2
	movl	X(%rip), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC1(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rdx
	movl	n(%rip), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	i(%rip), %eax
	cmpl	%eax, %ecx
	jne	.L6
	leaq	.LC2(%rip), %rax
	jmp	.L7
.L6:
	leaq	.LC3(%rip), %rax
.L7:
	movapd	%xmm2, %xmm1
	movq	%rdx, %xmm0
	movq	%rax, %rdi
	movl	$2, %eax
	call	printf@PLT
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1073741824
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	x
	.bss
	.align 32
	.type	x, @object
	.size	x, 396
x:
	.zero	396
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 396
y:
	.zero	396
	.globl	X
	.align 4
	.type	X, @object
	.size	X, 4
X:
	.zero	4
	.globl	Y
	.align 4
	.type	Y, @object
	.size	Y, 4
Y:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d %d"
.LC2:
	.string	"%f %f\n"
.LC3:
	.string	"NA\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
	leaq	x(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	gets@PLT
	jmp	.L2
.L3:
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
.L2:
	movl	n(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	addq	%rax, %rdx
	movl	n(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	x(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	cmpl	$-1, %eax
	jne	.L3
	movl	n(%rip), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L4
	movl	x(%rip), %ecx
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, X(%rip)
	movl	y(%rip), %ecx
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, Y(%rip)
	nop
.L5:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
	movl	i(%rip), %edx
	movl	n(%rip), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	cmpl	%eax, %edx
	jge	.L4
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	i(%rip), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	x(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edx
	movl	X(%rip), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	i(%rip), %eax
	addl	%edx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	y(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rcx,%rax), %edx
	movl	Y(%rip), %eax
	cmpl	%eax, %edx
	je	.L5
.L4:
	movl	Y(%rip), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC1(%rip), %xmm1
	movapd	%xmm0, %xmm2
	divsd	%xmm1, %xmm2
	movl	X(%rip), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movsd	.LC1(%rip), %xmm1
	divsd	%xmm1, %xmm0
	movq	%xmm0, %rdx
	movl	n(%rip), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	i(%rip), %eax
	cmpl	%eax, %ecx
	jne	.L6
	leaq	.LC2(%rip), %rax
	jmp	.L7
.L6:
	leaq	.LC3(%rip), %rax
.L7:
	movapd	%xmm2, %xmm1
	movq	%rdx, %xmm0
	movq	%rax, %rdi
	movl	$2, %eax
	call	printf@PLT
	movl	$0, %edi
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1073741824
	.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:
