Given the following C code and 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])
int 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;
	i++);
	printf(i==n/2?"%f %f\n":"NA\n",X/2.0,Y/2.0);exit(0);
}```

Assembly Code:

```assembly
	.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	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	y(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	x(%rip), %rbx
	movq	%rbx, %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	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
	movl	i(%rip), %edx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	testb	$1, %al
	jne	.L5
	movslq	%ecx, %rax
	movl	(%rbx,%rax,4), %esi
	movl	0(%rbp,%rax,4), %edi
	addl	(%rbx), %esi
	addl	0(%rbp), %edi
	movl	%esi, X(%rip)
	movl	%edi, Y(%rip)
	cmpl	%edx, %ecx
	jle	.L5
	movl	%ecx, %r8d
	movslq	%edx, %r9
	leal	1(%rdx), %eax
	xorl	%r10d, %r10d
	subl	%edx, %r8d
	addl	%ecx, %edx
	leaq	-4+y(%rip), %r11
	cltq
	subl	$1, %r8d
	movslq	%edx, %rdx
	leaq	2(%r9,%r8), %r8
	imulq	$-4, %r9, %r9
	leaq	(%r9,%rdx,4), %rdx
	leaq	-4+x(%rip), %r9
	addq	%rdx, %rbx
	addq	%rdx, %rbp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	movl	-4(%rbp,%rax,4), %edx
	addl	(%r11,%rax,4), %edx
	cmpl	%edx, %edi
	jne	.L23
	movl	%eax, %r13d
	addq	$1, %rax
	movl	$1, %r10d
	cmpq	%rax, %r8
	je	.L22
.L8:
	movl	-4(%rbx,%rax,4), %edx
	addl	(%r9,%rax,4), %edx
	cmpl	%edx, %esi
	je	.L9
.L23:
	testb	%r10b, %r10b
	je	.L10
.L22:
	movl	%r13d, i(%rip)
.L5:
	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
.L12:
	movl	$2, %eax
	call	printf@PLT
	xorl	%edi, %edi
	call	exit@PLT
.L10:
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	movsd	.LC3(%rip), %xmm2
	leaq	.LC1(%rip), %rdi
	cvtsi2sdl	Y(%rip), %xmm1
	cvtsi2sdl	X(%rip), %xmm0
	mulsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm0
	jmp	.L12
	.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:
```

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.
Optimized Assembly Code:

user
```assembly
	.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	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	y(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	x(%rip), %rbx
	movq	%rbx, %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	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
	movl	i(%rip), %edx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	testb	$1, %al
	jne	.L5
	movslq	%ecx, %rax
	movl	(%rbx,%rax,4), %esi
	movl	0(%rbp,%rax,4), %edi
	addl	(%rbx), %esi
	addl	0(%rbp), %edi
	movl	%esi, X(%rip)
	movl	%edi, Y(%rip)
	cmpl	%edx, %ecx
	jle	.L5
	movl	%ecx, %r8d
	movslq	%edx, %r9
	leal	1(%rdx), %eax
	xorl	%r10d, %r10d
	subl	%edx, %r8d
	addl	%ecx, %edx
	leaq	-4+y(%rip), %r11
	cltq
	subl	$1, %r8d
	movslq	%edx, %rdx
	leaq	2(%r9,%r8), %r8
	imulq	$-4, %r9, %r9
	leaq	(%r9,%rdx,4), %rdx
	leaq	-4+x(%rip), %r9
	addq	%rdx, %rbx
	addq	%rdx, %rbp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	movl	-4(%rbp,%rax,4), %edx
	addl	(%r11,%rax,4), %edx
	cmpl	%edx, %edi
	jne	.L23
	movl	%eax, %r13d
	addq	$1, %rax
	movl	$1, %r10d
	cmpq	%rax, %r8
	je	.L22
.L8:
	movl	-4(%rbx,%rax,4), %edx
	addl	(%r9,%rax,4), %edx
	cmpl	%edx, %esi
	je	.L9
.L23:
	testb	%r10b, %r10b
	je	.L10
.L22:
	movl	%r13d, i(%rip)
.L5:
	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
.L12:
	movl	$2, %eax
	call	printf@PLT
	xorl	%edi, %edi
	call	exit@PLT
.L10:
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	movsd	.LC3(%rip), %xmm2
	leaq	.LC1(%rip), %rdi
	cvtsi2sdl	Y(%rip), %xmm1
	cvtsi2sdl	X(%rip), %xmm0
	mulsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm0
	jmp	.L12
	.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
```assembly
	.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	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	y(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	x(%rip), %rbx
	movq	%rbx, %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	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
	movl	i(%rip), %edx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	testb	$1, %al
	jne	.L5
	movslq	%ecx, %rax
	movl	(%rbx,%rax,4), %esi
	movl	0(%rbp,%rax,4), %edi
	addl	(%rbx), %esi
	addl	0(%rbp), %edi
	movl	%esi, X(%rip)
	movl	%edi, Y(%rip)
	cmpl	%edx, %ecx
	jle	.L5
	movl	%ecx, %r8d
	movslq	%edx, %r9
	leal	1(%rdx), %eax
	xorl	%r10d, %r10d
	subl	%edx, %r8d
	addl	%ecx, %edx
	leaq	-4+y(%rip), %r11
	cltq
	subl	$1, %r8d
	movslq	%edx, %rdx
	leaq	2(%r9,%r8), %r8
	imulq	$-4, %r9, %r9
	leaq	(%r9,%rdx,4), %rdx
	leaq	-4+x(%rip), %r9
	addq	%rdx, %rbx
	addq	%rdx, %rbp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	movl	-4(%rbp,%rax,4), %edx
	addl	(%r11,%rax,4), %edx
	cmpl	%edx, %edi
	jne	.L23
	movl	%eax, %r13d
	addq	$1, %rax
	movl	$1, %r10d
	cmpq	%rax, %r8
	je	.L22
.L8:
	movl	-4(%rbx,%rax,4), %edx
	addl	(%r9,%rax,4), %edx
	cmpl	%edx, %esi
	je	.L9
.L23:
	testb	%r10b, %r10b
	je	.L10
.L22:
	movl	%r13d, i(%rip)
.L5:
	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
.L12:
	movl	$2, %eax
	call	printf@PLT
	xorl	%edi, %edi
	call	exit@PLT
.L10:
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	movsd	.LC3(%rip), %xmm2
	leaq	.LC1(%rip), %rdi
	cvtsi2sdl	Y(%rip), %xmm1
	cvtsi2sdl	X(%rip), %xmm0
	mulsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm0
	jmp	.L12
	.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:
```
```c
#define Z(x,i)(x[i]+x[n/2+i])
int 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;
	i++);
	printf(i==n/2?"%f %f\n":"NA\n",X/2.0,Y/2.0);exit(0);
}```
Given the following C 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])
int 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;
	i++);
	printf(i==n/2?"%f %f\n":"NA\n",X/2.0,Y/2.0);exit(0);
}```

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.
Optimized Assembly Code:

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 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])
int 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;
	i++);
	printf(i==n/2?"%f %f\n":"NA\n",X/2.0,Y/2.0);exit(0);
}```

Assembly Code:

```assembly
	.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	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	y(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	x(%rip), %rbx
	movq	%rbx, %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	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
	movl	i(%rip), %edx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	testb	$1, %al
	jne	.L5
	movslq	%ecx, %rax
	movl	(%rbx,%rax,4), %esi
	movl	0(%rbp,%rax,4), %edi
	addl	(%rbx), %esi
	addl	0(%rbp), %edi
	movl	%esi, X(%rip)
	movl	%edi, Y(%rip)
	cmpl	%edx, %ecx
	jle	.L5
	movl	%ecx, %r8d
	movslq	%edx, %r9
	leal	1(%rdx), %eax
	xorl	%r10d, %r10d
	subl	%edx, %r8d
	addl	%ecx, %edx
	leaq	-4+y(%rip), %r11
	cltq
	subl	$1, %r8d
	movslq	%edx, %rdx
	leaq	2(%r9,%r8), %r8
	imulq	$-4, %r9, %r9
	leaq	(%r9,%rdx,4), %rdx
	leaq	-4+x(%rip), %r9
	addq	%rdx, %rbx
	addq	%rdx, %rbp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	movl	-4(%rbp,%rax,4), %edx
	addl	(%r11,%rax,4), %edx
	cmpl	%edx, %edi
	jne	.L23
	movl	%eax, %r13d
	addq	$1, %rax
	movl	$1, %r10d
	cmpq	%rax, %r8
	je	.L22
.L8:
	movl	-4(%rbx,%rax,4), %edx
	addl	(%r9,%rax,4), %edx
	cmpl	%edx, %esi
	je	.L9
.L23:
	testb	%r10b, %r10b
	je	.L10
.L22:
	movl	%r13d, i(%rip)
.L5:
	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
.L12:
	movl	$2, %eax
	call	printf@PLT
	xorl	%edi, %edi
	call	exit@PLT
.L10:
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	movsd	.LC3(%rip), %xmm2
	leaq	.LC1(%rip), %rdi
	cvtsi2sdl	Y(%rip), %xmm1
	cvtsi2sdl	X(%rip), %xmm0
	mulsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm0
	jmp	.L12
	.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:
```

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.
Optimized Assembly Code:

train
```assembly
	.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	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	.LC2(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	y(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	x(%rip), %rbx
	movq	%rbx, %rdi
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	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
	movl	i(%rip), %edx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	testb	$1, %al
	jne	.L5
	movslq	%ecx, %rax
	movl	(%rbx,%rax,4), %esi
	movl	0(%rbp,%rax,4), %edi
	addl	(%rbx), %esi
	addl	0(%rbp), %edi
	movl	%esi, X(%rip)
	movl	%edi, Y(%rip)
	cmpl	%edx, %ecx
	jle	.L5
	movl	%ecx, %r8d
	movslq	%edx, %r9
	leal	1(%rdx), %eax
	xorl	%r10d, %r10d
	subl	%edx, %r8d
	addl	%ecx, %edx
	leaq	-4+y(%rip), %r11
	cltq
	subl	$1, %r8d
	movslq	%edx, %rdx
	leaq	2(%r9,%r8), %r8
	imulq	$-4, %r9, %r9
	leaq	(%r9,%rdx,4), %rdx
	leaq	-4+x(%rip), %r9
	addq	%rdx, %rbx
	addq	%rdx, %rbp
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	movl	-4(%rbp,%rax,4), %edx
	addl	(%r11,%rax,4), %edx
	cmpl	%edx, %edi
	jne	.L23
	movl	%eax, %r13d
	addq	$1, %rax
	movl	$1, %r10d
	cmpq	%rax, %r8
	je	.L22
.L8:
	movl	-4(%rbx,%rax,4), %edx
	addl	(%r9,%rax,4), %edx
	cmpl	%edx, %esi
	je	.L9
.L23:
	testb	%r10b, %r10b
	je	.L10
.L22:
	movl	%r13d, i(%rip)
.L5:
	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
.L12:
	movl	$2, %eax
	call	printf@PLT
	xorl	%edi, %edi
	call	exit@PLT
.L10:
	pxor	%xmm1, %xmm1
	pxor	%xmm0, %xmm0
	movsd	.LC3(%rip), %xmm2
	leaq	.LC1(%rip), %rdi
	cvtsi2sdl	Y(%rip), %xmm1
	cvtsi2sdl	X(%rip), %xmm0
	mulsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm0
	jmp	.L12
	.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:
```