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 repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define bit(n,m)(((n)>>(m))&1)
int upll(const void*a, const void*b){return*(ll*)a<*(ll*)b?-1:*(ll*)a>*(ll*)b?1:0;}
int downll(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);}
void sortdown(ll*a,int n){qsort(a,n,sizeof(ll),downll);}
ll pom(ll a,ll n,int m){ll x=1;for(a%=m;n;n/=2)n&1?x=x*a%m:0,a=a*a%m;return x;}
//#define MOD 998244353
#define MOD 1000000007
#define invp(a,p)pom(a,p-2,p)


ll deg[100010];
//辺の情報を個別に持つタイプ
typedef struct edge{ll s,g;}E;
typedef struct graph{
	int vcnt,ecnt;
	E  e[200010];//適宜変える
	int id[100010];//適宜変える
}G;

int esort(const void*a,const void*b){
	E*p=(E*)a,*q=(E*)b;
	if((*p).s<(*q).s)return -1;
	if((*p).s>(*q).s)return  1;
	if((*p).g<(*q).g)return -1;
	return 1;
}
G g;
void readgraph(){
	//適宜変える
	ll n,m;
	scanf("%lld%lld",&n,&m);
	rep(i,0,m){
		ll x,y;
		scanf("%lld%lld",&x,&y);
		x--,y--;
		g.e[2*i].s=x;
		g.e[2*i].g=y;
		g.e[2*i+1].s=y;
		g.e[2*i+1].g=x;
		deg[x]++;
		deg[y]++;
	}
	g.vcnt=n;
	g.ecnt=2*m;
	qsort(g.e,g.ecnt,sizeof(E),esort);

	int p=0;
	rep(i,0,g.vcnt){
		while(p<g.ecnt&&g.e[p].s<i)p++;
		g.id[i]=p;
	}
	g.id[g.vcnt]=g.ecnt;//番兵
}

int f(int v1,int v2){
	int cnt=0;//結合の数
	rep(i,0,4){
		int pre=v1;
		int t=g.e[g.id[v1]+i].g;
		while(t!=v1&&t!=v2){
			if(g.e[g.id[t]].g!=pre){
				pre=t;
				t=g.e[g.id[t]].g;
			}else{
				pre=t;
				t=g.e[g.id[t]+1].g;
			}
		}
		if(t==v2)cnt++;
	}
	return cnt==2;
}

int main(){
	readgraph();
	
	int flag=0;
	rep(i,0,g.vcnt){
		if(deg[i]%2){
			puts("No");
			return 0;
		}
		if(deg[i]==4)flag++;
		if(deg[i]>=6)flag=3;
	}
	
	if(flag>=3)puts("Yes");
	else if(flag<=1)puts("No");
	else {
		//4重結合か、2重結合か判定
		int v1=-1,v2=-1;
		rep(i,0,g.vcnt){
			if(deg[i]==4){
				if(v1==-1)v1=i;
				else{
					v2=i;
					puts(f(v1,v2)?"Yes":"No");
					return 0;
				}
			}
		}
	}
}```

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	downll
	.type	downll, @function
downll:
.LFB7:
	.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	.L6
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L7
	movl	$-1, %eax
	jmp	.L10
.L7:
	movl	$0, %eax
	jmp	.L10
.L6:
	movl	$1, %eax
.L10:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	downll, .-downll
	.globl	sortup
	.type	sortup, @function
sortup:
.LFB8:
	.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
.LFE8:
	.size	sortup, .-sortup
	.globl	sortdown
	.type	sortdown, @function
sortdown:
.LFB9:
	.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	downll(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	sortdown, .-sortdown
	.globl	pom
	.type	pom, @function
pom:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movq	$1, -8(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	jmp	.L14
.L17:
	movq	-32(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L16
	movq	-8(%rbp), %rax
	imulq	-24(%rbp), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -8(%rbp)
.L16:
	movq	-24(%rbp), %rax
	imulq	%rax, %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -32(%rbp)
.L14:
	cmpq	$0, -32(%rbp)
	jne	.L17
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	pom, .-pom
	.globl	deg
	.bss
	.align 32
	.type	deg, @object
	.size	deg, 800080
deg:
	.zero	800080
	.text
	.globl	esort
	.type	esort, @function
esort:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jge	.L20
	movl	$-1, %eax
	jmp	.L21
.L20:
	movq	-16(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L22
	movl	$1, %eax
	jmp	.L21
.L22:
	movq	-16(%rbp), %rax
	movq	8(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	cmpq	%rax, %rdx
	jge	.L23
	movl	$-1, %eax
	jmp	.L21
.L23:
	movl	$1, %eax
.L21:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	esort, .-esort
	.globl	g
	.bss
	.align 32
	.type	g, @object
	.size	g, 3600208
g:
	.zero	3600208
	.section	.rodata
.LC0:
	.string	"%lld%lld"
	.text
	.globl	readgraph
	.type	readgraph, @function
readgraph:
.LFB12:
	.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	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -24(%rbp)
	jmp	.L25
.L26:
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-40(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -40(%rbp)
	movq	-32(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -32(%rbp)
	movq	-24(%rbp), %rax
	leaq	(%rax,%rax), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+g(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-24(%rbp), %rax
	leaq	(%rax,%rax), %rdx
	movq	-32(%rbp), %rax
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	16+g(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-24(%rbp), %rax
	addq	%rax, %rax
	leaq	1(%rax), %rdx
	movq	-32(%rbp), %rax
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+g(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-24(%rbp), %rax
	addq	%rax, %rax
	leaq	1(%rax), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	16+g(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rcx
	movq	(%rdx,%rcx), %rdx
	leaq	1(%rdx), %rcx
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movq	-32(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rcx
	movq	(%rdx,%rcx), %rdx
	leaq	1(%rdx), %rcx
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -24(%rbp)
.L25:
	movq	-48(%rbp), %rax
	cmpq	%rax, -24(%rbp)
	jl	.L26
	movq	-56(%rbp), %rax
	movl	%eax, g(%rip)
	movq	-48(%rbp), %rax
	addl	%eax, %eax
	movl	%eax, 4+g(%rip)
	movl	4+g(%rip), %eax
	cltq
	leaq	esort(%rip), %rdx
	movq	%rdx, %rcx
	movl	$16, %edx
	movq	%rax, %rsi
	leaq	8+g(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -60(%rbp)
	movq	$0, -16(%rbp)
	jmp	.L27
.L30:
	addl	$1, -60(%rbp)
.L28:
	movl	4+g(%rip), %eax
	cmpl	%eax, -60(%rbp)
	jge	.L29
	movl	-60(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+g(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	%rax, -16(%rbp)
	jg	.L30
.L29:
	movq	-16(%rbp), %rax
	addq	$800040, %rax
	leaq	0(,%rax,4), %rcx
	leaq	8+g(%rip), %rdx
	movl	-60(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addq	$1, -16(%rbp)
.L27:
	movl	g(%rip), %eax
	cltq
	cmpq	%rax, -16(%rbp)
	jl	.L28
	movl	g(%rip), %edx
	movl	4+g(%rip), %eax
	movslq	%edx, %rdx
	addq	$800040, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	8+g(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	readgraph, .-readgraph
	.globl	f
	.type	f, @function
f:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	$0, -20(%rbp)
	movq	$0, -8(%rbp)
	jmp	.L34
.L40:
	movl	-36(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-36(%rbp), %eax
	cltq
	addq	$800040, %rax
	leaq	0(,%rax,4), %rdx
	leaq	8+g(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	16+g(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	%eax, -12(%rbp)
	jmp	.L35
.L38:
	movl	-12(%rbp), %eax
	cltq
	addq	$800040, %rax
	leaq	0(,%rax,4), %rdx
	leaq	8+g(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	16+g(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-16(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	je	.L36
	movl	-12(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-12(%rbp), %eax
	cltq
	addq	$800040, %rax
	leaq	0(,%rax,4), %rdx
	leaq	8+g(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	16+g(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	%eax, -12(%rbp)
	jmp	.L35
.L36:
	movl	-12(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-12(%rbp), %eax
	cltq
	addq	$800040, %rax
	leaq	0(,%rax,4), %rdx
	leaq	8+g(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	16+g(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	%eax, -12(%rbp)
.L35:
	movl	-12(%rbp), %eax
	cmpl	-36(%rbp), %eax
	je	.L37
	movl	-12(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jne	.L38
.L37:
	movl	-12(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jne	.L39
	addl	$1, -20(%rbp)
.L39:
	addq	$1, -8(%rbp)
.L34:
	cmpq	$3, -8(%rbp)
	jle	.L40
	cmpl	$2, -20(%rbp)
	sete	%al
	movzbl	%al, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	f, .-f
	.section	.rodata
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	$0, %eax
	call	readgraph
	movl	$0, -28(%rbp)
	movq	$0, -16(%rbp)
	jmp	.L43
.L48:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rax
	movq	(%rdx,%rax), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L44
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L45
.L44:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	$4, %rax
	jne	.L46
	addl	$1, -28(%rbp)
.L46:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	$5, %rax
	jle	.L47
	movl	$3, -28(%rbp)
.L47:
	addq	$1, -16(%rbp)
.L43:
	movl	g(%rip), %eax
	cltq
	cmpq	%rax, -16(%rbp)
	jl	.L48
	cmpl	$2, -28(%rbp)
	jle	.L49
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L50
.L49:
	cmpl	$1, -28(%rbp)
	jg	.L51
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L50
.L51:
	movl	$-1, -24(%rbp)
	movl	$-1, -20(%rbp)
	movq	$0, -8(%rbp)
	jmp	.L52
.L57:
	movq	-8(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	$4, %rax
	jne	.L53
	cmpl	$-1, -24(%rbp)
	jne	.L54
	movq	-8(%rbp), %rax
	movl	%eax, -24(%rbp)
	jmp	.L53
.L54:
	movq	-8(%rbp), %rax
	movl	%eax, -20(%rbp)
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	f
	testl	%eax, %eax
	je	.L55
	leaq	.LC2(%rip), %rax
	jmp	.L56
.L55:
	leaq	.LC1(%rip), %rax
.L56:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L45
.L53:
	addq	$1, -8(%rbp)
.L52:
	movl	g(%rip), %eax
	cltq
	cmpq	%rax, -8(%rbp)
	jl	.L57
.L50:
	movl	$0, %eax
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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	downll
	.type	downll, @function
downll:
.LFB52:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rdx
	movl	$1, %eax
	cmpq	%rdx, (%rdi)
	jl	.L5
	setg	%al
	movzbl	%al, %eax
	negl	%eax
.L5:
	ret
	.cfi_endproc
.LFE52:
	.size	downll, .-downll
	.p2align 4
	.globl	esort
	.type	esort, @function
esort:
.LFB56:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rdx
	movl	$-1, %eax
	cmpq	%rdx, (%rdi)
	jl	.L8
	movl	$1, %eax
	jg	.L8
	movq	8(%rsi), %rax
	cmpq	%rax, 8(%rdi)
	setge	%al
	movzbl	%al, %eax
	leal	-1(%rax,%rax), %eax
.L8:
	ret
	.cfi_endproc
.LFE56:
	.size	esort, .-esort
	.p2align 4
	.globl	sortup
	.type	sortup, @function
sortup:
.LFB53:
	.cfi_startproc
	endbr64
	movslq	%esi, %rsi
	leaq	upll(%rip), %rcx
	movl	$8, %edx
	jmp	qsort@PLT
	.cfi_endproc
.LFE53:
	.size	sortup, .-sortup
	.p2align 4
	.globl	sortdown
	.type	sortdown, @function
sortdown:
.LFB54:
	.cfi_startproc
	endbr64
	movslq	%esi, %rsi
	leaq	downll(%rip), %rcx
	movl	$8, %edx
	jmp	qsort@PLT
	.cfi_endproc
.LFE54:
	.size	sortdown, .-sortdown
	.p2align 4
	.globl	pom
	.type	pom, @function
pom:
.LFB55:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movslq	%edx, %r8
	movl	$1, %r9d
	cqto
	idivq	%r8
	movq	%rdx, %rcx
	testq	%rsi, %rsi
	je	.L15
	.p2align 4,,10
	.p2align 3
.L18:
	testb	$1, %sil
	je	.L17
	movq	%r9, %rax
	imulq	%rcx, %rax
	cqto
	idivq	%r8
	movq	%rdx, %r9
.L17:
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	cqto
	idivq	%r8
	movq	%rsi, %rax
	shrq	$63, %rax
	addq	%rax, %rsi
	sarq	%rsi
	movq	%rdx, %rcx
	jne	.L18
.L15:
	movq	%r9, %rax
	ret
	.cfi_endproc
.LFE55:
	.size	pom, .-pom
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB1:
	.text
.LHOTB1:
	.p2align 4
	.globl	readgraph
	.type	readgraph, @function
readgraph:
.LFB57:
	.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
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rax
	testq	%rax, %rax
	jle	.L25
	leaq	8+g(%rip), %r14
	xorl	%r13d, %r13d
	leaq	32(%rsp), %r12
	leaq	24(%rsp), %rbp
	leaq	deg(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L26:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	24(%rsp), %rax
	addq	$1, %r13
	addq	$32, %r14
	leaq	-1(%rax), %rdx
	movq	32(%rsp), %rax
	addq	$1, (%r15,%rdx,8)
	subq	$1, %rax
	movq	%rdx, -32(%r14)
	movq	%rax, -24(%r14)
	movq	%rax, -16(%r14)
	addq	$1, (%r15,%rax,8)
	movq	16(%rsp), %rax
	movq	%rdx, -8(%r14)
	cmpq	%r13, %rax
	jg	.L26
.L25:
	addl	%eax, %eax
	movd	8(%rsp), %xmm0
	leaq	8+g(%rip), %rdi
	leaq	esort(%rip), %rcx
	movd	%eax, %xmm1
	movslq	%eax, %rsi
	movl	$16, %edx
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, g(%rip)
	call	qsort@PLT
	movslq	g(%rip), %rdi
	movl	4+g(%rip), %esi
	leaq	g(%rip), %r8
	testq	%rdi, %rdi
	jle	.L31
	leaq	g(%rip), %r8
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	leaq	3200168(%r8), %r9
	.p2align 4,,10
	.p2align 3
.L28:
	cmpl	%eax, %esi
	jle	.L37
	movslq	%eax, %rdx
	salq	$4, %rdx
	leaq	8(%r8,%rdx), %rdx
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L30:
	addl	$1, %eax
	addq	$16, %rdx
	cmpl	%esi, %eax
	je	.L29
.L38:
	cmpq	%rcx, (%rdx)
	jl	.L30
.L29:
	movl	%eax, (%r9,%rcx,4)
	addq	$1, %rcx
	cmpq	%rcx, %rdi
	jne	.L28
.L31:
	movl	%esi, 3200168(%r8,%rdi,4)
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L48
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L37:
	.cfi_restore_state
	leaq	1(%rcx), %rdx
	movl	%eax, (%r9,%rcx,4)
	cmpq	%rdi, %rdx
	jne	.L39
	jmp	.L31
.L48:
	call	__stack_chk_fail@PLT
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	readgraph.cold, @function
readgraph.cold:
.LFSB57:
.L39:
	.cfi_def_cfa_offset 112
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	movq	%rdi, %r10
	movl	$1, %r9d
	subq	%rdx, %r10
	cmpq	%rdi, %rdx
	cmovl	%r10, %r9
	subq	$1, %r10
	cmpq	$2, %r10
	jbe	.L32
	movq	%r9, %r11
	movd	%eax, %xmm2
	leaq	3200172(%r8,%rcx,4), %r10
	xorl	%ecx, %ecx
	shrq	$2, %r11
	pshufd	$0, %xmm2, %xmm0
.L33:
	movq	%rcx, %rbx
	addq	$1, %rcx
	salq	$4, %rbx
	movups	%xmm0, (%r10,%rbx)
	cmpq	%rcx, %r11
	jne	.L33
	movq	%r9, %rcx
	andq	$-4, %rcx
	addq	%rcx, %rdx
	cmpq	%rcx, %r9
	je	.L31
.L32:
	leaq	1(%rdx), %rcx
	movl	%eax, 3200168(%r8,%rdx,4)
	cmpq	%rdi, %rcx
	jge	.L31
	leaq	2(%rdx), %rcx
	movl	%eax, 3200172(%r8,%rdx,4)
	cmpq	%rcx, %rdi
	jle	.L31
	movl	%eax, 3200176(%r8,%rdx,4)
	jmp	.L31
	.cfi_endproc
.LFE57:
	.text
	.size	readgraph, .-readgraph
	.section	.text.unlikely
	.size	readgraph.cold, .-readgraph.cold
.LCOLDE1:
	.text
.LHOTE1:
	.p2align 4
	.globl	f
	.type	f, @function
f:
.LFB58:
	.cfi_startproc
	endbr64
	movslq	%edi, %rax
	leaq	g(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	%esi, %r9d
	movq	%rax, %r8
	movslq	3200168(%rdi,%rax,4), %rax
	leaq	64(%rdi), %rbx
	xorl	%r11d, %r11d
	salq	$4, %rax
	leaq	(%rdi,%rax), %r10
	addq	%rax, %rbx
.L56:
	movq	16(%r10), %rax
	movl	%eax, %esi
	cmpl	%eax, %r9d
	je	.L50
	cmpl	%eax, %r8d
	je	.L50
	movslq	%r8d, %rcx
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L58:
	movl	%eax, %esi
.L53:
	movslq	%esi, %rax
	movslq	3200168(%rdi,%rax,4), %rax
	movq	%rax, %rdx
	salq	$4, %rax
	movq	16(%rdi,%rax), %rax
	cmpq	%rcx, %rax
	jne	.L52
	addl	$1, %edx
	movslq	%edx, %rdx
	salq	$4, %rdx
	movl	16(%rdi,%rdx), %eax
.L52:
	movslq	%esi, %rcx
	cmpl	%r8d, %eax
	je	.L50
	cmpl	%r9d, %eax
	jne	.L58
.L50:
	cmpl	%eax, %r9d
	sete	%al
	addq	$16, %r10
	movzbl	%al, %eax
	addl	%eax, %r11d
	cmpq	%r10, %rbx
	jne	.L56
	xorl	%eax, %eax
	cmpl	$2, %r11d
	popq	%rbx
	.cfi_def_cfa_offset 8
	sete	%al
	ret
	.cfi_endproc
.LFE58:
	.size	f, .-f
	.section	.rodata.str1.1
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB59:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	call	readgraph
	movslq	g(%rip), %rsi
	testq	%rsi, %rsi
	jle	.L71
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	leaq	deg(%rip), %rdi
	movl	$3, %r8d
	jmp	.L76
	.p2align 4,,10
	.p2align 3
.L74:
	cmpq	$6, %rdx
	cmovge	%r8d, %ecx
	addq	$1, %rax
	cmpq	%rsi, %rax
	je	.L86
.L76:
	movq	(%rdi,%rax,8), %rdx
	testb	$1, %dl
	jne	.L71
	cmpq	$4, %rdx
	jne	.L74
	addq	$1, %rax
	addl	$1, %ecx
	cmpq	%rsi, %rax
	jne	.L76
.L86:
	cmpl	$2, %ecx
	jg	.L87
	jne	.L71
	xorl	%eax, %eax
	orl	$-1, %r8d
	jmp	.L80
	.p2align 4,,10
	.p2align 3
.L78:
	addq	$1, %rax
	cmpq	%rsi, %rax
	je	.L73
.L80:
	cmpq	$4, (%rdi,%rax,8)
	jne	.L78
	cmpl	$-1, %r8d
	jne	.L88
	movl	%eax, %r8d
	jmp	.L78
.L71:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L73:
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L87:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L73
.L88:
	movl	%r8d, %edi
	movl	%eax, %esi
	call	f
	leaq	.LC2(%rip), %rdi
	testl	%eax, %eax
	leaq	.LC3(%rip), %rax
	cmove	%rax, %rdi
	call	puts@PLT
	jmp	.L73
	.cfi_endproc
.LFE59:
	.size	main, .-main
	.globl	g
	.bss
	.align 32
	.type	g, @object
	.size	g, 3600208
g:
	.zero	3600208
	.globl	deg
	.align 32
	.type	deg, @object
	.size	deg, 800080
deg:
	.zero	800080
	.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	downll
	.type	downll, @function
downll:
.LFB52:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rdx
	movl	$1, %eax
	cmpq	%rdx, (%rdi)
	jl	.L5
	setg	%al
	movzbl	%al, %eax
	negl	%eax
.L5:
	ret
	.cfi_endproc
.LFE52:
	.size	downll, .-downll
	.p2align 4
	.globl	esort
	.type	esort, @function
esort:
.LFB56:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rdx
	movl	$-1, %eax
	cmpq	%rdx, (%rdi)
	jl	.L8
	movl	$1, %eax
	jg	.L8
	movq	8(%rsi), %rax
	cmpq	%rax, 8(%rdi)
	setge	%al
	movzbl	%al, %eax
	leal	-1(%rax,%rax), %eax
.L8:
	ret
	.cfi_endproc
.LFE56:
	.size	esort, .-esort
	.p2align 4
	.globl	sortup
	.type	sortup, @function
sortup:
.LFB53:
	.cfi_startproc
	endbr64
	movslq	%esi, %rsi
	leaq	upll(%rip), %rcx
	movl	$8, %edx
	jmp	qsort@PLT
	.cfi_endproc
.LFE53:
	.size	sortup, .-sortup
	.p2align 4
	.globl	sortdown
	.type	sortdown, @function
sortdown:
.LFB54:
	.cfi_startproc
	endbr64
	movslq	%esi, %rsi
	leaq	downll(%rip), %rcx
	movl	$8, %edx
	jmp	qsort@PLT
	.cfi_endproc
.LFE54:
	.size	sortdown, .-sortdown
	.p2align 4
	.globl	pom
	.type	pom, @function
pom:
.LFB55:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movslq	%edx, %r8
	movl	$1, %r9d
	cqto
	idivq	%r8
	movq	%rdx, %rcx
	testq	%rsi, %rsi
	je	.L15
	.p2align 4,,10
	.p2align 3
.L18:
	testb	$1, %sil
	je	.L17
	movq	%r9, %rax
	imulq	%rcx, %rax
	cqto
	idivq	%r8
	movq	%rdx, %r9
.L17:
	imulq	%rcx, %rcx
	movq	%rcx, %rax
	cqto
	idivq	%r8
	movq	%rsi, %rax
	shrq	$63, %rax
	addq	%rax, %rsi
	sarq	%rsi
	movq	%rdx, %rcx
	jne	.L18
.L15:
	movq	%r9, %rax
	ret
	.cfi_endproc
.LFE55:
	.size	pom, .-pom
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB1:
	.text
.LHOTB1:
	.p2align 4
	.globl	readgraph
	.type	readgraph, @function
readgraph:
.LFB57:
	.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
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rax
	testq	%rax, %rax
	jle	.L25
	leaq	8+g(%rip), %r14
	xorl	%r13d, %r13d
	leaq	32(%rsp), %r12
	leaq	24(%rsp), %rbp
	leaq	deg(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L26:
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	24(%rsp), %rax
	addq	$1, %r13
	addq	$32, %r14
	leaq	-1(%rax), %rdx
	movq	32(%rsp), %rax
	addq	$1, (%r15,%rdx,8)
	subq	$1, %rax
	movq	%rdx, -32(%r14)
	movq	%rax, -24(%r14)
	movq	%rax, -16(%r14)
	addq	$1, (%r15,%rax,8)
	movq	16(%rsp), %rax
	movq	%rdx, -8(%r14)
	cmpq	%r13, %rax
	jg	.L26
.L25:
	addl	%eax, %eax
	movd	8(%rsp), %xmm0
	leaq	8+g(%rip), %rdi
	leaq	esort(%rip), %rcx
	movd	%eax, %xmm1
	movslq	%eax, %rsi
	movl	$16, %edx
	punpckldq	%xmm1, %xmm0
	movq	%xmm0, g(%rip)
	call	qsort@PLT
	movslq	g(%rip), %rdi
	movl	4+g(%rip), %esi
	leaq	g(%rip), %r8
	testq	%rdi, %rdi
	jle	.L31
	leaq	g(%rip), %r8
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	leaq	3200168(%r8), %r9
	.p2align 4,,10
	.p2align 3
.L28:
	cmpl	%eax, %esi
	jle	.L37
	movslq	%eax, %rdx
	salq	$4, %rdx
	leaq	8(%r8,%rdx), %rdx
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L30:
	addl	$1, %eax
	addq	$16, %rdx
	cmpl	%esi, %eax
	je	.L29
.L38:
	cmpq	%rcx, (%rdx)
	jl	.L30
.L29:
	movl	%eax, (%r9,%rcx,4)
	addq	$1, %rcx
	cmpq	%rcx, %rdi
	jne	.L28
.L31:
	movl	%esi, 3200168(%r8,%rdi,4)
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L48
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L37:
	.cfi_restore_state
	leaq	1(%rcx), %rdx
	movl	%eax, (%r9,%rcx,4)
	cmpq	%rdi, %rdx
	jne	.L39
	jmp	.L31
.L48:
	call	__stack_chk_fail@PLT
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	readgraph.cold, @function
readgraph.cold:
.LFSB57:
.L39:
	.cfi_def_cfa_offset 112
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	movq	%rdi, %r10
	movl	$1, %r9d
	subq	%rdx, %r10
	cmpq	%rdi, %rdx
	cmovl	%r10, %r9
	subq	$1, %r10
	cmpq	$2, %r10
	jbe	.L32
	movq	%r9, %r11
	movd	%eax, %xmm2
	leaq	3200172(%r8,%rcx,4), %r10
	xorl	%ecx, %ecx
	shrq	$2, %r11
	pshufd	$0, %xmm2, %xmm0
.L33:
	movq	%rcx, %rbx
	addq	$1, %rcx
	salq	$4, %rbx
	movups	%xmm0, (%r10,%rbx)
	cmpq	%rcx, %r11
	jne	.L33
	movq	%r9, %rcx
	andq	$-4, %rcx
	addq	%rcx, %rdx
	cmpq	%rcx, %r9
	je	.L31
.L32:
	leaq	1(%rdx), %rcx
	movl	%eax, 3200168(%r8,%rdx,4)
	cmpq	%rdi, %rcx
	jge	.L31
	leaq	2(%rdx), %rcx
	movl	%eax, 3200172(%r8,%rdx,4)
	cmpq	%rcx, %rdi
	jle	.L31
	movl	%eax, 3200176(%r8,%rdx,4)
	jmp	.L31
	.cfi_endproc
.LFE57:
	.text
	.size	readgraph, .-readgraph
	.section	.text.unlikely
	.size	readgraph.cold, .-readgraph.cold
.LCOLDE1:
	.text
.LHOTE1:
	.p2align 4
	.globl	f
	.type	f, @function
f:
.LFB58:
	.cfi_startproc
	endbr64
	movslq	%edi, %rax
	leaq	g(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movl	%esi, %r9d
	movq	%rax, %r8
	movslq	3200168(%rdi,%rax,4), %rax
	leaq	64(%rdi), %rbx
	xorl	%r11d, %r11d
	salq	$4, %rax
	leaq	(%rdi,%rax), %r10
	addq	%rax, %rbx
.L56:
	movq	16(%r10), %rax
	movl	%eax, %esi
	cmpl	%eax, %r9d
	je	.L50
	cmpl	%eax, %r8d
	je	.L50
	movslq	%r8d, %rcx
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L58:
	movl	%eax, %esi
.L53:
	movslq	%esi, %rax
	movslq	3200168(%rdi,%rax,4), %rax
	movq	%rax, %rdx
	salq	$4, %rax
	movq	16(%rdi,%rax), %rax
	cmpq	%rcx, %rax
	jne	.L52
	addl	$1, %edx
	movslq	%edx, %rdx
	salq	$4, %rdx
	movl	16(%rdi,%rdx), %eax
.L52:
	movslq	%esi, %rcx
	cmpl	%r8d, %eax
	je	.L50
	cmpl	%r9d, %eax
	jne	.L58
.L50:
	cmpl	%eax, %r9d
	sete	%al
	addq	$16, %r10
	movzbl	%al, %eax
	addl	%eax, %r11d
	cmpq	%r10, %rbx
	jne	.L56
	xorl	%eax, %eax
	cmpl	$2, %r11d
	popq	%rbx
	.cfi_def_cfa_offset 8
	sete	%al
	ret
	.cfi_endproc
.LFE58:
	.size	f, .-f
	.section	.rodata.str1.1
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB59:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	call	readgraph
	movslq	g(%rip), %rsi
	testq	%rsi, %rsi
	jle	.L71
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	leaq	deg(%rip), %rdi
	movl	$3, %r8d
	jmp	.L76
	.p2align 4,,10
	.p2align 3
.L74:
	cmpq	$6, %rdx
	cmovge	%r8d, %ecx
	addq	$1, %rax
	cmpq	%rsi, %rax
	je	.L86
.L76:
	movq	(%rdi,%rax,8), %rdx
	testb	$1, %dl
	jne	.L71
	cmpq	$4, %rdx
	jne	.L74
	addq	$1, %rax
	addl	$1, %ecx
	cmpq	%rsi, %rax
	jne	.L76
.L86:
	cmpl	$2, %ecx
	jg	.L87
	jne	.L71
	xorl	%eax, %eax
	orl	$-1, %r8d
	jmp	.L80
	.p2align 4,,10
	.p2align 3
.L78:
	addq	$1, %rax
	cmpq	%rsi, %rax
	je	.L73
.L80:
	cmpq	$4, (%rdi,%rax,8)
	jne	.L78
	cmpl	$-1, %r8d
	jne	.L88
	movl	%eax, %r8d
	jmp	.L78
.L71:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L73:
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L87:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L73
.L88:
	movl	%r8d, %edi
	movl	%eax, %esi
	call	f
	leaq	.LC2(%rip), %rdi
	testl	%eax, %eax
	leaq	.LC3(%rip), %rax
	cmove	%rax, %rdi
	call	puts@PLT
	jmp	.L73
	.cfi_endproc
.LFE59:
	.size	main, .-main
	.globl	g
	.bss
	.align 32
	.type	g, @object
	.size	g, 3600208
g:
	.zero	3600208
	.globl	deg
	.align 32
	.type	deg, @object
	.size	deg, 800080
deg:
	.zero	800080
	.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 repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define bit(n,m)(((n)>>(m))&1)
int upll(const void*a, const void*b){return*(ll*)a<*(ll*)b?-1:*(ll*)a>*(ll*)b?1:0;}
int downll(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);}
void sortdown(ll*a,int n){qsort(a,n,sizeof(ll),downll);}
ll pom(ll a,ll n,int m){ll x=1;for(a%=m;n;n/=2)n&1?x=x*a%m:0,a=a*a%m;return x;}
//#define MOD 998244353
#define MOD 1000000007
#define invp(a,p)pom(a,p-2,p)


ll deg[100010];
//辺の情報を個別に持つタイプ
typedef struct edge{ll s,g;}E;
typedef struct graph{
	int vcnt,ecnt;
	E  e[200010];//適宜変える
	int id[100010];//適宜変える
}G;

int esort(const void*a,const void*b){
	E*p=(E*)a,*q=(E*)b;
	if((*p).s<(*q).s)return -1;
	if((*p).s>(*q).s)return  1;
	if((*p).g<(*q).g)return -1;
	return 1;
}
G g;
void readgraph(){
	//適宜変える
	ll n,m;
	scanf("%lld%lld",&n,&m);
	rep(i,0,m){
		ll x,y;
		scanf("%lld%lld",&x,&y);
		x--,y--;
		g.e[2*i].s=x;
		g.e[2*i].g=y;
		g.e[2*i+1].s=y;
		g.e[2*i+1].g=x;
		deg[x]++;
		deg[y]++;
	}
	g.vcnt=n;
	g.ecnt=2*m;
	qsort(g.e,g.ecnt,sizeof(E),esort);

	int p=0;
	rep(i,0,g.vcnt){
		while(p<g.ecnt&&g.e[p].s<i)p++;
		g.id[i]=p;
	}
	g.id[g.vcnt]=g.ecnt;//番兵
}

int f(int v1,int v2){
	int cnt=0;//結合の数
	rep(i,0,4){
		int pre=v1;
		int t=g.e[g.id[v1]+i].g;
		while(t!=v1&&t!=v2){
			if(g.e[g.id[t]].g!=pre){
				pre=t;
				t=g.e[g.id[t]].g;
			}else{
				pre=t;
				t=g.e[g.id[t]+1].g;
			}
		}
		if(t==v2)cnt++;
	}
	return cnt==2;
}

int main(){
	readgraph();
	
	int flag=0;
	rep(i,0,g.vcnt){
		if(deg[i]%2){
			puts("No");
			return 0;
		}
		if(deg[i]==4)flag++;
		if(deg[i]>=6)flag=3;
	}
	
	if(flag>=3)puts("Yes");
	else if(flag<=1)puts("No");
	else {
		//4重結合か、2重結合か判定
		int v1=-1,v2=-1;
		rep(i,0,g.vcnt){
			if(deg[i]==4){
				if(v1==-1)v1=i;
				else{
					v2=i;
					puts(f(v1,v2)?"Yes":"No");
					return 0;
				}
			}
		}
	}
}
7 9
1 2
1 3
2 3
1 4
1 5
4 5
1 5
1 7
6 7
 7 9
2 2
1 2
2 5
1 4
1 6
2 5
1 4
2 7
6 7
 7 9
1 2
1 3
2 3
1 4
1 5
4 5
1 5
2 7
6 7
 7 9
1 2
1 1
2 3
1 4
1 5
4 5
1 5
2 7
6 7
 18 27
17 7
12 15
18 17
13 18
13 6
5 7
7 1
14 5
15 11
7 6
1 9
5 4
18 16
4 6
7 2
7 11
6 3
12 14
5 3
10 5
7 8
10 15
3 15
9 8
7 15
5 16
18 15
 7 9
1 2
1 3
2 3
1 4
1 5
4 5
2 6
1 7
6 7
 18 27
17 7
12 15
18 17
13 18
13 6
5 7
7 1
14 5
15 11
7 6
1 9
5 4
18 16
4 6
7 2
7 11
6 3
12 14
5 3
10 5
5 8
10 15
3 15
9 8
7 15
5 16
18 15
 7 9
1 2
1 2
2 3
1 4
1 5
4 5
2 6
1 7
6 7
 18 27
17 7
12 15
18 17
13 18
13 1
5 7
7 1
14 5
15 11
7 6
1 9
5 4
18 16
4 6
7 2
7 11
6 3
12 14
5 3
10 5
5 8
10 15
3 15
9 8
7 15
5 16
18 15
 7 9
1 2
1 2
2 3
2 4
1 5
4 5
2 6
1 7
6 7

No
 Yes
 No
 No
 No
 No
 No
 No
 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 <string.h>
#define ll long long
#define rep(i,l,r)for(ll i=(l);i<(r);i++)
#define repp(i,l,r,k)for(ll i=(l);i<(r);i+=(k))
#define INF ((1LL<<62)-(1LL<<31))
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define bit(n,m)(((n)>>(m))&1)
int upll(const void*a, const void*b){return*(ll*)a<*(ll*)b?-1:*(ll*)a>*(ll*)b?1:0;}
int downll(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);}
void sortdown(ll*a,int n){qsort(a,n,sizeof(ll),downll);}
ll pom(ll a,ll n,int m){ll x=1;for(a%=m;n;n/=2)n&1?x=x*a%m:0,a=a*a%m;return x;}
//#define MOD 998244353
#define MOD 1000000007
#define invp(a,p)pom(a,p-2,p)


ll deg[100010];
//辺の情報を個別に持つタイプ
typedef struct edge{ll s,g;}E;
typedef struct graph{
	int vcnt,ecnt;
	E  e[200010];//適宜変える
	int id[100010];//適宜変える
}G;

int esort(const void*a,const void*b){
	E*p=(E*)a,*q=(E*)b;
	if((*p).s<(*q).s)return -1;
	if((*p).s>(*q).s)return  1;
	if((*p).g<(*q).g)return -1;
	return 1;
}
G g;
void readgraph(){
	//適宜変える
	ll n,m;
	scanf("%lld%lld",&n,&m);
	rep(i,0,m){
		ll x,y;
		scanf("%lld%lld",&x,&y);
		x--,y--;
		g.e[2*i].s=x;
		g.e[2*i].g=y;
		g.e[2*i+1].s=y;
		g.e[2*i+1].g=x;
		deg[x]++;
		deg[y]++;
	}
	g.vcnt=n;
	g.ecnt=2*m;
	qsort(g.e,g.ecnt,sizeof(E),esort);

	int p=0;
	rep(i,0,g.vcnt){
		while(p<g.ecnt&&g.e[p].s<i)p++;
		g.id[i]=p;
	}
	g.id[g.vcnt]=g.ecnt;//番兵
}

int f(int v1,int v2){
	int cnt=0;//結合の数
	rep(i,0,4){
		int pre=v1;
		int t=g.e[g.id[v1]+i].g;
		while(t!=v1&&t!=v2){
			if(g.e[g.id[t]].g!=pre){
				pre=t;
				t=g.e[g.id[t]].g;
			}else{
				pre=t;
				t=g.e[g.id[t]+1].g;
			}
		}
		if(t==v2)cnt++;
	}
	return cnt==2;
}

int main(){
	readgraph();
	
	int flag=0;
	rep(i,0,g.vcnt){
		if(deg[i]%2){
			puts("No");
			return 0;
		}
		if(deg[i]==4)flag++;
		if(deg[i]>=6)flag=3;
	}
	
	if(flag>=3)puts("Yes");
	else if(flag<=1)puts("No");
	else {
		//4重結合か、2重結合か判定
		int v1=-1,v2=-1;
		rep(i,0,g.vcnt){
			if(deg[i]==4){
				if(v1==-1)v1=i;
				else{
					v2=i;
					puts(f(v1,v2)?"Yes":"No");
					return 0;
				}
			}
		}
	}
}```

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	downll
	.type	downll, @function
downll:
.LFB7:
	.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	.L6
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L7
	movl	$-1, %eax
	jmp	.L10
.L7:
	movl	$0, %eax
	jmp	.L10
.L6:
	movl	$1, %eax
.L10:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	downll, .-downll
	.globl	sortup
	.type	sortup, @function
sortup:
.LFB8:
	.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
.LFE8:
	.size	sortup, .-sortup
	.globl	sortdown
	.type	sortdown, @function
sortdown:
.LFB9:
	.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	downll(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	sortdown, .-sortdown
	.globl	pom
	.type	pom, @function
pom:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movq	$1, -8(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	jmp	.L14
.L17:
	movq	-32(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L16
	movq	-8(%rbp), %rax
	imulq	-24(%rbp), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -8(%rbp)
.L16:
	movq	-24(%rbp), %rax
	imulq	%rax, %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -32(%rbp)
.L14:
	cmpq	$0, -32(%rbp)
	jne	.L17
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	pom, .-pom
	.globl	deg
	.bss
	.align 32
	.type	deg, @object
	.size	deg, 800080
deg:
	.zero	800080
	.text
	.globl	esort
	.type	esort, @function
esort:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jge	.L20
	movl	$-1, %eax
	jmp	.L21
.L20:
	movq	-16(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L22
	movl	$1, %eax
	jmp	.L21
.L22:
	movq	-16(%rbp), %rax
	movq	8(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	cmpq	%rax, %rdx
	jge	.L23
	movl	$-1, %eax
	jmp	.L21
.L23:
	movl	$1, %eax
.L21:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	esort, .-esort
	.globl	g
	.bss
	.align 32
	.type	g, @object
	.size	g, 3600208
g:
	.zero	3600208
	.section	.rodata
.LC0:
	.string	"%lld%lld"
	.text
	.globl	readgraph
	.type	readgraph, @function
readgraph:
.LFB12:
	.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	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -24(%rbp)
	jmp	.L25
.L26:
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-40(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -40(%rbp)
	movq	-32(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -32(%rbp)
	movq	-24(%rbp), %rax
	leaq	(%rax,%rax), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+g(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-24(%rbp), %rax
	leaq	(%rax,%rax), %rdx
	movq	-32(%rbp), %rax
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	16+g(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-24(%rbp), %rax
	addq	%rax, %rax
	leaq	1(%rax), %rdx
	movq	-32(%rbp), %rax
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+g(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-24(%rbp), %rax
	addq	%rax, %rax
	leaq	1(%rax), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	16+g(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rcx
	movq	(%rdx,%rcx), %rdx
	leaq	1(%rdx), %rcx
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movq	-32(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rcx
	movq	(%rdx,%rcx), %rdx
	leaq	1(%rdx), %rcx
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -24(%rbp)
.L25:
	movq	-48(%rbp), %rax
	cmpq	%rax, -24(%rbp)
	jl	.L26
	movq	-56(%rbp), %rax
	movl	%eax, g(%rip)
	movq	-48(%rbp), %rax
	addl	%eax, %eax
	movl	%eax, 4+g(%rip)
	movl	4+g(%rip), %eax
	cltq
	leaq	esort(%rip), %rdx
	movq	%rdx, %rcx
	movl	$16, %edx
	movq	%rax, %rsi
	leaq	8+g(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -60(%rbp)
	movq	$0, -16(%rbp)
	jmp	.L27
.L30:
	addl	$1, -60(%rbp)
.L28:
	movl	4+g(%rip), %eax
	cmpl	%eax, -60(%rbp)
	jge	.L29
	movl	-60(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+g(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	%rax, -16(%rbp)
	jg	.L30
.L29:
	movq	-16(%rbp), %rax
	addq	$800040, %rax
	leaq	0(,%rax,4), %rcx
	leaq	8+g(%rip), %rdx
	movl	-60(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addq	$1, -16(%rbp)
.L27:
	movl	g(%rip), %eax
	cltq
	cmpq	%rax, -16(%rbp)
	jl	.L28
	movl	g(%rip), %edx
	movl	4+g(%rip), %eax
	movslq	%edx, %rdx
	addq	$800040, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	8+g(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	readgraph, .-readgraph
	.globl	f
	.type	f, @function
f:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	$0, -20(%rbp)
	movq	$0, -8(%rbp)
	jmp	.L34
.L40:
	movl	-36(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-36(%rbp), %eax
	cltq
	addq	$800040, %rax
	leaq	0(,%rax,4), %rdx
	leaq	8+g(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	16+g(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	%eax, -12(%rbp)
	jmp	.L35
.L38:
	movl	-12(%rbp), %eax
	cltq
	addq	$800040, %rax
	leaq	0(,%rax,4), %rdx
	leaq	8+g(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	16+g(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-16(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	je	.L36
	movl	-12(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-12(%rbp), %eax
	cltq
	addq	$800040, %rax
	leaq	0(,%rax,4), %rdx
	leaq	8+g(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	16+g(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	%eax, -12(%rbp)
	jmp	.L35
.L36:
	movl	-12(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-12(%rbp), %eax
	cltq
	addq	$800040, %rax
	leaq	0(,%rax,4), %rdx
	leaq	8+g(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	16+g(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	%eax, -12(%rbp)
.L35:
	movl	-12(%rbp), %eax
	cmpl	-36(%rbp), %eax
	je	.L37
	movl	-12(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jne	.L38
.L37:
	movl	-12(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jne	.L39
	addl	$1, -20(%rbp)
.L39:
	addq	$1, -8(%rbp)
.L34:
	cmpq	$3, -8(%rbp)
	jle	.L40
	cmpl	$2, -20(%rbp)
	sete	%al
	movzbl	%al, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	f, .-f
	.section	.rodata
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	$0, %eax
	call	readgraph
	movl	$0, -28(%rbp)
	movq	$0, -16(%rbp)
	jmp	.L43
.L48:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rax
	movq	(%rdx,%rax), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L44
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L45
.L44:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	$4, %rax
	jne	.L46
	addl	$1, -28(%rbp)
.L46:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	$5, %rax
	jle	.L47
	movl	$3, -28(%rbp)
.L47:
	addq	$1, -16(%rbp)
.L43:
	movl	g(%rip), %eax
	cltq
	cmpq	%rax, -16(%rbp)
	jl	.L48
	cmpl	$2, -28(%rbp)
	jle	.L49
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L50
.L49:
	cmpl	$1, -28(%rbp)
	jg	.L51
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L50
.L51:
	movl	$-1, -24(%rbp)
	movl	$-1, -20(%rbp)
	movq	$0, -8(%rbp)
	jmp	.L52
.L57:
	movq	-8(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	$4, %rax
	jne	.L53
	cmpl	$-1, -24(%rbp)
	jne	.L54
	movq	-8(%rbp), %rax
	movl	%eax, -24(%rbp)
	jmp	.L53
.L54:
	movq	-8(%rbp), %rax
	movl	%eax, -20(%rbp)
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	f
	testl	%eax, %eax
	je	.L55
	leaq	.LC2(%rip), %rax
	jmp	.L56
.L55:
	leaq	.LC1(%rip), %rax
.L56:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L45
.L53:
	addq	$1, -8(%rbp)
.L52:
	movl	g(%rip), %eax
	cltq
	cmpq	%rax, -8(%rbp)
	jl	.L57
.L50:
	movl	$0, %eax
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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	downll
	.type	downll, @function
downll:
.LFB7:
	.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	.L6
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L7
	movl	$-1, %eax
	jmp	.L10
.L7:
	movl	$0, %eax
	jmp	.L10
.L6:
	movl	$1, %eax
.L10:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	downll, .-downll
	.globl	sortup
	.type	sortup, @function
sortup:
.LFB8:
	.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
.LFE8:
	.size	sortup, .-sortup
	.globl	sortdown
	.type	sortdown, @function
sortdown:
.LFB9:
	.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	downll(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	sortdown, .-sortdown
	.globl	pom
	.type	pom, @function
pom:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	%edx, -36(%rbp)
	movq	$1, -8(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	jmp	.L14
.L17:
	movq	-32(%rbp), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L16
	movq	-8(%rbp), %rax
	imulq	-24(%rbp), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -8(%rbp)
.L16:
	movq	-24(%rbp), %rax
	imulq	%rax, %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, -32(%rbp)
.L14:
	cmpq	$0, -32(%rbp)
	jne	.L17
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	pom, .-pom
	.globl	deg
	.bss
	.align 32
	.type	deg, @object
	.size	deg, 800080
deg:
	.zero	800080
	.text
	.globl	esort
	.type	esort, @function
esort:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jge	.L20
	movl	$-1, %eax
	jmp	.L21
.L20:
	movq	-16(%rbp), %rax
	movq	(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jle	.L22
	movl	$1, %eax
	jmp	.L21
.L22:
	movq	-16(%rbp), %rax
	movq	8(%rax), %rdx
	movq	-8(%rbp), %rax
	movq	8(%rax), %rax
	cmpq	%rax, %rdx
	jge	.L23
	movl	$-1, %eax
	jmp	.L21
.L23:
	movl	$1, %eax
.L21:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	esort, .-esort
	.globl	g
	.bss
	.align 32
	.type	g, @object
	.size	g, 3600208
g:
	.zero	3600208
	.section	.rodata
.LC0:
	.string	"%lld%lld"
	.text
	.globl	readgraph
	.type	readgraph, @function
readgraph:
.LFB12:
	.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	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -24(%rbp)
	jmp	.L25
.L26:
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-40(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -40(%rbp)
	movq	-32(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -32(%rbp)
	movq	-24(%rbp), %rax
	leaq	(%rax,%rax), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+g(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-24(%rbp), %rax
	leaq	(%rax,%rax), %rdx
	movq	-32(%rbp), %rax
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	16+g(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-24(%rbp), %rax
	addq	%rax, %rax
	leaq	1(%rax), %rdx
	movq	-32(%rbp), %rax
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	8+g(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-24(%rbp), %rax
	addq	%rax, %rax
	leaq	1(%rax), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, %rcx
	salq	$4, %rcx
	leaq	16+g(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-40(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rcx
	movq	(%rdx,%rcx), %rdx
	leaq	1(%rdx), %rcx
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	movq	-32(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rcx
	movq	(%rdx,%rcx), %rdx
	leaq	1(%rdx), %rcx
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -24(%rbp)
.L25:
	movq	-48(%rbp), %rax
	cmpq	%rax, -24(%rbp)
	jl	.L26
	movq	-56(%rbp), %rax
	movl	%eax, g(%rip)
	movq	-48(%rbp), %rax
	addl	%eax, %eax
	movl	%eax, 4+g(%rip)
	movl	4+g(%rip), %eax
	cltq
	leaq	esort(%rip), %rdx
	movq	%rdx, %rcx
	movl	$16, %edx
	movq	%rax, %rsi
	leaq	8+g(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -60(%rbp)
	movq	$0, -16(%rbp)
	jmp	.L27
.L30:
	addl	$1, -60(%rbp)
.L28:
	movl	4+g(%rip), %eax
	cmpl	%eax, -60(%rbp)
	jge	.L29
	movl	-60(%rbp), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	8+g(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	%rax, -16(%rbp)
	jg	.L30
.L29:
	movq	-16(%rbp), %rax
	addq	$800040, %rax
	leaq	0(,%rax,4), %rcx
	leaq	8+g(%rip), %rdx
	movl	-60(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	addq	$1, -16(%rbp)
.L27:
	movl	g(%rip), %eax
	cltq
	cmpq	%rax, -16(%rbp)
	jl	.L28
	movl	g(%rip), %edx
	movl	4+g(%rip), %eax
	movslq	%edx, %rdx
	addq	$800040, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	8+g(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	readgraph, .-readgraph
	.globl	f
	.type	f, @function
f:
.LFB13:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movl	$0, -20(%rbp)
	movq	$0, -8(%rbp)
	jmp	.L34
.L40:
	movl	-36(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-36(%rbp), %eax
	cltq
	addq	$800040, %rax
	leaq	0(,%rax,4), %rdx
	leaq	8+g(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%eax, %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	16+g(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	%eax, -12(%rbp)
	jmp	.L35
.L38:
	movl	-12(%rbp), %eax
	cltq
	addq	$800040, %rax
	leaq	0(,%rax,4), %rdx
	leaq	8+g(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	16+g(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	-16(%rbp), %eax
	cltq
	cmpq	%rax, %rdx
	je	.L36
	movl	-12(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-12(%rbp), %eax
	cltq
	addq	$800040, %rax
	leaq	0(,%rax,4), %rdx
	leaq	8+g(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	16+g(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	%eax, -12(%rbp)
	jmp	.L35
.L36:
	movl	-12(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-12(%rbp), %eax
	cltq
	addq	$800040, %rax
	leaq	0(,%rax,4), %rdx
	leaq	8+g(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$1, %eax
	cltq
	salq	$4, %rax
	movq	%rax, %rdx
	leaq	16+g(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	%eax, -12(%rbp)
.L35:
	movl	-12(%rbp), %eax
	cmpl	-36(%rbp), %eax
	je	.L37
	movl	-12(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jne	.L38
.L37:
	movl	-12(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jne	.L39
	addl	$1, -20(%rbp)
.L39:
	addq	$1, -8(%rbp)
.L34:
	cmpq	$3, -8(%rbp)
	jle	.L40
	cmpl	$2, -20(%rbp)
	sete	%al
	movzbl	%al, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	f, .-f
	.section	.rodata
.LC1:
	.string	"No"
.LC2:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	$0, %eax
	call	readgraph
	movl	$0, -28(%rbp)
	movq	$0, -16(%rbp)
	jmp	.L43
.L48:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rax
	movq	(%rdx,%rax), %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L44
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L45
.L44:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	$4, %rax
	jne	.L46
	addl	$1, -28(%rbp)
.L46:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	$5, %rax
	jle	.L47
	movl	$3, -28(%rbp)
.L47:
	addq	$1, -16(%rbp)
.L43:
	movl	g(%rip), %eax
	cltq
	cmpq	%rax, -16(%rbp)
	jl	.L48
	cmpl	$2, -28(%rbp)
	jle	.L49
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L50
.L49:
	cmpl	$1, -28(%rbp)
	jg	.L51
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L50
.L51:
	movl	$-1, -24(%rbp)
	movl	$-1, -20(%rbp)
	movq	$0, -8(%rbp)
	jmp	.L52
.L57:
	movq	-8(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	deg(%rip), %rax
	movq	(%rdx,%rax), %rax
	cmpq	$4, %rax
	jne	.L53
	cmpl	$-1, -24(%rbp)
	jne	.L54
	movq	-8(%rbp), %rax
	movl	%eax, -24(%rbp)
	jmp	.L53
.L54:
	movq	-8(%rbp), %rax
	movl	%eax, -20(%rbp)
	movl	-20(%rbp), %edx
	movl	-24(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	f
	testl	%eax, %eax
	je	.L55
	leaq	.LC2(%rip), %rax
	jmp	.L56
.L55:
	leaq	.LC1(%rip), %rax
.L56:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L45
.L53:
	addq	$1, -8(%rbp)
.L52:
	movl	g(%rip), %eax
	cltq
	cmpq	%rax, -8(%rbp)
	jl	.L57
.L50:
	movl	$0, %eax
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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:
