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 <string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define INF ((1LL<<62)-(1LL<<31))
#define f(x1,y1,x2,y2)(a[x2][y2]-a[x1][y2]-a[x2][y1]+a[x1][y1])
int upll(const void*a, const void*b){return*(ll*)a<*(ll*)b?-1:*(ll*)a>*(ll*)b?1:0;}
void sortup(ll*a,int n){qsort(a,n,sizeof(ll),upll);}

int uniquell(ll*p,ll*ans,int cnt){
	ll*a=malloc(sizeof(ll)*cnt);
	memcpy(a,p,sizeof(ll)*cnt);
	sortup(a,cnt);
	int c=0;
	ans[0]=a[0];
	rep(i,1,cnt)if(a[i]!=ans[c])ans[++c]=a[i];
	return c+1;
}

//座圧2
//uniquell(a,comp,n)でcompに昇順の配列を作る
ll cocompf(ll n,ll*comp,ll compcnt){
	//comp[i]<=n<comp[i+1]なるiを返す
	ll l=0,r=compcnt;
	while(r-l>1){
		ll m=(l+r)/2;
		if(comp[m]<=n)l=m;
		else r=m;
	}
	return l;
}

int a[5010][5010];
ll x[5010],y[5010];
ll cx[5010],cy[5010];

int main(){
	int n,m;
	scanf("%d%d",&n,&m);
	rep(i,0,n)scanf("%lld%lld",x+i,y+i);
	x[n]=y[n]=-INF;
	x[n+1]=y[n+1]=INF;
	int xcnt=uniquell(x,cx,n+2);
	int ycnt=uniquell(y,cy,n+2);
	
	rep(i,0,n){
		int pp=cocompf(x[i],cx,xcnt)+1;
		int qq=cocompf(y[i],cy,ycnt)+1;
		a[pp][qq]++;
	}
	rep(i,0,xcnt+5)rep(j,0,ycnt+5)a[i][j+1]+=a[i][j];
	rep(j,0,ycnt+5)rep(i,0,xcnt+5)a[i+1][j]+=a[i][j];
	
	rep(_,0,m){
		ll p,q,r,s;
		scanf("%lld%lld%lld%lld",&p,&q,&r,&s);
		int x1=cocompf(p-1,cx,xcnt)+1;
		int y1=cocompf(q-1,cy,ycnt)+1;
		int x2=cocompf(r,cx,xcnt)+1;
		int y2=cocompf(s,cy,ycnt)+1;
		printf("%lld\n",f(x1,y1,x2,y2));
	}
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	upll
	.type	upll, @function
upll:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jl	.L2
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	setg	%al
	movzbl	%al, %eax
	jmp	.L4
.L2:
	movl	$-1, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	upll, .-upll
	.globl	sortup
	.type	sortup, @function
sortup:
.LFB7:
	.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
	movq	%rdi, -8(%rbp)
	movl	%esi, -12(%rbp)
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movq	-8(%rbp), %rax
	leaq	upll(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sortup, .-sortup
	.globl	uniquell
	.type	uniquell, @function
uniquell:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movl	%edx, -52(%rbp)
	movl	-52(%rbp), %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rcx
	movq	-8(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	-52(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	sortup
	movl	$0, -20(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-48(%rbp), %rax
	movq	%rdx, (%rax)
	movq	$1, -16(%rbp)
	jmp	.L7
.L9:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	je	.L8
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	addl	$1, -20(%rbp)
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-48(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
.L8:
	addq	$1, -16(%rbp)
.L7:
	movl	-52(%rbp), %eax
	cltq
	cmpq	%rax, -16(%rbp)
	jl	.L9
	movl	-20(%rbp), %eax
	addl	$1, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	uniquell, .-uniquell
	.globl	cocompf
	.type	cocompf, @function
cocompf:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%rdx, -56(%rbp)
	movq	$0, -24(%rbp)
	movq	-56(%rbp), %rax
	movq	%rax, -16(%rbp)
	jmp	.L12
.L14:
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L13
	movq	-8(%rbp), %rax
	movq	%rax, -24(%rbp)
	jmp	.L12
.L13:
	movq	-8(%rbp), %rax
	movq	%rax, -16(%rbp)
.L12:
	movq	-16(%rbp), %rax
	subq	-24(%rbp), %rax
	cmpq	$1, %rax
	jg	.L14
	movq	-24(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cocompf, .-cocompf
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 100400400
a:
	.zero	100400400
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 40080
x:
	.zero	40080
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 40080
y:
	.zero	40080
	.globl	cx
	.align 32
	.type	cx, @object
	.size	cx, 40080
cx:
	.zero	40080
	.globl	cy
	.align 32
	.type	cy, @object
	.size	cy, 40080
cy:
	.zero	40080
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%lld%lld%lld%lld"
.LC3:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$144, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-132(%rbp), %rdx
	leaq	-136(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -64(%rbp)
	jmp	.L17
.L18:
	movq	-64(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	addq	%rax, %rdx
	movq	-64(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	leaq	x(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -64(%rbp)
.L17:
	movl	-136(%rbp), %eax
	cltq
	cmpq	%rax, -64(%rbp)
	jl	.L18
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	y(%rip), %rdx
	movabsq	$-4611686016279904256, %rdi
	movq	%rdi, (%rcx,%rdx)
	movl	-136(%rbp), %edx
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	y(%rip), %rax
	movq	(%rcx,%rax), %rax
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	x(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-136(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	y(%rip), %rdx
	movabsq	$4611686016279904256, %rdi
	movq	%rdi, (%rcx,%rdx)
	movl	-136(%rbp), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	x(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-136(%rbp), %eax
	addl	$2, %eax
	movl	%eax, %edx
	leaq	cx(%rip), %rax
	movq	%rax, %rsi
	leaq	x(%rip), %rax
	movq	%rax, %rdi
	call	uniquell
	movl	%eax, -128(%rbp)
	movl	-136(%rbp), %eax
	addl	$2, %eax
	movl	%eax, %edx
	leaq	cy(%rip), %rax
	movq	%rax, %rsi
	leaq	y(%rip), %rax
	movq	%rax, %rdi
	call	uniquell
	movl	%eax, -124(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L19
.L20:
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	leaq	x(%rip), %rax
	movq	(%rcx,%rax), %rax
	leaq	cx(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	cocompf
	addl	$1, %eax
	movl	%eax, -104(%rbp)
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	leaq	y(%rip), %rax
	movq	(%rcx,%rax), %rax
	leaq	cy(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	cocompf
	addl	$1, %eax
	movl	%eax, -100(%rbp)
	movl	-100(%rbp), %eax
	movslq	%eax, %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$5010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-100(%rbp), %eax
	movslq	%eax, %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$5010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addq	$1, -56(%rbp)
.L19:
	movl	-136(%rbp), %eax
	cltq
	cmpq	%rax, -56(%rbp)
	jl	.L20
	movq	$0, -48(%rbp)
	jmp	.L21
.L24:
	movq	$0, -40(%rbp)
	jmp	.L22
.L23:
	movq	-40(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-48(%rbp), %rax
	imulq	$5010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movq	-48(%rbp), %rax
	imulq	$5010, %rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-40(%rbp), %rax
	leaq	1(%rax), %rsi
	addl	%edx, %ecx
	movq	-48(%rbp), %rax
	imulq	$5010, %rax, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addq	$1, -40(%rbp)
.L22:
	movl	-124(%rbp), %eax
	addl	$5, %eax
	cltq
	cmpq	%rax, -40(%rbp)
	jl	.L23
	addq	$1, -48(%rbp)
.L21:
	movl	-128(%rbp), %eax
	addl	$5, %eax
	cltq
	cmpq	%rax, -48(%rbp)
	jl	.L24
	movq	$0, -32(%rbp)
	jmp	.L25
.L28:
	movq	$0, -24(%rbp)
	jmp	.L26
.L27:
	movq	-24(%rbp), %rax
	addq	$1, %rax
	imulq	$5010, %rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movq	-24(%rbp), %rax
	imulq	$5010, %rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-24(%rbp), %rax
	addq	$1, %rax
	addl	%edx, %ecx
	imulq	$5010, %rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addq	$1, -24(%rbp)
.L26:
	movl	-128(%rbp), %eax
	addl	$5, %eax
	cltq
	cmpq	%rax, -24(%rbp)
	jl	.L27
	addq	$1, -32(%rbp)
.L25:
	movl	-124(%rbp), %eax
	addl	$5, %eax
	cltq
	cmpq	%rax, -32(%rbp)
	jl	.L28
	movq	$0, -16(%rbp)
	jmp	.L29
.L30:
	leaq	-72(%rbp), %rsi
	leaq	-80(%rbp), %rcx
	leaq	-88(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-128(%rbp), %eax
	cltq
	movq	-96(%rbp), %rdx
	leaq	-1(%rdx), %rcx
	movq	%rax, %rdx
	leaq	cx(%rip), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	cocompf
	addl	$1, %eax
	movl	%eax, -120(%rbp)
	movl	-124(%rbp), %eax
	cltq
	movq	-88(%rbp), %rdx
	leaq	-1(%rdx), %rcx
	movq	%rax, %rdx
	leaq	cy(%rip), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	cocompf
	addl	$1, %eax
	movl	%eax, -116(%rbp)
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	movq	-80(%rbp), %rax
	leaq	cx(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	cocompf
	addl	$1, %eax
	movl	%eax, -112(%rbp)
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	-72(%rbp), %rax
	leaq	cy(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	cocompf
	addl	$1, %eax
	movl	%eax, -108(%rbp)
	movl	-108(%rbp), %eax
	movslq	%eax, %rdx
	movl	-112(%rbp), %eax
	cltq
	imulq	$5010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-108(%rbp), %edx
	movslq	%edx, %rcx
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$5010, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	movl	-112(%rbp), %eax
	cltq
	imulq	$5010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	%eax, %ecx
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	movl	-120(%rbp), %eax
	cltq
	imulq	$5010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -16(%rbp)
.L29:
	movl	-132(%rbp), %eax
	cltq
	cmpq	%rax, -16(%rbp)
	jl	.L30
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.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	upll
	.type	upll, @function
upll:
.LFB51:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	movl	$-1, %edx
	setg	%al
	movzbl	%al, %eax
	cmovl	%edx, %eax
	ret
	.cfi_endproc
.LFE51:
	.size	upll, .-upll
	.p2align 4
	.globl	sortup
	.type	sortup, @function
sortup:
.LFB52:
	.cfi_startproc
	endbr64
	movslq	%esi, %rsi
	leaq	upll(%rip), %rcx
	movl	$8, %edx
	jmp	qsort@PLT
	.cfi_endproc
.LFE52:
	.size	sortup, .-sortup
	.p2align 4
	.globl	uniquell
	.type	uniquell, @function
uniquell:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edx, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	0(,%r15,8), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdi, %r13
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	malloc@PLT
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%rax, %rbx
	movq	%rax, %rdi
	call	memcpy@PLT
	movq	%rbx, %rdi
	movl	$8, %edx
	movq	%r15, %rsi
	leaq	upll(%rip), %rcx
	call	qsort@PLT
	movq	(%rbx), %rdi
	movq	%rdi, 0(%rbp)
	cmpl	$1, %r15d
	jle	.L12
	leaq	8(%rbx), %rdx
	leaq	(%rbx,%r14), %rsi
	xorl	%eax, %eax
.L11:
	movq	(%rdx), %rcx
	cmpq	%rdi, %rcx
	je	.L8
.L15:
	addl	$1, %eax
	addq	$8, %rdx
	movslq	%eax, %rdi
	movq	%rcx, 0(%rbp,%rdi,8)
	cmpq	%rsi, %rdx
	je	.L10
	movq	%rcx, %rdi
	movq	(%rdx), %rcx
	cmpq	%rdi, %rcx
	jne	.L15
.L8:
	addq	$8, %rdx
	cmpq	%rdx, %rsi
	jne	.L11
.L10:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	addl	$1, %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
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	movl	$1, %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
	.cfi_endproc
.LFE53:
	.size	uniquell, .-uniquell
	.p2align 4
	.globl	cocompf
	.type	cocompf, @function
cocompf:
.LFB54:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L19:
	leaq	(%r8,%rdx), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%rdi, (%rsi,%rax,8)
	cmovg	%rax, %rdx
	cmovle	%rax, %r8
.L18:
	movq	%rdx, %rax
	subq	%r8, %rax
	cmpq	$1, %rax
	jg	.L19
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE54:
	.size	cocompf, .-cocompf
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%lld%lld"
.LC3:
	.string	"%lld%lld%lld%lld"
.LC4:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	x(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	y(%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	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rdx
	leaq	32(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %eax
	movslq	%eax, %rdx
	testl	%eax, %eax
	jle	.L22
	movq	%r13, %rbp
	xorl	%ebx, %ebx
	leaq	y(%rip), %r12
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L23:
	leaq	(%r12,%rbx,8), %rdx
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	32(%rsp), %rdx
	addq	$1, %rbx
	addq	$8, %rbp
	movq	%rdx, %rax
	cmpq	%rbx, %rdx
	jg	.L23
.L22:
	movdqa	.LC2(%rip), %xmm0
	leaq	cx(%rip), %rbx
	movq	%r13, %rdi
	leaq	cy(%rip), %rbp
	movq	%rbx, %rsi
	movups	%xmm0, (%r12,%rdx,8)
	movups	%xmm0, 0(%r13,%rdx,8)
	leal	2(%rax), %edx
	call	uniquell
	movq	%rbp, %rsi
	movq	%r12, %rdi
	movl	%eax, (%rsp)
	movl	32(%rsp), %eax
	leal	2(%rax), %edx
	call	uniquell
	movslq	32(%rsp), %r10
	movl	%eax, 8(%rsp)
	testq	%r10, %r10
	jle	.L34
	movslq	(%rsp), %r15
	movslq	8(%rsp), %r11
	xorl	%r9d, %r9d
	leaq	a(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L33:
	movq	0(%r13,%r9,8), %rsi
	movq	%r15, %rcx
	xorl	%edx, %edx
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L29:
	leaq	(%rdx,%rcx), %rdi
	movq	%rdi, %rax
	shrq	$63, %rax
	addq	%rdi, %rax
	sarq	%rax
	cmpq	(%rbx,%rax,8), %rsi
	cmovl	%rax, %rcx
	cmovge	%rax, %rdx
.L28:
	movq	%rcx, %rax
	subq	%rdx, %rax
	cmpq	$1, %rax
	jg	.L29
	movq	(%r12,%r9,8), %rdi
	addl	$1, %edx
	movq	%r11, %rsi
	xorl	%ecx, %ecx
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L32:
	leaq	(%rcx,%rsi), %r8
	movq	%r8, %rax
	shrq	$63, %rax
	addq	%r8, %rax
	sarq	%rax
	cmpq	0(%rbp,%rax,8), %rdi
	cmovl	%rax, %rsi
	cmovge	%rax, %rcx
.L31:
	movq	%rsi, %rax
	subq	%rcx, %rax
	cmpq	$1, %rax
	jg	.L32
	movslq	%edx, %rax
	addl	$1, %ecx
	addq	$1, %r9
	imulq	$5010, %rax, %rax
	movslq	%ecx, %rcx
	addq	%rcx, %rax
	addl	$1, (%r14,%rax,4)
	cmpq	%r10, %r9
	jne	.L33
.L34:
	movl	8(%rsp), %edx
	movl	(%rsp), %r11d
	leal	5(%rdx), %eax
	movslq	%eax, %rsi
	cmpl	$-4, %r11d
	jl	.L25
	testl	%eax, %eax
	jle	.L25
	leaq	4+a(%rip), %rdi
	movslq	%edx, %rax
	movslq	%r11d, %r8
	leaq	20(%rdi), %rdx
	leaq	100200(%rdi), %r9
	leaq	(%rdx,%rax,4), %rcx
	imulq	$20040, %r8, %rax
	addq	%rax, %r9
	.p2align 4,,10
	.p2align 3
.L26:
	movl	-4(%rdi), %edx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L35:
	addl	(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rax, %rcx
	jne	.L35
	addq	$20040, %rdi
	addq	$20040, %rcx
	cmpq	%rdi, %r9
	jne	.L26
	leaq	-1(%rsi), %rax
	cmpq	$2, %rax
	jbe	.L83
	imulq	$20040, %r8, %rdi
	movq	%rsi, %rax
	leaq	a(%rip), %r14
	shrq	$2, %rax
	leaq	20040(%r14), %rdx
	salq	$4, %rax
	leaq	20040(%r14,%rax), %r9
	addq	$100200, %rdi
	.p2align 4,,10
	.p2align 3
.L37:
	leaq	-20040(%rdx), %rcx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L38:
	movdqu	(%rcx,%rax), %xmm0
	movdqu	(%rdx,%rax), %xmm1
	paddd	%xmm1, %xmm0
	movups	%xmm0, (%rdx,%rax)
	addq	$20040, %rax
	cmpq	%rax, %rdi
	jne	.L38
	addq	$16, %rdx
	cmpq	%rdx, %r9
	jne	.L37
	movq	%rsi, %r9
	andq	$-4, %r9
	testb	$3, %sil
	je	.L25
.L59:
	imulq	$5010, %r8, %rax
	leaq	100200+a(%rip), %rdx
	leaq	(%r14,%r9,4), %rdi
	addq	%r9, %rax
	leaq	(%rdx,%rax,4), %rcx
	.p2align 4,,10
	.p2align 3
.L42:
	movl	(%rdi), %edx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L41:
	addl	20040(%rax), %edx
	addq	$20040, %rax
	movl	%edx, (%rax)
	cmpq	%rax, %rcx
	jne	.L41
	addq	$1, %r9
	addq	$4, %rdi
	addq	$4, %rcx
	cmpq	%rsi, %r9
	jl	.L42
.L25:
	movl	36(%rsp), %eax
	testl	%eax, %eax
	jle	.L58
	leaq	64(%rsp), %rax
	movslq	8(%rsp), %r15
	movslq	(%rsp), %r13
	xorl	%r12d, %r12d
	movq	%rax, 24(%rsp)
	leaq	56(%rsp), %rax
	leaq	a(%rip), %r14
	movq	%rax, 16(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L57:
	movq	16(%rsp), %rcx
	movq	8(%rsp), %rdx
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	movq	(%rsp), %rsi
	movq	24(%rsp), %r8
	call	__isoc99_scanf@PLT
	movq	40(%rsp), %rsi
	movq	%r13, %rcx
	xorl	%edx, %edx
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L47:
	leaq	(%rdx,%rcx), %rdi
	movq	%rdi, %rax
	shrq	$63, %rax
	addq	%rdi, %rax
	sarq	%rax
	cmpq	(%rbx,%rax,8), %rsi
	cmovle	%rax, %rcx
	cmovg	%rax, %rdx
.L46:
	movq	%rcx, %rax
	subq	%rdx, %rax
	cmpq	$1, %rax
	jg	.L47
	movq	48(%rsp), %rsi
	addl	$1, %edx
	movq	%r15, %rcx
	xorl	%edi, %edi
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L50:
	leaq	(%rdi,%rcx), %r8
	movq	%r8, %rax
	shrq	$63, %rax
	addq	%r8, %rax
	sarq	%rax
	cmpq	0(%rbp,%rax,8), %rsi
	cmovle	%rax, %rcx
	cmovg	%rax, %rdi
.L49:
	movq	%rcx, %rax
	subq	%rdi, %rax
	cmpq	$1, %rax
	jg	.L50
	movq	56(%rsp), %r8
	addl	$1, %edi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L53:
	leaq	(%rcx,%rsi), %r9
	movq	%r9, %rax
	shrq	$63, %rax
	addq	%r9, %rax
	sarq	%rax
	cmpq	(%rbx,%rax,8), %r8
	cmovl	%rax, %rsi
	cmovge	%rax, %rcx
.L52:
	movq	%rsi, %rax
	subq	%rcx, %rax
	cmpq	$1, %rax
	jg	.L53
	movq	64(%rsp), %r10
	addl	$1, %ecx
	movq	%r15, %r8
	xorl	%esi, %esi
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L56:
	leaq	(%rsi,%r8), %r9
	movq	%r9, %rax
	shrq	$63, %rax
	addq	%r9, %rax
	sarq	%rax
	cmpq	0(%rbp,%rax,8), %r10
	cmovl	%rax, %r8
	cmovge	%rax, %rsi
.L55:
	movq	%r8, %rax
	subq	%rsi, %rax
	cmpq	$1, %rax
	jg	.L56
	movslq	%edx, %rdx
	movslq	%ecx, %rcx
	addl	$1, %esi
	movslq	%edi, %rdi
	imulq	$5010, %rdx, %rax
	movslq	%esi, %rsi
	addq	$1, %r12
	imulq	$5010, %rcx, %rcx
	leaq	(%rcx,%rsi), %r8
	addq	%rax, %rsi
	addq	%rdi, %rcx
	addq	%rdi, %rax
	movl	(%r14,%r8,4), %edx
	movl	$1, %edi
	subl	(%r14,%rsi,4), %edx
	leaq	.LC4(%rip), %rsi
	subl	(%r14,%rcx,4), %edx
	addl	(%r14,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movslq	36(%rsp), %rax
	cmpq	%r12, %rax
	jg	.L57
.L58:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L84
	addq	$88, %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
.L83:
	.cfi_restore_state
	xorl	%r9d, %r9d
	leaq	a(%rip), %r14
	jmp	.L59
.L84:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE55:
	.size	main, .-main
	.globl	cy
	.bss
	.align 32
	.type	cy, @object
	.size	cy, 40080
cy:
	.zero	40080
	.globl	cx
	.align 32
	.type	cx, @object
	.size	cx, 40080
cx:
	.zero	40080
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 40080
y:
	.zero	40080
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 40080
x:
	.zero	40080
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 100400400
a:
	.zero	100400400
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	-4611686016279904256
	.quad	4611686016279904256
	.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	upll
	.type	upll, @function
upll:
.LFB51:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	movl	$-1, %edx
	setg	%al
	movzbl	%al, %eax
	cmovl	%edx, %eax
	ret
	.cfi_endproc
.LFE51:
	.size	upll, .-upll
	.p2align 4
	.globl	sortup
	.type	sortup, @function
sortup:
.LFB52:
	.cfi_startproc
	endbr64
	movslq	%esi, %rsi
	leaq	upll(%rip), %rcx
	movl	$8, %edx
	jmp	qsort@PLT
	.cfi_endproc
.LFE52:
	.size	sortup, .-sortup
	.p2align 4
	.globl	uniquell
	.type	uniquell, @function
uniquell:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edx, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	0(,%r15,8), %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdi, %r13
	movq	%r14, %rdi
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	malloc@PLT
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%rax, %rbx
	movq	%rax, %rdi
	call	memcpy@PLT
	movq	%rbx, %rdi
	movl	$8, %edx
	movq	%r15, %rsi
	leaq	upll(%rip), %rcx
	call	qsort@PLT
	movq	(%rbx), %rdi
	movq	%rdi, 0(%rbp)
	cmpl	$1, %r15d
	jle	.L12
	leaq	8(%rbx), %rdx
	leaq	(%rbx,%r14), %rsi
	xorl	%eax, %eax
.L11:
	movq	(%rdx), %rcx
	cmpq	%rdi, %rcx
	je	.L8
.L15:
	addl	$1, %eax
	addq	$8, %rdx
	movslq	%eax, %rdi
	movq	%rcx, 0(%rbp,%rdi,8)
	cmpq	%rsi, %rdx
	je	.L10
	movq	%rcx, %rdi
	movq	(%rdx), %rcx
	cmpq	%rdi, %rcx
	jne	.L15
.L8:
	addq	$8, %rdx
	cmpq	%rdx, %rsi
	jne	.L11
.L10:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	addl	$1, %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
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	addq	$8, %rsp
	.cfi_def_cfa_offset 56
	movl	$1, %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
	.cfi_endproc
.LFE53:
	.size	uniquell, .-uniquell
	.p2align 4
	.globl	cocompf
	.type	cocompf, @function
cocompf:
.LFB54:
	.cfi_startproc
	endbr64
	xorl	%r8d, %r8d
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L19:
	leaq	(%r8,%rdx), %rcx
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rcx, %rax
	sarq	%rax
	cmpq	%rdi, (%rsi,%rax,8)
	cmovg	%rax, %rdx
	cmovle	%rax, %r8
.L18:
	movq	%rdx, %rax
	subq	%r8, %rax
	cmpq	$1, %rax
	jg	.L19
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE54:
	.size	cocompf, .-cocompf
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%lld%lld"
.LC3:
	.string	"%lld%lld%lld%lld"
.LC4:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB55:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	leaq	x(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	y(%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	$88, %rsp
	.cfi_def_cfa_offset 144
	movq	%fs:40, %rax
	movq	%rax, 72(%rsp)
	xorl	%eax, %eax
	leaq	36(%rsp), %rdx
	leaq	32(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	32(%rsp), %eax
	movslq	%eax, %rdx
	testl	%eax, %eax
	jle	.L22
	movq	%r13, %rbp
	xorl	%ebx, %ebx
	leaq	y(%rip), %r12
	leaq	.LC1(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L23:
	leaq	(%r12,%rbx,8), %rdx
	movq	%rbp, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	32(%rsp), %rdx
	addq	$1, %rbx
	addq	$8, %rbp
	movq	%rdx, %rax
	cmpq	%rbx, %rdx
	jg	.L23
.L22:
	movdqa	.LC2(%rip), %xmm0
	leaq	cx(%rip), %rbx
	movq	%r13, %rdi
	leaq	cy(%rip), %rbp
	movq	%rbx, %rsi
	movups	%xmm0, (%r12,%rdx,8)
	movups	%xmm0, 0(%r13,%rdx,8)
	leal	2(%rax), %edx
	call	uniquell
	movq	%rbp, %rsi
	movq	%r12, %rdi
	movl	%eax, (%rsp)
	movl	32(%rsp), %eax
	leal	2(%rax), %edx
	call	uniquell
	movslq	32(%rsp), %r10
	movl	%eax, 8(%rsp)
	testq	%r10, %r10
	jle	.L34
	movslq	(%rsp), %r15
	movslq	8(%rsp), %r11
	xorl	%r9d, %r9d
	leaq	a(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L33:
	movq	0(%r13,%r9,8), %rsi
	movq	%r15, %rcx
	xorl	%edx, %edx
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L29:
	leaq	(%rdx,%rcx), %rdi
	movq	%rdi, %rax
	shrq	$63, %rax
	addq	%rdi, %rax
	sarq	%rax
	cmpq	(%rbx,%rax,8), %rsi
	cmovl	%rax, %rcx
	cmovge	%rax, %rdx
.L28:
	movq	%rcx, %rax
	subq	%rdx, %rax
	cmpq	$1, %rax
	jg	.L29
	movq	(%r12,%r9,8), %rdi
	addl	$1, %edx
	movq	%r11, %rsi
	xorl	%ecx, %ecx
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L32:
	leaq	(%rcx,%rsi), %r8
	movq	%r8, %rax
	shrq	$63, %rax
	addq	%r8, %rax
	sarq	%rax
	cmpq	0(%rbp,%rax,8), %rdi
	cmovl	%rax, %rsi
	cmovge	%rax, %rcx
.L31:
	movq	%rsi, %rax
	subq	%rcx, %rax
	cmpq	$1, %rax
	jg	.L32
	movslq	%edx, %rax
	addl	$1, %ecx
	addq	$1, %r9
	imulq	$5010, %rax, %rax
	movslq	%ecx, %rcx
	addq	%rcx, %rax
	addl	$1, (%r14,%rax,4)
	cmpq	%r10, %r9
	jne	.L33
.L34:
	movl	8(%rsp), %edx
	movl	(%rsp), %r11d
	leal	5(%rdx), %eax
	movslq	%eax, %rsi
	cmpl	$-4, %r11d
	jl	.L25
	testl	%eax, %eax
	jle	.L25
	leaq	4+a(%rip), %rdi
	movslq	%edx, %rax
	movslq	%r11d, %r8
	leaq	20(%rdi), %rdx
	leaq	100200(%rdi), %r9
	leaq	(%rdx,%rax,4), %rcx
	imulq	$20040, %r8, %rax
	addq	%rax, %r9
	.p2align 4,,10
	.p2align 3
.L26:
	movl	-4(%rdi), %edx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L35:
	addl	(%rax), %edx
	addq	$4, %rax
	movl	%edx, -4(%rax)
	cmpq	%rax, %rcx
	jne	.L35
	addq	$20040, %rdi
	addq	$20040, %rcx
	cmpq	%rdi, %r9
	jne	.L26
	leaq	-1(%rsi), %rax
	cmpq	$2, %rax
	jbe	.L83
	imulq	$20040, %r8, %rdi
	movq	%rsi, %rax
	leaq	a(%rip), %r14
	shrq	$2, %rax
	leaq	20040(%r14), %rdx
	salq	$4, %rax
	leaq	20040(%r14,%rax), %r9
	addq	$100200, %rdi
	.p2align 4,,10
	.p2align 3
.L37:
	leaq	-20040(%rdx), %rcx
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L38:
	movdqu	(%rcx,%rax), %xmm0
	movdqu	(%rdx,%rax), %xmm1
	paddd	%xmm1, %xmm0
	movups	%xmm0, (%rdx,%rax)
	addq	$20040, %rax
	cmpq	%rax, %rdi
	jne	.L38
	addq	$16, %rdx
	cmpq	%rdx, %r9
	jne	.L37
	movq	%rsi, %r9
	andq	$-4, %r9
	testb	$3, %sil
	je	.L25
.L59:
	imulq	$5010, %r8, %rax
	leaq	100200+a(%rip), %rdx
	leaq	(%r14,%r9,4), %rdi
	addq	%r9, %rax
	leaq	(%rdx,%rax,4), %rcx
	.p2align 4,,10
	.p2align 3
.L42:
	movl	(%rdi), %edx
	movq	%rdi, %rax
	.p2align 4,,10
	.p2align 3
.L41:
	addl	20040(%rax), %edx
	addq	$20040, %rax
	movl	%edx, (%rax)
	cmpq	%rax, %rcx
	jne	.L41
	addq	$1, %r9
	addq	$4, %rdi
	addq	$4, %rcx
	cmpq	%rsi, %r9
	jl	.L42
.L25:
	movl	36(%rsp), %eax
	testl	%eax, %eax
	jle	.L58
	leaq	64(%rsp), %rax
	movslq	8(%rsp), %r15
	movslq	(%rsp), %r13
	xorl	%r12d, %r12d
	movq	%rax, 24(%rsp)
	leaq	56(%rsp), %rax
	leaq	a(%rip), %r14
	movq	%rax, 16(%rsp)
	leaq	48(%rsp), %rax
	movq	%rax, 8(%rsp)
	leaq	40(%rsp), %rax
	movq	%rax, (%rsp)
	.p2align 4,,10
	.p2align 3
.L57:
	movq	16(%rsp), %rcx
	movq	8(%rsp), %rdx
	xorl	%eax, %eax
	leaq	.LC3(%rip), %rdi
	movq	(%rsp), %rsi
	movq	24(%rsp), %r8
	call	__isoc99_scanf@PLT
	movq	40(%rsp), %rsi
	movq	%r13, %rcx
	xorl	%edx, %edx
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L47:
	leaq	(%rdx,%rcx), %rdi
	movq	%rdi, %rax
	shrq	$63, %rax
	addq	%rdi, %rax
	sarq	%rax
	cmpq	(%rbx,%rax,8), %rsi
	cmovle	%rax, %rcx
	cmovg	%rax, %rdx
.L46:
	movq	%rcx, %rax
	subq	%rdx, %rax
	cmpq	$1, %rax
	jg	.L47
	movq	48(%rsp), %rsi
	addl	$1, %edx
	movq	%r15, %rcx
	xorl	%edi, %edi
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L50:
	leaq	(%rdi,%rcx), %r8
	movq	%r8, %rax
	shrq	$63, %rax
	addq	%r8, %rax
	sarq	%rax
	cmpq	0(%rbp,%rax,8), %rsi
	cmovle	%rax, %rcx
	cmovg	%rax, %rdi
.L49:
	movq	%rcx, %rax
	subq	%rdi, %rax
	cmpq	$1, %rax
	jg	.L50
	movq	56(%rsp), %r8
	addl	$1, %edi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L53:
	leaq	(%rcx,%rsi), %r9
	movq	%r9, %rax
	shrq	$63, %rax
	addq	%r9, %rax
	sarq	%rax
	cmpq	(%rbx,%rax,8), %r8
	cmovl	%rax, %rsi
	cmovge	%rax, %rcx
.L52:
	movq	%rsi, %rax
	subq	%rcx, %rax
	cmpq	$1, %rax
	jg	.L53
	movq	64(%rsp), %r10
	addl	$1, %ecx
	movq	%r15, %r8
	xorl	%esi, %esi
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L56:
	leaq	(%rsi,%r8), %r9
	movq	%r9, %rax
	shrq	$63, %rax
	addq	%r9, %rax
	sarq	%rax
	cmpq	0(%rbp,%rax,8), %r10
	cmovl	%rax, %r8
	cmovge	%rax, %rsi
.L55:
	movq	%r8, %rax
	subq	%rsi, %rax
	cmpq	$1, %rax
	jg	.L56
	movslq	%edx, %rdx
	movslq	%ecx, %rcx
	addl	$1, %esi
	movslq	%edi, %rdi
	imulq	$5010, %rdx, %rax
	movslq	%esi, %rsi
	addq	$1, %r12
	imulq	$5010, %rcx, %rcx
	leaq	(%rcx,%rsi), %r8
	addq	%rax, %rsi
	addq	%rdi, %rcx
	addq	%rdi, %rax
	movl	(%r14,%r8,4), %edx
	movl	$1, %edi
	subl	(%r14,%rsi,4), %edx
	leaq	.LC4(%rip), %rsi
	subl	(%r14,%rcx,4), %edx
	addl	(%r14,%rax,4), %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movslq	36(%rsp), %rax
	cmpq	%r12, %rax
	jg	.L57
.L58:
	movq	72(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L84
	addq	$88, %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
.L83:
	.cfi_restore_state
	xorl	%r9d, %r9d
	leaq	a(%rip), %r14
	jmp	.L59
.L84:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE55:
	.size	main, .-main
	.globl	cy
	.bss
	.align 32
	.type	cy, @object
	.size	cy, 40080
cy:
	.zero	40080
	.globl	cx
	.align 32
	.type	cx, @object
	.size	cx, 40080
cx:
	.zero	40080
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 40080
y:
	.zero	40080
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 40080
x:
	.zero	40080
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 100400400
a:
	.zero	100400400
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	-4611686016279904256
	.quad	4611686016279904256
	.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 <string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define INF ((1LL<<62)-(1LL<<31))
#define f(x1,y1,x2,y2)(a[x2][y2]-a[x1][y2]-a[x2][y1]+a[x1][y1])
int upll(const void*a, const void*b){return*(ll*)a<*(ll*)b?-1:*(ll*)a>*(ll*)b?1:0;}
void sortup(ll*a,int n){qsort(a,n,sizeof(ll),upll);}

int uniquell(ll*p,ll*ans,int cnt){
	ll*a=malloc(sizeof(ll)*cnt);
	memcpy(a,p,sizeof(ll)*cnt);
	sortup(a,cnt);
	int c=0;
	ans[0]=a[0];
	rep(i,1,cnt)if(a[i]!=ans[c])ans[++c]=a[i];
	return c+1;
}

//座圧2
//uniquell(a,comp,n)でcompに昇順の配列を作る
ll cocompf(ll n,ll*comp,ll compcnt){
	//comp[i]<=n<comp[i+1]なるiを返す
	ll l=0,r=compcnt;
	while(r-l>1){
		ll m=(l+r)/2;
		if(comp[m]<=n)l=m;
		else r=m;
	}
	return l;
}

int a[5010][5010];
ll x[5010],y[5010];
ll cx[5010],cy[5010];

int main(){
	int n,m;
	scanf("%d%d",&n,&m);
	rep(i,0,n)scanf("%lld%lld",x+i,y+i);
	x[n]=y[n]=-INF;
	x[n+1]=y[n+1]=INF;
	int xcnt=uniquell(x,cx,n+2);
	int ycnt=uniquell(y,cy,n+2);
	
	rep(i,0,n){
		int pp=cocompf(x[i],cx,xcnt)+1;
		int qq=cocompf(y[i],cy,ycnt)+1;
		a[pp][qq]++;
	}
	rep(i,0,xcnt+5)rep(j,0,ycnt+5)a[i][j+1]+=a[i][j];
	rep(j,0,ycnt+5)rep(i,0,xcnt+5)a[i+1][j]+=a[i][j];
	
	rep(_,0,m){
		ll p,q,r,s;
		scanf("%lld%lld%lld%lld",&p,&q,&r,&s);
		int x1=cocompf(p-1,cx,xcnt)+1;
		int y1=cocompf(q-1,cy,ycnt)+1;
		int x2=cocompf(r,cx,xcnt)+1;
		int y2=cocompf(s,cy,ycnt)+1;
		printf("%lld\n",f(x1,y1,x2,y2));
	}
}


5 5
10 5
-3 -8
2 11
6 0
-1 3
-3 1 3 13
-1 -1 9 9
-3 -8 10 11
0 0 5 5
-10 -9 15 10
 3 1
1 1
2 4
5 3
-1 0 5 5
 4 2
-1 1
0 1
4 0
2 1
-3 1 5 1
4 0 4 0
 2 3
0 0
0 0
-1 -1 1 1
0 0 2 2
1 2 4 4
 4 2
-1 1
0 1
4 0
2 1
-3 1 5 1
4 0 4 -1
 3 1
1 1
2 4
5 4
-1 0 0 5
 4 2
-1 1
0 1
5 0
2 1
-3 1 0 1
4 0 4 -1
 3 1
0 1
2 4
0 6
-1 0 0 5
 4 2
-1 1
0 1
5 -1
2 1
-3 1 0 0
4 0 4 -1
 3 1
1 1
2 6
5 3
0 0 5 5

2
2
5
0
4
 3
 3
1
 2
2
0
 3
0
 0
 2
0
 1
 0
0
 2

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 <string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define INF ((1LL<<62)-(1LL<<31))
#define f(x1,y1,x2,y2)(a[x2][y2]-a[x1][y2]-a[x2][y1]+a[x1][y1])
int upll(const void*a, const void*b){return*(ll*)a<*(ll*)b?-1:*(ll*)a>*(ll*)b?1:0;}
void sortup(ll*a,int n){qsort(a,n,sizeof(ll),upll);}

int uniquell(ll*p,ll*ans,int cnt){
	ll*a=malloc(sizeof(ll)*cnt);
	memcpy(a,p,sizeof(ll)*cnt);
	sortup(a,cnt);
	int c=0;
	ans[0]=a[0];
	rep(i,1,cnt)if(a[i]!=ans[c])ans[++c]=a[i];
	return c+1;
}

//座圧2
//uniquell(a,comp,n)でcompに昇順の配列を作る
ll cocompf(ll n,ll*comp,ll compcnt){
	//comp[i]<=n<comp[i+1]なるiを返す
	ll l=0,r=compcnt;
	while(r-l>1){
		ll m=(l+r)/2;
		if(comp[m]<=n)l=m;
		else r=m;
	}
	return l;
}

int a[5010][5010];
ll x[5010],y[5010];
ll cx[5010],cy[5010];

int main(){
	int n,m;
	scanf("%d%d",&n,&m);
	rep(i,0,n)scanf("%lld%lld",x+i,y+i);
	x[n]=y[n]=-INF;
	x[n+1]=y[n+1]=INF;
	int xcnt=uniquell(x,cx,n+2);
	int ycnt=uniquell(y,cy,n+2);
	
	rep(i,0,n){
		int pp=cocompf(x[i],cx,xcnt)+1;
		int qq=cocompf(y[i],cy,ycnt)+1;
		a[pp][qq]++;
	}
	rep(i,0,xcnt+5)rep(j,0,ycnt+5)a[i][j+1]+=a[i][j];
	rep(j,0,ycnt+5)rep(i,0,xcnt+5)a[i+1][j]+=a[i][j];
	
	rep(_,0,m){
		ll p,q,r,s;
		scanf("%lld%lld%lld%lld",&p,&q,&r,&s);
		int x1=cocompf(p-1,cx,xcnt)+1;
		int y1=cocompf(q-1,cy,ycnt)+1;
		int x2=cocompf(r,cx,xcnt)+1;
		int y2=cocompf(s,cy,ycnt)+1;
		printf("%lld\n",f(x1,y1,x2,y2));
	}
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	upll
	.type	upll, @function
upll:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jl	.L2
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	setg	%al
	movzbl	%al, %eax
	jmp	.L4
.L2:
	movl	$-1, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	upll, .-upll
	.globl	sortup
	.type	sortup, @function
sortup:
.LFB7:
	.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
	movq	%rdi, -8(%rbp)
	movl	%esi, -12(%rbp)
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movq	-8(%rbp), %rax
	leaq	upll(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sortup, .-sortup
	.globl	uniquell
	.type	uniquell, @function
uniquell:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movl	%edx, -52(%rbp)
	movl	-52(%rbp), %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rcx
	movq	-8(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	-52(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	sortup
	movl	$0, -20(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-48(%rbp), %rax
	movq	%rdx, (%rax)
	movq	$1, -16(%rbp)
	jmp	.L7
.L9:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	je	.L8
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	addl	$1, -20(%rbp)
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-48(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
.L8:
	addq	$1, -16(%rbp)
.L7:
	movl	-52(%rbp), %eax
	cltq
	cmpq	%rax, -16(%rbp)
	jl	.L9
	movl	-20(%rbp), %eax
	addl	$1, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	uniquell, .-uniquell
	.globl	cocompf
	.type	cocompf, @function
cocompf:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%rdx, -56(%rbp)
	movq	$0, -24(%rbp)
	movq	-56(%rbp), %rax
	movq	%rax, -16(%rbp)
	jmp	.L12
.L14:
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L13
	movq	-8(%rbp), %rax
	movq	%rax, -24(%rbp)
	jmp	.L12
.L13:
	movq	-8(%rbp), %rax
	movq	%rax, -16(%rbp)
.L12:
	movq	-16(%rbp), %rax
	subq	-24(%rbp), %rax
	cmpq	$1, %rax
	jg	.L14
	movq	-24(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cocompf, .-cocompf
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 100400400
a:
	.zero	100400400
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 40080
x:
	.zero	40080
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 40080
y:
	.zero	40080
	.globl	cx
	.align 32
	.type	cx, @object
	.size	cx, 40080
cx:
	.zero	40080
	.globl	cy
	.align 32
	.type	cy, @object
	.size	cy, 40080
cy:
	.zero	40080
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%lld%lld%lld%lld"
.LC3:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$144, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-132(%rbp), %rdx
	leaq	-136(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -64(%rbp)
	jmp	.L17
.L18:
	movq	-64(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	addq	%rax, %rdx
	movq	-64(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	leaq	x(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -64(%rbp)
.L17:
	movl	-136(%rbp), %eax
	cltq
	cmpq	%rax, -64(%rbp)
	jl	.L18
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	y(%rip), %rdx
	movabsq	$-4611686016279904256, %rdi
	movq	%rdi, (%rcx,%rdx)
	movl	-136(%rbp), %edx
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	y(%rip), %rax
	movq	(%rcx,%rax), %rax
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	x(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-136(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	y(%rip), %rdx
	movabsq	$4611686016279904256, %rdi
	movq	%rdi, (%rcx,%rdx)
	movl	-136(%rbp), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	x(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-136(%rbp), %eax
	addl	$2, %eax
	movl	%eax, %edx
	leaq	cx(%rip), %rax
	movq	%rax, %rsi
	leaq	x(%rip), %rax
	movq	%rax, %rdi
	call	uniquell
	movl	%eax, -128(%rbp)
	movl	-136(%rbp), %eax
	addl	$2, %eax
	movl	%eax, %edx
	leaq	cy(%rip), %rax
	movq	%rax, %rsi
	leaq	y(%rip), %rax
	movq	%rax, %rdi
	call	uniquell
	movl	%eax, -124(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L19
.L20:
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	leaq	x(%rip), %rax
	movq	(%rcx,%rax), %rax
	leaq	cx(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	cocompf
	addl	$1, %eax
	movl	%eax, -104(%rbp)
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	leaq	y(%rip), %rax
	movq	(%rcx,%rax), %rax
	leaq	cy(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	cocompf
	addl	$1, %eax
	movl	%eax, -100(%rbp)
	movl	-100(%rbp), %eax
	movslq	%eax, %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$5010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-100(%rbp), %eax
	movslq	%eax, %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$5010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addq	$1, -56(%rbp)
.L19:
	movl	-136(%rbp), %eax
	cltq
	cmpq	%rax, -56(%rbp)
	jl	.L20
	movq	$0, -48(%rbp)
	jmp	.L21
.L24:
	movq	$0, -40(%rbp)
	jmp	.L22
.L23:
	movq	-40(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-48(%rbp), %rax
	imulq	$5010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movq	-48(%rbp), %rax
	imulq	$5010, %rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-40(%rbp), %rax
	leaq	1(%rax), %rsi
	addl	%edx, %ecx
	movq	-48(%rbp), %rax
	imulq	$5010, %rax, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addq	$1, -40(%rbp)
.L22:
	movl	-124(%rbp), %eax
	addl	$5, %eax
	cltq
	cmpq	%rax, -40(%rbp)
	jl	.L23
	addq	$1, -48(%rbp)
.L21:
	movl	-128(%rbp), %eax
	addl	$5, %eax
	cltq
	cmpq	%rax, -48(%rbp)
	jl	.L24
	movq	$0, -32(%rbp)
	jmp	.L25
.L28:
	movq	$0, -24(%rbp)
	jmp	.L26
.L27:
	movq	-24(%rbp), %rax
	addq	$1, %rax
	imulq	$5010, %rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movq	-24(%rbp), %rax
	imulq	$5010, %rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-24(%rbp), %rax
	addq	$1, %rax
	addl	%edx, %ecx
	imulq	$5010, %rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addq	$1, -24(%rbp)
.L26:
	movl	-128(%rbp), %eax
	addl	$5, %eax
	cltq
	cmpq	%rax, -24(%rbp)
	jl	.L27
	addq	$1, -32(%rbp)
.L25:
	movl	-124(%rbp), %eax
	addl	$5, %eax
	cltq
	cmpq	%rax, -32(%rbp)
	jl	.L28
	movq	$0, -16(%rbp)
	jmp	.L29
.L30:
	leaq	-72(%rbp), %rsi
	leaq	-80(%rbp), %rcx
	leaq	-88(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-128(%rbp), %eax
	cltq
	movq	-96(%rbp), %rdx
	leaq	-1(%rdx), %rcx
	movq	%rax, %rdx
	leaq	cx(%rip), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	cocompf
	addl	$1, %eax
	movl	%eax, -120(%rbp)
	movl	-124(%rbp), %eax
	cltq
	movq	-88(%rbp), %rdx
	leaq	-1(%rdx), %rcx
	movq	%rax, %rdx
	leaq	cy(%rip), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	cocompf
	addl	$1, %eax
	movl	%eax, -116(%rbp)
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	movq	-80(%rbp), %rax
	leaq	cx(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	cocompf
	addl	$1, %eax
	movl	%eax, -112(%rbp)
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	-72(%rbp), %rax
	leaq	cy(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	cocompf
	addl	$1, %eax
	movl	%eax, -108(%rbp)
	movl	-108(%rbp), %eax
	movslq	%eax, %rdx
	movl	-112(%rbp), %eax
	cltq
	imulq	$5010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-108(%rbp), %edx
	movslq	%edx, %rcx
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$5010, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	movl	-112(%rbp), %eax
	cltq
	imulq	$5010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	%eax, %ecx
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	movl	-120(%rbp), %eax
	cltq
	imulq	$5010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -16(%rbp)
.L29:
	movl	-132(%rbp), %eax
	cltq
	cmpq	%rax, -16(%rbp)
	jl	.L30
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.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	upll
	.type	upll, @function
upll:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jl	.L2
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	setg	%al
	movzbl	%al, %eax
	jmp	.L4
.L2:
	movl	$-1, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	upll, .-upll
	.globl	sortup
	.type	sortup, @function
sortup:
.LFB7:
	.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
	movq	%rdi, -8(%rbp)
	movl	%esi, -12(%rbp)
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movq	-8(%rbp), %rax
	leaq	upll(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sortup, .-sortup
	.globl	uniquell
	.type	uniquell, @function
uniquell:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movl	%edx, -52(%rbp)
	movl	-52(%rbp), %eax
	cltq
	salq	$3, %rax
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -8(%rbp)
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-40(%rbp), %rcx
	movq	-8(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movl	-52(%rbp), %edx
	movq	-8(%rbp), %rax
	movl	%edx, %esi
	movq	%rax, %rdi
	call	sortup
	movl	$0, -20(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-48(%rbp), %rax
	movq	%rdx, (%rax)
	movq	$1, -16(%rbp)
	jmp	.L7
.L9:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rdx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	je	.L8
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	addl	$1, -20(%rbp)
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	movq	-48(%rbp), %rdx
	addq	%rcx, %rdx
	movq	(%rax), %rax
	movq	%rax, (%rdx)
.L8:
	addq	$1, -16(%rbp)
.L7:
	movl	-52(%rbp), %eax
	cltq
	cmpq	%rax, -16(%rbp)
	jl	.L9
	movl	-20(%rbp), %eax
	addl	$1, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	uniquell, .-uniquell
	.globl	cocompf
	.type	cocompf, @function
cocompf:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%rdx, -56(%rbp)
	movq	$0, -24(%rbp)
	movq	-56(%rbp), %rax
	movq	%rax, -16(%rbp)
	jmp	.L12
.L14:
	movq	-24(%rbp), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	(%rax), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L13
	movq	-8(%rbp), %rax
	movq	%rax, -24(%rbp)
	jmp	.L12
.L13:
	movq	-8(%rbp), %rax
	movq	%rax, -16(%rbp)
.L12:
	movq	-16(%rbp), %rax
	subq	-24(%rbp), %rax
	cmpq	$1, %rax
	jg	.L14
	movq	-24(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cocompf, .-cocompf
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 100400400
a:
	.zero	100400400
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 40080
x:
	.zero	40080
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 40080
y:
	.zero	40080
	.globl	cx
	.align 32
	.type	cx, @object
	.size	cx, 40080
cx:
	.zero	40080
	.globl	cy
	.align 32
	.type	cy, @object
	.size	cy, 40080
cy:
	.zero	40080
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%lld%lld"
.LC2:
	.string	"%lld%lld%lld%lld"
.LC3:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$144, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-132(%rbp), %rdx
	leaq	-136(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -64(%rbp)
	jmp	.L17
.L18:
	movq	-64(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	addq	%rax, %rdx
	movq	-64(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	leaq	x(%rip), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -64(%rbp)
.L17:
	movl	-136(%rbp), %eax
	cltq
	cmpq	%rax, -64(%rbp)
	jl	.L18
	movl	-136(%rbp), %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	y(%rip), %rdx
	movabsq	$-4611686016279904256, %rdi
	movq	%rdi, (%rcx,%rdx)
	movl	-136(%rbp), %edx
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	y(%rip), %rax
	movq	(%rcx,%rax), %rax
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	x(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-136(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	y(%rip), %rdx
	movabsq	$4611686016279904256, %rdi
	movq	%rdi, (%rcx,%rdx)
	movl	-136(%rbp), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	x(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-136(%rbp), %eax
	addl	$2, %eax
	movl	%eax, %edx
	leaq	cx(%rip), %rax
	movq	%rax, %rsi
	leaq	x(%rip), %rax
	movq	%rax, %rdi
	call	uniquell
	movl	%eax, -128(%rbp)
	movl	-136(%rbp), %eax
	addl	$2, %eax
	movl	%eax, %edx
	leaq	cy(%rip), %rax
	movq	%rax, %rsi
	leaq	y(%rip), %rax
	movq	%rax, %rdi
	call	uniquell
	movl	%eax, -124(%rbp)
	movq	$0, -56(%rbp)
	jmp	.L19
.L20:
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	leaq	x(%rip), %rax
	movq	(%rcx,%rax), %rax
	leaq	cx(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	cocompf
	addl	$1, %eax
	movl	%eax, -104(%rbp)
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	leaq	y(%rip), %rax
	movq	(%rcx,%rax), %rax
	leaq	cy(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	cocompf
	addl	$1, %eax
	movl	%eax, -100(%rbp)
	movl	-100(%rbp), %eax
	movslq	%eax, %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$5010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %ecx
	movl	-100(%rbp), %eax
	movslq	%eax, %rdx
	movl	-104(%rbp), %eax
	cltq
	imulq	$5010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addq	$1, -56(%rbp)
.L19:
	movl	-136(%rbp), %eax
	cltq
	cmpq	%rax, -56(%rbp)
	jl	.L20
	movq	$0, -48(%rbp)
	jmp	.L21
.L24:
	movq	$0, -40(%rbp)
	jmp	.L22
.L23:
	movq	-40(%rbp), %rax
	leaq	1(%rax), %rdx
	movq	-48(%rbp), %rax
	imulq	$5010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movq	-48(%rbp), %rax
	imulq	$5010, %rax, %rdx
	movq	-40(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-40(%rbp), %rax
	leaq	1(%rax), %rsi
	addl	%edx, %ecx
	movq	-48(%rbp), %rax
	imulq	$5010, %rax, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addq	$1, -40(%rbp)
.L22:
	movl	-124(%rbp), %eax
	addl	$5, %eax
	cltq
	cmpq	%rax, -40(%rbp)
	jl	.L23
	addq	$1, -48(%rbp)
.L21:
	movl	-128(%rbp), %eax
	addl	$5, %eax
	cltq
	cmpq	%rax, -48(%rbp)
	jl	.L24
	movq	$0, -32(%rbp)
	jmp	.L25
.L28:
	movq	$0, -24(%rbp)
	jmp	.L26
.L27:
	movq	-24(%rbp), %rax
	addq	$1, %rax
	imulq	$5010, %rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %ecx
	movq	-24(%rbp), %rax
	imulq	$5010, %rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %edx
	movq	-24(%rbp), %rax
	addq	$1, %rax
	addl	%edx, %ecx
	imulq	$5010, %rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addq	$1, -24(%rbp)
.L26:
	movl	-128(%rbp), %eax
	addl	$5, %eax
	cltq
	cmpq	%rax, -24(%rbp)
	jl	.L27
	addq	$1, -32(%rbp)
.L25:
	movl	-124(%rbp), %eax
	addl	$5, %eax
	cltq
	cmpq	%rax, -32(%rbp)
	jl	.L28
	movq	$0, -16(%rbp)
	jmp	.L29
.L30:
	leaq	-72(%rbp), %rsi
	leaq	-80(%rbp), %rcx
	leaq	-88(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-128(%rbp), %eax
	cltq
	movq	-96(%rbp), %rdx
	leaq	-1(%rdx), %rcx
	movq	%rax, %rdx
	leaq	cx(%rip), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	cocompf
	addl	$1, %eax
	movl	%eax, -120(%rbp)
	movl	-124(%rbp), %eax
	cltq
	movq	-88(%rbp), %rdx
	leaq	-1(%rdx), %rcx
	movq	%rax, %rdx
	leaq	cy(%rip), %rax
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	cocompf
	addl	$1, %eax
	movl	%eax, -116(%rbp)
	movl	-128(%rbp), %eax
	movslq	%eax, %rdx
	movq	-80(%rbp), %rax
	leaq	cx(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	cocompf
	addl	$1, %eax
	movl	%eax, -112(%rbp)
	movl	-124(%rbp), %eax
	movslq	%eax, %rdx
	movq	-72(%rbp), %rax
	leaq	cy(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	cocompf
	addl	$1, %eax
	movl	%eax, -108(%rbp)
	movl	-108(%rbp), %eax
	movslq	%eax, %rdx
	movl	-112(%rbp), %eax
	cltq
	imulq	$5010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-108(%rbp), %edx
	movslq	%edx, %rcx
	movl	-120(%rbp), %edx
	movslq	%edx, %rdx
	imulq	$5010, %rdx, %rdx
	addq	%rcx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	a(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	movl	-112(%rbp), %eax
	cltq
	imulq	$5010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	%eax, %ecx
	movl	-116(%rbp), %eax
	movslq	%eax, %rdx
	movl	-120(%rbp), %eax
	cltq
	imulq	$5010, %rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%ecx, %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -16(%rbp)
.L29:
	movl	-132(%rbp), %eax
	cltq
	cmpq	%rax, -16(%rbp)
	jl	.L30
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.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:
