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

```c
// AOJ 2008: Dragon Fantasy
// 2017.11.22 bal4u@uu

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

#define dist(x, y)	(hypot(x, y))

int cx[22], cy[22], n, lim;
double dd[22];
double dc[22][22];

int rec(int i, int s, double d)
{
	int j, jj;

	if (s == lim) return 1;
	for (jj = 1, j = 0; j < n; j++, jj <<= 1) {
		if (s & jj) continue;
		if (dd[j] <= d + dc[i][j]) return 0;
	}
	for (jj = 1, j = 0; j < n; j++, jj <<= 1) {
		if (s & jj) continue;
		if (rec(j, s | jj, d + dc[i][j])) return 1;
	}
	return 0;
}

int main()
{
	int i, j, hx, hy, dx, dy;

	while (scanf("%d%d%d%d%d", &n, &hx, &hy, &dx, &dy) && n > 0) {
		n++; lim = (1<<n)-1;
		cx[0] = hx, cy[0] = hy;
		for (i = 1; i < n; i++) scanf("%d%d", cx+i, cy+i);
		for (i = 0; i < n; i++) {
			dd[i] = dist(cx[i]-dx, cy[i]-dy);
			for (j = i+1; j < n; j++) {
				dc[i][j] = dc[j][i] = dist(cx[i]-cx[j], cy[i]-cy[j]);
			}
		}
		puts(rec(0, 0, 0) ? "YES" : "NO");
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cx
	.bss
	.align 32
	.type	cx, @object
	.size	cx, 88
cx:
	.zero	88
	.globl	cy
	.align 32
	.type	cy, @object
	.size	cy, 88
cy:
	.zero	88
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	lim
	.align 4
	.type	lim, @object
	.size	lim, 4
lim:
	.zero	4
	.globl	dd
	.align 32
	.type	dd, @object
	.size	dd, 176
dd:
	.zero	176
	.globl	dc
	.align 32
	.type	dc, @object
	.size	dc, 3872
dc:
	.zero	3872
	.text
	.globl	rec
	.type	rec, @function
rec:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movsd	%xmm0, -32(%rbp)
	movl	lim(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jne	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movl	$1, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L4
.L8:
	movl	-24(%rbp), %eax
	andl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dd(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dc(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	addsd	-32(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L6
	movl	$0, %eax
	jmp	.L3
.L14:
	nop
.L6:
	addl	$1, -8(%rbp)
	sall	-4(%rbp)
.L4:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L8
	movl	$1, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L9
.L12:
	movl	-24(%rbp), %eax
	andl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L15
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dc(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	addsd	-32(%rbp), %xmm0
	movq	%xmm0, %rcx
	movl	-24(%rbp), %eax
	orl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	movq	%rcx, %xmm0
	movl	%edx, %esi
	movl	%eax, %edi
	call	rec
	testl	%eax, %eax
	je	.L11
	movl	$1, %eax
	jmp	.L3
.L15:
	nop
.L11:
	addl	$1, -8(%rbp)
	sall	-4(%rbp)
.L9:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L12
	movl	$0, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	rec, .-rec
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC2:
	.string	"YES"
.LC3:
	.string	"NO"
.LC4:
	.string	"%d%d%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L17
.L27:
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
	movl	n(%rip), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	subl	$1, %eax
	movl	%eax, lim(%rip)
	movl	-32(%rbp), %eax
	movl	%eax, cx(%rip)
	movl	-28(%rbp), %eax
	movl	%eax, cy(%rip)
	movl	$1, -16(%rbp)
	jmp	.L18
.L19:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	addq	%rax, %rdx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cx(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -16(%rbp)
.L18:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L19
	movl	$0, -16(%rbp)
	jmp	.L20
.L23:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-20(%rbp), %edx
	subl	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-24(%rbp), %edx
	subl	%edx, %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	hypot@PLT
	movq	%xmm0, %rax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dd(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L21
.L22:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cy(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cx(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%eax, %xmm3
	movq	%xmm3, %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	hypot@PLT
	movq	%xmm0, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dc(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dc(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dc(%rip), %rax
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L21:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L22
	addl	$1, -16(%rbp)
.L20:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L23
	movq	.LC1(%rip), %rax
	movq	%rax, %xmm0
	movl	$0, %esi
	movl	$0, %edi
	call	rec
	testl	%eax, %eax
	je	.L24
	leaq	.LC2(%rip), %rax
	jmp	.L25
.L24:
	leaq	.LC3(%rip), %rax
.L25:
	movq	%rax, %rdi
	call	puts@PLT
.L17:
	leaq	-20(%rbp), %rsi
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rsi, %r9
	movq	%rcx, %r8
	movq	%rdx, %rcx
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L26
	movl	n(%rip), %eax
	testl	%eax, %eax
	jg	.L27
.L26:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	0
	.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
	.p2align 4
	.globl	rec
	.type	rec, @function
rec:
.LFB35:
	.cfi_startproc
	endbr64
	cmpl	%esi, lim(%rip)
	movl	$1, %r8d
	je	.L13
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movslq	n(%rip), %rbp
	testl	%ebp, %ebp
	jle	.L8
	movslq	%edi, %rdi
	movl	%esi, %ebx
	movapd	%xmm0, %xmm2
	movl	$1, %edx
	leaq	(%rdi,%rdi,4), %rax
	leaq	dd(%rip), %rcx
	leaq	(%rdi,%rax,2), %r13
	leaq	dc(%rip), %rax
	salq	$4, %r13
	addq	%rax, %r13
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%ebx, %r8d
	andl	%edx, %r8d
	jne	.L3
	movsd	0(%r13,%rax,8), %xmm1
	addsd	%xmm2, %xmm1
	comisd	(%rcx,%rax,8), %xmm1
	jnb	.L1
.L3:
	addq	$1, %rax
	addl	%edx, %edx
	cmpq	%rbp, %rax
	jne	.L4
	xorl	%r12d, %r12d
	movl	$1, %r14d
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%r12d, %edi
	testl	%ebx, %r14d
	jne	.L5
	movapd	%xmm2, %xmm0
	addsd	0(%r13,%r12,8), %xmm0
	movl	%r14d, %esi
	movsd	%xmm2, 8(%rsp)
	orl	%ebx, %esi
	call	rec
	movsd	8(%rsp), %xmm2
	testl	%eax, %eax
	jne	.L9
.L5:
	addq	$1, %r12
	addl	%r14d, %r14d
	cmpq	%rbp, %r12
	jne	.L6
.L8:
	xorl	%r8d, %r8d
.L1:
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	movl	%r8d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_def_cfa_offset 64
	.cfi_offset 3, -48
	.cfi_offset 6, -40
	.cfi_offset 12, -32
	.cfi_offset 13, -24
	.cfi_offset 14, -16
	movl	$1, %r8d
	jmp	.L1
	.cfi_endproc
.LFE35:
	.size	rec, .-rec
	.p2align 4
	.type	rec.part.0, @function
rec.part.0:
.LFB37:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movslq	n(%rip), %rbx
	testl	%ebx, %ebx
	jle	.L21
	movslq	%edi, %rdi
	movl	%esi, %r11d
	movapd	%xmm0, %xmm3
	xorl	%r9d, %r9d
	leaq	(%rdi,%rdi,4), %rax
	movl	$1, %r10d
	leaq	(%rdi,%rax,2), %rbp
	leaq	dc(%rip), %rax
	salq	$4, %rbp
	addq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L20:
	movl	%r9d, %edi
	testl	%r10d, %r11d
	jne	.L19
	movsd	0(%rbp,%r9,8), %xmm0
	movl	%r11d, %esi
	orl	%r10d, %esi
	addsd	%xmm3, %xmm0
	call	rec
	testl	%eax, %eax
	jne	.L22
.L19:
	addq	$1, %r9
	addl	%r10d, %r10d
	cmpq	%rbx, %r9
	jne	.L20
.L21:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movl	$1, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE37:
	.size	rec.part.0, .-rec.part.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"NO"
.LC1:
	.string	"YES"
.LC2:
	.string	"%d%d"
.LC4:
	.string	"%d%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	cy(%rip), %r15
	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	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	116(%rsp), %rax
	movq	%rax, 72(%rsp)
	leaq	112(%rsp), %rax
	movq	%rax, 64(%rsp)
	leaq	108(%rsp), %rax
	movq	%rax, 56(%rsp)
	leaq	104(%rsp), %rax
	movq	%rax, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L26:
	movq	72(%rsp), %r9
	movq	64(%rsp), %r8
	xorl	%eax, %eax
	leaq	n(%rip), %rsi
	movq	56(%rsp), %rcx
	movq	48(%rsp), %rdx
	leaq	.LC4(%rip), %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L41
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L41
	leal	1(%rax), %ecx
	movl	$1, %eax
	leaq	cx(%rip), %rsi
	movl	$4, %r12d
	sall	%cl, %eax
	movl	%ecx, n(%rip)
	movl	$1, %r13d
	leaq	.LC2(%rip), %rbp
	subl	$1, %eax
	movl	%eax, lim(%rip)
	movl	104(%rsp), %eax
	movl	%eax, (%rsi)
	movl	108(%rsp), %eax
	movl	%eax, (%r15)
	.p2align 4,,10
	.p2align 3
.L27:
	leaq	cx(%rip), %rax
	leaq	(%r15,%r12), %rdx
	movq	%rbp, %rdi
	addl	$1, %r13d
	leaq	(%rax,%r12), %rsi
	xorl	%eax, %eax
	addq	$4, %r12
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	cmpl	%r13d, %eax
	jg	.L27
	movl	lim(%rip), %esi
	movl	%eax, (%rsp)
	movl	%esi, 44(%rsp)
	testl	%eax, %eax
	jle	.L28
	movl	116(%rsp), %edi
	movl	112(%rsp), %esi
	movq	%rax, 24(%rsp)
	movq	$1, 8(%rsp)
	movl	%edi, 36(%rsp)
	leaq	176+dc(%rip), %rdi
	movl	%esi, 40(%rsp)
	leaq	-176(%rdi), %r13
	leal	-1(%rax), %esi
	movq	%rdi, 16(%rsp)
	movq	%r13, 80(%rsp)
	movq	%rsi, 88(%rsp)
	.p2align 4,,10
	.p2align 3
.L31:
	movq	8(%rsp), %r14
	leaq	-4+cy(%rip), %rax
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	(%rax,%r14,4), %ebx
	leaq	-4+cx(%rip), %rax
	movl	(%rax,%r14,4), %ebp
	movl	%ebx, %eax
	subl	36(%rsp), %eax
	movl	%ebp, %edx
	cvtsi2sdl	%eax, %xmm1
	subl	40(%rsp), %edx
	cvtsi2sdl	%edx, %xmm0
	call	hypot@PLT
	leaq	-8+dd(%rip), %rax
	movsd	%xmm0, (%rax,%r14,8)
	cmpq	24(%rsp), %r14
	je	.L29
	movq	16(%rsp), %rax
	movl	%ebp, %r12d
	movl	%ebx, %ebp
	movq	%rax, %rbx
	.p2align 4,,10
	.p2align 3
.L30:
	leaq	cx(%rip), %rax
	movl	%ebp, %edx
	movl	%r12d, %ecx
	subl	(%r15,%r14,4), %edx
	subl	(%rax,%r14,4), %ecx
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	addq	$176, %rbx
	cvtsi2sdl	%ecx, %xmm0
	cvtsi2sdl	%edx, %xmm1
	call	hypot@PLT
	movsd	%xmm0, -176(%rbx)
	movsd	%xmm0, 0(%r13,%r14,8)
	addq	$1, %r14
	cmpl	%r14d, (%rsp)
	jg	.L30
	addq	$1, 8(%rsp)
	addq	$176, %r13
	addq	$184, 16(%rsp)
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L29:
	movl	44(%rsp), %eax
	testl	%eax, %eax
	je	.L35
	movq	24(%rsp), %rdx
	xorl	%eax, %eax
	leaq	dd(%rip), %rbp
	pxor	%xmm4, %xmm4
	.p2align 4,,10
	.p2align 3
.L34:
	leaq	dc(%rip), %rdi
	movsd	(%rdi,%rax,8), %xmm0
	addsd	%xmm4, %xmm0
	comisd	0(%rbp,%rax,8), %xmm0
	jnb	.L32
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L34
	movsd	(%rdi), %xmm1
	cmpl	$1, 44(%rsp)
	addsd	%xmm4, %xmm1
	je	.L35
	xorl	%r12d, %r12d
	movq	88(%rsp), %r8
	movq	24(%rsp), %r14
	movl	$1, %ebx
	movq	%r12, %r13
	movq	80(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L36:
	movl	%r13d, %edi
	xorl	%eax, %eax
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L39:
	testl	%edx, %ebx
	jne	.L37
	movsd	(%r12,%rax,8), %xmm0
	addsd	%xmm1, %xmm0
	comisd	0(%rbp,%rax,8), %xmm0
	jnb	.L38
.L37:
	addq	$1, %rax
	addl	%edx, %edx
	cmpq	%r14, %rax
	jne	.L39
	movapd	%xmm1, %xmm0
	movl	%ebx, %esi
	movq	%r8, (%rsp)
	call	rec.part.0
	testl	%eax, %eax
	jne	.L35
	movq	(%rsp), %r8
.L38:
	cmpq	%r8, %r13
	je	.L32
	leaq	8+dc(%rip), %rax
	addl	%ebx, %ebx
	addq	$176, %r12
	movsd	(%rax,%r13,8), %xmm1
	addq	$1, %r13
	addsd	%xmm4, %xmm1
	cmpl	44(%rsp), %ebx
	jne	.L36
.L35:
	leaq	.LC1(%rip), %rdi
.L33:
	call	puts@PLT
	jmp	.L26
.L28:
	movl	44(%rsp), %edx
	testl	%edx, %edx
	je	.L35
.L32:
	leaq	.LC0(%rip), %rdi
	jmp	.L33
.L41:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L60
	addq	$136, %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
.L60:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	dc
	.bss
	.align 32
	.type	dc, @object
	.size	dc, 3872
dc:
	.zero	3872
	.globl	dd
	.align 32
	.type	dd, @object
	.size	dd, 176
dd:
	.zero	176
	.globl	lim
	.align 4
	.type	lim, @object
	.size	lim, 4
lim:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	cy
	.align 32
	.type	cy, @object
	.size	cy, 88
cy:
	.zero	88
	.globl	cx
	.align 32
	.type	cx, @object
	.size	cx, 88
cx:
	.zero	88
	.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
	.p2align 4
	.globl	rec
	.type	rec, @function
rec:
.LFB35:
	.cfi_startproc
	endbr64
	cmpl	%esi, lim(%rip)
	movl	$1, %r8d
	je	.L13
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movslq	n(%rip), %rbp
	testl	%ebp, %ebp
	jle	.L8
	movslq	%edi, %rdi
	movl	%esi, %ebx
	movapd	%xmm0, %xmm2
	movl	$1, %edx
	leaq	(%rdi,%rdi,4), %rax
	leaq	dd(%rip), %rcx
	leaq	(%rdi,%rax,2), %r13
	leaq	dc(%rip), %rax
	salq	$4, %r13
	addq	%rax, %r13
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%ebx, %r8d
	andl	%edx, %r8d
	jne	.L3
	movsd	0(%r13,%rax,8), %xmm1
	addsd	%xmm2, %xmm1
	comisd	(%rcx,%rax,8), %xmm1
	jnb	.L1
.L3:
	addq	$1, %rax
	addl	%edx, %edx
	cmpq	%rbp, %rax
	jne	.L4
	xorl	%r12d, %r12d
	movl	$1, %r14d
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%r12d, %edi
	testl	%ebx, %r14d
	jne	.L5
	movapd	%xmm2, %xmm0
	addsd	0(%r13,%r12,8), %xmm0
	movl	%r14d, %esi
	movsd	%xmm2, 8(%rsp)
	orl	%ebx, %esi
	call	rec
	movsd	8(%rsp), %xmm2
	testl	%eax, %eax
	jne	.L9
.L5:
	addq	$1, %r12
	addl	%r14d, %r14d
	cmpq	%rbp, %r12
	jne	.L6
.L8:
	xorl	%r8d, %r8d
.L1:
	addq	$16, %rsp
	.cfi_def_cfa_offset 48
	movl	%r8d, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_def_cfa_offset 64
	.cfi_offset 3, -48
	.cfi_offset 6, -40
	.cfi_offset 12, -32
	.cfi_offset 13, -24
	.cfi_offset 14, -16
	movl	$1, %r8d
	jmp	.L1
	.cfi_endproc
.LFE35:
	.size	rec, .-rec
	.p2align 4
	.type	rec.part.0, @function
rec.part.0:
.LFB37:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	movslq	n(%rip), %rbx
	testl	%ebx, %ebx
	jle	.L21
	movslq	%edi, %rdi
	movl	%esi, %r11d
	movapd	%xmm0, %xmm3
	xorl	%r9d, %r9d
	leaq	(%rdi,%rdi,4), %rax
	movl	$1, %r10d
	leaq	(%rdi,%rax,2), %rbp
	leaq	dc(%rip), %rax
	salq	$4, %rbp
	addq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L20:
	movl	%r9d, %edi
	testl	%r10d, %r11d
	jne	.L19
	movsd	0(%rbp,%r9,8), %xmm0
	movl	%r11d, %esi
	orl	%r10d, %esi
	addsd	%xmm3, %xmm0
	call	rec
	testl	%eax, %eax
	jne	.L22
.L19:
	addq	$1, %r9
	addl	%r10d, %r10d
	cmpq	%rbx, %r9
	jne	.L20
.L21:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	addq	$8, %rsp
	.cfi_def_cfa_offset 24
	movl	$1, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE37:
	.size	rec.part.0, .-rec.part.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"NO"
.LC1:
	.string	"YES"
.LC2:
	.string	"%d%d"
.LC4:
	.string	"%d%d%d%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	cy(%rip), %r15
	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	$136, %rsp
	.cfi_def_cfa_offset 192
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	116(%rsp), %rax
	movq	%rax, 72(%rsp)
	leaq	112(%rsp), %rax
	movq	%rax, 64(%rsp)
	leaq	108(%rsp), %rax
	movq	%rax, 56(%rsp)
	leaq	104(%rsp), %rax
	movq	%rax, 48(%rsp)
	.p2align 4,,10
	.p2align 3
.L26:
	movq	72(%rsp), %r9
	movq	64(%rsp), %r8
	xorl	%eax, %eax
	leaq	n(%rip), %rsi
	movq	56(%rsp), %rcx
	movq	48(%rsp), %rdx
	leaq	.LC4(%rip), %rdi
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L41
	movl	n(%rip), %eax
	testl	%eax, %eax
	jle	.L41
	leal	1(%rax), %ecx
	movl	$1, %eax
	leaq	cx(%rip), %rsi
	movl	$4, %r12d
	sall	%cl, %eax
	movl	%ecx, n(%rip)
	movl	$1, %r13d
	leaq	.LC2(%rip), %rbp
	subl	$1, %eax
	movl	%eax, lim(%rip)
	movl	104(%rsp), %eax
	movl	%eax, (%rsi)
	movl	108(%rsp), %eax
	movl	%eax, (%r15)
	.p2align 4,,10
	.p2align 3
.L27:
	leaq	cx(%rip), %rax
	leaq	(%r15,%r12), %rdx
	movq	%rbp, %rdi
	addl	$1, %r13d
	leaq	(%rax,%r12), %rsi
	xorl	%eax, %eax
	addq	$4, %r12
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	cmpl	%r13d, %eax
	jg	.L27
	movl	lim(%rip), %esi
	movl	%eax, (%rsp)
	movl	%esi, 44(%rsp)
	testl	%eax, %eax
	jle	.L28
	movl	116(%rsp), %edi
	movl	112(%rsp), %esi
	movq	%rax, 24(%rsp)
	movq	$1, 8(%rsp)
	movl	%edi, 36(%rsp)
	leaq	176+dc(%rip), %rdi
	movl	%esi, 40(%rsp)
	leaq	-176(%rdi), %r13
	leal	-1(%rax), %esi
	movq	%rdi, 16(%rsp)
	movq	%r13, 80(%rsp)
	movq	%rsi, 88(%rsp)
	.p2align 4,,10
	.p2align 3
.L31:
	movq	8(%rsp), %r14
	leaq	-4+cy(%rip), %rax
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	movl	(%rax,%r14,4), %ebx
	leaq	-4+cx(%rip), %rax
	movl	(%rax,%r14,4), %ebp
	movl	%ebx, %eax
	subl	36(%rsp), %eax
	movl	%ebp, %edx
	cvtsi2sdl	%eax, %xmm1
	subl	40(%rsp), %edx
	cvtsi2sdl	%edx, %xmm0
	call	hypot@PLT
	leaq	-8+dd(%rip), %rax
	movsd	%xmm0, (%rax,%r14,8)
	cmpq	24(%rsp), %r14
	je	.L29
	movq	16(%rsp), %rax
	movl	%ebp, %r12d
	movl	%ebx, %ebp
	movq	%rax, %rbx
	.p2align 4,,10
	.p2align 3
.L30:
	leaq	cx(%rip), %rax
	movl	%ebp, %edx
	movl	%r12d, %ecx
	subl	(%r15,%r14,4), %edx
	subl	(%rax,%r14,4), %ecx
	pxor	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	addq	$176, %rbx
	cvtsi2sdl	%ecx, %xmm0
	cvtsi2sdl	%edx, %xmm1
	call	hypot@PLT
	movsd	%xmm0, -176(%rbx)
	movsd	%xmm0, 0(%r13,%r14,8)
	addq	$1, %r14
	cmpl	%r14d, (%rsp)
	jg	.L30
	addq	$1, 8(%rsp)
	addq	$176, %r13
	addq	$184, 16(%rsp)
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L29:
	movl	44(%rsp), %eax
	testl	%eax, %eax
	je	.L35
	movq	24(%rsp), %rdx
	xorl	%eax, %eax
	leaq	dd(%rip), %rbp
	pxor	%xmm4, %xmm4
	.p2align 4,,10
	.p2align 3
.L34:
	leaq	dc(%rip), %rdi
	movsd	(%rdi,%rax,8), %xmm0
	addsd	%xmm4, %xmm0
	comisd	0(%rbp,%rax,8), %xmm0
	jnb	.L32
	addq	$1, %rax
	cmpq	%rdx, %rax
	jne	.L34
	movsd	(%rdi), %xmm1
	cmpl	$1, 44(%rsp)
	addsd	%xmm4, %xmm1
	je	.L35
	xorl	%r12d, %r12d
	movq	88(%rsp), %r8
	movq	24(%rsp), %r14
	movl	$1, %ebx
	movq	%r12, %r13
	movq	80(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L36:
	movl	%r13d, %edi
	xorl	%eax, %eax
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L39:
	testl	%edx, %ebx
	jne	.L37
	movsd	(%r12,%rax,8), %xmm0
	addsd	%xmm1, %xmm0
	comisd	0(%rbp,%rax,8), %xmm0
	jnb	.L38
.L37:
	addq	$1, %rax
	addl	%edx, %edx
	cmpq	%r14, %rax
	jne	.L39
	movapd	%xmm1, %xmm0
	movl	%ebx, %esi
	movq	%r8, (%rsp)
	call	rec.part.0
	testl	%eax, %eax
	jne	.L35
	movq	(%rsp), %r8
.L38:
	cmpq	%r8, %r13
	je	.L32
	leaq	8+dc(%rip), %rax
	addl	%ebx, %ebx
	addq	$176, %r12
	movsd	(%rax,%r13,8), %xmm1
	addq	$1, %r13
	addsd	%xmm4, %xmm1
	cmpl	44(%rsp), %ebx
	jne	.L36
.L35:
	leaq	.LC1(%rip), %rdi
.L33:
	call	puts@PLT
	jmp	.L26
.L28:
	movl	44(%rsp), %edx
	testl	%edx, %edx
	je	.L35
.L32:
	leaq	.LC0(%rip), %rdi
	jmp	.L33
.L41:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L60
	addq	$136, %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
.L60:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	dc
	.bss
	.align 32
	.type	dc, @object
	.size	dc, 3872
dc:
	.zero	3872
	.globl	dd
	.align 32
	.type	dd, @object
	.size	dd, 176
dd:
	.zero	176
	.globl	lim
	.align 4
	.type	lim, @object
	.size	lim, 4
lim:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	cy
	.align 32
	.type	cy, @object
	.size	cy, 88
cy:
	.zero	88
	.globl	cx
	.align 32
	.type	cx, @object
	.size	cx, 88
cx:
	.zero	88
	.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:

// AOJ 2008: Dragon Fantasy
// 2017.11.22 bal4u@uu

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

#define dist(x, y)	(hypot(x, y))

int cx[22], cy[22], n, lim;
double dd[22];
double dc[22][22];

int rec(int i, int s, double d)
{
	int j, jj;

	if (s == lim) return 1;
	for (jj = 1, j = 0; j < n; j++, jj <<= 1) {
		if (s & jj) continue;
		if (dd[j] <= d + dc[i][j]) return 0;
	}
	for (jj = 1, j = 0; j < n; j++, jj <<= 1) {
		if (s & jj) continue;
		if (rec(j, s | jj, d + dc[i][j])) return 1;
	}
	return 0;
}

int main()
{
	int i, j, hx, hy, dx, dy;

	while (scanf("%d%d%d%d%d", &n, &hx, &hy, &dx, &dy) && n > 0) {
		n++; lim = (1<<n)-1;
		cx[0] = hx, cy[0] = hy;
		for (i = 1; i < n; i++) scanf("%d%d", cx+i, cy+i);
		for (i = 0; i < n; i++) {
			dd[i] = dist(cx[i]-dx, cy[i]-dy);
			for (j = i+1; j < n; j++) {
				dc[i][j] = dc[j][i] = dist(cx[i]-cx[j], cy[i]-cy[j]);
			}
		}
		puts(rec(0, 0, 0) ? "YES" : "NO");
	}
	return 0;
}
2 0 0 10 10
2 1
4 4
2 0 0 10 10
1 1
6 6
2 0 0 10 10
1 1
5 5
0 0 0 0 0
 2 0 0 13 10
2 1
4 0
2 0 0 10 18
1 1
6 6
4 0 0 10 10
1 1
5 5
0 0 0 0 0
 2 0 0 10 10
2 1
4 0
2 0 0 10 10
1 1
6 6
2 0 0 15 10
1 0
5 5
0 0 0 0 0
 2 0 0 20 10
1 1
4 4
0 0 0 12 10
1 1
6 6
2 0 0 10 10
1 1
5 5
0 0 0 0 0
 2 0 0 10 10
2 1
4 0
2 0 0 10 0
1 1
3 6
2 0 0 15 10
1 0
5 5
0 0 0 0 0
 4 -1 0 10 10
2 0
4 0
2 0 0 10 0
1 1
3 19
2 0 0 15 8
1 0
5 10
0 0 0 1 0
 2 0 0 0 9
2 1
1 4
2 0 1 10 3
1 1
6 6
4 0 0 10 10
1 1
5 5
0 0 0 -1 0
 2 0 0 10 10
2 1
4 0
2 0 0 10 10
1 1
6 6
2 0 0 10 10
1 1
5 5
0 0 0 0 0
 2 0 0 10 10
2 1
4 0
2 0 0 10 10
1 1
6 6
4 0 0 10 10
1 1
5 5
0 0 0 0 0
 2 0 0 13 10
2 1
4 0
2 0 0 10 10
1 1
6 6
4 0 0 10 10
1 1
5 5
0 0 0 0 0

YES
NO
NO
 YES
YES
NO
 YES
NO
YES
 YES
 YES
YES
YES
 NO
 YES
NO
NO
 YES
NO
NO
 YES
NO
NO
 YES
NO
NO

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

```c
// AOJ 2008: Dragon Fantasy
// 2017.11.22 bal4u@uu

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

#define dist(x, y)	(hypot(x, y))

int cx[22], cy[22], n, lim;
double dd[22];
double dc[22][22];

int rec(int i, int s, double d)
{
	int j, jj;

	if (s == lim) return 1;
	for (jj = 1, j = 0; j < n; j++, jj <<= 1) {
		if (s & jj) continue;
		if (dd[j] <= d + dc[i][j]) return 0;
	}
	for (jj = 1, j = 0; j < n; j++, jj <<= 1) {
		if (s & jj) continue;
		if (rec(j, s | jj, d + dc[i][j])) return 1;
	}
	return 0;
}

int main()
{
	int i, j, hx, hy, dx, dy;

	while (scanf("%d%d%d%d%d", &n, &hx, &hy, &dx, &dy) && n > 0) {
		n++; lim = (1<<n)-1;
		cx[0] = hx, cy[0] = hy;
		for (i = 1; i < n; i++) scanf("%d%d", cx+i, cy+i);
		for (i = 0; i < n; i++) {
			dd[i] = dist(cx[i]-dx, cy[i]-dy);
			for (j = i+1; j < n; j++) {
				dc[i][j] = dc[j][i] = dist(cx[i]-cx[j], cy[i]-cy[j]);
			}
		}
		puts(rec(0, 0, 0) ? "YES" : "NO");
	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	cx
	.bss
	.align 32
	.type	cx, @object
	.size	cx, 88
cx:
	.zero	88
	.globl	cy
	.align 32
	.type	cy, @object
	.size	cy, 88
cy:
	.zero	88
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	lim
	.align 4
	.type	lim, @object
	.size	lim, 4
lim:
	.zero	4
	.globl	dd
	.align 32
	.type	dd, @object
	.size	dd, 176
dd:
	.zero	176
	.globl	dc
	.align 32
	.type	dc, @object
	.size	dc, 3872
dc:
	.zero	3872
	.text
	.globl	rec
	.type	rec, @function
rec:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movsd	%xmm0, -32(%rbp)
	movl	lim(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jne	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movl	$1, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L4
.L8:
	movl	-24(%rbp), %eax
	andl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dd(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dc(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	addsd	-32(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L6
	movl	$0, %eax
	jmp	.L3
.L14:
	nop
.L6:
	addl	$1, -8(%rbp)
	sall	-4(%rbp)
.L4:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L8
	movl	$1, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L9
.L12:
	movl	-24(%rbp), %eax
	andl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L15
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dc(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	addsd	-32(%rbp), %xmm0
	movq	%xmm0, %rcx
	movl	-24(%rbp), %eax
	orl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	movq	%rcx, %xmm0
	movl	%edx, %esi
	movl	%eax, %edi
	call	rec
	testl	%eax, %eax
	je	.L11
	movl	$1, %eax
	jmp	.L3
.L15:
	nop
.L11:
	addl	$1, -8(%rbp)
	sall	-4(%rbp)
.L9:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L12
	movl	$0, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	rec, .-rec
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC2:
	.string	"YES"
.LC3:
	.string	"NO"
.LC4:
	.string	"%d%d%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L17
.L27:
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
	movl	n(%rip), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	subl	$1, %eax
	movl	%eax, lim(%rip)
	movl	-32(%rbp), %eax
	movl	%eax, cx(%rip)
	movl	-28(%rbp), %eax
	movl	%eax, cy(%rip)
	movl	$1, -16(%rbp)
	jmp	.L18
.L19:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	addq	%rax, %rdx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cx(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -16(%rbp)
.L18:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L19
	movl	$0, -16(%rbp)
	jmp	.L20
.L23:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-20(%rbp), %edx
	subl	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-24(%rbp), %edx
	subl	%edx, %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	hypot@PLT
	movq	%xmm0, %rax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dd(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L21
.L22:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cy(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cx(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%eax, %xmm3
	movq	%xmm3, %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	hypot@PLT
	movq	%xmm0, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dc(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dc(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dc(%rip), %rax
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L21:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L22
	addl	$1, -16(%rbp)
.L20:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L23
	movq	.LC1(%rip), %rax
	movq	%rax, %xmm0
	movl	$0, %esi
	movl	$0, %edi
	call	rec
	testl	%eax, %eax
	je	.L24
	leaq	.LC2(%rip), %rax
	jmp	.L25
.L24:
	leaq	.LC3(%rip), %rax
.L25:
	movq	%rax, %rdi
	call	puts@PLT
.L17:
	leaq	-20(%rbp), %rsi
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rsi, %r9
	movq	%rcx, %r8
	movq	%rdx, %rcx
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L26
	movl	n(%rip), %eax
	testl	%eax, %eax
	jg	.L27
.L26:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	0
	.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	cx
	.bss
	.align 32
	.type	cx, @object
	.size	cx, 88
cx:
	.zero	88
	.globl	cy
	.align 32
	.type	cy, @object
	.size	cy, 88
cy:
	.zero	88
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	lim
	.align 4
	.type	lim, @object
	.size	lim, 4
lim:
	.zero	4
	.globl	dd
	.align 32
	.type	dd, @object
	.size	dd, 176
dd:
	.zero	176
	.globl	dc
	.align 32
	.type	dc, @object
	.size	dc, 3872
dc:
	.zero	3872
	.text
	.globl	rec
	.type	rec, @function
rec:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movsd	%xmm0, -32(%rbp)
	movl	lim(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jne	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movl	$1, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L4
.L8:
	movl	-24(%rbp), %eax
	andl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L14
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	dd(%rip), %rax
	movsd	(%rdx,%rax), %xmm1
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dc(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	addsd	-32(%rbp), %xmm0
	comisd	%xmm1, %xmm0
	jb	.L6
	movl	$0, %eax
	jmp	.L3
.L14:
	nop
.L6:
	addl	$1, -8(%rbp)
	sall	-4(%rbp)
.L4:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L8
	movl	$1, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L9
.L12:
	movl	-24(%rbp), %eax
	andl	-4(%rbp), %eax
	testl	%eax, %eax
	jne	.L15
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dc(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	addsd	-32(%rbp), %xmm0
	movq	%xmm0, %rcx
	movl	-24(%rbp), %eax
	orl	-4(%rbp), %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	movq	%rcx, %xmm0
	movl	%edx, %esi
	movl	%eax, %edi
	call	rec
	testl	%eax, %eax
	je	.L11
	movl	$1, %eax
	jmp	.L3
.L15:
	nop
.L11:
	addl	$1, -8(%rbp)
	sall	-4(%rbp)
.L9:
	movl	n(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L12
	movl	$0, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	rec, .-rec
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC2:
	.string	"YES"
.LC3:
	.string	"NO"
.LC4:
	.string	"%d%d%d%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L17
.L27:
	movl	n(%rip), %eax
	addl	$1, %eax
	movl	%eax, n(%rip)
	movl	n(%rip), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	subl	$1, %eax
	movl	%eax, lim(%rip)
	movl	-32(%rbp), %eax
	movl	%eax, cx(%rip)
	movl	-28(%rbp), %eax
	movl	%eax, cy(%rip)
	movl	$1, -16(%rbp)
	jmp	.L18
.L19:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	addq	%rax, %rdx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cx(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -16(%rbp)
.L18:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L19
	movl	$0, -16(%rbp)
	jmp	.L20
.L23:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-20(%rbp), %edx
	subl	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-24(%rbp), %edx
	subl	%edx, %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	hypot@PLT
	movq	%xmm0, %rax
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	dd(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L21
.L22:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cy(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cx(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%eax, %xmm3
	movq	%xmm3, %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	hypot@PLT
	movq	%xmm0, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rsi
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dc(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dc(%rip), %rax
	movsd	(%rdx,%rax), %xmm0
	movl	-12(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,8), %rdx
	leaq	dc(%rip), %rax
	movsd	%xmm0, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L21:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L22
	addl	$1, -16(%rbp)
.L20:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L23
	movq	.LC1(%rip), %rax
	movq	%rax, %xmm0
	movl	$0, %esi
	movl	$0, %edi
	call	rec
	testl	%eax, %eax
	je	.L24
	leaq	.LC2(%rip), %rax
	jmp	.L25
.L24:
	leaq	.LC3(%rip), %rax
.L25:
	movq	%rax, %rdi
	call	puts@PLT
.L17:
	leaq	-20(%rbp), %rsi
	leaq	-24(%rbp), %rcx
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rsi, %r9
	movq	%rcx, %r8
	movq	%rdx, %rcx
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	testl	%eax, %eax
	je	.L26
	movl	n(%rip), %eax
	testl	%eax, %eax
	jg	.L27
.L26:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	0
	.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:
