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

```c
#define _CRT_SECURE_NO_WARNINGS

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

/* define */
#define Yes(X) puts ( X ? "Yes" : "No")
#define YES(X) puts ( X ? "YES" : "NO")
#define FOR(i, a, b) for ( int i = a; i < b ; i++)
#define REP(i, n) for ( int i = 0; i < n ; i++)
#define max(a, b) (((a) > (b)) ? (a) : (b))
#define min(a, b) (((a) < (b)) ? (a) : (b))
#define max3(a, b, c) ((max((a), (b)) > (c)) ? max((a), (b)) : (c))
#define min3(a, b, c) ((min((a), (b)) < (c)) ? min((a), (b)) : (c))

/* const */
const int MOD = (int)1e9 + 7;

/* alias */
typedef long long ll;
typedef unsigned  u;

/* function */
int cmp(const void *a, const void *b) {
	return *(int*)a - *(int*)b;
}
int cmp2(const void *a, const void *b) {
	return *(int*)b - *(int*)a;
}
int gcd(int a, int b) {
	if (b != 0)return gcd(b, a % b);
	return a;
}
ll Lgcd(ll a, ll b) {
	if (b != 0) return Lgcd(b, a % b);
	return a;
}
int lcm(int a, int b) {
	return a / gcd(a, b) * b;
}
ll Llcm(ll a, ll b) {
	return a / Lgcd(a, b) * b;
}


/* main */
int main() {
	int n, a[100000], f = 1;
	scanf("%d", &n);
	REP(i, n) scanf("%d", &a[i]);
	if (n % 3) f = 0;
	else {
		qsort(a, n, sizeof(int), cmp);
		FOR(i, 0, n / 3 - 1)	if (a[i] ^ a[i + 1]) f = 0;
		FOR(i, n / 3, n / 3 * 2 - 1)	if (a[i] ^ a[i + 1]) f = 0;
		FOR(i, n / 3 * 2, n - 1)	if (a[i] ^ a[i + 1]) f = 0;
		if ((a[0] ^ a[n / 3]) ^ a[n / 3 * 2]) f = 0;
	}
	int zf = 1;
	REP(i, n) if (a[i] != 0) zf = 0;

	Yes(f || zf);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	MOD
	.section	.rodata
	.align 4
	.type	MOD, @object
	.size	MOD, 4
MOD:
	.long	1000000007
	.text
	.globl	cmp
	.type	cmp, @function
cmp:
.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
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmp, .-cmp
	.globl	cmp2
	.type	cmp2, @function
cmp2:
.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	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	cmp2, .-cmp2
	.globl	gcd
	.type	gcd, @function
gcd:
.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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	cmpl	$0, -8(%rbp)
	je	.L6
	movl	-4(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	-8(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	gcd
	jmp	.L7
.L6:
	movl	-4(%rbp), %eax
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	gcd, .-gcd
	.globl	Lgcd
	.type	Lgcd, @function
Lgcd:
.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)
	movq	%rsi, -16(%rbp)
	cmpq	$0, -16(%rbp)
	je	.L9
	movq	-8(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	Lgcd
	jmp	.L10
.L9:
	movq	-8(%rbp), %rax
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Lgcd, .-Lgcd
	.globl	lcm
	.type	lcm, @function
lcm:
.LFB10:
	.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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	gcd
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltd
	idivl	%ecx
	imull	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	lcm, .-lcm
	.globl	Llcm
	.type	Llcm, @function
Llcm:
.LFB11:
	.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)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	Lgcd
	movq	%rax, %rcx
	movq	-8(%rbp), %rax
	cqto
	idivq	%rcx
	imulq	-16(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	Llcm, .-Llcm
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2736, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -400044(%rbp)
	leaq	-400048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400040(%rbp)
	jmp	.L16
.L17:
	leaq	-400016(%rbp), %rdx
	movl	-400040(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400040(%rbp)
.L16:
	movl	-400048(%rbp), %eax
	cmpl	%eax, -400040(%rbp)
	jl	.L17
	movl	-400048(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	je	.L18
	movl	$0, -400044(%rbp)
	jmp	.L19
.L18:
	movl	-400048(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-400016(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -400036(%rbp)
	jmp	.L20
.L22:
	movl	-400036(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-400036(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L21
	movl	$0, -400044(%rbp)
.L21:
	addl	$1, -400036(%rbp)
.L20:
	movl	-400048(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	subl	$1, %eax
	cmpl	%eax, -400036(%rbp)
	jl	.L22
	movl	-400048(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -400032(%rbp)
	jmp	.L23
.L25:
	movl	-400032(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-400032(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L24
	movl	$0, -400044(%rbp)
.L24:
	addl	$1, -400032(%rbp)
.L23:
	movl	-400048(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	%eax, %eax
	subl	$1, %eax
	cmpl	%eax, -400032(%rbp)
	jl	.L25
	movl	-400048(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	%eax, %eax
	movl	%eax, -400028(%rbp)
	jmp	.L26
.L28:
	movl	-400028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-400028(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L27
	movl	$0, -400044(%rbp)
.L27:
	addl	$1, -400028(%rbp)
.L26:
	movl	-400048(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -400028(%rbp)
	jl	.L28
	movl	-400016(%rbp), %ecx
	movl	-400048(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	xorl	%eax, %ecx
	movl	-400048(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	addl	%eax, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, %ecx
	je	.L19
	movl	$0, -400044(%rbp)
.L19:
	movl	$1, -400024(%rbp)
	movl	$0, -400020(%rbp)
	jmp	.L29
.L31:
	movl	-400020(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L30
	movl	$0, -400024(%rbp)
.L30:
	addl	$1, -400020(%rbp)
.L29:
	movl	-400048(%rbp), %eax
	cmpl	%eax, -400020(%rbp)
	jl	.L31
	cmpl	$0, -400044(%rbp)
	jne	.L32
	cmpl	$0, -400024(%rbp)
	je	.L33
.L32:
	leaq	.LC1(%rip), %rax
	jmp	.L34
.L33:
	leaq	.LC2(%rip), %rax
.L34:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	cmp
	.type	cmp, @function
cmp:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	cmp, .-cmp
	.p2align 4
	.globl	cmp2
	.type	cmp2, @function
cmp2:
.LFB52:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE52:
	.size	cmp2, .-cmp2
	.p2align 4
	.globl	gcd
	.type	gcd, @function
gcd:
.LFB53:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	movl	%esi, %r8d
	testl	%esi, %esi
	jne	.L6
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%edx, %r8d
.L6:
	cltd
	idivl	%r8d
	movl	%r8d, %eax
	testl	%edx, %edx
	jne	.L8
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%edi, %r8d
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE53:
	.size	gcd, .-gcd
	.p2align 4
	.globl	Lgcd
	.type	Lgcd, @function
Lgcd:
.LFB54:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rsi, %r8
	testq	%rsi, %rsi
	jne	.L12
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rdx, %r8
.L12:
	cqto
	idivq	%r8
	movq	%r8, %rax
	testq	%rdx, %rdx
	jne	.L14
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rdi, %r8
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE54:
	.size	Lgcd, .-Lgcd
	.p2align 4
	.globl	lcm
	.type	lcm, @function
lcm:
.LFB55:
	.cfi_startproc
	endbr64
	testl	%esi, %esi
	je	.L19
	movl	%edi, %eax
	movl	%esi, %ecx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L20:
	movl	%edx, %ecx
.L18:
	cltd
	idivl	%ecx
	movl	%ecx, %eax
	testl	%edx, %edx
	jne	.L20
	movl	%edi, %eax
	cltd
	idivl	%ecx
	imull	%esi, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE55:
	.size	lcm, .-lcm
	.p2align 4
	.globl	Llcm
	.type	Llcm, @function
Llcm:
.LFB56:
	.cfi_startproc
	endbr64
	testq	%rsi, %rsi
	je	.L24
	movq	%rdi, %rax
	movq	%rsi, %rcx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L25:
	movq	%rdx, %rcx
.L23:
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L25
	movq	%rdi, %rax
	cqto
	idivq	%rcx
	imulq	%rsi, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE56:
	.size	Llcm, .-Llcm
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
.LC4:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB57:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397352
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2728, %rsp
	.cfi_def_cfa_offset 400080
	leaq	.LC4(%rip), %r13
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 400024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L27
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L28:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addq	$4, %rbp
	cmpl	%ebx, %ecx
	jg	.L28
	imull	$-1431655765, %ecx, %eax
	xorl	%edx, %edx
	addl	$715827882, %eax
	cmpl	$1431655764, %eax
	jbe	.L71
.L29:
	leaq	.LC2(%rip), %rdi
	testl	%ecx, %ecx
	jle	.L64
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L81
	movl	%ecx, %esi
	movdqa	.LC0(%rip), %xmm0
	movq	%r12, %rax
	pxor	%xmm2, %xmm2
	shrl	$2, %esi
	subl	$1, %esi
	salq	$4, %rsi
	leaq	32(%rsp,%rsi), %rsi
	.p2align 4,,10
	.p2align 3
.L66:
	movdqa	%xmm2, %xmm1
	addq	$16, %rax
	pcmpeqd	-16(%rax), %xmm1
	pand	%xmm1, %xmm0
	cmpq	%rsi, %rax
	jne	.L66
	movdqa	%xmm0, %xmm2
	movl	%ecx, %esi
	psrldq	$8, %xmm2
	andl	$-4, %esi
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movd	%xmm0, %eax
	testb	$3, %cl
	je	.L67
.L65:
	movslq	%esi, %rdi
	xorl	%r8d, %r8d
	movl	16(%rsp,%rdi,4), %edi
	testl	%edi, %edi
	leal	1(%rsi), %edi
	cmovne	%r8d, %eax
	cmpl	%edi, %ecx
	jle	.L67
	movslq	%edi, %rdi
	cmpl	$0, 16(%rsp,%rdi,4)
	cmovne	%r8d, %eax
	addl	$2, %esi
	cmpl	%ecx, %esi
	jge	.L67
	movslq	%esi, %rsi
	cmpl	$0, 16(%rsp,%rsi,4)
	cmovne	%r8d, %eax
.L67:
	orl	%edx, %eax
	leaq	.LC2(%rip), %rdi
	leaq	.LC3(%rip), %rax
	cmove	%rax, %rdi
.L64:
	call	puts@PLT
	movq	400024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L94
	addq	$400040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	movl	%ecx, %eax
	movl	$3, %esi
	leaq	16(%rsp), %r12
	cltd
	leaq	.LC2(%rip), %rdi
	idivl	%esi
	testl	%edx, %edx
	jne	.L64
.L71:
	movslq	%ecx, %rsi
	movl	$4, %edx
	movq	%r12, %rdi
	leaq	cmp(%rip), %rcx
	call	qsort@PLT
	movl	12(%rsp), %ecx
	movl	$3, %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	leal	-1(%rax), %esi
	testl	%esi, %esi
	jle	.L74
	leal	-2(%rax), %edx
	cmpl	$2, %edx
	jbe	.L75
	movl	%esi, %edi
	movdqa	.LC0(%rip), %xmm1
	movq	%r12, %rdx
	shrl	$2, %edi
	subl	$1, %edi
	salq	$4, %rdi
	leaq	32(%rsp,%rdi), %rdi
	.p2align 4,,10
	.p2align 3
.L32:
	movdqu	4(%rdx), %xmm0
	addq	$16, %rdx
	pcmpeqd	-16(%rdx), %xmm0
	pand	%xmm0, %xmm1
	cmpq	%rdi, %rdx
	jne	.L32
	movdqa	%xmm1, %xmm2
	movl	%esi, %edi
	psrldq	$8, %xmm2
	andl	$-4, %edi
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %edx
	testb	$3, %sil
	je	.L30
.L31:
	leal	1(%rdi), %r10d
	xorl	%r9d, %r9d
	movslq	%r10d, %r8
	movl	16(%rsp,%r8,4), %r11d
	movslq	%edi, %r8
	cmpl	%r11d, 16(%rsp,%r8,4)
	cmovne	%r9d, %edx
	cmpl	%r10d, %esi
	jle	.L30
	leal	2(%rdi), %r8d
	movslq	%r8d, %r10
	movl	16(%rsp,%r10,4), %r10d
	cmpl	%r10d, %r11d
	cmovne	%r9d, %edx
	cmpl	%r8d, %esi
	jle	.L30
	addl	$3, %edi
	movslq	%edi, %rdi
	cmpl	%r10d, 16(%rsp,%rdi,4)
	cmovne	%r9d, %edx
.L30:
	leal	(%rax,%rax), %r8d
	movslq	%eax, %r10
	leal	-1(%r8), %r11d
	movl	16(%rsp,%r10,4), %r9d
	cmpl	%r11d, %eax
	jge	.L38
	movl	%r8d, %esi
	subl	%eax, %esi
	leal	-1(%rsi), %ebx
	subl	$2, %esi
	cmpl	$3, %esi
	jbe	.L39
	movl	%ebx, %esi
	movd	%edx, %xmm7
	pxor	%xmm1, %xmm1
	movdqa	.LC1(%rip), %xmm3
	leaq	0(,%r10,4), %rdx
	shrl	$2, %esi
	pshufd	$0, %xmm7, %xmm2
	movdqa	.LC5(%rip), %xmm4
	leaq	(%r12,%rdx), %rbp
	leaq	4(%rdx,%r12), %rdi
	salq	$4, %rsi
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L40:
	movdqu	0(%rbp,%rdx), %xmm0
	movdqu	(%rdi,%rdx), %xmm5
	addq	$16, %rdx
	pcmpeqd	%xmm5, %xmm0
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	pandn	%xmm3, %xmm0
	por	%xmm0, %xmm1
	paddd	%xmm4, %xmm3
	cmpq	%rdx, %rsi
	jne	.L40
	pshufd	$85, %xmm1, %xmm0
	movd	%xmm1, %edi
	movd	%xmm0, %edx
	movd	%xmm0, %esi
	movdqa	%xmm1, %xmm0
	cmpl	%edx, %edi
	punpckhdq	%xmm1, %xmm0
	cmovnb	%edi, %esi
	movd	%xmm0, %ebp
	cmpl	%ebp, %esi
	jb	.L42
	cmpl	%edx, %edi
	jb	.L44
	movd	%xmm2, %edx
.L43:
	cmpl	%ebp, %esi
	pshufd	$255, %xmm1, %xmm1
	pshufd	$255, %xmm2, %xmm2
	cmovnb	%esi, %ebp
	movd	%xmm1, %esi
	movd	%xmm2, %edi
	cmpl	%esi, %ebp
	movl	%ebx, %esi
	cmovb	%edi, %edx
	andl	$-4, %esi
	addl	%esi, %eax
	cmpl	%esi, %ebx
	je	.L38
.L39:
	leal	1(%rax), %ebx
	movslq	%eax, %rdi
	movslq	%ebx, %rsi
	movl	16(%rsp,%rsi,4), %ebp
	xorl	%esi, %esi
	cmpl	%ebp, 16(%rsp,%rdi,4)
	cmovne	%esi, %edx
	cmpl	%r11d, %ebx
	jge	.L38
	leal	2(%rax), %edi
	movslq	%edi, %rbx
	movl	16(%rsp,%rbx,4), %ebx
	cmpl	%ebp, %ebx
	cmovne	%esi, %edx
	cmpl	%r11d, %edi
	jge	.L38
	leal	3(%rax), %edi
	movslq	%edi, %rbp
	movl	16(%rsp,%rbp,4), %ebp
	cmpl	%ebp, %ebx
	cmovne	%esi, %edx
	cmpl	%edi, %r11d
	jle	.L38
	addl	$4, %eax
	cltq
	cmpl	%ebp, 16(%rsp,%rax,4)
	cmovne	%esi, %edx
.L38:
	movslq	%r8d, %rsi
	leal	-1(%rcx), %r11d
	movl	16(%rsp,%rsi,4), %edi
	cmpl	%r8d, %r11d
	jle	.L51
	movl	%ecx, %eax
	subl	%r8d, %eax
	leal	-1(%rax), %ebx
	subl	$2, %eax
	cmpl	$3, %eax
	jbe	.L52
	movd	%edx, %xmm7
	movl	%ebx, %edx
	salq	$3, %r10
	xorl	%eax, %eax
	pshufd	$0, %xmm7, %xmm2
	shrl	$2, %edx
	leaq	(%r12,%r10), %rbp
	pxor	%xmm1, %xmm1
	movdqa	.LC1(%rip), %xmm3
	movdqa	.LC5(%rip), %xmm4
	leaq	4(%r10,%r12), %rsi
	salq	$4, %rdx
	.p2align 4,,10
	.p2align 3
.L53:
	movdqu	0(%rbp,%rax), %xmm0
	movdqu	(%rsi,%rax), %xmm6
	addq	$16, %rax
	pcmpeqd	%xmm6, %xmm0
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	pandn	%xmm3, %xmm0
	por	%xmm0, %xmm1
	paddd	%xmm4, %xmm3
	cmpq	%rax, %rdx
	jne	.L53
	pshufd	$85, %xmm1, %xmm0
	movd	%xmm1, %esi
	movd	%xmm0, %edx
	movd	%xmm0, %eax
	movdqa	%xmm1, %xmm0
	cmpl	%edx, %esi
	punpckhdq	%xmm1, %xmm0
	cmovnb	%esi, %eax
	movd	%xmm0, %r10d
	cmpl	%r10d, %eax
	jb	.L55
	cmpl	%edx, %esi
	jb	.L57
	movd	%xmm2, %edx
.L56:
	cmpl	%r10d, %eax
	pshufd	$255, %xmm1, %xmm1
	pshufd	$255, %xmm2, %xmm2
	cmovnb	%eax, %r10d
	movd	%xmm1, %eax
	movd	%xmm2, %esi
	cmpl	%eax, %r10d
	movl	%ebx, %eax
	cmovb	%esi, %edx
	andl	$-4, %eax
	addl	%eax, %r8d
	cmpl	%eax, %ebx
	je	.L51
	movslq	%r8d, %rsi
.L52:
	leal	1(%r8), %r10d
	movslq	%r10d, %rax
	movl	16(%rsp,%rax,4), %ebx
	xorl	%eax, %eax
	cmpl	16(%rsp,%rsi,4), %ebx
	cmovne	%eax, %edx
	cmpl	%r10d, %r11d
	jle	.L51
	leal	2(%r8), %esi
	movslq	%esi, %r10
	movl	16(%rsp,%r10,4), %r10d
	cmpl	%r10d, %ebx
	cmovne	%eax, %edx
	cmpl	%esi, %r11d
	jle	.L51
	leal	3(%r8), %esi
	movslq	%esi, %rbx
	movl	16(%rsp,%rbx,4), %ebx
	cmpl	%r10d, %ebx
	cmovne	%eax, %edx
	cmpl	%esi, %r11d
	jle	.L51
	addl	$4, %r8d
	movslq	%r8d, %r8
	cmpl	16(%rsp,%r8,4), %ebx
	cmovne	%eax, %edx
.L51:
	xorl	16(%rsp), %r9d
	xorl	%eax, %eax
	cmpl	%edi, %r9d
	cmovne	%eax, %edx
	jmp	.L29
.L55:
	movdqa	%xmm2, %xmm0
	punpckhdq	%xmm2, %xmm0
	movd	%xmm0, %edx
	jmp	.L56
.L42:
	movdqa	%xmm2, %xmm0
	punpckhdq	%xmm2, %xmm0
	movd	%xmm0, %edx
	jmp	.L43
.L81:
	xorl	%esi, %esi
	movl	$1, %eax
	jmp	.L65
.L44:
	pshufd	$85, %xmm2, %xmm0
	movd	%xmm0, %edx
	jmp	.L43
.L57:
	pshufd	$85, %xmm2, %xmm0
	movd	%xmm0, %edx
	jmp	.L56
.L74:
	movl	$1, %edx
	jmp	.L30
.L75:
	xorl	%edi, %edi
	movl	$1, %edx
	jmp	.L31
.L94:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE57:
	.size	main, .-main
	.globl	MOD
	.section	.rodata
	.align 4
	.type	MOD, @object
	.size	MOD, 4
MOD:
	.long	1000000007
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	1
	.long	1
	.align 16
.LC1:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC5:
	.long	4
	.long	4
	.long	4
	.long	4
	.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	cmp
	.type	cmp, @function
cmp:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	cmp, .-cmp
	.p2align 4
	.globl	cmp2
	.type	cmp2, @function
cmp2:
.LFB52:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	subl	(%rdi), %eax
	ret
	.cfi_endproc
.LFE52:
	.size	cmp2, .-cmp2
	.p2align 4
	.globl	gcd
	.type	gcd, @function
gcd:
.LFB53:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	movl	%esi, %r8d
	testl	%esi, %esi
	jne	.L6
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%edx, %r8d
.L6:
	cltd
	idivl	%r8d
	movl	%r8d, %eax
	testl	%edx, %edx
	jne	.L8
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%edi, %r8d
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE53:
	.size	gcd, .-gcd
	.p2align 4
	.globl	Lgcd
	.type	Lgcd, @function
Lgcd:
.LFB54:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	movq	%rsi, %r8
	testq	%rsi, %rsi
	jne	.L12
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rdx, %r8
.L12:
	cqto
	idivq	%r8
	movq	%r8, %rax
	testq	%rdx, %rdx
	jne	.L14
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rdi, %r8
	movq	%r8, %rax
	ret
	.cfi_endproc
.LFE54:
	.size	Lgcd, .-Lgcd
	.p2align 4
	.globl	lcm
	.type	lcm, @function
lcm:
.LFB55:
	.cfi_startproc
	endbr64
	testl	%esi, %esi
	je	.L19
	movl	%edi, %eax
	movl	%esi, %ecx
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L20:
	movl	%edx, %ecx
.L18:
	cltd
	idivl	%ecx
	movl	%ecx, %eax
	testl	%edx, %edx
	jne	.L20
	movl	%edi, %eax
	cltd
	idivl	%ecx
	imull	%esi, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE55:
	.size	lcm, .-lcm
	.p2align 4
	.globl	Llcm
	.type	Llcm, @function
Llcm:
.LFB56:
	.cfi_startproc
	endbr64
	testq	%rsi, %rsi
	je	.L24
	movq	%rdi, %rax
	movq	%rsi, %rcx
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L25:
	movq	%rdx, %rcx
.L23:
	cqto
	idivq	%rcx
	movq	%rcx, %rax
	testq	%rdx, %rdx
	jne	.L25
	movq	%rdi, %rax
	cqto
	idivq	%rcx
	imulq	%rsi, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	xorl	%eax, %eax
	ret
	.cfi_endproc
.LFE56:
	.size	Llcm, .-Llcm
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Yes"
.LC3:
	.string	"No"
.LC4:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB57:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397352
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2728, %rsp
	.cfi_def_cfa_offset 400080
	leaq	.LC4(%rip), %r13
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 400024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L27
	leaq	16(%rsp), %r12
	xorl	%ebx, %ebx
	movq	%r12, %rbp
	.p2align 4,,10
	.p2align 3
.L28:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	addq	$4, %rbp
	cmpl	%ebx, %ecx
	jg	.L28
	imull	$-1431655765, %ecx, %eax
	xorl	%edx, %edx
	addl	$715827882, %eax
	cmpl	$1431655764, %eax
	jbe	.L71
.L29:
	leaq	.LC2(%rip), %rdi
	testl	%ecx, %ecx
	jle	.L64
	leal	-1(%rcx), %eax
	cmpl	$2, %eax
	jbe	.L81
	movl	%ecx, %esi
	movdqa	.LC0(%rip), %xmm0
	movq	%r12, %rax
	pxor	%xmm2, %xmm2
	shrl	$2, %esi
	subl	$1, %esi
	salq	$4, %rsi
	leaq	32(%rsp,%rsi), %rsi
	.p2align 4,,10
	.p2align 3
.L66:
	movdqa	%xmm2, %xmm1
	addq	$16, %rax
	pcmpeqd	-16(%rax), %xmm1
	pand	%xmm1, %xmm0
	cmpq	%rsi, %rax
	jne	.L66
	movdqa	%xmm0, %xmm2
	movl	%ecx, %esi
	psrldq	$8, %xmm2
	andl	$-4, %esi
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movd	%xmm0, %eax
	testb	$3, %cl
	je	.L67
.L65:
	movslq	%esi, %rdi
	xorl	%r8d, %r8d
	movl	16(%rsp,%rdi,4), %edi
	testl	%edi, %edi
	leal	1(%rsi), %edi
	cmovne	%r8d, %eax
	cmpl	%edi, %ecx
	jle	.L67
	movslq	%edi, %rdi
	cmpl	$0, 16(%rsp,%rdi,4)
	cmovne	%r8d, %eax
	addl	$2, %esi
	cmpl	%ecx, %esi
	jge	.L67
	movslq	%esi, %rsi
	cmpl	$0, 16(%rsp,%rsi,4)
	cmovne	%r8d, %eax
.L67:
	orl	%edx, %eax
	leaq	.LC2(%rip), %rdi
	leaq	.LC3(%rip), %rax
	cmove	%rax, %rdi
.L64:
	call	puts@PLT
	movq	400024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L94
	addq	$400040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	movl	%ecx, %eax
	movl	$3, %esi
	leaq	16(%rsp), %r12
	cltd
	leaq	.LC2(%rip), %rdi
	idivl	%esi
	testl	%edx, %edx
	jne	.L64
.L71:
	movslq	%ecx, %rsi
	movl	$4, %edx
	movq	%r12, %rdi
	leaq	cmp(%rip), %rcx
	call	qsort@PLT
	movl	12(%rsp), %ecx
	movl	$3, %esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	leal	-1(%rax), %esi
	testl	%esi, %esi
	jle	.L74
	leal	-2(%rax), %edx
	cmpl	$2, %edx
	jbe	.L75
	movl	%esi, %edi
	movdqa	.LC0(%rip), %xmm1
	movq	%r12, %rdx
	shrl	$2, %edi
	subl	$1, %edi
	salq	$4, %rdi
	leaq	32(%rsp,%rdi), %rdi
	.p2align 4,,10
	.p2align 3
.L32:
	movdqu	4(%rdx), %xmm0
	addq	$16, %rdx
	pcmpeqd	-16(%rdx), %xmm0
	pand	%xmm0, %xmm1
	cmpq	%rdi, %rdx
	jne	.L32
	movdqa	%xmm1, %xmm2
	movl	%esi, %edi
	psrldq	$8, %xmm2
	andl	$-4, %edi
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqa	%xmm0, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm1
	pcmpgtd	%xmm0, %xmm1
	pand	%xmm1, %xmm0
	pandn	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movd	%xmm1, %edx
	testb	$3, %sil
	je	.L30
.L31:
	leal	1(%rdi), %r10d
	xorl	%r9d, %r9d
	movslq	%r10d, %r8
	movl	16(%rsp,%r8,4), %r11d
	movslq	%edi, %r8
	cmpl	%r11d, 16(%rsp,%r8,4)
	cmovne	%r9d, %edx
	cmpl	%r10d, %esi
	jle	.L30
	leal	2(%rdi), %r8d
	movslq	%r8d, %r10
	movl	16(%rsp,%r10,4), %r10d
	cmpl	%r10d, %r11d
	cmovne	%r9d, %edx
	cmpl	%r8d, %esi
	jle	.L30
	addl	$3, %edi
	movslq	%edi, %rdi
	cmpl	%r10d, 16(%rsp,%rdi,4)
	cmovne	%r9d, %edx
.L30:
	leal	(%rax,%rax), %r8d
	movslq	%eax, %r10
	leal	-1(%r8), %r11d
	movl	16(%rsp,%r10,4), %r9d
	cmpl	%r11d, %eax
	jge	.L38
	movl	%r8d, %esi
	subl	%eax, %esi
	leal	-1(%rsi), %ebx
	subl	$2, %esi
	cmpl	$3, %esi
	jbe	.L39
	movl	%ebx, %esi
	movd	%edx, %xmm7
	pxor	%xmm1, %xmm1
	movdqa	.LC1(%rip), %xmm3
	leaq	0(,%r10,4), %rdx
	shrl	$2, %esi
	pshufd	$0, %xmm7, %xmm2
	movdqa	.LC5(%rip), %xmm4
	leaq	(%r12,%rdx), %rbp
	leaq	4(%rdx,%r12), %rdi
	salq	$4, %rsi
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L40:
	movdqu	0(%rbp,%rdx), %xmm0
	movdqu	(%rdi,%rdx), %xmm5
	addq	$16, %rdx
	pcmpeqd	%xmm5, %xmm0
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	pandn	%xmm3, %xmm0
	por	%xmm0, %xmm1
	paddd	%xmm4, %xmm3
	cmpq	%rdx, %rsi
	jne	.L40
	pshufd	$85, %xmm1, %xmm0
	movd	%xmm1, %edi
	movd	%xmm0, %edx
	movd	%xmm0, %esi
	movdqa	%xmm1, %xmm0
	cmpl	%edx, %edi
	punpckhdq	%xmm1, %xmm0
	cmovnb	%edi, %esi
	movd	%xmm0, %ebp
	cmpl	%ebp, %esi
	jb	.L42
	cmpl	%edx, %edi
	jb	.L44
	movd	%xmm2, %edx
.L43:
	cmpl	%ebp, %esi
	pshufd	$255, %xmm1, %xmm1
	pshufd	$255, %xmm2, %xmm2
	cmovnb	%esi, %ebp
	movd	%xmm1, %esi
	movd	%xmm2, %edi
	cmpl	%esi, %ebp
	movl	%ebx, %esi
	cmovb	%edi, %edx
	andl	$-4, %esi
	addl	%esi, %eax
	cmpl	%esi, %ebx
	je	.L38
.L39:
	leal	1(%rax), %ebx
	movslq	%eax, %rdi
	movslq	%ebx, %rsi
	movl	16(%rsp,%rsi,4), %ebp
	xorl	%esi, %esi
	cmpl	%ebp, 16(%rsp,%rdi,4)
	cmovne	%esi, %edx
	cmpl	%r11d, %ebx
	jge	.L38
	leal	2(%rax), %edi
	movslq	%edi, %rbx
	movl	16(%rsp,%rbx,4), %ebx
	cmpl	%ebp, %ebx
	cmovne	%esi, %edx
	cmpl	%r11d, %edi
	jge	.L38
	leal	3(%rax), %edi
	movslq	%edi, %rbp
	movl	16(%rsp,%rbp,4), %ebp
	cmpl	%ebp, %ebx
	cmovne	%esi, %edx
	cmpl	%edi, %r11d
	jle	.L38
	addl	$4, %eax
	cltq
	cmpl	%ebp, 16(%rsp,%rax,4)
	cmovne	%esi, %edx
.L38:
	movslq	%r8d, %rsi
	leal	-1(%rcx), %r11d
	movl	16(%rsp,%rsi,4), %edi
	cmpl	%r8d, %r11d
	jle	.L51
	movl	%ecx, %eax
	subl	%r8d, %eax
	leal	-1(%rax), %ebx
	subl	$2, %eax
	cmpl	$3, %eax
	jbe	.L52
	movd	%edx, %xmm7
	movl	%ebx, %edx
	salq	$3, %r10
	xorl	%eax, %eax
	pshufd	$0, %xmm7, %xmm2
	shrl	$2, %edx
	leaq	(%r12,%r10), %rbp
	pxor	%xmm1, %xmm1
	movdqa	.LC1(%rip), %xmm3
	movdqa	.LC5(%rip), %xmm4
	leaq	4(%r10,%r12), %rsi
	salq	$4, %rdx
	.p2align 4,,10
	.p2align 3
.L53:
	movdqu	0(%rbp,%rax), %xmm0
	movdqu	(%rsi,%rax), %xmm6
	addq	$16, %rax
	pcmpeqd	%xmm6, %xmm0
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	pandn	%xmm3, %xmm0
	por	%xmm0, %xmm1
	paddd	%xmm4, %xmm3
	cmpq	%rax, %rdx
	jne	.L53
	pshufd	$85, %xmm1, %xmm0
	movd	%xmm1, %esi
	movd	%xmm0, %edx
	movd	%xmm0, %eax
	movdqa	%xmm1, %xmm0
	cmpl	%edx, %esi
	punpckhdq	%xmm1, %xmm0
	cmovnb	%esi, %eax
	movd	%xmm0, %r10d
	cmpl	%r10d, %eax
	jb	.L55
	cmpl	%edx, %esi
	jb	.L57
	movd	%xmm2, %edx
.L56:
	cmpl	%r10d, %eax
	pshufd	$255, %xmm1, %xmm1
	pshufd	$255, %xmm2, %xmm2
	cmovnb	%eax, %r10d
	movd	%xmm1, %eax
	movd	%xmm2, %esi
	cmpl	%eax, %r10d
	movl	%ebx, %eax
	cmovb	%esi, %edx
	andl	$-4, %eax
	addl	%eax, %r8d
	cmpl	%eax, %ebx
	je	.L51
	movslq	%r8d, %rsi
.L52:
	leal	1(%r8), %r10d
	movslq	%r10d, %rax
	movl	16(%rsp,%rax,4), %ebx
	xorl	%eax, %eax
	cmpl	16(%rsp,%rsi,4), %ebx
	cmovne	%eax, %edx
	cmpl	%r10d, %r11d
	jle	.L51
	leal	2(%r8), %esi
	movslq	%esi, %r10
	movl	16(%rsp,%r10,4), %r10d
	cmpl	%r10d, %ebx
	cmovne	%eax, %edx
	cmpl	%esi, %r11d
	jle	.L51
	leal	3(%r8), %esi
	movslq	%esi, %rbx
	movl	16(%rsp,%rbx,4), %ebx
	cmpl	%r10d, %ebx
	cmovne	%eax, %edx
	cmpl	%esi, %r11d
	jle	.L51
	addl	$4, %r8d
	movslq	%r8d, %r8
	cmpl	16(%rsp,%r8,4), %ebx
	cmovne	%eax, %edx
.L51:
	xorl	16(%rsp), %r9d
	xorl	%eax, %eax
	cmpl	%edi, %r9d
	cmovne	%eax, %edx
	jmp	.L29
.L55:
	movdqa	%xmm2, %xmm0
	punpckhdq	%xmm2, %xmm0
	movd	%xmm0, %edx
	jmp	.L56
.L42:
	movdqa	%xmm2, %xmm0
	punpckhdq	%xmm2, %xmm0
	movd	%xmm0, %edx
	jmp	.L43
.L81:
	xorl	%esi, %esi
	movl	$1, %eax
	jmp	.L65
.L44:
	pshufd	$85, %xmm2, %xmm0
	movd	%xmm0, %edx
	jmp	.L43
.L57:
	pshufd	$85, %xmm2, %xmm0
	movd	%xmm0, %edx
	jmp	.L56
.L74:
	movl	$1, %edx
	jmp	.L30
.L75:
	xorl	%edi, %edi
	movl	$1, %edx
	jmp	.L31
.L94:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE57:
	.size	main, .-main
	.globl	MOD
	.section	.rodata
	.align 4
	.type	MOD, @object
	.size	MOD, 4
MOD:
	.long	1000000007
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	1
	.long	1
	.long	1
	.long	1
	.align 16
.LC1:
	.long	1
	.long	2
	.long	3
	.long	4
	.align 16
.LC5:
	.long	4
	.long	4
	.long	4
	.long	4
	.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:

#define _CRT_SECURE_NO_WARNINGS

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

/* define */
#define Yes(X) puts ( X ? "Yes" : "No")
#define YES(X) puts ( X ? "YES" : "NO")
#define FOR(i, a, b) for ( int i = a; i < b ; i++)
#define REP(i, n) for ( int i = 0; i < n ; i++)
#define max(a, b) (((a) > (b)) ? (a) : (b))
#define min(a, b) (((a) < (b)) ? (a) : (b))
#define max3(a, b, c) ((max((a), (b)) > (c)) ? max((a), (b)) : (c))
#define min3(a, b, c) ((min((a), (b)) < (c)) ? min((a), (b)) : (c))

/* const */
const int MOD = (int)1e9 + 7;

/* alias */
typedef long long ll;
typedef unsigned  u;

/* function */
int cmp(const void *a, const void *b) {
	return *(int*)a - *(int*)b;
}
int cmp2(const void *a, const void *b) {
	return *(int*)b - *(int*)a;
}
int gcd(int a, int b) {
	if (b != 0)return gcd(b, a % b);
	return a;
}
ll Lgcd(ll a, ll b) {
	if (b != 0) return Lgcd(b, a % b);
	return a;
}
int lcm(int a, int b) {
	return a / gcd(a, b) * b;
}
ll Llcm(ll a, ll b) {
	return a / Lgcd(a, b) * b;
}


/* main */
int main() {
	int n, a[100000], f = 1;
	scanf("%d", &n);
	REP(i, n) scanf("%d", &a[i]);
	if (n % 3) f = 0;
	else {
		qsort(a, n, sizeof(int), cmp);
		FOR(i, 0, n / 3 - 1)	if (a[i] ^ a[i + 1]) f = 0;
		FOR(i, n / 3, n / 3 * 2 - 1)	if (a[i] ^ a[i + 1]) f = 0;
		FOR(i, n / 3 * 2, n - 1)	if (a[i] ^ a[i + 1]) f = 0;
		if ((a[0] ^ a[n / 3]) ^ a[n / 3 * 2]) f = 0;
	}
	int zf = 1;
	REP(i, n) if (a[i] != 0) zf = 0;

	Yes(f || zf);
	return 0;
}
3
1 2 0
 3
3 2 1
 4
1 2 4 11
 3
0 2 0
 4
0 2 4 11
 3
0 1 0
 4
0 4 4 11
 3
0 1 -1
 4
0 4 4 20
 3
1 2 1

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
#define _CRT_SECURE_NO_WARNINGS

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

/* define */
#define Yes(X) puts ( X ? "Yes" : "No")
#define YES(X) puts ( X ? "YES" : "NO")
#define FOR(i, a, b) for ( int i = a; i < b ; i++)
#define REP(i, n) for ( int i = 0; i < n ; i++)
#define max(a, b) (((a) > (b)) ? (a) : (b))
#define min(a, b) (((a) < (b)) ? (a) : (b))
#define max3(a, b, c) ((max((a), (b)) > (c)) ? max((a), (b)) : (c))
#define min3(a, b, c) ((min((a), (b)) < (c)) ? min((a), (b)) : (c))

/* const */
const int MOD = (int)1e9 + 7;

/* alias */
typedef long long ll;
typedef unsigned  u;

/* function */
int cmp(const void *a, const void *b) {
	return *(int*)a - *(int*)b;
}
int cmp2(const void *a, const void *b) {
	return *(int*)b - *(int*)a;
}
int gcd(int a, int b) {
	if (b != 0)return gcd(b, a % b);
	return a;
}
ll Lgcd(ll a, ll b) {
	if (b != 0) return Lgcd(b, a % b);
	return a;
}
int lcm(int a, int b) {
	return a / gcd(a, b) * b;
}
ll Llcm(ll a, ll b) {
	return a / Lgcd(a, b) * b;
}


/* main */
int main() {
	int n, a[100000], f = 1;
	scanf("%d", &n);
	REP(i, n) scanf("%d", &a[i]);
	if (n % 3) f = 0;
	else {
		qsort(a, n, sizeof(int), cmp);
		FOR(i, 0, n / 3 - 1)	if (a[i] ^ a[i + 1]) f = 0;
		FOR(i, n / 3, n / 3 * 2 - 1)	if (a[i] ^ a[i + 1]) f = 0;
		FOR(i, n / 3 * 2, n - 1)	if (a[i] ^ a[i + 1]) f = 0;
		if ((a[0] ^ a[n / 3]) ^ a[n / 3 * 2]) f = 0;
	}
	int zf = 1;
	REP(i, n) if (a[i] != 0) zf = 0;

	Yes(f || zf);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	MOD
	.section	.rodata
	.align 4
	.type	MOD, @object
	.size	MOD, 4
MOD:
	.long	1000000007
	.text
	.globl	cmp
	.type	cmp, @function
cmp:
.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
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmp, .-cmp
	.globl	cmp2
	.type	cmp2, @function
cmp2:
.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	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	cmp2, .-cmp2
	.globl	gcd
	.type	gcd, @function
gcd:
.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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	cmpl	$0, -8(%rbp)
	je	.L6
	movl	-4(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	-8(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	gcd
	jmp	.L7
.L6:
	movl	-4(%rbp), %eax
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	gcd, .-gcd
	.globl	Lgcd
	.type	Lgcd, @function
Lgcd:
.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)
	movq	%rsi, -16(%rbp)
	cmpq	$0, -16(%rbp)
	je	.L9
	movq	-8(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	Lgcd
	jmp	.L10
.L9:
	movq	-8(%rbp), %rax
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Lgcd, .-Lgcd
	.globl	lcm
	.type	lcm, @function
lcm:
.LFB10:
	.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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	gcd
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltd
	idivl	%ecx
	imull	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	lcm, .-lcm
	.globl	Llcm
	.type	Llcm, @function
Llcm:
.LFB11:
	.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)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	Lgcd
	movq	%rax, %rcx
	movq	-8(%rbp), %rax
	cqto
	idivq	%rcx
	imulq	-16(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	Llcm, .-Llcm
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2736, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -400044(%rbp)
	leaq	-400048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400040(%rbp)
	jmp	.L16
.L17:
	leaq	-400016(%rbp), %rdx
	movl	-400040(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400040(%rbp)
.L16:
	movl	-400048(%rbp), %eax
	cmpl	%eax, -400040(%rbp)
	jl	.L17
	movl	-400048(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	je	.L18
	movl	$0, -400044(%rbp)
	jmp	.L19
.L18:
	movl	-400048(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-400016(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -400036(%rbp)
	jmp	.L20
.L22:
	movl	-400036(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-400036(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L21
	movl	$0, -400044(%rbp)
.L21:
	addl	$1, -400036(%rbp)
.L20:
	movl	-400048(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	subl	$1, %eax
	cmpl	%eax, -400036(%rbp)
	jl	.L22
	movl	-400048(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -400032(%rbp)
	jmp	.L23
.L25:
	movl	-400032(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-400032(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L24
	movl	$0, -400044(%rbp)
.L24:
	addl	$1, -400032(%rbp)
.L23:
	movl	-400048(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	%eax, %eax
	subl	$1, %eax
	cmpl	%eax, -400032(%rbp)
	jl	.L25
	movl	-400048(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	%eax, %eax
	movl	%eax, -400028(%rbp)
	jmp	.L26
.L28:
	movl	-400028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-400028(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L27
	movl	$0, -400044(%rbp)
.L27:
	addl	$1, -400028(%rbp)
.L26:
	movl	-400048(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -400028(%rbp)
	jl	.L28
	movl	-400016(%rbp), %ecx
	movl	-400048(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	xorl	%eax, %ecx
	movl	-400048(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	addl	%eax, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, %ecx
	je	.L19
	movl	$0, -400044(%rbp)
.L19:
	movl	$1, -400024(%rbp)
	movl	$0, -400020(%rbp)
	jmp	.L29
.L31:
	movl	-400020(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L30
	movl	$0, -400024(%rbp)
.L30:
	addl	$1, -400020(%rbp)
.L29:
	movl	-400048(%rbp), %eax
	cmpl	%eax, -400020(%rbp)
	jl	.L31
	cmpl	$0, -400044(%rbp)
	jne	.L32
	cmpl	$0, -400024(%rbp)
	je	.L33
.L32:
	leaq	.LC1(%rip), %rax
	jmp	.L34
.L33:
	leaq	.LC2(%rip), %rax
.L34:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	MOD
	.section	.rodata
	.align 4
	.type	MOD, @object
	.size	MOD, 4
MOD:
	.long	1000000007
	.text
	.globl	cmp
	.type	cmp, @function
cmp:
.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
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmp, .-cmp
	.globl	cmp2
	.type	cmp2, @function
cmp2:
.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	-16(%rbp), %rax
	movl	(%rax), %edx
	movq	-8(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	cmp2, .-cmp2
	.globl	gcd
	.type	gcd, @function
gcd:
.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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	cmpl	$0, -8(%rbp)
	je	.L6
	movl	-4(%rbp), %eax
	cltd
	idivl	-8(%rbp)
	movl	-8(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	gcd
	jmp	.L7
.L6:
	movl	-4(%rbp), %eax
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	gcd, .-gcd
	.globl	Lgcd
	.type	Lgcd, @function
Lgcd:
.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)
	movq	%rsi, -16(%rbp)
	cmpq	$0, -16(%rbp)
	je	.L9
	movq	-8(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	-16(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	Lgcd
	jmp	.L10
.L9:
	movq	-8(%rbp), %rax
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	Lgcd, .-Lgcd
	.globl	lcm
	.type	lcm, @function
lcm:
.LFB10:
	.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
	movl	%edi, -4(%rbp)
	movl	%esi, -8(%rbp)
	movl	-8(%rbp), %edx
	movl	-4(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	gcd
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltd
	idivl	%ecx
	imull	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	lcm, .-lcm
	.globl	Llcm
	.type	Llcm, @function
Llcm:
.LFB11:
	.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)
	movq	%rsi, -16(%rbp)
	movq	-16(%rbp), %rdx
	movq	-8(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	Lgcd
	movq	%rax, %rcx
	movq	-8(%rbp), %rax
	cqto
	idivq	%rcx
	imulq	-16(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	Llcm, .-Llcm
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2736, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1, -400044(%rbp)
	leaq	-400048(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400040(%rbp)
	jmp	.L16
.L17:
	leaq	-400016(%rbp), %rdx
	movl	-400040(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400040(%rbp)
.L16:
	movl	-400048(%rbp), %eax
	cmpl	%eax, -400040(%rbp)
	jl	.L17
	movl	-400048(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1431655766, %rax, %rax
	shrq	$32, %rax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	addl	%ecx, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	testl	%eax, %eax
	je	.L18
	movl	$0, -400044(%rbp)
	jmp	.L19
.L18:
	movl	-400048(%rbp), %eax
	movslq	%eax, %rsi
	leaq	-400016(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -400036(%rbp)
	jmp	.L20
.L22:
	movl	-400036(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-400036(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L21
	movl	$0, -400044(%rbp)
.L21:
	addl	$1, -400036(%rbp)
.L20:
	movl	-400048(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	subl	$1, %eax
	cmpl	%eax, -400036(%rbp)
	jl	.L22
	movl	-400048(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -400032(%rbp)
	jmp	.L23
.L25:
	movl	-400032(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-400032(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L24
	movl	$0, -400044(%rbp)
.L24:
	addl	$1, -400032(%rbp)
.L23:
	movl	-400048(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	%eax, %eax
	subl	$1, %eax
	cmpl	%eax, -400032(%rbp)
	jl	.L25
	movl	-400048(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	%eax, %eax
	movl	%eax, -400028(%rbp)
	jmp	.L26
.L28:
	movl	-400028(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %edx
	movl	-400028(%rbp), %eax
	addl	$1, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	je	.L27
	movl	$0, -400044(%rbp)
.L27:
	addl	$1, -400028(%rbp)
.L26:
	movl	-400048(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -400028(%rbp)
	jl	.L28
	movl	-400016(%rbp), %ecx
	movl	-400048(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	xorl	%eax, %ecx
	movl	-400048(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1431655766, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$31, %eax
	movl	%eax, %esi
	movl	%edx, %eax
	subl	%esi, %eax
	addl	%eax, %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, %ecx
	je	.L19
	movl	$0, -400044(%rbp)
.L19:
	movl	$1, -400024(%rbp)
	movl	$0, -400020(%rbp)
	jmp	.L29
.L31:
	movl	-400020(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L30
	movl	$0, -400024(%rbp)
.L30:
	addl	$1, -400020(%rbp)
.L29:
	movl	-400048(%rbp), %eax
	cmpl	%eax, -400020(%rbp)
	jl	.L31
	cmpl	$0, -400044(%rbp)
	jne	.L32
	cmpl	$0, -400024(%rbp)
	je	.L33
.L32:
	leaq	.LC1(%rip), %rax
	jmp	.L34
.L33:
	leaq	.LC2(%rip), %rax
.L34:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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:
