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<stdlib.h>
#include<math.h>
#define EPS (1e-10)

int used[20];
int cx[20],cy[20];
int dx,dy;
int n;
int tmp;

void dragon(double sum,int hx,int hy)
{
	int i,c;
	double r;
	
	if(tmp)return;
	
	c=0;
	for(i=0;i<n;i++){
		if(used[i])c++;
	}
	if(c==n){
		tmp = 1;
		return;
	}
	
	for(i=0;i<n;i++){
		if(used[i]==0){
		  r = sum + sqrt((hx-cx[i])*(hx-cx[i])+(hy-cy[i])*(hy-cy[i]));
			if(r + EPS > sqrt((dx-cx[i])*(dx-cx[i])+(dy-cy[i])*(dy-cy[i])) )return;
		}
	}
	
	for(i=0;i<n;i++){
		if(used[i]==0){
			used[i]=1;
			r = sum + sqrt((hx-cx[i])*(hx-cx[i])+(hy-cy[i])*(hy-cy[i]));
			dragon(r,cx[i],cy[i]);
			used[i]=0;
		}
	}
}



int main(void)
{
	int i,j,c;
	int hx,hy;




	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]);
		}
	  
		for(i=0;i<n;i++){
			used[i]=0;
		}
    
    tmp = 0;
    dragon(0.0,hx,hy);
		if(tmp){
			printf("YES\n");
		}else{
			printf("NO\n");
		}
		
	}
	return 0;
	
}	


		```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	used
	.bss
	.align 32
	.type	used, @object
	.size	used, 80
used:
	.zero	80
	.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	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	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	tmp
	.align 4
	.type	tmp, @object
	.size	tmp, 4
tmp:
	.zero	4
	.text
	.globl	dragon
	.type	dragon, @function
dragon:
.LFB6:
	.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
	movsd	%xmm0, -24(%rbp)
	movl	%edi, -28(%rbp)
	movl	%esi, -32(%rbp)
	movl	tmp(%rip), %eax
	testl	%eax, %eax
	jne	.L15
	movl	$0, -12(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L4
.L6:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	used(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L5
	addl	$1, -12(%rbp)
.L5:
	addl	$1, -16(%rbp)
.L4:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L6
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L7
	movl	$1, tmp(%rip)
	jmp	.L1
.L7:
	movl	$0, -16(%rbp)
	jmp	.L8
.L11:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	used(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L9
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	subl	%edx, %eax
	movl	%ecx, %esi
	imull	%eax, %esi
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%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	-24(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	-8(%rbp), %xmm1
	movsd	.LC0(%rip), %xmm0
	addsd	%xmm0, %xmm1
	movsd	%xmm1, -40(%rbp)
	movl	dx(%rip), %eax
	movl	-16(%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	-16(%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	-16(%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	-16(%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	-40(%rbp), %xmm1
	comisd	%xmm0, %xmm1
	ja	.L16
.L9:
	addl	$1, -16(%rbp)
.L8:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L11
	movl	$0, -16(%rbp)
	jmp	.L12
.L14:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	used(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L13
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	used(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	subl	%edx, %eax
	movl	%ecx, %esi
	imull	%eax, %esi
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%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	-24(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-8(%rbp), %rax
	movl	%ecx, %esi
	movl	%edx, %edi
	movq	%rax, %xmm0
	call	dragon
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	used(%rip), %rax
	movl	$0, (%rdx,%rax)
.L13:
	addl	$1, -16(%rbp)
.L12:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L14
	jmp	.L1
.L15:
	nop
	jmp	.L1
.L16:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	dragon, .-dragon
	.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:
.LFB7:
	.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
.L26:
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	leaq	dy(%rip), %r9
	leaq	dx(%rip), %r8
	movq	%rdx, %rcx
	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	.L18
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	jne	.L18
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jne	.L18
	movl	dx(%rip), %eax
	testl	%eax, %eax
	jne	.L18
	movl	dy(%rip), %eax
	testl	%eax, %eax
	je	.L30
.L18:
	movl	$0, -12(%rbp)
	jmp	.L20
.L21:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	addq	%rax, %rdx
	movl	-12(%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
	addl	$1, -12(%rbp)
.L20:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L21
	movl	$0, -12(%rbp)
	jmp	.L22
.L23:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	used(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L22:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L23
	movl	$0, tmp(%rip)
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	movq	.LC3(%rip), %rax
	movq	%rax, %xmm0
	call	dragon
	movl	tmp(%rip), %eax
	testl	%eax, %eax
	je	.L24
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L26
.L24:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L26
.L30:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	-640172613
	.long	1037794527
	.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
	.type	dragon.part.0, @function
dragon.part.0:
.LFB41:
	.cfi_startproc
	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
	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
	movl	n(%rip), %r14d
	testl	%r14d, %r14d
	jle	.L2
	movl	%edi, %eax
	leal	-1(%r14), %edi
	movapd	%xmm0, %xmm3
	movl	%esi, %edx
	cmpl	$2, %edi
	jbe	.L29
	movl	%r14d, %ecx
	pxor	%xmm1, %xmm1
	movdqa	%xmm1, %xmm0
	shrl	$2, %ecx
	pcmpeqd	used(%rip), %xmm0
	pandn	.LC0(%rip), %xmm0
	cmpl	$1, %ecx
	je	.L4
	movdqa	%xmm1, %xmm2
	pcmpeqd	16+used(%rip), %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$2, %ecx
	je	.L4
	movdqa	%xmm1, %xmm2
	pcmpeqd	32+used(%rip), %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$3, %ecx
	je	.L4
	movdqa	%xmm1, %xmm2
	pcmpeqd	48+used(%rip), %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$4, %ecx
	je	.L4
	movdqa	%xmm1, %xmm2
	pcmpeqd	64+used(%rip), %xmm2
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
.L4:
	movdqa	%xmm0, %xmm1
	movl	%r14d, %esi
	psrldq	$8, %xmm1
	andl	$-4, %esi
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	testb	$3, %r14b
	je	.L5
.L3:
	movslq	%esi, %r8
	leaq	used(%rip), %r9
	cmpl	$1, (%r9,%r8,4)
	leal	1(%rsi), %r8d
	sbbl	$-1, %ecx
	cmpl	%r14d, %r8d
	jge	.L5
	movslq	%r8d, %r8
	cmpl	$1, (%r9,%r8,4)
	sbbl	$-1, %ecx
	addl	$2, %esi
	cmpl	%esi, %r14d
	jle	.L5
	movslq	%esi, %rsi
	cmpl	$1, (%r9,%rsi,4)
	sbbl	$-1, %ecx
.L5:
	cmpl	%r14d, %ecx
	je	.L10
	leaq	used(%rip), %r15
	leaq	cx(%rip), %rcx
	pxor	%xmm2, %xmm2
	movsd	.LC2(%rip), %xmm4
	leaq	cy(%rip), %r8
	leaq	4(%r15), %rsi
	movq	%rcx, %r12
	movq	%r15, %rbx
	movq	%r8, %rbp
	leaq	(%rsi,%rdi,4), %r13
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L22:
	addq	$4, %rbx
	addq	$4, %r12
	addq	$4, %rbp
	cmpq	%rbx, %r13
	je	.L57
.L13:
	movl	(%rbx), %r9d
	testl	%r9d, %r9d
	jne	.L22
	movl	(%r12), %edi
	movl	0(%rbp), %esi
	movl	%eax, %r9d
	movl	%edx, %r10d
	pxor	%xmm0, %xmm0
	subl	%edi, %r9d
	subl	%esi, %r10d
	imull	%r9d, %r9d
	imull	%r10d, %r10d
	addl	%r10d, %r9d
	cvtsi2sdl	%r9d, %xmm0
	ucomisd	%xmm0, %xmm2
	ja	.L50
	sqrtsd	%xmm0, %xmm0
.L17:
	movl	dx(%rip), %r9d
	addsd	%xmm3, %xmm0
	subl	%edi, %r9d
	movl	dy(%rip), %edi
	imull	%r9d, %r9d
	movapd	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	subl	%esi, %edi
	addsd	%xmm4, %xmm1
	imull	%edi, %edi
	addl	%edi, %r9d
	cvtsi2sdl	%r9d, %xmm0
	ucomisd	%xmm0, %xmm2
	ja	.L51
	sqrtsd	%xmm0, %xmm0
.L20:
	comisd	%xmm0, %xmm1
	jbe	.L22
.L1:
	addq	$40, %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
.L57:
	.cfi_restore_state
	movl	(%r15), %edi
	xorl	%ebx, %ebx
	testl	%edi, %edi
	je	.L58
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$1, %rbx
	addq	$4, %r15
	cmpl	%ebx, %r14d
	jle	.L1
	movl	(%r15), %edi
	testl	%edi, %edi
	jne	.L23
.L58:
	movl	(%rcx,%rbx,4), %edi
	movl	(%r8,%rbx,4), %ebp
	movl	%eax, %esi
	movl	%edx, %r9d
	pxor	%xmm0, %xmm0
	pxor	%xmm5, %xmm5
	movl	$1, (%r15)
	subl	%edi, %esi
	subl	%ebp, %r9d
	imull	%esi, %esi
	imull	%r9d, %r9d
	addl	%r9d, %esi
	cvtsi2sdl	%esi, %xmm0
	ucomisd	%xmm0, %xmm5
	ja	.L52
	sqrtsd	%xmm0, %xmm0
.L26:
	movl	tmp(%rip), %esi
	testl	%esi, %esi
	jne	.L27
	addsd	%xmm3, %xmm0
	movl	%ebp, %esi
	movl	%edx, 16(%rsp)
	movl	%eax, 8(%rsp)
	movsd	%xmm3, (%rsp)
	call	dragon.part.0
	movl	n(%rip), %r14d
	movl	16(%rsp), %edx
	leaq	cy(%rip), %r8
	movl	8(%rsp), %eax
	movsd	(%rsp), %xmm3
	leaq	cx(%rip), %rcx
.L27:
	movl	$0, (%r15)
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L2:
	jne	.L1
.L10:
	movl	$1, tmp(%rip)
	addq	$40, %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
.L29:
	.cfi_restore_state
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	.L3
.L51:
	movl	%edx, 24(%rsp)
	movl	%eax, 16(%rsp)
	movsd	%xmm3, 8(%rsp)
	movsd	%xmm1, (%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movl	24(%rsp), %edx
	pxor	%xmm2, %xmm2
	movsd	8(%rsp), %xmm3
	movsd	(%rsp), %xmm1
	leaq	cy(%rip), %r8
	leaq	cx(%rip), %rcx
	movq	%rax, %xmm4
	movl	16(%rsp), %eax
	jmp	.L20
.L50:
	movl	%edx, 28(%rsp)
	movl	%eax, 24(%rsp)
	movl	%esi, 8(%rsp)
	movl	%edi, (%rsp)
	movsd	%xmm3, 16(%rsp)
	call	sqrt@PLT
	movl	28(%rsp), %edx
	movl	(%rsp), %edi
	pxor	%xmm2, %xmm2
	movq	.LC2(%rip), %rax
	movsd	16(%rsp), %xmm3
	leaq	cy(%rip), %r8
	leaq	cx(%rip), %rcx
	movl	8(%rsp), %esi
	movq	%rax, %xmm4
	movl	24(%rsp), %eax
	jmp	.L17
.L52:
	movl	%edx, 24(%rsp)
	movl	%eax, 16(%rsp)
	movl	%edi, (%rsp)
	movsd	%xmm3, 8(%rsp)
	call	sqrt@PLT
	movl	24(%rsp), %edx
	movl	16(%rsp), %eax
	leaq	cy(%rip), %r8
	movsd	8(%rsp), %xmm3
	movl	(%rsp), %edi
	leaq	cx(%rip), %rcx
	jmp	.L26
	.cfi_endproc
.LFE41:
	.size	dragon.part.0, .-dragon.part.0
	.p2align 4
	.globl	dragon
	.type	dragon, @function
dragon:
.LFB39:
	.cfi_startproc
	endbr64
	movl	tmp(%rip), %eax
	testl	%eax, %eax
	jne	.L59
	jmp	dragon.part.0
	.p2align 4,,10
	.p2align 3
.L59:
	ret
	.cfi_endproc
.LFE39:
	.size	dragon, .-dragon
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%d %d %d %d %d"
.LC4:
	.string	"%d %d"
.LC5:
	.string	"YES"
.LC6:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	52(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L62:
	movq	16(%rsp), %rcx
	movq	8(%rsp), %rdx
	xorl	%eax, %eax
	leaq	dy(%rip), %r9
	leaq	dx(%rip), %r8
	leaq	n(%rip), %rsi
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	n(%rip), %ecx
	testl	%ecx, %ecx
	jne	.L135
	movl	48(%rsp), %eax
	orl	52(%rsp), %eax
	orl	dx(%rip), %eax
	orl	dy(%rip), %eax
	je	.L136
.L67:
	movl	$1, tmp(%rip)
.L78:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L62
	.p2align 4,,10
	.p2align 3
.L135:
	jle	.L137
	leaq	cx(%rip), %r13
	xorl	%r14d, %r14d
	leaq	cy(%rip), %r12
	movq	%r13, %r15
	leaq	.LC4(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L68:
	leaq	(%r12,%r14,4), %rdx
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %ebp
	addq	$1, %r14
	addq	$4, %r15
	cmpl	%r14d, %ebp
	jg	.L68
	movl	48(%rsp), %r14d
	movl	52(%rsp), %r15d
	testl	%ebp, %ebp
	jle	.L69
	movl	%ebp, %edx
	leaq	used(%rip), %rdi
	xorl	%esi, %esi
	salq	$2, %rdx
	call	memset@PLT
	movl	$0, tmp(%rip)
	movq	%rax, %rdi
	leal	-1(%rbp), %eax
	cmpl	$2, %eax
	jbe	.L138
	movl	%ebp, %eax
	pxor	%xmm1, %xmm1
	movdqa	%xmm1, %xmm0
	shrl	$2, %eax
	pcmpeqd	used(%rip), %xmm0
	pandn	.LC0(%rip), %xmm0
	cmpl	$1, %eax
	je	.L77
	movdqa	%xmm1, %xmm2
	pcmpeqd	16+used(%rip), %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$2, %eax
	je	.L77
	movdqa	%xmm1, %xmm2
	pcmpeqd	32+used(%rip), %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$3, %eax
	je	.L77
	movdqa	%xmm1, %xmm2
	pcmpeqd	48+used(%rip), %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$4, %eax
	je	.L77
	movdqa	%xmm1, %xmm2
	pcmpeqd	64+used(%rip), %xmm2
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
.L77:
	movdqa	%xmm0, %xmm1
	movl	%ebp, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	testb	$3, %bpl
	je	.L72
.L70:
	movslq	%edx, %rsi
	cmpl	$1, (%rdi,%rsi,4)
	leal	1(%rdx), %esi
	sbbl	$-1, %eax
	cmpl	%esi, %ebp
	jle	.L72
	movslq	%esi, %rsi
	cmpl	$1, (%rdi,%rsi,4)
	sbbl	$-1, %eax
	addl	$2, %edx
	cmpl	%edx, %ebp
	jle	.L72
	movslq	%edx, %rdx
	cmpl	$1, (%rdi,%rdx,4)
	sbbl	$-1, %eax
.L72:
	cmpl	%eax, %ebp
	je	.L67
	movsd	.LC2(%rip), %xmm2
	xorl	%ebx, %ebx
	jmp	.L80
	.p2align 4,,10
	.p2align 3
.L89:
	addq	$1, %rbx
	cmpl	%ebx, %ebp
	jle	.L139
.L80:
	movl	(%rdi,%rbx,4), %edx
	testl	%edx, %edx
	jne	.L89
	movl	0(%r13,%rbx,4), %edx
	movl	(%r12,%rbx,4), %ecx
	movl	%r14d, %eax
	movl	%r15d, %esi
	pxor	%xmm0, %xmm0
	pxor	%xmm3, %xmm3
	subl	%edx, %eax
	subl	%ecx, %esi
	imull	%eax, %eax
	imull	%esi, %esi
	addl	%esi, %eax
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L128
	sqrtsd	%xmm0, %xmm0
	movapd	%xmm3, %xmm4
.L84:
	movl	dx(%rip), %eax
	addsd	%xmm4, %xmm0
	subl	%edx, %eax
	movl	dy(%rip), %edx
	imull	%eax, %eax
	movapd	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	subl	%ecx, %edx
	addsd	%xmm2, %xmm1
	imull	%edx, %edx
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm4
	ja	.L129
	sqrtsd	%xmm0, %xmm0
.L87:
	comisd	%xmm0, %xmm1
	jbe	.L89
.L96:
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L62
	.p2align 4,,10
	.p2align 3
.L139:
	xorl	%ebx, %ebx
	leaq	used(%rip), %rax
	movl	%ebp, %edx
	xorl	%esi, %esi
	movq	%rbx, %rbp
	movq	%rax, %rbx
.L95:
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	.L140
.L90:
	addq	$1, %rbp
	addq	$4, %rbx
	cmpl	%ebp, %edx
	jg	.L95
	testl	%esi, %esi
	jne	.L78
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L62
	.p2align 4,,10
	.p2align 3
.L140:
	movl	0(%r13,%rbp,4), %edi
	movl	(%r12,%rbp,4), %r8d
	movl	%r14d, %eax
	movl	%r15d, %ecx
	pxor	%xmm0, %xmm0
	pxor	%xmm6, %xmm6
	movl	$1, (%rbx)
	subl	%edi, %eax
	subl	%r8d, %ecx
	imull	%eax, %eax
	imull	%ecx, %ecx
	addl	%ecx, %eax
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm6
	ja	.L130
	sqrtsd	%xmm0, %xmm0
.L93:
	testl	%esi, %esi
	jne	.L94
	pxor	%xmm7, %xmm7
	movl	%r8d, %esi
	addsd	%xmm7, %xmm0
	call	dragon.part.0
	movl	n(%rip), %edx
	movl	tmp(%rip), %esi
.L94:
	movl	$0, (%rbx)
	jmp	.L90
.L138:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L70
.L69:
	movl	$0, tmp(%rip)
	je	.L67
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L62
.L136:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L141
	addq	$72, %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
.L128:
	.cfi_restore_state
	movl	%ecx, 36(%rsp)
	movl	%edx, 24(%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movl	36(%rsp), %ecx
	leaq	used(%rip), %rdi
	movl	24(%rsp), %edx
	pxor	%xmm4, %xmm4
	movq	%rax, %xmm2
	jmp	.L84
.L129:
	movsd	%xmm1, 24(%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movsd	24(%rsp), %xmm1
	leaq	used(%rip), %rdi
	movq	%rax, %xmm2
	jmp	.L87
.L130:
	movl	%edx, 44(%rsp)
	movl	%esi, 40(%rsp)
	movl	%r8d, 36(%rsp)
	movl	%edi, 24(%rsp)
	call	sqrt@PLT
	movl	44(%rsp), %edx
	movl	40(%rsp), %esi
	movl	36(%rsp), %r8d
	movl	24(%rsp), %edi
	jmp	.L93
.L137:
	movl	$0, tmp(%rip)
	jmp	.L96
.L141:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	tmp
	.bss
	.align 4
	.type	tmp, @object
	.size	tmp, 4
tmp:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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	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	used
	.align 32
	.type	used, @object
	.size	used, 80
used:
	.zero	80
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	1
	.long	1
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	-640172613
	.long	1037794527
	.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
	.type	dragon.part.0, @function
dragon.part.0:
.LFB41:
	.cfi_startproc
	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
	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
	movl	n(%rip), %r14d
	testl	%r14d, %r14d
	jle	.L2
	movl	%edi, %eax
	leal	-1(%r14), %edi
	movapd	%xmm0, %xmm3
	movl	%esi, %edx
	cmpl	$2, %edi
	jbe	.L29
	movl	%r14d, %ecx
	pxor	%xmm1, %xmm1
	movdqa	%xmm1, %xmm0
	shrl	$2, %ecx
	pcmpeqd	used(%rip), %xmm0
	pandn	.LC0(%rip), %xmm0
	cmpl	$1, %ecx
	je	.L4
	movdqa	%xmm1, %xmm2
	pcmpeqd	16+used(%rip), %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$2, %ecx
	je	.L4
	movdqa	%xmm1, %xmm2
	pcmpeqd	32+used(%rip), %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$3, %ecx
	je	.L4
	movdqa	%xmm1, %xmm2
	pcmpeqd	48+used(%rip), %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$4, %ecx
	je	.L4
	movdqa	%xmm1, %xmm2
	pcmpeqd	64+used(%rip), %xmm2
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
.L4:
	movdqa	%xmm0, %xmm1
	movl	%r14d, %esi
	psrldq	$8, %xmm1
	andl	$-4, %esi
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	testb	$3, %r14b
	je	.L5
.L3:
	movslq	%esi, %r8
	leaq	used(%rip), %r9
	cmpl	$1, (%r9,%r8,4)
	leal	1(%rsi), %r8d
	sbbl	$-1, %ecx
	cmpl	%r14d, %r8d
	jge	.L5
	movslq	%r8d, %r8
	cmpl	$1, (%r9,%r8,4)
	sbbl	$-1, %ecx
	addl	$2, %esi
	cmpl	%esi, %r14d
	jle	.L5
	movslq	%esi, %rsi
	cmpl	$1, (%r9,%rsi,4)
	sbbl	$-1, %ecx
.L5:
	cmpl	%r14d, %ecx
	je	.L10
	leaq	used(%rip), %r15
	leaq	cx(%rip), %rcx
	pxor	%xmm2, %xmm2
	movsd	.LC2(%rip), %xmm4
	leaq	cy(%rip), %r8
	leaq	4(%r15), %rsi
	movq	%rcx, %r12
	movq	%r15, %rbx
	movq	%r8, %rbp
	leaq	(%rsi,%rdi,4), %r13
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L22:
	addq	$4, %rbx
	addq	$4, %r12
	addq	$4, %rbp
	cmpq	%rbx, %r13
	je	.L57
.L13:
	movl	(%rbx), %r9d
	testl	%r9d, %r9d
	jne	.L22
	movl	(%r12), %edi
	movl	0(%rbp), %esi
	movl	%eax, %r9d
	movl	%edx, %r10d
	pxor	%xmm0, %xmm0
	subl	%edi, %r9d
	subl	%esi, %r10d
	imull	%r9d, %r9d
	imull	%r10d, %r10d
	addl	%r10d, %r9d
	cvtsi2sdl	%r9d, %xmm0
	ucomisd	%xmm0, %xmm2
	ja	.L50
	sqrtsd	%xmm0, %xmm0
.L17:
	movl	dx(%rip), %r9d
	addsd	%xmm3, %xmm0
	subl	%edi, %r9d
	movl	dy(%rip), %edi
	imull	%r9d, %r9d
	movapd	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	subl	%esi, %edi
	addsd	%xmm4, %xmm1
	imull	%edi, %edi
	addl	%edi, %r9d
	cvtsi2sdl	%r9d, %xmm0
	ucomisd	%xmm0, %xmm2
	ja	.L51
	sqrtsd	%xmm0, %xmm0
.L20:
	comisd	%xmm0, %xmm1
	jbe	.L22
.L1:
	addq	$40, %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
.L57:
	.cfi_restore_state
	movl	(%r15), %edi
	xorl	%ebx, %ebx
	testl	%edi, %edi
	je	.L58
	.p2align 4,,10
	.p2align 3
.L23:
	addq	$1, %rbx
	addq	$4, %r15
	cmpl	%ebx, %r14d
	jle	.L1
	movl	(%r15), %edi
	testl	%edi, %edi
	jne	.L23
.L58:
	movl	(%rcx,%rbx,4), %edi
	movl	(%r8,%rbx,4), %ebp
	movl	%eax, %esi
	movl	%edx, %r9d
	pxor	%xmm0, %xmm0
	pxor	%xmm5, %xmm5
	movl	$1, (%r15)
	subl	%edi, %esi
	subl	%ebp, %r9d
	imull	%esi, %esi
	imull	%r9d, %r9d
	addl	%r9d, %esi
	cvtsi2sdl	%esi, %xmm0
	ucomisd	%xmm0, %xmm5
	ja	.L52
	sqrtsd	%xmm0, %xmm0
.L26:
	movl	tmp(%rip), %esi
	testl	%esi, %esi
	jne	.L27
	addsd	%xmm3, %xmm0
	movl	%ebp, %esi
	movl	%edx, 16(%rsp)
	movl	%eax, 8(%rsp)
	movsd	%xmm3, (%rsp)
	call	dragon.part.0
	movl	n(%rip), %r14d
	movl	16(%rsp), %edx
	leaq	cy(%rip), %r8
	movl	8(%rsp), %eax
	movsd	(%rsp), %xmm3
	leaq	cx(%rip), %rcx
.L27:
	movl	$0, (%r15)
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L2:
	jne	.L1
.L10:
	movl	$1, tmp(%rip)
	addq	$40, %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
.L29:
	.cfi_restore_state
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	jmp	.L3
.L51:
	movl	%edx, 24(%rsp)
	movl	%eax, 16(%rsp)
	movsd	%xmm3, 8(%rsp)
	movsd	%xmm1, (%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movl	24(%rsp), %edx
	pxor	%xmm2, %xmm2
	movsd	8(%rsp), %xmm3
	movsd	(%rsp), %xmm1
	leaq	cy(%rip), %r8
	leaq	cx(%rip), %rcx
	movq	%rax, %xmm4
	movl	16(%rsp), %eax
	jmp	.L20
.L50:
	movl	%edx, 28(%rsp)
	movl	%eax, 24(%rsp)
	movl	%esi, 8(%rsp)
	movl	%edi, (%rsp)
	movsd	%xmm3, 16(%rsp)
	call	sqrt@PLT
	movl	28(%rsp), %edx
	movl	(%rsp), %edi
	pxor	%xmm2, %xmm2
	movq	.LC2(%rip), %rax
	movsd	16(%rsp), %xmm3
	leaq	cy(%rip), %r8
	leaq	cx(%rip), %rcx
	movl	8(%rsp), %esi
	movq	%rax, %xmm4
	movl	24(%rsp), %eax
	jmp	.L17
.L52:
	movl	%edx, 24(%rsp)
	movl	%eax, 16(%rsp)
	movl	%edi, (%rsp)
	movsd	%xmm3, 8(%rsp)
	call	sqrt@PLT
	movl	24(%rsp), %edx
	movl	16(%rsp), %eax
	leaq	cy(%rip), %r8
	movsd	8(%rsp), %xmm3
	movl	(%rsp), %edi
	leaq	cx(%rip), %rcx
	jmp	.L26
	.cfi_endproc
.LFE41:
	.size	dragon.part.0, .-dragon.part.0
	.p2align 4
	.globl	dragon
	.type	dragon, @function
dragon:
.LFB39:
	.cfi_startproc
	endbr64
	movl	tmp(%rip), %eax
	testl	%eax, %eax
	jne	.L59
	jmp	dragon.part.0
	.p2align 4,,10
	.p2align 3
.L59:
	ret
	.cfi_endproc
.LFE39:
	.size	dragon, .-dragon
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"%d %d %d %d %d"
.LC4:
	.string	"%d %d"
.LC5:
	.string	"YES"
.LC6:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	52(%rsp), %rax
	movq	%rax, 16(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L62:
	movq	16(%rsp), %rcx
	movq	8(%rsp), %rdx
	xorl	%eax, %eax
	leaq	dy(%rip), %r9
	leaq	dx(%rip), %r8
	leaq	n(%rip), %rsi
	leaq	.LC3(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	n(%rip), %ecx
	testl	%ecx, %ecx
	jne	.L135
	movl	48(%rsp), %eax
	orl	52(%rsp), %eax
	orl	dx(%rip), %eax
	orl	dy(%rip), %eax
	je	.L136
.L67:
	movl	$1, tmp(%rip)
.L78:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L62
	.p2align 4,,10
	.p2align 3
.L135:
	jle	.L137
	leaq	cx(%rip), %r13
	xorl	%r14d, %r14d
	leaq	cy(%rip), %r12
	movq	%r13, %r15
	leaq	.LC4(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L68:
	leaq	(%r12,%r14,4), %rdx
	movq	%r15, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %ebp
	addq	$1, %r14
	addq	$4, %r15
	cmpl	%r14d, %ebp
	jg	.L68
	movl	48(%rsp), %r14d
	movl	52(%rsp), %r15d
	testl	%ebp, %ebp
	jle	.L69
	movl	%ebp, %edx
	leaq	used(%rip), %rdi
	xorl	%esi, %esi
	salq	$2, %rdx
	call	memset@PLT
	movl	$0, tmp(%rip)
	movq	%rax, %rdi
	leal	-1(%rbp), %eax
	cmpl	$2, %eax
	jbe	.L138
	movl	%ebp, %eax
	pxor	%xmm1, %xmm1
	movdqa	%xmm1, %xmm0
	shrl	$2, %eax
	pcmpeqd	used(%rip), %xmm0
	pandn	.LC0(%rip), %xmm0
	cmpl	$1, %eax
	je	.L77
	movdqa	%xmm1, %xmm2
	pcmpeqd	16+used(%rip), %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$2, %eax
	je	.L77
	movdqa	%xmm1, %xmm2
	pcmpeqd	32+used(%rip), %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$3, %eax
	je	.L77
	movdqa	%xmm1, %xmm2
	pcmpeqd	48+used(%rip), %xmm2
	pcmpeqd	%xmm1, %xmm2
	psubd	%xmm2, %xmm0
	cmpl	$4, %eax
	je	.L77
	movdqa	%xmm1, %xmm2
	pcmpeqd	64+used(%rip), %xmm2
	pcmpeqd	%xmm2, %xmm1
	psubd	%xmm1, %xmm0
.L77:
	movdqa	%xmm0, %xmm1
	movl	%ebp, %edx
	psrldq	$8, %xmm1
	andl	$-4, %edx
	paddd	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	psrldq	$4, %xmm1
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	testb	$3, %bpl
	je	.L72
.L70:
	movslq	%edx, %rsi
	cmpl	$1, (%rdi,%rsi,4)
	leal	1(%rdx), %esi
	sbbl	$-1, %eax
	cmpl	%esi, %ebp
	jle	.L72
	movslq	%esi, %rsi
	cmpl	$1, (%rdi,%rsi,4)
	sbbl	$-1, %eax
	addl	$2, %edx
	cmpl	%edx, %ebp
	jle	.L72
	movslq	%edx, %rdx
	cmpl	$1, (%rdi,%rdx,4)
	sbbl	$-1, %eax
.L72:
	cmpl	%eax, %ebp
	je	.L67
	movsd	.LC2(%rip), %xmm2
	xorl	%ebx, %ebx
	jmp	.L80
	.p2align 4,,10
	.p2align 3
.L89:
	addq	$1, %rbx
	cmpl	%ebx, %ebp
	jle	.L139
.L80:
	movl	(%rdi,%rbx,4), %edx
	testl	%edx, %edx
	jne	.L89
	movl	0(%r13,%rbx,4), %edx
	movl	(%r12,%rbx,4), %ecx
	movl	%r14d, %eax
	movl	%r15d, %esi
	pxor	%xmm0, %xmm0
	pxor	%xmm3, %xmm3
	subl	%edx, %eax
	subl	%ecx, %esi
	imull	%eax, %eax
	imull	%esi, %esi
	addl	%esi, %eax
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm3
	ja	.L128
	sqrtsd	%xmm0, %xmm0
	movapd	%xmm3, %xmm4
.L84:
	movl	dx(%rip), %eax
	addsd	%xmm4, %xmm0
	subl	%edx, %eax
	movl	dy(%rip), %edx
	imull	%eax, %eax
	movapd	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	subl	%ecx, %edx
	addsd	%xmm2, %xmm1
	imull	%edx, %edx
	addl	%edx, %eax
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm4
	ja	.L129
	sqrtsd	%xmm0, %xmm0
.L87:
	comisd	%xmm0, %xmm1
	jbe	.L89
.L96:
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L62
	.p2align 4,,10
	.p2align 3
.L139:
	xorl	%ebx, %ebx
	leaq	used(%rip), %rax
	movl	%ebp, %edx
	xorl	%esi, %esi
	movq	%rbx, %rbp
	movq	%rax, %rbx
.L95:
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	.L140
.L90:
	addq	$1, %rbp
	addq	$4, %rbx
	cmpl	%ebp, %edx
	jg	.L95
	testl	%esi, %esi
	jne	.L78
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L62
	.p2align 4,,10
	.p2align 3
.L140:
	movl	0(%r13,%rbp,4), %edi
	movl	(%r12,%rbp,4), %r8d
	movl	%r14d, %eax
	movl	%r15d, %ecx
	pxor	%xmm0, %xmm0
	pxor	%xmm6, %xmm6
	movl	$1, (%rbx)
	subl	%edi, %eax
	subl	%r8d, %ecx
	imull	%eax, %eax
	imull	%ecx, %ecx
	addl	%ecx, %eax
	cvtsi2sdl	%eax, %xmm0
	ucomisd	%xmm0, %xmm6
	ja	.L130
	sqrtsd	%xmm0, %xmm0
.L93:
	testl	%esi, %esi
	jne	.L94
	pxor	%xmm7, %xmm7
	movl	%r8d, %esi
	addsd	%xmm7, %xmm0
	call	dragon.part.0
	movl	n(%rip), %edx
	movl	tmp(%rip), %esi
.L94:
	movl	$0, (%rbx)
	jmp	.L90
.L138:
	xorl	%eax, %eax
	xorl	%edx, %edx
	jmp	.L70
.L69:
	movl	$0, tmp(%rip)
	je	.L67
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
	jmp	.L62
.L136:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L141
	addq	$72, %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
.L128:
	.cfi_restore_state
	movl	%ecx, 36(%rsp)
	movl	%edx, 24(%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movl	36(%rsp), %ecx
	leaq	used(%rip), %rdi
	movl	24(%rsp), %edx
	pxor	%xmm4, %xmm4
	movq	%rax, %xmm2
	jmp	.L84
.L129:
	movsd	%xmm1, 24(%rsp)
	call	sqrt@PLT
	movq	.LC2(%rip), %rax
	movsd	24(%rsp), %xmm1
	leaq	used(%rip), %rdi
	movq	%rax, %xmm2
	jmp	.L87
.L130:
	movl	%edx, 44(%rsp)
	movl	%esi, 40(%rsp)
	movl	%r8d, 36(%rsp)
	movl	%edi, 24(%rsp)
	call	sqrt@PLT
	movl	44(%rsp), %edx
	movl	40(%rsp), %esi
	movl	36(%rsp), %r8d
	movl	24(%rsp), %edi
	jmp	.L93
.L137:
	movl	$0, tmp(%rip)
	jmp	.L96
.L141:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	tmp
	.bss
	.align 4
	.type	tmp, @object
	.size	tmp, 4
tmp:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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	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	used
	.align 32
	.type	used, @object
	.size	used, 80
used:
	.zero	80
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	1
	.long	1
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	-640172613
	.long	1037794527
	.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<stdlib.h>
#include<math.h>
#define EPS (1e-10)

int used[20];
int cx[20],cy[20];
int dx,dy;
int n;
int tmp;

void dragon(double sum,int hx,int hy)
{
	int i,c;
	double r;
	
	if(tmp)return;
	
	c=0;
	for(i=0;i<n;i++){
		if(used[i])c++;
	}
	if(c==n){
		tmp = 1;
		return;
	}
	
	for(i=0;i<n;i++){
		if(used[i]==0){
		  r = sum + sqrt((hx-cx[i])*(hx-cx[i])+(hy-cy[i])*(hy-cy[i]));
			if(r + EPS > sqrt((dx-cx[i])*(dx-cx[i])+(dy-cy[i])*(dy-cy[i])) )return;
		}
	}
	
	for(i=0;i<n;i++){
		if(used[i]==0){
			used[i]=1;
			r = sum + sqrt((hx-cx[i])*(hx-cx[i])+(hy-cy[i])*(hy-cy[i]));
			dragon(r,cx[i],cy[i]);
			used[i]=0;
		}
	}
}



int main(void)
{
	int i,j,c;
	int hx,hy;




	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]);
		}
	  
		for(i=0;i<n;i++){
			used[i]=0;
		}
    
    tmp = 0;
    dragon(0.0,hx,hy);
		if(tmp){
			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<stdlib.h>
#include<math.h>
#define EPS (1e-10)

int used[20];
int cx[20],cy[20];
int dx,dy;
int n;
int tmp;

void dragon(double sum,int hx,int hy)
{
	int i,c;
	double r;
	
	if(tmp)return;
	
	c=0;
	for(i=0;i<n;i++){
		if(used[i])c++;
	}
	if(c==n){
		tmp = 1;
		return;
	}
	
	for(i=0;i<n;i++){
		if(used[i]==0){
		  r = sum + sqrt((hx-cx[i])*(hx-cx[i])+(hy-cy[i])*(hy-cy[i]));
			if(r + EPS > sqrt((dx-cx[i])*(dx-cx[i])+(dy-cy[i])*(dy-cy[i])) )return;
		}
	}
	
	for(i=0;i<n;i++){
		if(used[i]==0){
			used[i]=1;
			r = sum + sqrt((hx-cx[i])*(hx-cx[i])+(hy-cy[i])*(hy-cy[i]));
			dragon(r,cx[i],cy[i]);
			used[i]=0;
		}
	}
}



int main(void)
{
	int i,j,c;
	int hx,hy;




	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]);
		}
	  
		for(i=0;i<n;i++){
			used[i]=0;
		}
    
    tmp = 0;
    dragon(0.0,hx,hy);
		if(tmp){
			printf("YES\n");
		}else{
			printf("NO\n");
		}
		
	}
	return 0;
	
}	


		```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	used
	.bss
	.align 32
	.type	used, @object
	.size	used, 80
used:
	.zero	80
	.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	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	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	tmp
	.align 4
	.type	tmp, @object
	.size	tmp, 4
tmp:
	.zero	4
	.text
	.globl	dragon
	.type	dragon, @function
dragon:
.LFB6:
	.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
	movsd	%xmm0, -24(%rbp)
	movl	%edi, -28(%rbp)
	movl	%esi, -32(%rbp)
	movl	tmp(%rip), %eax
	testl	%eax, %eax
	jne	.L15
	movl	$0, -12(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L4
.L6:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	used(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L5
	addl	$1, -12(%rbp)
.L5:
	addl	$1, -16(%rbp)
.L4:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L6
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L7
	movl	$1, tmp(%rip)
	jmp	.L1
.L7:
	movl	$0, -16(%rbp)
	jmp	.L8
.L11:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	used(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L9
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	subl	%edx, %eax
	movl	%ecx, %esi
	imull	%eax, %esi
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%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	-24(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	-8(%rbp), %xmm1
	movsd	.LC0(%rip), %xmm0
	addsd	%xmm0, %xmm1
	movsd	%xmm1, -40(%rbp)
	movl	dx(%rip), %eax
	movl	-16(%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	-16(%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	-16(%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	-16(%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	-40(%rbp), %xmm1
	comisd	%xmm0, %xmm1
	ja	.L16
.L9:
	addl	$1, -16(%rbp)
.L8:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L11
	movl	$0, -16(%rbp)
	jmp	.L12
.L14:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	used(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L13
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	used(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	subl	%edx, %eax
	movl	%ecx, %esi
	imull	%eax, %esi
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%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	-24(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-8(%rbp), %rax
	movl	%ecx, %esi
	movl	%edx, %edi
	movq	%rax, %xmm0
	call	dragon
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	used(%rip), %rax
	movl	$0, (%rdx,%rax)
.L13:
	addl	$1, -16(%rbp)
.L12:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L14
	jmp	.L1
.L15:
	nop
	jmp	.L1
.L16:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	dragon, .-dragon
	.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:
.LFB7:
	.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
.L26:
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	leaq	dy(%rip), %r9
	leaq	dx(%rip), %r8
	movq	%rdx, %rcx
	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	.L18
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	jne	.L18
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jne	.L18
	movl	dx(%rip), %eax
	testl	%eax, %eax
	jne	.L18
	movl	dy(%rip), %eax
	testl	%eax, %eax
	je	.L30
.L18:
	movl	$0, -12(%rbp)
	jmp	.L20
.L21:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	addq	%rax, %rdx
	movl	-12(%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
	addl	$1, -12(%rbp)
.L20:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L21
	movl	$0, -12(%rbp)
	jmp	.L22
.L23:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	used(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L22:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L23
	movl	$0, tmp(%rip)
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	movq	.LC3(%rip), %rax
	movq	%rax, %xmm0
	call	dragon
	movl	tmp(%rip), %eax
	testl	%eax, %eax
	je	.L24
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L26
.L24:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L26
.L30:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	-640172613
	.long	1037794527
	.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	used
	.bss
	.align 32
	.type	used, @object
	.size	used, 80
used:
	.zero	80
	.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	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	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	tmp
	.align 4
	.type	tmp, @object
	.size	tmp, 4
tmp:
	.zero	4
	.text
	.globl	dragon
	.type	dragon, @function
dragon:
.LFB6:
	.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
	movsd	%xmm0, -24(%rbp)
	movl	%edi, -28(%rbp)
	movl	%esi, -32(%rbp)
	movl	tmp(%rip), %eax
	testl	%eax, %eax
	jne	.L15
	movl	$0, -12(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L4
.L6:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	used(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L5
	addl	$1, -12(%rbp)
.L5:
	addl	$1, -16(%rbp)
.L4:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L6
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jne	.L7
	movl	$1, tmp(%rip)
	jmp	.L1
.L7:
	movl	$0, -16(%rbp)
	jmp	.L8
.L11:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	used(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L9
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	subl	%edx, %eax
	movl	%ecx, %esi
	imull	%eax, %esi
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%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	-24(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movsd	-8(%rbp), %xmm1
	movsd	.LC0(%rip), %xmm0
	addsd	%xmm0, %xmm1
	movsd	%xmm1, -40(%rbp)
	movl	dx(%rip), %eax
	movl	-16(%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	-16(%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	-16(%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	-16(%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	-40(%rbp), %xmm1
	comisd	%xmm0, %xmm1
	ja	.L16
.L9:
	addl	$1, -16(%rbp)
.L8:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L11
	movl	$0, -16(%rbp)
	jmp	.L12
.L14:
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	used(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	jne	.L13
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	used(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	subl	%edx, %eax
	movl	%ecx, %esi
	imull	%eax, %esi
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%rbp), %eax
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-32(%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	-24(%rbp), %xmm1
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -8(%rbp)
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cx(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-8(%rbp), %rax
	movl	%ecx, %esi
	movl	%edx, %edi
	movq	%rax, %xmm0
	call	dragon
	movl	-16(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	used(%rip), %rax
	movl	$0, (%rdx,%rax)
.L13:
	addl	$1, -16(%rbp)
.L12:
	movl	n(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L14
	jmp	.L1
.L15:
	nop
	jmp	.L1
.L16:
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	dragon, .-dragon
	.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:
.LFB7:
	.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
.L26:
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	leaq	dy(%rip), %r9
	leaq	dx(%rip), %r8
	movq	%rdx, %rcx
	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	.L18
	movl	-20(%rbp), %eax
	testl	%eax, %eax
	jne	.L18
	movl	-16(%rbp), %eax
	testl	%eax, %eax
	jne	.L18
	movl	dx(%rip), %eax
	testl	%eax, %eax
	jne	.L18
	movl	dy(%rip), %eax
	testl	%eax, %eax
	je	.L30
.L18:
	movl	$0, -12(%rbp)
	jmp	.L20
.L21:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	cy(%rip), %rax
	addq	%rax, %rdx
	movl	-12(%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
	addl	$1, -12(%rbp)
.L20:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L21
	movl	$0, -12(%rbp)
	jmp	.L22
.L23:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	used(%rip), %rax
	movl	$0, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L22:
	movl	n(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L23
	movl	$0, tmp(%rip)
	movl	-16(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	movq	.LC3(%rip), %rax
	movq	%rax, %xmm0
	call	dragon
	movl	tmp(%rip), %eax
	testl	%eax, %eax
	je	.L24
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L26
.L24:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L26
.L30:
	nop
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	-640172613
	.long	1037794527
	.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:
