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 <string.h>

#if 1
#define gc() getchar_unlocked()
#else
#define gc() getchar()
#endif
int in()
{
	int n = 0, c = gc();
	do n = 10*n + (c & 0xf), c = gc(); while (c >= '0');
	return n;
}

int rot[24][7] = {
	{ 0,1,2,3,4,5,6 },{ 0,1,3,5,2,4,6 },{ 0,1,4,2,5,3,6 },{ 0,1,5,4,3,2,6 },
	{ 0,2,6,3,4,1,5 },{ 0,2,3,1,6,4,5 },{ 0,2,1,4,3,6,5 },{ 0,2,4,6,1,3,5 },
	{ 0,3,1,2,5,6,4 },{ 0,3,2,6,1,5,4 },{ 0,3,5,1,6,2,4 },{ 0,3,6,5,2,1,4 },
	{ 0,4,1,5,2,6,3 },{ 0,4,2,1,6,5,3 },{ 0,4,5,6,1,2,3 },{ 0,4,6,2,5,1,3 },
	{ 0,5,1,3,4,6,2 },{ 0,5,3,6,1,4,2 },{ 0,5,4,1,6,3,2 },{ 0,5,6,4,3,1,2 },
	{ 0,6,2,4,3,5,1 },{ 0,6,3,2,5,4,1 },{ 0,6,5,3,4,2,1 },{ 0,6,4,5,2,3,1 } };

int  a[102][7];
char f[102];

int identical(int *a, int *b)
{
	int i, j;
	memset(f, 0, sizeof(f));
	for (i = 1; i <= 6; i++) f[a[i]]++;
	for (i = 1; i <= 6; i++) f[b[i]]--;
	for (i = 1; i <= 6; i++) if (f[b[i]]) return 0;

	for (j = 0; j < 24; j++) {
		if (b[1] == a[rot[j][1]]) {
			for (i = 2; ; i++) {
				if (i > 6) return 1;
				if (b[i] != a[rot[j][i]]) break;
			}
		}
	}
	return 0;
}

int main()
{
	int n, i, j, f;

	n = in();
	for (i = 0; i < n; i++) {
		for (j = 1; j <= 6; j++) a[i][j] = in();
	}
	f = 1;
	for (i = 0; i < n; i++) for (j = i+1; j < n; j++) {
		if (identical(a[i], a[j])) { f = 0; goto done; }
	}
done:
	puts(f? "Yes": "No");
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	in
	.type	in, @function
in:
.LFB0:
	.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	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	in, .-in
	.globl	rot
	.data
	.align 32
	.type	rot, @object
	.size	rot, 672
rot:
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	0
	.long	1
	.long	3
	.long	5
	.long	2
	.long	4
	.long	6
	.long	0
	.long	1
	.long	4
	.long	2
	.long	5
	.long	3
	.long	6
	.long	0
	.long	1
	.long	5
	.long	4
	.long	3
	.long	2
	.long	6
	.long	0
	.long	2
	.long	6
	.long	3
	.long	4
	.long	1
	.long	5
	.long	0
	.long	2
	.long	3
	.long	1
	.long	6
	.long	4
	.long	5
	.long	0
	.long	2
	.long	1
	.long	4
	.long	3
	.long	6
	.long	5
	.long	0
	.long	2
	.long	4
	.long	6
	.long	1
	.long	3
	.long	5
	.long	0
	.long	3
	.long	1
	.long	2
	.long	5
	.long	6
	.long	4
	.long	0
	.long	3
	.long	2
	.long	6
	.long	1
	.long	5
	.long	4
	.long	0
	.long	3
	.long	5
	.long	1
	.long	6
	.long	2
	.long	4
	.long	0
	.long	3
	.long	6
	.long	5
	.long	2
	.long	1
	.long	4
	.long	0
	.long	4
	.long	1
	.long	5
	.long	2
	.long	6
	.long	3
	.long	0
	.long	4
	.long	2
	.long	1
	.long	6
	.long	5
	.long	3
	.long	0
	.long	4
	.long	5
	.long	6
	.long	1
	.long	2
	.long	3
	.long	0
	.long	4
	.long	6
	.long	2
	.long	5
	.long	1
	.long	3
	.long	0
	.long	5
	.long	1
	.long	3
	.long	4
	.long	6
	.long	2
	.long	0
	.long	5
	.long	3
	.long	6
	.long	1
	.long	4
	.long	2
	.long	0
	.long	5
	.long	4
	.long	1
	.long	6
	.long	3
	.long	2
	.long	0
	.long	5
	.long	6
	.long	4
	.long	3
	.long	1
	.long	2
	.long	0
	.long	6
	.long	2
	.long	4
	.long	3
	.long	5
	.long	1
	.long	0
	.long	6
	.long	3
	.long	2
	.long	5
	.long	4
	.long	1
	.long	0
	.long	6
	.long	5
	.long	3
	.long	4
	.long	2
	.long	1
	.long	0
	.long	6
	.long	4
	.long	5
	.long	2
	.long	3
	.long	1
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 2856
a:
	.zero	2856
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 102
f:
	.zero	102
	.text
	.globl	identical
	.type	identical, @function
identical:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	$102, %edx
	movl	$0, %esi
	leaq	f(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -8(%rbp)
	jmp	.L5
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	leaq	f(%rip), %rcx
	movzbl	(%rdx,%rcx), %edx
	addl	$1, %edx
	movl	%edx, %ecx
	cltq
	leaq	f(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	addl	$1, -8(%rbp)
.L5:
	cmpl	$6, -8(%rbp)
	jle	.L6
	movl	$1, -8(%rbp)
	jmp	.L7
.L8:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	leaq	f(%rip), %rcx
	movzbl	(%rdx,%rcx), %edx
	subl	$1, %edx
	movl	%edx, %ecx
	cltq
	leaq	f(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	addl	$1, -8(%rbp)
.L7:
	cmpl	$6, -8(%rbp)
	jle	.L8
	movl	$1, -8(%rbp)
	jmp	.L9
.L12:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	leaq	f(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	je	.L10
	movl	$0, %eax
	jmp	.L11
.L10:
	addl	$1, -8(%rbp)
.L9:
	cmpl	$6, -8(%rbp)
	jle	.L12
	movl	$0, -4(%rbp)
	jmp	.L13
.L18:
	movq	-32(%rbp), %rax
	addq	$4, %rax
	movl	(%rax), %ecx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+rot(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jne	.L14
	movl	$2, -8(%rbp)
.L17:
	cmpl	$6, -8(%rbp)
	jle	.L15
	movl	$1, %eax
	jmp	.L11
.L15:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	rot(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jne	.L19
	addl	$1, -8(%rbp)
	jmp	.L17
.L19:
	nop
.L14:
	addl	$1, -4(%rbp)
.L13:
	cmpl	$23, -4(%rbp)
	jle	.L18
	movl	$0, %eax
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	identical, .-identical
	.section	.rodata
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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	$0, %eax
	call	in
	movl	%eax, -4(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L21
.L24:
	movl	$1, -12(%rbp)
	jmp	.L22
.L23:
	movl	$0, %eax
	call	in
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	subq	%rcx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -12(%rbp)
.L22:
	cmpl	$6, -12(%rbp)
	jle	.L23
	addl	$1, -16(%rbp)
.L21:
	movl	-16(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L24
	movl	$1, -8(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L25
.L30:
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L26
.L29:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	leaq	a(%rip), %rdx
	addq	%rax, %rdx
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	subq	%rcx, %rax
	salq	$2, %rax
	leaq	a(%rip), %rcx
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	identical
	testl	%eax, %eax
	je	.L27
	movl	$0, -8(%rbp)
	jmp	.L28
.L27:
	addl	$1, -12(%rbp)
.L26:
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L29
	addl	$1, -16(%rbp)
.L25:
	movl	-16(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L30
	nop
.L28:
	cmpl	$0, -8(%rbp)
	je	.L31
	leaq	.LC0(%rip), %rax
	jmp	.L32
.L31:
	leaq	.LC1(%rip), %rax
.L32:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	in
	.type	in, @function
in:
.LFB35:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L11
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L3:
	xorl	%r12d, %r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L1
.L5:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L7:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L4
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L1
	movq	stdin(%rip), %rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L1:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L3
	.cfi_endproc
.LFE35:
	.size	in, .-in
	.p2align 4
	.globl	identical
	.type	identical, @function
identical:
.LFB36:
	.cfi_startproc
	endbr64
	leaq	f(%rip), %rdx
	movq	%rdi, %r8
	xorl	%eax, %eax
	movl	$12, %ecx
	movq	%rdx, %rdi
	rep stosq
	xorl	%eax, %eax
	movl	$0, (%rdi)
	movw	%ax, 100+f(%rip)
	movslq	4(%r8), %rax
	movb	$1, (%rdx,%rax)
	movslq	8(%r8), %rax
	addb	$1, (%rdx,%rax)
	movslq	12(%r8), %rax
	addb	$1, (%rdx,%rax)
	movslq	16(%r8), %rax
	addb	$1, (%rdx,%rax)
	movslq	20(%r8), %rax
	addb	$1, (%rdx,%rax)
	movslq	24(%r8), %rax
	addb	$1, (%rdx,%rax)
	movslq	4(%rsi), %rax
	subb	$1, (%rdx,%rax)
	movslq	8(%rsi), %rax
	subb	$1, (%rdx,%rax)
	movslq	12(%rsi), %rax
	subb	$1, (%rdx,%rax)
	movslq	16(%rsi), %rax
	subb	$1, (%rdx,%rax)
	movslq	20(%rsi), %rax
	subb	$1, (%rdx,%rax)
	movslq	24(%rsi), %rax
	subb	$1, (%rdx,%rax)
	movslq	4(%rsi), %rax
	cmpb	$0, (%rdx,%rax)
	jne	.L20
	movq	%rax, %rcx
	movslq	8(%rsi), %rax
	cmpb	$0, (%rdx,%rax)
	movq	%rax, %rdi
	jne	.L20
	movslq	12(%rsi), %rax
	cmpb	$0, (%rdx,%rax)
	movq	%rax, %r9
	jne	.L20
	movslq	16(%rsi), %rax
	cmpb	$0, (%rdx,%rax)
	movq	%rax, %r10
	jne	.L20
	movslq	20(%rsi), %rax
	cmpb	$0, (%rdx,%rax)
	movq	%rax, %r11
	jne	.L20
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movslq	24(%rsi), %rax
	cmpb	$0, (%rdx,%rax)
	movq	%rax, %rbx
	jne	.L21
	leaq	4+rot(%rip), %rax
	leaq	672(%rax), %rsi
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$28, %rax
	cmpq	%rsi, %rax
	je	.L21
.L15:
	movslq	(%rax), %rdx
	cmpl	%ecx, (%r8,%rdx,4)
	jne	.L14
	movslq	4(%rax), %rdx
	cmpl	%edi, (%r8,%rdx,4)
	jne	.L14
	movslq	8(%rax), %rdx
	cmpl	%r9d, (%r8,%rdx,4)
	jne	.L14
	movslq	12(%rax), %rdx
	cmpl	(%r8,%rdx,4), %r10d
	jne	.L14
	movslq	16(%rax), %rdx
	cmpl	(%r8,%rdx,4), %r11d
	jne	.L14
	movslq	20(%rax), %rdx
	cmpl	(%r8,%rdx,4), %ebx
	jne	.L14
	movl	$1, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore 3
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE36:
	.size	identical, .-identical
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	call	in
	testl	%eax, %eax
	jle	.L29
	leal	-1(%rax), %r14d
	movl	%eax, %ebx
	leaq	28+a(%rip), %rdx
	leaq	0(,%r14,8), %rax
	leaq	-28(%rdx), %rbp
	subq	%r14, %rax
	leaq	(%rdx,%rax,4), %r12
	.p2align 4,,10
	.p2align 3
.L37:
	movl	$1, %r15d
	.p2align 4,,10
	.p2align 3
.L36:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rsi
	cmpq	%rsi, %rax
	jnb	.L47
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L31:
	xorl	%r13d, %r13d
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L32:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L34
.L33:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rsi
.L35:
	leal	0(%r13,%r13,4), %r8d
	andl	$15, %eax
	leal	(%rax,%r8,2), %r13d
	cmpq	%rsi, %rdx
	jb	.L32
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L34
	movq	stdin(%rip), %rdi
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L34:
	movl	%r13d, 0(%rbp,%r15,4)
	addq	$1, %r15
	cmpq	$7, %r15
	jne	.L36
	addq	$28, %rbp
	cmpq	%r12, %rbp
	jne	.L37
	leal	-2(%rbx), %eax
	xorl	%r12d, %r12d
	leaq	a(%rip), %r13
	movl	%eax, 12(%rsp)
	cmpq	%r14, %r12
	je	.L29
.L50:
	movl	12(%rsp), %eax
	movq	%r13, %rbx
	addq	$28, %r13
	movq	%r13, %r15
	subl	%r12d, %eax
	addq	%r12, %rax
	leaq	0(,%rax,8), %rdx
	subq	%rax, %rdx
	leaq	a(%rip), %rax
	leaq	56(%rax,%rdx,4), %rbp
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L49:
	addq	$28, %r15
	cmpq	%r15, %rbp
	je	.L48
.L39:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	call	identical
	testl	%eax, %eax
	je	.L49
	leaq	.LC1(%rip), %rdi
.L38:
	call	puts@PLT
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L47:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rsi
	jmp	.L31
.L48:
	addq	$1, %r12
	cmpq	%r14, %r12
	jne	.L50
.L29:
	leaq	.LC0(%rip), %rdi
	jmp	.L38
	.cfi_endproc
.LFE37:
	.size	main, .-main
	.globl	f
	.bss
	.align 32
	.type	f, @object
	.size	f, 102
f:
	.zero	102
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 2856
a:
	.zero	2856
	.globl	rot
	.data
	.align 32
	.type	rot, @object
	.size	rot, 672
rot:
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	0
	.long	1
	.long	3
	.long	5
	.long	2
	.long	4
	.long	6
	.long	0
	.long	1
	.long	4
	.long	2
	.long	5
	.long	3
	.long	6
	.long	0
	.long	1
	.long	5
	.long	4
	.long	3
	.long	2
	.long	6
	.long	0
	.long	2
	.long	6
	.long	3
	.long	4
	.long	1
	.long	5
	.long	0
	.long	2
	.long	3
	.long	1
	.long	6
	.long	4
	.long	5
	.long	0
	.long	2
	.long	1
	.long	4
	.long	3
	.long	6
	.long	5
	.long	0
	.long	2
	.long	4
	.long	6
	.long	1
	.long	3
	.long	5
	.long	0
	.long	3
	.long	1
	.long	2
	.long	5
	.long	6
	.long	4
	.long	0
	.long	3
	.long	2
	.long	6
	.long	1
	.long	5
	.long	4
	.long	0
	.long	3
	.long	5
	.long	1
	.long	6
	.long	2
	.long	4
	.long	0
	.long	3
	.long	6
	.long	5
	.long	2
	.long	1
	.long	4
	.long	0
	.long	4
	.long	1
	.long	5
	.long	2
	.long	6
	.long	3
	.long	0
	.long	4
	.long	2
	.long	1
	.long	6
	.long	5
	.long	3
	.long	0
	.long	4
	.long	5
	.long	6
	.long	1
	.long	2
	.long	3
	.long	0
	.long	4
	.long	6
	.long	2
	.long	5
	.long	1
	.long	3
	.long	0
	.long	5
	.long	1
	.long	3
	.long	4
	.long	6
	.long	2
	.long	0
	.long	5
	.long	3
	.long	6
	.long	1
	.long	4
	.long	2
	.long	0
	.long	5
	.long	4
	.long	1
	.long	6
	.long	3
	.long	2
	.long	0
	.long	5
	.long	6
	.long	4
	.long	3
	.long	1
	.long	2
	.long	0
	.long	6
	.long	2
	.long	4
	.long	3
	.long	5
	.long	1
	.long	0
	.long	6
	.long	3
	.long	2
	.long	5
	.long	4
	.long	1
	.long	0
	.long	6
	.long	5
	.long	3
	.long	4
	.long	2
	.long	1
	.long	0
	.long	6
	.long	4
	.long	5
	.long	2
	.long	3
	.long	1
	.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	in
	.type	in, @function
in:
.LFB35:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L11
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L3:
	xorl	%r12d, %r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L1
.L5:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L7:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L4
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L1
	movq	stdin(%rip), %rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L1:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L3
	.cfi_endproc
.LFE35:
	.size	in, .-in
	.p2align 4
	.globl	identical
	.type	identical, @function
identical:
.LFB36:
	.cfi_startproc
	endbr64
	leaq	f(%rip), %rdx
	movq	%rdi, %r8
	xorl	%eax, %eax
	movl	$12, %ecx
	movq	%rdx, %rdi
	rep stosq
	xorl	%eax, %eax
	movl	$0, (%rdi)
	movw	%ax, 100+f(%rip)
	movslq	4(%r8), %rax
	movb	$1, (%rdx,%rax)
	movslq	8(%r8), %rax
	addb	$1, (%rdx,%rax)
	movslq	12(%r8), %rax
	addb	$1, (%rdx,%rax)
	movslq	16(%r8), %rax
	addb	$1, (%rdx,%rax)
	movslq	20(%r8), %rax
	addb	$1, (%rdx,%rax)
	movslq	24(%r8), %rax
	addb	$1, (%rdx,%rax)
	movslq	4(%rsi), %rax
	subb	$1, (%rdx,%rax)
	movslq	8(%rsi), %rax
	subb	$1, (%rdx,%rax)
	movslq	12(%rsi), %rax
	subb	$1, (%rdx,%rax)
	movslq	16(%rsi), %rax
	subb	$1, (%rdx,%rax)
	movslq	20(%rsi), %rax
	subb	$1, (%rdx,%rax)
	movslq	24(%rsi), %rax
	subb	$1, (%rdx,%rax)
	movslq	4(%rsi), %rax
	cmpb	$0, (%rdx,%rax)
	jne	.L20
	movq	%rax, %rcx
	movslq	8(%rsi), %rax
	cmpb	$0, (%rdx,%rax)
	movq	%rax, %rdi
	jne	.L20
	movslq	12(%rsi), %rax
	cmpb	$0, (%rdx,%rax)
	movq	%rax, %r9
	jne	.L20
	movslq	16(%rsi), %rax
	cmpb	$0, (%rdx,%rax)
	movq	%rax, %r10
	jne	.L20
	movslq	20(%rsi), %rax
	cmpb	$0, (%rdx,%rax)
	movq	%rax, %r11
	jne	.L20
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movslq	24(%rsi), %rax
	cmpb	$0, (%rdx,%rax)
	movq	%rax, %rbx
	jne	.L21
	leaq	4+rot(%rip), %rax
	leaq	672(%rax), %rsi
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$28, %rax
	cmpq	%rsi, %rax
	je	.L21
.L15:
	movslq	(%rax), %rdx
	cmpl	%ecx, (%r8,%rdx,4)
	jne	.L14
	movslq	4(%rax), %rdx
	cmpl	%edi, (%r8,%rdx,4)
	jne	.L14
	movslq	8(%rax), %rdx
	cmpl	%r9d, (%r8,%rdx,4)
	jne	.L14
	movslq	12(%rax), %rdx
	cmpl	(%r8,%rdx,4), %r10d
	jne	.L14
	movslq	16(%rax), %rdx
	cmpl	(%r8,%rdx,4), %r11d
	jne	.L14
	movslq	20(%rax), %rdx
	cmpl	(%r8,%rdx,4), %ebx
	jne	.L14
	movl	$1, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore 3
	xorl	%eax, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE36:
	.size	identical, .-identical
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB37:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	call	in
	testl	%eax, %eax
	jle	.L29
	leal	-1(%rax), %r14d
	movl	%eax, %ebx
	leaq	28+a(%rip), %rdx
	leaq	0(,%r14,8), %rax
	leaq	-28(%rdx), %rbp
	subq	%r14, %rax
	leaq	(%rdx,%rax,4), %r12
	.p2align 4,,10
	.p2align 3
.L37:
	movl	$1, %r15d
	.p2align 4,,10
	.p2align 3
.L36:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rsi
	cmpq	%rsi, %rax
	jnb	.L47
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L31:
	xorl	%r13d, %r13d
	jmp	.L35
	.p2align 4,,10
	.p2align 3
.L32:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L34
.L33:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rsi
.L35:
	leal	0(%r13,%r13,4), %r8d
	andl	$15, %eax
	leal	(%rax,%r8,2), %r13d
	cmpq	%rsi, %rdx
	jb	.L32
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L34
	movq	stdin(%rip), %rdi
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L34:
	movl	%r13d, 0(%rbp,%r15,4)
	addq	$1, %r15
	cmpq	$7, %r15
	jne	.L36
	addq	$28, %rbp
	cmpq	%r12, %rbp
	jne	.L37
	leal	-2(%rbx), %eax
	xorl	%r12d, %r12d
	leaq	a(%rip), %r13
	movl	%eax, 12(%rsp)
	cmpq	%r14, %r12
	je	.L29
.L50:
	movl	12(%rsp), %eax
	movq	%r13, %rbx
	addq	$28, %r13
	movq	%r13, %r15
	subl	%r12d, %eax
	addq	%r12, %rax
	leaq	0(,%rax,8), %rdx
	subq	%rax, %rdx
	leaq	a(%rip), %rax
	leaq	56(%rax,%rdx,4), %rbp
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L49:
	addq	$28, %r15
	cmpq	%r15, %rbp
	je	.L48
.L39:
	movq	%r15, %rsi
	movq	%rbx, %rdi
	call	identical
	testl	%eax, %eax
	je	.L49
	leaq	.LC1(%rip), %rdi
.L38:
	call	puts@PLT
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L47:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rsi
	jmp	.L31
.L48:
	addq	$1, %r12
	cmpq	%r14, %r12
	jne	.L50
.L29:
	leaq	.LC0(%rip), %rdi
	jmp	.L38
	.cfi_endproc
.LFE37:
	.size	main, .-main
	.globl	f
	.bss
	.align 32
	.type	f, @object
	.size	f, 102
f:
	.zero	102
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 2856
a:
	.zero	2856
	.globl	rot
	.data
	.align 32
	.type	rot, @object
	.size	rot, 672
rot:
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	0
	.long	1
	.long	3
	.long	5
	.long	2
	.long	4
	.long	6
	.long	0
	.long	1
	.long	4
	.long	2
	.long	5
	.long	3
	.long	6
	.long	0
	.long	1
	.long	5
	.long	4
	.long	3
	.long	2
	.long	6
	.long	0
	.long	2
	.long	6
	.long	3
	.long	4
	.long	1
	.long	5
	.long	0
	.long	2
	.long	3
	.long	1
	.long	6
	.long	4
	.long	5
	.long	0
	.long	2
	.long	1
	.long	4
	.long	3
	.long	6
	.long	5
	.long	0
	.long	2
	.long	4
	.long	6
	.long	1
	.long	3
	.long	5
	.long	0
	.long	3
	.long	1
	.long	2
	.long	5
	.long	6
	.long	4
	.long	0
	.long	3
	.long	2
	.long	6
	.long	1
	.long	5
	.long	4
	.long	0
	.long	3
	.long	5
	.long	1
	.long	6
	.long	2
	.long	4
	.long	0
	.long	3
	.long	6
	.long	5
	.long	2
	.long	1
	.long	4
	.long	0
	.long	4
	.long	1
	.long	5
	.long	2
	.long	6
	.long	3
	.long	0
	.long	4
	.long	2
	.long	1
	.long	6
	.long	5
	.long	3
	.long	0
	.long	4
	.long	5
	.long	6
	.long	1
	.long	2
	.long	3
	.long	0
	.long	4
	.long	6
	.long	2
	.long	5
	.long	1
	.long	3
	.long	0
	.long	5
	.long	1
	.long	3
	.long	4
	.long	6
	.long	2
	.long	0
	.long	5
	.long	3
	.long	6
	.long	1
	.long	4
	.long	2
	.long	0
	.long	5
	.long	4
	.long	1
	.long	6
	.long	3
	.long	2
	.long	0
	.long	5
	.long	6
	.long	4
	.long	3
	.long	1
	.long	2
	.long	0
	.long	6
	.long	2
	.long	4
	.long	3
	.long	5
	.long	1
	.long	0
	.long	6
	.long	3
	.long	2
	.long	5
	.long	4
	.long	1
	.long	0
	.long	6
	.long	5
	.long	3
	.long	4
	.long	2
	.long	1
	.long	0
	.long	6
	.long	4
	.long	5
	.long	2
	.long	3
	.long	1
	.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 <string.h>

#if 1
#define gc() getchar_unlocked()
#else
#define gc() getchar()
#endif
int in()
{
	int n = 0, c = gc();
	do n = 10*n + (c & 0xf), c = gc(); while (c >= '0');
	return n;
}

int rot[24][7] = {
	{ 0,1,2,3,4,5,6 },{ 0,1,3,5,2,4,6 },{ 0,1,4,2,5,3,6 },{ 0,1,5,4,3,2,6 },
	{ 0,2,6,3,4,1,5 },{ 0,2,3,1,6,4,5 },{ 0,2,1,4,3,6,5 },{ 0,2,4,6,1,3,5 },
	{ 0,3,1,2,5,6,4 },{ 0,3,2,6,1,5,4 },{ 0,3,5,1,6,2,4 },{ 0,3,6,5,2,1,4 },
	{ 0,4,1,5,2,6,3 },{ 0,4,2,1,6,5,3 },{ 0,4,5,6,1,2,3 },{ 0,4,6,2,5,1,3 },
	{ 0,5,1,3,4,6,2 },{ 0,5,3,6,1,4,2 },{ 0,5,4,1,6,3,2 },{ 0,5,6,4,3,1,2 },
	{ 0,6,2,4,3,5,1 },{ 0,6,3,2,5,4,1 },{ 0,6,5,3,4,2,1 },{ 0,6,4,5,2,3,1 } };

int  a[102][7];
char f[102];

int identical(int *a, int *b)
{
	int i, j;
	memset(f, 0, sizeof(f));
	for (i = 1; i <= 6; i++) f[a[i]]++;
	for (i = 1; i <= 6; i++) f[b[i]]--;
	for (i = 1; i <= 6; i++) if (f[b[i]]) return 0;

	for (j = 0; j < 24; j++) {
		if (b[1] == a[rot[j][1]]) {
			for (i = 2; ; i++) {
				if (i > 6) return 1;
				if (b[i] != a[rot[j][i]]) break;
			}
		}
	}
	return 0;
}

int main()
{
	int n, i, j, f;

	n = in();
	for (i = 0; i < n; i++) {
		for (j = 1; j <= 6; j++) a[i][j] = in();
	}
	f = 1;
	for (i = 0; i < n; i++) for (j = i+1; j < n; j++) {
		if (identical(a[i], a[j])) { f = 0; goto done; }
	}
done:
	puts(f? "Yes": "No");
	return 0;
}


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

Yes
 Yes
 Yes
 Yes
 Yes
 Yes
 Yes
 Yes
 Yes
 Yes

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 <string.h>

#if 1
#define gc() getchar_unlocked()
#else
#define gc() getchar()
#endif
int in()
{
	int n = 0, c = gc();
	do n = 10*n + (c & 0xf), c = gc(); while (c >= '0');
	return n;
}

int rot[24][7] = {
	{ 0,1,2,3,4,5,6 },{ 0,1,3,5,2,4,6 },{ 0,1,4,2,5,3,6 },{ 0,1,5,4,3,2,6 },
	{ 0,2,6,3,4,1,5 },{ 0,2,3,1,6,4,5 },{ 0,2,1,4,3,6,5 },{ 0,2,4,6,1,3,5 },
	{ 0,3,1,2,5,6,4 },{ 0,3,2,6,1,5,4 },{ 0,3,5,1,6,2,4 },{ 0,3,6,5,2,1,4 },
	{ 0,4,1,5,2,6,3 },{ 0,4,2,1,6,5,3 },{ 0,4,5,6,1,2,3 },{ 0,4,6,2,5,1,3 },
	{ 0,5,1,3,4,6,2 },{ 0,5,3,6,1,4,2 },{ 0,5,4,1,6,3,2 },{ 0,5,6,4,3,1,2 },
	{ 0,6,2,4,3,5,1 },{ 0,6,3,2,5,4,1 },{ 0,6,5,3,4,2,1 },{ 0,6,4,5,2,3,1 } };

int  a[102][7];
char f[102];

int identical(int *a, int *b)
{
	int i, j;
	memset(f, 0, sizeof(f));
	for (i = 1; i <= 6; i++) f[a[i]]++;
	for (i = 1; i <= 6; i++) f[b[i]]--;
	for (i = 1; i <= 6; i++) if (f[b[i]]) return 0;

	for (j = 0; j < 24; j++) {
		if (b[1] == a[rot[j][1]]) {
			for (i = 2; ; i++) {
				if (i > 6) return 1;
				if (b[i] != a[rot[j][i]]) break;
			}
		}
	}
	return 0;
}

int main()
{
	int n, i, j, f;

	n = in();
	for (i = 0; i < n; i++) {
		for (j = 1; j <= 6; j++) a[i][j] = in();
	}
	f = 1;
	for (i = 0; i < n; i++) for (j = i+1; j < n; j++) {
		if (identical(a[i], a[j])) { f = 0; goto done; }
	}
done:
	puts(f? "Yes": "No");
	return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	in
	.type	in, @function
in:
.LFB0:
	.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	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	in, .-in
	.globl	rot
	.data
	.align 32
	.type	rot, @object
	.size	rot, 672
rot:
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	0
	.long	1
	.long	3
	.long	5
	.long	2
	.long	4
	.long	6
	.long	0
	.long	1
	.long	4
	.long	2
	.long	5
	.long	3
	.long	6
	.long	0
	.long	1
	.long	5
	.long	4
	.long	3
	.long	2
	.long	6
	.long	0
	.long	2
	.long	6
	.long	3
	.long	4
	.long	1
	.long	5
	.long	0
	.long	2
	.long	3
	.long	1
	.long	6
	.long	4
	.long	5
	.long	0
	.long	2
	.long	1
	.long	4
	.long	3
	.long	6
	.long	5
	.long	0
	.long	2
	.long	4
	.long	6
	.long	1
	.long	3
	.long	5
	.long	0
	.long	3
	.long	1
	.long	2
	.long	5
	.long	6
	.long	4
	.long	0
	.long	3
	.long	2
	.long	6
	.long	1
	.long	5
	.long	4
	.long	0
	.long	3
	.long	5
	.long	1
	.long	6
	.long	2
	.long	4
	.long	0
	.long	3
	.long	6
	.long	5
	.long	2
	.long	1
	.long	4
	.long	0
	.long	4
	.long	1
	.long	5
	.long	2
	.long	6
	.long	3
	.long	0
	.long	4
	.long	2
	.long	1
	.long	6
	.long	5
	.long	3
	.long	0
	.long	4
	.long	5
	.long	6
	.long	1
	.long	2
	.long	3
	.long	0
	.long	4
	.long	6
	.long	2
	.long	5
	.long	1
	.long	3
	.long	0
	.long	5
	.long	1
	.long	3
	.long	4
	.long	6
	.long	2
	.long	0
	.long	5
	.long	3
	.long	6
	.long	1
	.long	4
	.long	2
	.long	0
	.long	5
	.long	4
	.long	1
	.long	6
	.long	3
	.long	2
	.long	0
	.long	5
	.long	6
	.long	4
	.long	3
	.long	1
	.long	2
	.long	0
	.long	6
	.long	2
	.long	4
	.long	3
	.long	5
	.long	1
	.long	0
	.long	6
	.long	3
	.long	2
	.long	5
	.long	4
	.long	1
	.long	0
	.long	6
	.long	5
	.long	3
	.long	4
	.long	2
	.long	1
	.long	0
	.long	6
	.long	4
	.long	5
	.long	2
	.long	3
	.long	1
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 2856
a:
	.zero	2856
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 102
f:
	.zero	102
	.text
	.globl	identical
	.type	identical, @function
identical:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	$102, %edx
	movl	$0, %esi
	leaq	f(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -8(%rbp)
	jmp	.L5
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	leaq	f(%rip), %rcx
	movzbl	(%rdx,%rcx), %edx
	addl	$1, %edx
	movl	%edx, %ecx
	cltq
	leaq	f(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	addl	$1, -8(%rbp)
.L5:
	cmpl	$6, -8(%rbp)
	jle	.L6
	movl	$1, -8(%rbp)
	jmp	.L7
.L8:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	leaq	f(%rip), %rcx
	movzbl	(%rdx,%rcx), %edx
	subl	$1, %edx
	movl	%edx, %ecx
	cltq
	leaq	f(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	addl	$1, -8(%rbp)
.L7:
	cmpl	$6, -8(%rbp)
	jle	.L8
	movl	$1, -8(%rbp)
	jmp	.L9
.L12:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	leaq	f(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	je	.L10
	movl	$0, %eax
	jmp	.L11
.L10:
	addl	$1, -8(%rbp)
.L9:
	cmpl	$6, -8(%rbp)
	jle	.L12
	movl	$0, -4(%rbp)
	jmp	.L13
.L18:
	movq	-32(%rbp), %rax
	addq	$4, %rax
	movl	(%rax), %ecx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+rot(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jne	.L14
	movl	$2, -8(%rbp)
.L17:
	cmpl	$6, -8(%rbp)
	jle	.L15
	movl	$1, %eax
	jmp	.L11
.L15:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	rot(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jne	.L19
	addl	$1, -8(%rbp)
	jmp	.L17
.L19:
	nop
.L14:
	addl	$1, -4(%rbp)
.L13:
	cmpl	$23, -4(%rbp)
	jle	.L18
	movl	$0, %eax
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	identical, .-identical
	.section	.rodata
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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	$0, %eax
	call	in
	movl	%eax, -4(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L21
.L24:
	movl	$1, -12(%rbp)
	jmp	.L22
.L23:
	movl	$0, %eax
	call	in
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	subq	%rcx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -12(%rbp)
.L22:
	cmpl	$6, -12(%rbp)
	jle	.L23
	addl	$1, -16(%rbp)
.L21:
	movl	-16(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L24
	movl	$1, -8(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L25
.L30:
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L26
.L29:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	leaq	a(%rip), %rdx
	addq	%rax, %rdx
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	subq	%rcx, %rax
	salq	$2, %rax
	leaq	a(%rip), %rcx
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	identical
	testl	%eax, %eax
	je	.L27
	movl	$0, -8(%rbp)
	jmp	.L28
.L27:
	addl	$1, -12(%rbp)
.L26:
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L29
	addl	$1, -16(%rbp)
.L25:
	movl	-16(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L30
	nop
.L28:
	cmpl	$0, -8(%rbp)
	je	.L31
	leaq	.LC0(%rip), %rax
	jmp	.L32
.L31:
	leaq	.LC1(%rip), %rax
.L32:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	in
	.type	in, @function
in:
.LFB0:
	.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	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	in, .-in
	.globl	rot
	.data
	.align 32
	.type	rot, @object
	.size	rot, 672
rot:
	.long	0
	.long	1
	.long	2
	.long	3
	.long	4
	.long	5
	.long	6
	.long	0
	.long	1
	.long	3
	.long	5
	.long	2
	.long	4
	.long	6
	.long	0
	.long	1
	.long	4
	.long	2
	.long	5
	.long	3
	.long	6
	.long	0
	.long	1
	.long	5
	.long	4
	.long	3
	.long	2
	.long	6
	.long	0
	.long	2
	.long	6
	.long	3
	.long	4
	.long	1
	.long	5
	.long	0
	.long	2
	.long	3
	.long	1
	.long	6
	.long	4
	.long	5
	.long	0
	.long	2
	.long	1
	.long	4
	.long	3
	.long	6
	.long	5
	.long	0
	.long	2
	.long	4
	.long	6
	.long	1
	.long	3
	.long	5
	.long	0
	.long	3
	.long	1
	.long	2
	.long	5
	.long	6
	.long	4
	.long	0
	.long	3
	.long	2
	.long	6
	.long	1
	.long	5
	.long	4
	.long	0
	.long	3
	.long	5
	.long	1
	.long	6
	.long	2
	.long	4
	.long	0
	.long	3
	.long	6
	.long	5
	.long	2
	.long	1
	.long	4
	.long	0
	.long	4
	.long	1
	.long	5
	.long	2
	.long	6
	.long	3
	.long	0
	.long	4
	.long	2
	.long	1
	.long	6
	.long	5
	.long	3
	.long	0
	.long	4
	.long	5
	.long	6
	.long	1
	.long	2
	.long	3
	.long	0
	.long	4
	.long	6
	.long	2
	.long	5
	.long	1
	.long	3
	.long	0
	.long	5
	.long	1
	.long	3
	.long	4
	.long	6
	.long	2
	.long	0
	.long	5
	.long	3
	.long	6
	.long	1
	.long	4
	.long	2
	.long	0
	.long	5
	.long	4
	.long	1
	.long	6
	.long	3
	.long	2
	.long	0
	.long	5
	.long	6
	.long	4
	.long	3
	.long	1
	.long	2
	.long	0
	.long	6
	.long	2
	.long	4
	.long	3
	.long	5
	.long	1
	.long	0
	.long	6
	.long	3
	.long	2
	.long	5
	.long	4
	.long	1
	.long	0
	.long	6
	.long	5
	.long	3
	.long	4
	.long	2
	.long	1
	.long	0
	.long	6
	.long	4
	.long	5
	.long	2
	.long	3
	.long	1
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 2856
a:
	.zero	2856
	.globl	f
	.align 32
	.type	f, @object
	.size	f, 102
f:
	.zero	102
	.text
	.globl	identical
	.type	identical, @function
identical:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	$102, %edx
	movl	$0, %esi
	leaq	f(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -8(%rbp)
	jmp	.L5
.L6:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	leaq	f(%rip), %rcx
	movzbl	(%rdx,%rcx), %edx
	addl	$1, %edx
	movl	%edx, %ecx
	cltq
	leaq	f(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	addl	$1, -8(%rbp)
.L5:
	cmpl	$6, -8(%rbp)
	jle	.L6
	movl	$1, -8(%rbp)
	jmp	.L7
.L8:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	movslq	%eax, %rdx
	leaq	f(%rip), %rcx
	movzbl	(%rdx,%rcx), %edx
	subl	$1, %edx
	movl	%edx, %ecx
	cltq
	leaq	f(%rip), %rdx
	movb	%cl, (%rax,%rdx)
	addl	$1, -8(%rbp)
.L7:
	cmpl	$6, -8(%rbp)
	jle	.L8
	movl	$1, -8(%rbp)
	jmp	.L9
.L12:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cltq
	leaq	f(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	je	.L10
	movl	$0, %eax
	jmp	.L11
.L10:
	addl	$1, -8(%rbp)
.L9:
	cmpl	$6, -8(%rbp)
	jle	.L12
	movl	$0, -4(%rbp)
	jmp	.L13
.L18:
	movq	-32(%rbp), %rax
	addq	$4, %rax
	movl	(%rax), %ecx
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	movq	%rax, %rdx
	leaq	4+rot(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jne	.L14
	movl	$2, -8(%rbp)
.L17:
	cmpl	$6, -8(%rbp)
	jle	.L15
	movl	$1, %eax
	jmp	.L11
.L15:
	movl	-8(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %ecx
	movl	-8(%rbp), %eax
	movslq	%eax, %rsi
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	rot(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jne	.L19
	addl	$1, -8(%rbp)
	jmp	.L17
.L19:
	nop
.L14:
	addl	$1, -4(%rbp)
.L13:
	cmpl	$23, -4(%rbp)
	jle	.L18
	movl	$0, %eax
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	identical, .-identical
	.section	.rodata
.LC0:
	.string	"Yes"
.LC1:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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	$0, %eax
	call	in
	movl	%eax, -4(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L21
.L24:
	movl	$1, -12(%rbp)
	jmp	.L22
.L23:
	movl	$0, %eax
	call	in
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	subq	%rcx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	a(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -12(%rbp)
.L22:
	cmpl	$6, -12(%rbp)
	jle	.L23
	addl	$1, -16(%rbp)
.L21:
	movl	-16(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L24
	movl	$1, -8(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L25
.L30:
	movl	-16(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L26
.L29:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	salq	$2, %rax
	leaq	a(%rip), %rdx
	addq	%rax, %rdx
	movl	-16(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	salq	$3, %rax
	subq	%rcx, %rax
	salq	$2, %rax
	leaq	a(%rip), %rcx
	addq	%rcx, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	identical
	testl	%eax, %eax
	je	.L27
	movl	$0, -8(%rbp)
	jmp	.L28
.L27:
	addl	$1, -12(%rbp)
.L26:
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L29
	addl	$1, -16(%rbp)
.L25:
	movl	-16(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L30
	nop
.L28:
	cmpl	$0, -8(%rbp)
	je	.L31
	leaq	.LC0(%rip), %rax
	jmp	.L32
.L31:
	leaq	.LC1(%rip), %rax
.L32:
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
