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

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

int n,hx,hy,dx,dy;
int cx[20],cy[20],flag[20];

int check(int c,double rsum,int hx,int hy){
    int i;
    double r;
    if(c==n)return 1;
    for(i=0;i<n;i++){
        if(flag[i]==0){
            r=rsum+sqrt((hx-cx[i])*(hx-cx[i])+(hy-cy[i])*(hy-cy[i]));
            if(r+1e-8>sqrt((dx-cx[i])*(dx-cx[i])+(dy-cy[i])*(dy-cy[i])))return 0;
        }
    }
    for(i=0;i<n;i++){
        if(flag[i]==0){
            flag[i]=1;
            r=rsum+sqrt((hx-cx[i])*(hx-cx[i])+(hy-cy[i])*(hy-cy[i]));
            if(check(c+1,r,cx[i],cy[i])==0)flag[i]=0;
            else return 2;
        }
    }
    return 0;
}

int main(void){
    int i;
    while(1){
        scanf("%d %d %d %d %d",&n,&hx,&hy,&dx,&dy);
        if(n==0 && hx==0 && hy==0 && dx==0 && dy==0)break;
        for(i=0;i<n;i++){
            scanf("%d %d",&cx[i],&cy[i]);
            flag[i]=0;
        }
        if(check(0,0.0,hx,hy)==2)printf("YES\n");
        else printf("NO\n");
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	hx
	.align 4
	.type	hx, @object
	.size	hx, 4
hx:
	.zero	4
	.globl	hy
	.align 4
	.type	hy, @object
	.size	hy, 4
hy:
	.zero	4
	.globl	dx
	.align 4
	.type	dx, @object
	.size	dx, 4
dx:
	.zero	4
	.globl	dy
	.align 4
	.type	dy, @object
	.size	dy, 4
dy:
	.zero	4
	.globl	cx
	.align 32
	.type	cx, @object
	.size	cx, 80
cx:
	.zero	80
	.globl	cy
	.align 32
	.type	cy, @object
	.size	cy, 80
cy:
	.zero	80
	.globl	flag
	.align 32
	.type	flag, @object
	.size	flag, 80
flag:
	.zero	80
	.text
	.globl	check
	.type	check, @function
check:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -20(%rbp)
	movsd	%xmm0, -32(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -36(%rbp)
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jne	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movl	$0, -12(%rbp)
	jmp	.L4
.L7:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flag(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L5
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	subl	%edx, %eax
	movl	%ecx, %esi
	imull	%eax, %esi
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	imull	%ecx, %eax
	addl	%esi, %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movsd	-32(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	-8(%rbp), %xmm1
	movsd	.LC0(%rip), %xmm0
	addsd	%xmm0, %xmm1
	movsd	%xmm1, -48(%rbp)
	movl	dx(%rip), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cx(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	movl	dx(%rip), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cx(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%esi, %edi
	imull	%eax, %edi
	movl	dy(%rip), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cy(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	movl	dy(%rip), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cy(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	imull	%esi, %eax
	addl	%edi, %eax
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%eax, %xmm3
	movq	%xmm3, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movsd	-48(%rbp), %xmm1
	comisd	%xmm0, %xmm1
	jbe	.L5
	movl	$0, %eax
	jmp	.L3
.L5:
	addl	$1, -12(%rbp)
.L4:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L7
	movl	$0, -12(%rbp)
	jmp	.L8
.L11:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flag(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L9
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flag(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	subl	%edx, %eax
	movl	%ecx, %esi
	imull	%eax, %esi
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	imull	%ecx, %eax
	addl	%esi, %eax
	pxor	%xmm4, %xmm4
	cvtsi2sdl	%eax, %xmm4
	movq	%xmm4, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movsd	-32(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cx(%rip), %rax
	movl	(%rcx,%rax), %ecx
	movl	-20(%rbp), %eax
	leal	1(%rax), %edi
	movq	-8(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %xmm0
	call	check
	testl	%eax, %eax
	jne	.L10
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flag(%rip), %rax
	movl	$0, (%rdx,%rax)
	jmp	.L9
.L10:
	movl	$2, %eax
	jmp	.L3
.L9:
	addl	$1, -12(%rbp)
.L8:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L11
	movl	$0, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	check, .-check
	.section	.rodata
.LC1:
	.string	"%d %d %d %d %d"
.LC2:
	.string	"%d %d"
.LC4:
	.string	"YES"
.LC5:
	.string	"NO"
	.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	$16, %rsp
.L20:
	leaq	dy(%rip), %r9
	leaq	dx(%rip), %r8
	leaq	hy(%rip), %rax
	movq	%rax, %rcx
	leaq	hx(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jne	.L14
	movl	hx(%rip), %eax
	testl	%eax, %eax
	jne	.L14
	movl	hy(%rip), %eax
	testl	%eax, %eax
	jne	.L14
	movl	dx(%rip), %eax
	testl	%eax, %eax
	jne	.L14
	movl	dy(%rip), %eax
	testl	%eax, %eax
	je	.L23
.L14:
	movl	$0, -4(%rbp)
	jmp	.L16
.L17:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cx(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flag(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L16:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L17
	movl	hy(%rip), %edx
	movl	hx(%rip), %eax
	movl	%eax, %esi
	movq	.LC3(%rip), %rax
	movq	%rax, %xmm0
	movl	$0, %edi
	call	check
	cmpl	$2, %eax
	jne	.L18
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L20
.L18:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L20
.L23:
	nop
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	-500134854
	.long	1044740494
	.align 8
.LC3:
	.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	check
	.type	check, @function
check:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%edi, %ecx
	movl	n(%rip), %edi
	movl	$1, %eax
	cmpl	%ecx, %edi
	je	.L30
	testl	%edi, %edi
	jle	.L34
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	cx(%rip), %r8
	movl	%edx, %r15d
	leal	-1(%rdi), %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movapd	%xmm0, %xmm3
	movl	%esi, %r14d
	pxor	%xmm2, %xmm2
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	flag(%rip), %r13
	leaq	cy(%rip), %r9
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	4(%r13), %rdx
	movq	%r8, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	(%rdx,%rax,4), %rax
	movq	%r9, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%r13, %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movsd	.LC1(%rip), %xmm4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$4, %rbx
	addq	$4, %r12
	addq	$4, %rbp
	cmpq	%rbx, %rax
	je	.L35
.L5:
	movl	(%rbx), %edx
	testl	%edx, %edx
	jne	.L14
	movl	(%r12), %esi
	movl	0(%rbp), %edx
	movl	%r14d, %r10d
	movl	%r15d, %r11d
	pxor	%xmm0, %xmm0
	subl	%esi, %r10d
	subl	%edx, %r11d
	imull	%r10d, %r10d
	imull	%r11d, %r11d
	addl	%r11d, %r10d
	cvtsi2sdl	%r10d, %xmm0
	ucomisd	%xmm0, %xmm2
	ja	.L26
	sqrtsd	%xmm0, %xmm0
.L9:
	movl	dx(%rip), %r10d
	addsd	%xmm3, %xmm0
	subl	%esi, %r10d
	movl	dy(%rip), %esi
	imull	%r10d, %r10d
	movapd	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	subl	%edx, %esi
	addsd	%xmm4, %xmm1
	imull	%esi, %esi
	addl	%esi, %r10d
	cvtsi2sdl	%r10d, %xmm0
	ucomisd	%xmm0, %xmm2
	ja	.L27
	sqrtsd	%xmm0, %xmm0
.L12:
	comisd	%xmm0, %xmm1
	jbe	.L14
.L13:
	xorl	%eax, %eax
.L1:
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	xorl	%ebx, %ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	addq	$1, %rbx
	addq	$4, %r13
	cmpl	%ebx, %edi
	jle	.L13
.L6:
	movl	0(%r13), %eax
	testl	%eax, %eax
	jne	.L15
	movl	(%r8,%rbx,4), %esi
	movl	(%r9,%rbx,4), %edx
	movl	%r14d, %eax
	movl	%r15d, %edi
	pxor	%xmm0, %xmm0
	pxor	%xmm5, %xmm5
	movl	$1, 0(%r13)
	subl	%esi, %eax
	subl	%edx, %edi
	imull	%eax, %eax
	imull	%edi, %edi
	addl	%edi, %eax
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm5
	ja	.L28
	sqrtsd	%xmm0, %xmm0
.L18:
	addsd	%xmm3, %xmm0
	leal	1(%rcx), %edi
	movl	%ecx, (%rsp)
	movsd	%xmm3, 8(%rsp)
	call	check
	testl	%eax, %eax
	jne	.L20
	movl	n(%rip), %edi
	movsd	8(%rsp), %xmm3
	movl	$0, 0(%r13)
	leaq	cy(%rip), %r9
	movl	(%rsp), %ecx
	leaq	cx(%rip), %r8
	jmp	.L15
.L20:
	movl	$2, %eax
	jmp	.L1
.L34:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	xorl	%eax, %eax
.L30:
	ret
.L27:
	.cfi_def_cfa_offset 112
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	movl	%ecx, 24(%rsp)
	movl	%edi, 16(%rsp)
	movq	%rax, 8(%rsp)
	movsd	%xmm3, 32(%rsp)
	movsd	%xmm1, (%rsp)
	call	sqrt@PLT
	movq	.LC1(%rip), %rax
	movsd	32(%rsp), %xmm3
	pxor	%xmm2, %xmm2
	movl	24(%rsp), %ecx
	movl	16(%rsp), %edi
	leaq	cy(%rip), %r9
	leaq	cx(%rip), %r8
	movq	%rax, %xmm4
	movsd	(%rsp), %xmm1
	movq	8(%rsp), %rax
	jmp	.L12
.L26:
	movl	%ecx, 32(%rsp)
	movl	%edi, 24(%rsp)
	movq	%rax, 16(%rsp)
	movl	%edx, 8(%rsp)
	movl	%esi, (%rsp)
	movsd	%xmm3, 40(%rsp)
	call	sqrt@PLT
	movq	.LC1(%rip), %rax
	movsd	40(%rsp), %xmm3
	pxor	%xmm2, %xmm2
	movl	32(%rsp), %ecx
	movl	24(%rsp), %edi
	leaq	cy(%rip), %r9
	leaq	cx(%rip), %r8
	movq	%rax, %xmm4
	movl	8(%rsp), %edx
	movq	16(%rsp), %rax
	movl	(%rsp), %esi
	jmp	.L9
.L28:
	movl	%ecx, 16(%rsp)
	movl	%edx, 8(%rsp)
	movl	%esi, (%rsp)
	movsd	%xmm3, 24(%rsp)
	call	sqrt@PLT
	movsd	24(%rsp), %xmm3
	movl	16(%rsp), %ecx
	movl	8(%rsp), %edx
	movl	(%rsp), %esi
	jmp	.L18
	.cfi_endproc
.LFE23:
	.size	check, .-check
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d %d %d %d %d"
.LC3:
	.string	"%d %d"
.LC4:
	.string	"NO"
.LC5:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	cy(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L38:
	movl	hx(%rip), %eax
	orl	hy(%rip), %eax
	orl	dx(%rip), %eax
	orl	dy(%rip), %eax
	je	.L73
.L40:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
.L37:
	leaq	n(%rip), %rsi
	leaq	dy(%rip), %r9
	xorl	%eax, %eax
	leaq	dx(%rip), %r8
	leaq	hy(%rip), %rcx
	leaq	hx(%rip), %rdx
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	n(%rip), %esi
	testl	%esi, %esi
	je	.L38
	jle	.L40
	xorl	%ebx, %ebx
	leaq	.LC3(%rip), %r14
	leaq	flag(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L39:
	leaq	0(,%rbx,4), %rsi
	leaq	cx(%rip), %rbp
	movq	%r14, %rdi
	xorl	%eax, %eax
	leaq	(%r12,%rsi), %rdx
	addq	%rbp, %rsi
	leaq	cy(%rip), %r15
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	movl	$0, 0(%r13,%rbx,4)
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jg	.L39
	movl	hy(%rip), %r13d
	movl	hx(%rip), %r14d
	testl	%eax, %eax
	je	.L40
	jle	.L40
	leaq	flag(%rip), %rbx
	leal	-1(%rax), %edx
	movsd	.LC1(%rip), %xmm2
	leaq	4(%rbx), %rsi
	leaq	(%rsi,%rdx,4), %rdx
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L53:
	addq	$4, %rbx
	addq	$4, %rbp
	addq	$4, %r15
	cmpq	%rbx, %rdx
	je	.L74
.L45:
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	jne	.L53
	movl	0(%rbp), %esi
	movl	(%r15), %edi
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	pxor	%xmm0, %xmm0
	pxor	%xmm3, %xmm3
	subl	%esi, %ecx
	subl	%edi, %r8d
	imull	%ecx, %ecx
	imull	%r8d, %r8d
	addl	%r8d, %ecx
	cvtsi2sdl	%ecx, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L69
	sqrtsd	%xmm0, %xmm0
	movapd	%xmm3, %xmm4
.L49:
	movl	dx(%rip), %ecx
	addsd	%xmm4, %xmm0
	subl	%esi, %ecx
	movl	dy(%rip), %esi
	imull	%ecx, %ecx
	movapd	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	subl	%edi, %esi
	addsd	%xmm2, %xmm1
	imull	%esi, %esi
	addl	%esi, %ecx
	cvtsi2sdl	%ecx, %xmm0
	ucomisd	%xmm0, %xmm4
	ja	.L70
	sqrtsd	%xmm0, %xmm0
.L52:
	comisd	%xmm0, %xmm1
	jbe	.L53
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L74:
	leaq	flag(%rip), %rbx
	xorl	%r15d, %r15d
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L54:
	addq	$1, %r15
	addq	$4, %rbx
	cmpl	%r15d, %eax
	jle	.L40
.L59:
	movl	(%rbx), %edx
	testl	%edx, %edx
	jne	.L54
	movl	(%r12,%r15,4), %r8d
	movl	%r13d, %edx
	pxor	%xmm0, %xmm0
	pxor	%xmm6, %xmm6
	leaq	cx(%rip), %rax
	movl	$1, (%rbx)
	movl	(%rax,%r15,4), %esi
	movl	%r14d, %eax
	subl	%r8d, %edx
	imull	%edx, %edx
	subl	%esi, %eax
	imull	%eax, %eax
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm6
	ja	.L71
	sqrtsd	%xmm0, %xmm0
	movapd	%xmm6, %xmm7
.L57:
	addsd	%xmm7, %xmm0
	movl	%r8d, %edx
	movl	$1, %edi
	call	check
	testl	%eax, %eax
	jne	.L58
	movl	$0, (%rbx)
	movl	n(%rip), %eax
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L58:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L37
.L73:
	addq	$40, %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
.L69:
	.cfi_restore_state
	movl	%eax, 28(%rsp)
	movq	%rdx, 16(%rsp)
	movl	%edi, 8(%rsp)
	movl	%esi, (%rsp)
	call	sqrt@PLT
	movl	28(%rsp), %eax
	movl	(%rsp), %esi
	pxor	%xmm4, %xmm4
	movq	.LC1(%rip), %rdi
	movq	16(%rsp), %rdx
	movq	%rdi, %xmm2
	movl	8(%rsp), %edi
	jmp	.L49
.L70:
	movl	%eax, 16(%rsp)
	movq	%rdx, 8(%rsp)
	movsd	%xmm1, (%rsp)
	call	sqrt@PLT
	movq	.LC1(%rip), %rdi
	movl	16(%rsp), %eax
	movq	8(%rsp), %rdx
	movsd	(%rsp), %xmm1
	movq	%rdi, %xmm2
	jmp	.L52
.L71:
	movl	%r8d, 8(%rsp)
	movl	%esi, (%rsp)
	call	sqrt@PLT
	movl	8(%rsp), %r8d
	movl	(%rsp), %esi
	pxor	%xmm7, %xmm7
	jmp	.L57
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	flag
	.bss
	.align 32
	.type	flag, @object
	.size	flag, 80
flag:
	.zero	80
	.globl	cy
	.align 32
	.type	cy, @object
	.size	cy, 80
cy:
	.zero	80
	.globl	cx
	.align 32
	.type	cx, @object
	.size	cx, 80
cx:
	.zero	80
	.globl	dy
	.align 4
	.type	dy, @object
	.size	dy, 4
dy:
	.zero	4
	.globl	dx
	.align 4
	.type	dx, @object
	.size	dx, 4
dx:
	.zero	4
	.globl	hy
	.align 4
	.type	hy, @object
	.size	hy, 4
hy:
	.zero	4
	.globl	hx
	.align 4
	.type	hx, @object
	.size	hx, 4
hx:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.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
	.p2align 4
	.globl	check
	.type	check, @function
check:
.LFB23:
	.cfi_startproc
	endbr64
	movl	%edi, %ecx
	movl	n(%rip), %edi
	movl	$1, %eax
	cmpl	%ecx, %edi
	je	.L30
	testl	%edi, %edi
	jle	.L34
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	cx(%rip), %r8
	movl	%edx, %r15d
	leal	-1(%rdi), %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movapd	%xmm0, %xmm3
	movl	%esi, %r14d
	pxor	%xmm2, %xmm2
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	flag(%rip), %r13
	leaq	cy(%rip), %r9
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	4(%r13), %rdx
	movq	%r8, %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	(%rdx,%rax,4), %rax
	movq	%r9, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%r13, %rbx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movsd	.LC1(%rip), %xmm4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$4, %rbx
	addq	$4, %r12
	addq	$4, %rbp
	cmpq	%rbx, %rax
	je	.L35
.L5:
	movl	(%rbx), %edx
	testl	%edx, %edx
	jne	.L14
	movl	(%r12), %esi
	movl	0(%rbp), %edx
	movl	%r14d, %r10d
	movl	%r15d, %r11d
	pxor	%xmm0, %xmm0
	subl	%esi, %r10d
	subl	%edx, %r11d
	imull	%r10d, %r10d
	imull	%r11d, %r11d
	addl	%r11d, %r10d
	cvtsi2sdl	%r10d, %xmm0
	ucomisd	%xmm0, %xmm2
	ja	.L26
	sqrtsd	%xmm0, %xmm0
.L9:
	movl	dx(%rip), %r10d
	addsd	%xmm3, %xmm0
	subl	%esi, %r10d
	movl	dy(%rip), %esi
	imull	%r10d, %r10d
	movapd	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	subl	%edx, %esi
	addsd	%xmm4, %xmm1
	imull	%esi, %esi
	addl	%esi, %r10d
	cvtsi2sdl	%r10d, %xmm0
	ucomisd	%xmm0, %xmm2
	ja	.L27
	sqrtsd	%xmm0, %xmm0
.L12:
	comisd	%xmm0, %xmm1
	jbe	.L14
.L13:
	xorl	%eax, %eax
.L1:
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	xorl	%ebx, %ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	addq	$1, %rbx
	addq	$4, %r13
	cmpl	%ebx, %edi
	jle	.L13
.L6:
	movl	0(%r13), %eax
	testl	%eax, %eax
	jne	.L15
	movl	(%r8,%rbx,4), %esi
	movl	(%r9,%rbx,4), %edx
	movl	%r14d, %eax
	movl	%r15d, %edi
	pxor	%xmm0, %xmm0
	pxor	%xmm5, %xmm5
	movl	$1, 0(%r13)
	subl	%esi, %eax
	subl	%edx, %edi
	imull	%eax, %eax
	imull	%edi, %edi
	addl	%edi, %eax
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm5
	ja	.L28
	sqrtsd	%xmm0, %xmm0
.L18:
	addsd	%xmm3, %xmm0
	leal	1(%rcx), %edi
	movl	%ecx, (%rsp)
	movsd	%xmm3, 8(%rsp)
	call	check
	testl	%eax, %eax
	jne	.L20
	movl	n(%rip), %edi
	movsd	8(%rsp), %xmm3
	movl	$0, 0(%r13)
	leaq	cy(%rip), %r9
	movl	(%rsp), %ecx
	leaq	cx(%rip), %r8
	jmp	.L15
.L20:
	movl	$2, %eax
	jmp	.L1
.L34:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	xorl	%eax, %eax
.L30:
	ret
.L27:
	.cfi_def_cfa_offset 112
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	movl	%ecx, 24(%rsp)
	movl	%edi, 16(%rsp)
	movq	%rax, 8(%rsp)
	movsd	%xmm3, 32(%rsp)
	movsd	%xmm1, (%rsp)
	call	sqrt@PLT
	movq	.LC1(%rip), %rax
	movsd	32(%rsp), %xmm3
	pxor	%xmm2, %xmm2
	movl	24(%rsp), %ecx
	movl	16(%rsp), %edi
	leaq	cy(%rip), %r9
	leaq	cx(%rip), %r8
	movq	%rax, %xmm4
	movsd	(%rsp), %xmm1
	movq	8(%rsp), %rax
	jmp	.L12
.L26:
	movl	%ecx, 32(%rsp)
	movl	%edi, 24(%rsp)
	movq	%rax, 16(%rsp)
	movl	%edx, 8(%rsp)
	movl	%esi, (%rsp)
	movsd	%xmm3, 40(%rsp)
	call	sqrt@PLT
	movq	.LC1(%rip), %rax
	movsd	40(%rsp), %xmm3
	pxor	%xmm2, %xmm2
	movl	32(%rsp), %ecx
	movl	24(%rsp), %edi
	leaq	cy(%rip), %r9
	leaq	cx(%rip), %r8
	movq	%rax, %xmm4
	movl	8(%rsp), %edx
	movq	16(%rsp), %rax
	movl	(%rsp), %esi
	jmp	.L9
.L28:
	movl	%ecx, 16(%rsp)
	movl	%edx, 8(%rsp)
	movl	%esi, (%rsp)
	movsd	%xmm3, 24(%rsp)
	call	sqrt@PLT
	movsd	24(%rsp), %xmm3
	movl	16(%rsp), %ecx
	movl	8(%rsp), %edx
	movl	(%rsp), %esi
	jmp	.L18
	.cfi_endproc
.LFE23:
	.size	check, .-check
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"%d %d %d %d %d"
.LC3:
	.string	"%d %d"
.LC4:
	.string	"NO"
.LC5:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.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
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	cy(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	jmp	.L37
	.p2align 4,,10
	.p2align 3
.L38:
	movl	hx(%rip), %eax
	orl	hy(%rip), %eax
	orl	dx(%rip), %eax
	orl	dy(%rip), %eax
	je	.L73
.L40:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
.L37:
	leaq	n(%rip), %rsi
	leaq	dy(%rip), %r9
	xorl	%eax, %eax
	leaq	dx(%rip), %r8
	leaq	hy(%rip), %rcx
	leaq	hx(%rip), %rdx
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	n(%rip), %esi
	testl	%esi, %esi
	je	.L38
	jle	.L40
	xorl	%ebx, %ebx
	leaq	.LC3(%rip), %r14
	leaq	flag(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L39:
	leaq	0(,%rbx,4), %rsi
	leaq	cx(%rip), %rbp
	movq	%r14, %rdi
	xorl	%eax, %eax
	leaq	(%r12,%rsi), %rdx
	addq	%rbp, %rsi
	leaq	cy(%rip), %r15
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	movl	$0, 0(%r13,%rbx,4)
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jg	.L39
	movl	hy(%rip), %r13d
	movl	hx(%rip), %r14d
	testl	%eax, %eax
	je	.L40
	jle	.L40
	leaq	flag(%rip), %rbx
	leal	-1(%rax), %edx
	movsd	.LC1(%rip), %xmm2
	leaq	4(%rbx), %rsi
	leaq	(%rsi,%rdx,4), %rdx
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L53:
	addq	$4, %rbx
	addq	$4, %rbp
	addq	$4, %r15
	cmpq	%rbx, %rdx
	je	.L74
.L45:
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	jne	.L53
	movl	0(%rbp), %esi
	movl	(%r15), %edi
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	pxor	%xmm0, %xmm0
	pxor	%xmm3, %xmm3
	subl	%esi, %ecx
	subl	%edi, %r8d
	imull	%ecx, %ecx
	imull	%r8d, %r8d
	addl	%r8d, %ecx
	cvtsi2sdl	%ecx, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L69
	sqrtsd	%xmm0, %xmm0
	movapd	%xmm3, %xmm4
.L49:
	movl	dx(%rip), %ecx
	addsd	%xmm4, %xmm0
	subl	%esi, %ecx
	movl	dy(%rip), %esi
	imull	%ecx, %ecx
	movapd	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	subl	%edi, %esi
	addsd	%xmm2, %xmm1
	imull	%esi, %esi
	addl	%esi, %ecx
	cvtsi2sdl	%ecx, %xmm0
	ucomisd	%xmm0, %xmm4
	ja	.L70
	sqrtsd	%xmm0, %xmm0
.L52:
	comisd	%xmm0, %xmm1
	jbe	.L53
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L74:
	leaq	flag(%rip), %rbx
	xorl	%r15d, %r15d
	jmp	.L59
	.p2align 4,,10
	.p2align 3
.L54:
	addq	$1, %r15
	addq	$4, %rbx
	cmpl	%r15d, %eax
	jle	.L40
.L59:
	movl	(%rbx), %edx
	testl	%edx, %edx
	jne	.L54
	movl	(%r12,%r15,4), %r8d
	movl	%r13d, %edx
	pxor	%xmm0, %xmm0
	pxor	%xmm6, %xmm6
	leaq	cx(%rip), %rax
	movl	$1, (%rbx)
	movl	(%rax,%r15,4), %esi
	movl	%r14d, %eax
	subl	%r8d, %edx
	imull	%edx, %edx
	subl	%esi, %eax
	imull	%eax, %eax
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm6
	ja	.L71
	sqrtsd	%xmm0, %xmm0
	movapd	%xmm6, %xmm7
.L57:
	addsd	%xmm7, %xmm0
	movl	%r8d, %edx
	movl	$1, %edi
	call	check
	testl	%eax, %eax
	jne	.L58
	movl	$0, (%rbx)
	movl	n(%rip), %eax
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L58:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L37
.L73:
	addq	$40, %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
.L69:
	.cfi_restore_state
	movl	%eax, 28(%rsp)
	movq	%rdx, 16(%rsp)
	movl	%edi, 8(%rsp)
	movl	%esi, (%rsp)
	call	sqrt@PLT
	movl	28(%rsp), %eax
	movl	(%rsp), %esi
	pxor	%xmm4, %xmm4
	movq	.LC1(%rip), %rdi
	movq	16(%rsp), %rdx
	movq	%rdi, %xmm2
	movl	8(%rsp), %edi
	jmp	.L49
.L70:
	movl	%eax, 16(%rsp)
	movq	%rdx, 8(%rsp)
	movsd	%xmm1, (%rsp)
	call	sqrt@PLT
	movq	.LC1(%rip), %rdi
	movl	16(%rsp), %eax
	movq	8(%rsp), %rdx
	movsd	(%rsp), %xmm1
	movq	%rdi, %xmm2
	jmp	.L52
.L71:
	movl	%r8d, 8(%rsp)
	movl	%esi, (%rsp)
	call	sqrt@PLT
	movl	8(%rsp), %r8d
	movl	(%rsp), %esi
	pxor	%xmm7, %xmm7
	jmp	.L57
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	flag
	.bss
	.align 32
	.type	flag, @object
	.size	flag, 80
flag:
	.zero	80
	.globl	cy
	.align 32
	.type	cy, @object
	.size	cy, 80
cy:
	.zero	80
	.globl	cx
	.align 32
	.type	cx, @object
	.size	cx, 80
cx:
	.zero	80
	.globl	dy
	.align 4
	.type	dy, @object
	.size	dy, 4
dy:
	.zero	4
	.globl	dx
	.align 4
	.type	dx, @object
	.size	dx, 4
dx:
	.zero	4
	.globl	hy
	.align 4
	.type	hy, @object
	.size	hy, 4
hy:
	.zero	4
	.globl	hx
	.align 4
	.type	hx, @object
	.size	hx, 4
hx:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.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:

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

int n,hx,hy,dx,dy;
int cx[20],cy[20],flag[20];

int check(int c,double rsum,int hx,int hy){
    int i;
    double r;
    if(c==n)return 1;
    for(i=0;i<n;i++){
        if(flag[i]==0){
            r=rsum+sqrt((hx-cx[i])*(hx-cx[i])+(hy-cy[i])*(hy-cy[i]));
            if(r+1e-8>sqrt((dx-cx[i])*(dx-cx[i])+(dy-cy[i])*(dy-cy[i])))return 0;
        }
    }
    for(i=0;i<n;i++){
        if(flag[i]==0){
            flag[i]=1;
            r=rsum+sqrt((hx-cx[i])*(hx-cx[i])+(hy-cy[i])*(hy-cy[i]));
            if(check(c+1,r,cx[i],cy[i])==0)flag[i]=0;
            else return 2;
        }
    }
    return 0;
}

int main(void){
    int i;
    while(1){
        scanf("%d %d %d %d %d",&n,&hx,&hy,&dx,&dy);
        if(n==0 && hx==0 && hy==0 && dx==0 && dy==0)break;
        for(i=0;i<n;i++){
            scanf("%d %d",&cx[i],&cy[i]);
            flag[i]=0;
        }
        if(check(0,0.0,hx,hy)==2)printf("YES\n");
        else printf("NO\n");
    }
    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

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
#include <stdio.h>
#include <math.h>

int n,hx,hy,dx,dy;
int cx[20],cy[20],flag[20];

int check(int c,double rsum,int hx,int hy){
    int i;
    double r;
    if(c==n)return 1;
    for(i=0;i<n;i++){
        if(flag[i]==0){
            r=rsum+sqrt((hx-cx[i])*(hx-cx[i])+(hy-cy[i])*(hy-cy[i]));
            if(r+1e-8>sqrt((dx-cx[i])*(dx-cx[i])+(dy-cy[i])*(dy-cy[i])))return 0;
        }
    }
    for(i=0;i<n;i++){
        if(flag[i]==0){
            flag[i]=1;
            r=rsum+sqrt((hx-cx[i])*(hx-cx[i])+(hy-cy[i])*(hy-cy[i]));
            if(check(c+1,r,cx[i],cy[i])==0)flag[i]=0;
            else return 2;
        }
    }
    return 0;
}

int main(void){
    int i;
    while(1){
        scanf("%d %d %d %d %d",&n,&hx,&hy,&dx,&dy);
        if(n==0 && hx==0 && hy==0 && dx==0 && dy==0)break;
        for(i=0;i<n;i++){
            scanf("%d %d",&cx[i],&cy[i]);
            flag[i]=0;
        }
        if(check(0,0.0,hx,hy)==2)printf("YES\n");
        else printf("NO\n");
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	hx
	.align 4
	.type	hx, @object
	.size	hx, 4
hx:
	.zero	4
	.globl	hy
	.align 4
	.type	hy, @object
	.size	hy, 4
hy:
	.zero	4
	.globl	dx
	.align 4
	.type	dx, @object
	.size	dx, 4
dx:
	.zero	4
	.globl	dy
	.align 4
	.type	dy, @object
	.size	dy, 4
dy:
	.zero	4
	.globl	cx
	.align 32
	.type	cx, @object
	.size	cx, 80
cx:
	.zero	80
	.globl	cy
	.align 32
	.type	cy, @object
	.size	cy, 80
cy:
	.zero	80
	.globl	flag
	.align 32
	.type	flag, @object
	.size	flag, 80
flag:
	.zero	80
	.text
	.globl	check
	.type	check, @function
check:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -20(%rbp)
	movsd	%xmm0, -32(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -36(%rbp)
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jne	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movl	$0, -12(%rbp)
	jmp	.L4
.L7:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flag(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L5
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	subl	%edx, %eax
	movl	%ecx, %esi
	imull	%eax, %esi
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	imull	%ecx, %eax
	addl	%esi, %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movsd	-32(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	-8(%rbp), %xmm1
	movsd	.LC0(%rip), %xmm0
	addsd	%xmm0, %xmm1
	movsd	%xmm1, -48(%rbp)
	movl	dx(%rip), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cx(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	movl	dx(%rip), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cx(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%esi, %edi
	imull	%eax, %edi
	movl	dy(%rip), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cy(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	movl	dy(%rip), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cy(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	imull	%esi, %eax
	addl	%edi, %eax
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%eax, %xmm3
	movq	%xmm3, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movsd	-48(%rbp), %xmm1
	comisd	%xmm0, %xmm1
	jbe	.L5
	movl	$0, %eax
	jmp	.L3
.L5:
	addl	$1, -12(%rbp)
.L4:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L7
	movl	$0, -12(%rbp)
	jmp	.L8
.L11:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flag(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L9
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flag(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	subl	%edx, %eax
	movl	%ecx, %esi
	imull	%eax, %esi
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	imull	%ecx, %eax
	addl	%esi, %eax
	pxor	%xmm4, %xmm4
	cvtsi2sdl	%eax, %xmm4
	movq	%xmm4, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movsd	-32(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cx(%rip), %rax
	movl	(%rcx,%rax), %ecx
	movl	-20(%rbp), %eax
	leal	1(%rax), %edi
	movq	-8(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %xmm0
	call	check
	testl	%eax, %eax
	jne	.L10
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flag(%rip), %rax
	movl	$0, (%rdx,%rax)
	jmp	.L9
.L10:
	movl	$2, %eax
	jmp	.L3
.L9:
	addl	$1, -12(%rbp)
.L8:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L11
	movl	$0, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	check, .-check
	.section	.rodata
.LC1:
	.string	"%d %d %d %d %d"
.LC2:
	.string	"%d %d"
.LC4:
	.string	"YES"
.LC5:
	.string	"NO"
	.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	$16, %rsp
.L20:
	leaq	dy(%rip), %r9
	leaq	dx(%rip), %r8
	leaq	hy(%rip), %rax
	movq	%rax, %rcx
	leaq	hx(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jne	.L14
	movl	hx(%rip), %eax
	testl	%eax, %eax
	jne	.L14
	movl	hy(%rip), %eax
	testl	%eax, %eax
	jne	.L14
	movl	dx(%rip), %eax
	testl	%eax, %eax
	jne	.L14
	movl	dy(%rip), %eax
	testl	%eax, %eax
	je	.L23
.L14:
	movl	$0, -4(%rbp)
	jmp	.L16
.L17:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cx(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flag(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L16:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L17
	movl	hy(%rip), %edx
	movl	hx(%rip), %eax
	movl	%eax, %esi
	movq	.LC3(%rip), %rax
	movq	%rax, %xmm0
	movl	$0, %edi
	call	check
	cmpl	$2, %eax
	jne	.L18
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L20
.L18:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L20
.L23:
	nop
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	-500134854
	.long	1044740494
	.align 8
.LC3:
	.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	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	hx
	.align 4
	.type	hx, @object
	.size	hx, 4
hx:
	.zero	4
	.globl	hy
	.align 4
	.type	hy, @object
	.size	hy, 4
hy:
	.zero	4
	.globl	dx
	.align 4
	.type	dx, @object
	.size	dx, 4
dx:
	.zero	4
	.globl	dy
	.align 4
	.type	dy, @object
	.size	dy, 4
dy:
	.zero	4
	.globl	cx
	.align 32
	.type	cx, @object
	.size	cx, 80
cx:
	.zero	80
	.globl	cy
	.align 32
	.type	cy, @object
	.size	cy, 80
cy:
	.zero	80
	.globl	flag
	.align 32
	.type	flag, @object
	.size	flag, 80
flag:
	.zero	80
	.text
	.globl	check
	.type	check, @function
check:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movl	%edi, -20(%rbp)
	movsd	%xmm0, -32(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -36(%rbp)
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jne	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movl	$0, -12(%rbp)
	jmp	.L4
.L7:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flag(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L5
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	subl	%edx, %eax
	movl	%ecx, %esi
	imull	%eax, %esi
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	imull	%ecx, %eax
	addl	%esi, %eax
	pxor	%xmm2, %xmm2
	cvtsi2sdl	%eax, %xmm2
	movq	%xmm2, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movsd	-32(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	-8(%rbp), %xmm1
	movsd	.LC0(%rip), %xmm0
	addsd	%xmm0, %xmm1
	movsd	%xmm1, -48(%rbp)
	movl	dx(%rip), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cx(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	movl	dx(%rip), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cx(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%esi, %edi
	imull	%eax, %edi
	movl	dy(%rip), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cy(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	movl	dy(%rip), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	cy(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	imull	%esi, %eax
	addl	%edi, %eax
	pxor	%xmm3, %xmm3
	cvtsi2sdl	%eax, %xmm3
	movq	%xmm3, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movsd	-48(%rbp), %xmm1
	comisd	%xmm0, %xmm1
	jbe	.L5
	movl	$0, %eax
	jmp	.L3
.L5:
	addl	$1, -12(%rbp)
.L4:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L7
	movl	$0, -12(%rbp)
	jmp	.L8
.L11:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flag(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L9
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flag(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	subl	%edx, %eax
	movl	%ecx, %esi
	imull	%eax, %esi
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-36(%rbp), %eax
	subl	%edx, %eax
	imull	%ecx, %eax
	addl	%esi, %eax
	pxor	%xmm4, %xmm4
	cvtsi2sdl	%eax, %xmm4
	movq	%xmm4, %rax
	movq	%rax, %xmm0
	call	sqrt@PLT
	movsd	-32(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cx(%rip), %rax
	movl	(%rcx,%rax), %ecx
	movl	-20(%rbp), %eax
	leal	1(%rax), %edi
	movq	-8(%rbp), %rax
	movl	%ecx, %esi
	movq	%rax, %xmm0
	call	check
	testl	%eax, %eax
	jne	.L10
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flag(%rip), %rax
	movl	$0, (%rdx,%rax)
	jmp	.L9
.L10:
	movl	$2, %eax
	jmp	.L3
.L9:
	addl	$1, -12(%rbp)
.L8:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L11
	movl	$0, %eax
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	check, .-check
	.section	.rodata
.LC1:
	.string	"%d %d %d %d %d"
.LC2:
	.string	"%d %d"
.LC4:
	.string	"YES"
.LC5:
	.string	"NO"
	.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	$16, %rsp
.L20:
	leaq	dy(%rip), %r9
	leaq	dx(%rip), %r8
	leaq	hy(%rip), %rax
	movq	%rax, %rcx
	leaq	hx(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	jne	.L14
	movl	hx(%rip), %eax
	testl	%eax, %eax
	jne	.L14
	movl	hy(%rip), %eax
	testl	%eax, %eax
	jne	.L14
	movl	dx(%rip), %eax
	testl	%eax, %eax
	jne	.L14
	movl	dy(%rip), %eax
	testl	%eax, %eax
	je	.L23
.L14:
	movl	$0, -4(%rbp)
	jmp	.L16
.L17:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	addq	%rax, %rdx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	cx(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	flag(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -4(%rbp)
.L16:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L17
	movl	hy(%rip), %edx
	movl	hx(%rip), %eax
	movl	%eax, %esi
	movq	.LC3(%rip), %rax
	movq	%rax, %xmm0
	movl	$0, %edi
	call	check
	cmpl	$2, %eax
	jne	.L18
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L20
.L18:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L20
.L23:
	nop
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	-500134854
	.long	1044740494
	.align 8
.LC3:
	.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:
