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>

typedef struct
{
	int n, e, w, s, t, b;
} dice;

void dice_scan(dice *x)
{
	scanf("%d %d %d %d %d %d", &x->t, &x->s, &x->e, &x->w, &x->n, &x->b);
}

void dice_rorate_n(dice *x)
{
	int temp;
	temp = x->n;
	x->n = x->t;
	x->t = x->s;
	x->s = x->b;
	x->b = temp;
}

void dice_rorate_e(dice *x)
{
	int temp;
	temp = x->e;
	x->e = x->t;
	x->t = x->w;
	x->w = x->b;
	x->b = temp;
}

void dice_rorate_r(dice *x)
{
	int temp;
	temp = x->n;
	x->n = x->w;
	x->w = x->s;
	x->s = x->e;
	x->e = temp;
}

int dice_equal(const dice *d1, const dice *d2)
{
	if(d1->n != d2->n) { return 0; }
	if(d1->e != d2->e) { return 0; }
	if(d1->w != d2->w) { return 0; }
	if(d1->s != d2->s) { return 0; }
	if(d1->t != d2->t) { return 0; }
	if(d1->b != d2->b) { return 0; }
	return 1;
}

int dice_rorate_equal(dice *d1, dice *d2)
{
	int ok = 0;
	for(int i = 0; i < 4; ++i)
	{
		for(int j = 0; j < 4; ++j)
		{
			ok += dice_equal(d1, d2);
			dice_rorate_n(d1);
		}
		dice_rorate_e(d1);
	}
	for(int i = 0; i < 4; ++i)
	{
		for(int j = 0; j < 4; ++j)
		{
			ok += dice_equal(d1, d2);
			dice_rorate_n(d1);
		}
		dice_rorate_r(d1);
	}
	return ok;
}

int main()
{
	int n;
	dice d[100];

	scanf("%d", &n);
	for(int i = 0; i < n; ++i)
	{
		dice_scan(&d[i]);
	}

	for(int i = 0; i < n; ++i)
	{
		for(int j = i + 1; j < n; ++j)
		{
			if(dice_rorate_equal(&d[i], &d[j]))
			{
				printf("No\n");
				return 0;
			}
		}
	}

	printf("Yes\n");
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d %d %d %d"
	.text
	.globl	dice_scan
	.type	dice_scan, @function
dice_scan:
.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
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	leaq	20(%rax), %rsi
	movq	-8(%rbp), %rdi
	movq	-8(%rbp), %rax
	leaq	8(%rax), %r8
	movq	-8(%rbp), %rax
	leaq	4(%rax), %rcx
	movq	-8(%rbp), %rax
	leaq	12(%rax), %rdx
	movq	-8(%rbp), %rax
	addq	$16, %rax
	subq	$8, %rsp
	pushq	%rsi
	movq	%rdi, %r9
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dice_scan, .-dice_scan
	.globl	dice_rorate_n
	.type	dice_rorate_n, @function
dice_rorate_n:
.LFB1:
	.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	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-24(%rbp), %rax
	movl	16(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-24(%rbp), %rax
	movl	12(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 16(%rax)
	movq	-24(%rbp), %rax
	movl	20(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 12(%rax)
	movq	-24(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, 20(%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dice_rorate_n, .-dice_rorate_n
	.globl	dice_rorate_e
	.type	dice_rorate_e, @function
dice_rorate_e:
.LFB2:
	.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	-24(%rbp), %rax
	movl	4(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-24(%rbp), %rax
	movl	16(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 4(%rax)
	movq	-24(%rbp), %rax
	movl	8(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 16(%rax)
	movq	-24(%rbp), %rax
	movl	20(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 8(%rax)
	movq	-24(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, 20(%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	dice_rorate_e, .-dice_rorate_e
	.globl	dice_rorate_r
	.type	dice_rorate_r, @function
dice_rorate_r:
.LFB3:
	.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	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-24(%rbp), %rax
	movl	8(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-24(%rbp), %rax
	movl	12(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 8(%rax)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 12(%rax)
	movq	-24(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, 4(%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	dice_rorate_r, .-dice_rorate_r
	.globl	dice_equal
	.type	dice_equal, @function
dice_equal:
.LFB4:
	.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), %eax
	cmpl	%eax, %edx
	je	.L6
	movl	$0, %eax
	jmp	.L7
.L6:
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	je	.L8
	movl	$0, %eax
	jmp	.L7
.L8:
	movq	-8(%rbp), %rax
	movl	8(%rax), %edx
	movq	-16(%rbp), %rax
	movl	8(%rax), %eax
	cmpl	%eax, %edx
	je	.L9
	movl	$0, %eax
	jmp	.L7
.L9:
	movq	-8(%rbp), %rax
	movl	12(%rax), %edx
	movq	-16(%rbp), %rax
	movl	12(%rax), %eax
	cmpl	%eax, %edx
	je	.L10
	movl	$0, %eax
	jmp	.L7
.L10:
	movq	-8(%rbp), %rax
	movl	16(%rax), %edx
	movq	-16(%rbp), %rax
	movl	16(%rax), %eax
	cmpl	%eax, %edx
	je	.L11
	movl	$0, %eax
	jmp	.L7
.L11:
	movq	-8(%rbp), %rax
	movl	20(%rax), %edx
	movq	-16(%rbp), %rax
	movl	20(%rax), %eax
	cmpl	%eax, %edx
	je	.L12
	movl	$0, %eax
	jmp	.L7
.L12:
	movl	$1, %eax
.L7:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	dice_equal, .-dice_equal
	.globl	dice_rorate_equal
	.type	dice_rorate_equal, @function
dice_rorate_equal:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L14
.L17:
	movl	$0, -12(%rbp)
	jmp	.L15
.L16:
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	dice_equal
	addl	%eax, -20(%rbp)
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	dice_rorate_n
	addl	$1, -12(%rbp)
.L15:
	cmpl	$3, -12(%rbp)
	jle	.L16
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	dice_rorate_e
	addl	$1, -16(%rbp)
.L14:
	cmpl	$3, -16(%rbp)
	jle	.L17
	movl	$0, -8(%rbp)
	jmp	.L18
.L21:
	movl	$0, -4(%rbp)
	jmp	.L19
.L20:
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	dice_equal
	addl	%eax, -20(%rbp)
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	dice_rorate_n
	addl	$1, -4(%rbp)
.L19:
	cmpl	$3, -4(%rbp)
	jle	.L20
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	dice_rorate_r
	addl	$1, -8(%rbp)
.L18:
	cmpl	$3, -8(%rbp)
	jle	.L21
	movl	-20(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	dice_rorate_equal, .-dice_rorate_equal
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$2432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-2432(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2428(%rbp)
	jmp	.L24
.L25:
	leaq	-2416(%rbp), %rcx
	movl	-2428(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rdi
	call	dice_scan
	addl	$1, -2428(%rbp)
.L24:
	movl	-2432(%rbp), %eax
	cmpl	%eax, -2428(%rbp)
	jl	.L25
	movl	$0, -2424(%rbp)
	jmp	.L26
.L31:
	movl	-2424(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -2420(%rbp)
	jmp	.L27
.L30:
	leaq	-2416(%rbp), %rcx
	movl	-2420(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-2416(%rbp), %rsi
	movl	-2424(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	dice_rorate_equal
	testl	%eax, %eax
	je	.L28
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L32
.L28:
	addl	$1, -2420(%rbp)
.L27:
	movl	-2432(%rbp), %eax
	cmpl	%eax, -2420(%rbp)
	jl	.L30
	addl	$1, -2424(%rbp)
.L26:
	movl	-2432(%rbp), %eax
	cmpl	%eax, -2424(%rbp)
	jl	.L31
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L32:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d %d %d"
	.text
	.p2align 4
	.globl	dice_scan
	.type	dice_scan, @function
dice_scan:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$16, %rsp
	.cfi_def_cfa_offset 24
	leaq	20(%rdi), %rax
	leaq	4(%rdi), %rcx
	movq	%rdi, %r9
	pushq	%rax
	.cfi_def_cfa_offset 32
	leaq	12(%rdi), %rdx
	leaq	16(%rdi), %rsi
	xorl	%eax, %eax
	leaq	8(%rdi), %r8
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE23:
	.size	dice_scan, .-dice_scan
	.p2align 4
	.globl	dice_rorate_n
	.type	dice_rorate_n, @function
dice_rorate_n:
.LFB24:
	.cfi_startproc
	endbr64
	movq	16(%rdi), %xmm0
	movq	8(%rdi), %xmm1
	movl	(%rdi), %eax
	movl	16(%rdi), %edx
	punpckldq	%xmm1, %xmm0
	pshufd	$14, %xmm0, %xmm0
	movl	%edx, (%rdi)
	movl	%eax, 20(%rdi)
	movq	%xmm0, 12(%rdi)
	ret
	.cfi_endproc
.LFE24:
	.size	dice_rorate_n, .-dice_rorate_n
	.p2align 4
	.globl	dice_rorate_e
	.type	dice_rorate_e, @function
dice_rorate_e:
.LFB25:
	.cfi_startproc
	endbr64
	movq	4(%rdi), %xmm0
	movq	16(%rdi), %rax
	pshufd	$225, %xmm0, %xmm0
	movq	%rax, 4(%rdi)
	movq	%xmm0, 16(%rdi)
	ret
	.cfi_endproc
.LFE25:
	.size	dice_rorate_e, .-dice_rorate_e
	.p2align 4
	.globl	dice_rorate_r
	.type	dice_rorate_r, @function
dice_rorate_r:
.LFB26:
	.cfi_startproc
	endbr64
	movdqu	(%rdi), %xmm1
	pshufd	$114, %xmm1, %xmm0
	movups	%xmm0, (%rdi)
	ret
	.cfi_endproc
.LFE26:
	.size	dice_rorate_r, .-dice_rorate_r
	.p2align 4
	.globl	dice_equal
	.type	dice_equal, @function
dice_equal:
.LFB27:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	xorl	%eax, %eax
	cmpl	%edx, (%rdi)
	jne	.L7
	movl	4(%rsi), %ecx
	cmpl	%ecx, 4(%rdi)
	je	.L14
.L7:
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	movl	8(%rsi), %ecx
	cmpl	%ecx, 8(%rdi)
	jne	.L7
	movl	12(%rsi), %ecx
	cmpl	%ecx, 12(%rdi)
	jne	.L7
	movl	16(%rsi), %ecx
	cmpl	%ecx, 16(%rdi)
	jne	.L7
	movl	20(%rsi), %eax
	cmpl	%eax, 20(%rdi)
	sete	%al
	movzbl	%al, %eax
	ret
	.cfi_endproc
.LFE27:
	.size	dice_equal, .-dice_equal
	.p2align 4
	.globl	dice_rorate_equal
	.type	dice_rorate_equal, @function
dice_rorate_equal:
.LFB28:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rsi, %rdx
	movl	$4, %r11d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	(%rdi), %ecx
	xorl	%r12d, %r12d
	movl	4(%rdi), %r9d
	movl	8(%rdi), %r10d
	movl	16(%rax), %esi
	movl	12(%rdi), %edi
	movl	20(%rax), %r8d
.L20:
	movd	%r8d, %xmm1
	movd	%edi, %xmm4
	movd	%ecx, %xmm0
	movd	%esi, %xmm5
	punpckldq	%xmm4, %xmm1
	movd	%esi, %xmm2
	punpckldq	%xmm5, %xmm0
	movd	%ecx, %xmm6
	movd	%ecx, %xmm3
	movd	%r8d, %xmm7
	punpcklqdq	%xmm1, %xmm0
	punpckldq	%xmm6, %xmm2
	punpckldq	%xmm7, %xmm3
	cmpl	%ecx, (%rdx)
	jne	.L16
	cmpl	4(%rdx), %r9d
	jne	.L16
	cmpl	8(%rdx), %r10d
	je	.L29
	.p2align 4,,10
	.p2align 3
.L16:
	movl	%esi, (%rax)
	movl	%ecx, 20(%rax)
	movq	%xmm1, 12(%rax)
	cmpl	(%rdx), %esi
	jne	.L17
	cmpl	4(%rdx), %r9d
	jne	.L17
	cmpl	8(%rdx), %r10d
	je	.L30
	.p2align 4,,10
	.p2align 3
.L17:
	movl	%edi, (%rax)
	movl	%esi, 20(%rax)
	movq	%xmm3, 12(%rax)
	cmpl	(%rdx), %edi
	jne	.L18
	cmpl	4(%rdx), %r9d
	jne	.L18
	cmpl	8(%rdx), %r10d
	je	.L31
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%r8d, (%rax)
	movl	%edi, 20(%rax)
	movq	%xmm2, 12(%rax)
	cmpl	(%rdx), %r8d
	jne	.L19
	cmpl	4(%rdx), %r9d
	jne	.L19
	cmpl	8(%rdx), %r10d
	je	.L32
	.p2align 4,,10
	.p2align 3
.L19:
	movl	%r10d, 16(%rax)
	movl	%r9d, 20(%rax)
	movups	%xmm0, (%rax)
	subl	$1, %r11d
	je	.L33
	movl	%r9d, %ebx
	movl	%esi, %r9d
	movl	%r10d, %esi
	movl	%r8d, %r10d
	movl	%ebx, %r8d
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L33:
	movl	$4, %r11d
.L25:
	movd	%r10d, %xmm0
	movd	%ecx, %xmm4
	movd	%ecx, %xmm1
	movd	%r9d, %xmm5
	movd	%r9d, %xmm2
	movd	%edi, %xmm6
	punpckldq	%xmm4, %xmm0
	punpckldq	%xmm5, %xmm1
	punpckldq	%xmm6, %xmm2
	cmpl	(%rdx), %ecx
	jne	.L21
	cmpl	4(%rdx), %esi
	jne	.L21
	cmpl	8(%rdx), %r8d
	je	.L34
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%r10d, (%rax)
	movl	%ecx, 20(%rax)
	movq	%xmm2, 12(%rax)
	cmpl	(%rdx), %r10d
	jne	.L22
	cmpl	4(%rdx), %esi
	jne	.L22
	cmpl	8(%rdx), %r8d
	je	.L35
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%edi, (%rax)
	movl	%r10d, 20(%rax)
	movq	%xmm1, 12(%rax)
	cmpl	(%rdx), %edi
	jne	.L23
	cmpl	4(%rdx), %esi
	jne	.L23
	cmpl	8(%rdx), %r8d
	je	.L36
	.p2align 4,,10
	.p2align 3
.L23:
	movl	%r9d, (%rax)
	movl	%edi, 20(%rax)
	movq	%xmm0, 12(%rax)
	cmpl	%r9d, (%rdx)
	jne	.L24
	cmpl	4(%rdx), %esi
	jne	.L24
	cmpl	8(%rdx), %r8d
	je	.L37
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%r8d, (%rax)
	movl	%r8d, %ebx
	movl	%edi, %r8d
	movl	%edi, 8(%rax)
	movl	%esi, %edi
	movl	%r10d, 16(%rax)
	movl	%r9d, 20(%rax)
	movl	%esi, 12(%rax)
	movl	%ecx, 4(%rax)
	subl	$1, %r11d
	je	.L38
	movl	%ecx, %esi
	movl	%ebx, %ecx
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L38:
	movl	%r12d, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L37:
	.cfi_restore_state
	cmpl	12(%rdx), %r10d
	jne	.L24
	cmpl	16(%rdx), %ecx
	jne	.L24
	xorl	%ebx, %ebx
	cmpl	%edi, 20(%rdx)
	sete	%bl
	addl	%ebx, %r12d
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L36:
	cmpl	12(%rdx), %ecx
	jne	.L23
	cmpl	%r9d, 16(%rdx)
	jne	.L23
	xorl	%ebx, %ebx
	cmpl	%r10d, 20(%rdx)
	sete	%bl
	addl	%ebx, %r12d
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L35:
	cmpl	%r9d, 12(%rdx)
	jne	.L22
	cmpl	16(%rdx), %edi
	jne	.L22
	xorl	%ebx, %ebx
	cmpl	%ecx, 20(%rdx)
	sete	%bl
	addl	%ebx, %r12d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L34:
	cmpl	12(%rdx), %edi
	jne	.L21
	cmpl	16(%rdx), %r10d
	jne	.L21
	xorl	%ebx, %ebx
	cmpl	%r9d, 20(%rdx)
	sete	%bl
	addl	%ebx, %r12d
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L32:
	cmpl	12(%rdx), %esi
	jne	.L19
	cmpl	%ecx, 16(%rdx)
	jne	.L19
	xorl	%ebx, %ebx
	cmpl	%edi, 20(%rdx)
	sete	%bl
	addl	%ebx, %r12d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L31:
	cmpl	%ecx, 12(%rdx)
	jne	.L18
	cmpl	16(%rdx), %r8d
	jne	.L18
	xorl	%ebx, %ebx
	cmpl	%esi, 20(%rdx)
	sete	%bl
	addl	%ebx, %r12d
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L30:
	cmpl	12(%rdx), %r8d
	jne	.L17
	cmpl	16(%rdx), %edi
	jne	.L17
	xorl	%ebx, %ebx
	cmpl	%ecx, 20(%rdx)
	sete	%bl
	addl	%ebx, %r12d
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L29:
	cmpl	12(%rdx), %edi
	jne	.L16
	cmpl	16(%rdx), %esi
	jne	.L16
	xorl	%ebx, %ebx
	cmpl	%r8d, 20(%rdx)
	sete	%bl
	addl	%ebx, %r12d
	jmp	.L16
	.cfi_endproc
.LFE28:
	.size	dice_rorate_equal, .-dice_rorate_equal
	.section	.rodata.str1.1
.LC1:
	.string	"%d"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB29:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %rdi
	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	$2456, %rsp
	.cfi_def_cfa_offset 2512
	movq	%fs:40, %rax
	movq	%rax, 2440(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L40
	leaq	48(%rsp), %rbx
	xorl	%r12d, %r12d
	leaq	.LC0(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L41:
	subq	$8, %rsp
	.cfi_def_cfa_offset 2520
	leaq	4(%rbx), %rax
	leaq	-4(%rbx), %rdx
	movq	%rbx, %rsi
	pushq	%rax
	.cfi_def_cfa_offset 2528
	leaq	-12(%rbx), %rcx
	leaq	-16(%rbx), %r9
	movq	%r13, %rdi
	leaq	-8(%rbx), %r8
	xorl	%eax, %eax
	addl	$1, %r12d
	addq	$24, %rbx
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %ebp
	popq	%rax
	.cfi_def_cfa_offset 2520
	popq	%rdx
	.cfi_def_cfa_offset 2512
	cmpl	%r12d, %ebp
	jg	.L41
	testl	%ebp, %ebp
	jle	.L40
	leal	-1(%rbp), %ebx
	xorl	%r13d, %r13d
	leaq	32(%rsp), %rax
	xorl	%r15d, %r15d
	movl	%ebx, 4(%rsp)
	addl	$1, %r13d
	leaq	56(%rsp), %rbx
	movq	%rbx, 8(%rsp)
	cmpl	%r13d, %ebp
	je	.L40
.L87:
	movl	4(%rsp), %edx
	movq	8(%rsp), %rbx
	subl	%r13d, %edx
	addq	%r15, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,8), %r12
	movq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L54:
	movl	16(%rax), %ecx
	movd	(%rax), %xmm0
	movl	$4, %r8d
	xorl	%r9d, %r9d
.L46:
	movd	%ecx, %xmm3
	movd	%xmm0, %ebx
	punpckldq	%xmm0, %xmm3
	cmpl	24(%rdx), %ebx
	jne	.L82
	movl	28(%rdx), %ebx
	cmpl	%ebx, 4(%rax)
	jne	.L82
	movl	32(%rdx), %ebx
	cmpl	%ebx, 8(%rax)
	movl	12(%rax), %esi
	jne	.L83
	cmpl	36(%rdx), %esi
	jne	.L83
	cmpl	%ecx, 40(%rdx)
	movl	20(%rax), %edi
	jne	.L42
	xorl	%r10d, %r10d
	cmpl	44(%rdx), %edi
	sete	%r10b
	addl	%r10d, %r9d
	.p2align 4,,10
	.p2align 3
.L42:
	movd	%edi, %xmm1
	movd	%esi, %xmm5
	movdqa	%xmm0, %xmm2
	movl	%ecx, (%rax)
	movd	%ecx, %xmm6
	punpckldq	%xmm5, %xmm1
	movdqa	%xmm0, %xmm4
	movd	%xmm0, 20(%rax)
	punpckldq	%xmm6, %xmm2
	movd	%edi, %xmm7
	movq	%xmm1, 12(%rax)
	punpcklqdq	%xmm1, %xmm2
	punpckldq	%xmm7, %xmm4
	cmpl	%ecx, 24(%rdx)
	jne	.L43
	movl	28(%rdx), %ebx
	cmpl	%ebx, 4(%rax)
	jne	.L43
	movl	32(%rdx), %ebx
	cmpl	%ebx, 8(%rax)
	jne	.L43
	cmpl	36(%rdx), %edi
	jne	.L43
	cmpl	40(%rdx), %esi
	jne	.L43
	xorl	%r10d, %r10d
	movd	%xmm0, %ebx
	cmpl	%ebx, 44(%rdx)
	sete	%r10b
	addl	%r10d, %r9d
	.p2align 4,,10
	.p2align 3
.L43:
	movl	%esi, (%rax)
	movl	%ecx, 20(%rax)
	movq	%xmm4, 12(%rax)
	cmpl	24(%rdx), %esi
	jne	.L44
	movl	28(%rdx), %ebx
	cmpl	%ebx, 4(%rax)
	jne	.L44
	movl	32(%rdx), %ebx
	cmpl	%ebx, 8(%rax)
	jne	.L44
	movd	%xmm0, %ebx
	cmpl	36(%rdx), %ebx
	jne	.L44
	cmpl	40(%rdx), %edi
	jne	.L44
	xorl	%r10d, %r10d
	cmpl	%ecx, 44(%rdx)
	sete	%r10b
	addl	%r10d, %r9d
	.p2align 4,,10
	.p2align 3
.L44:
	movl	%edi, (%rax)
	movl	%esi, 20(%rax)
	movq	%xmm3, 12(%rax)
	cmpl	24(%rdx), %edi
	jne	.L45
	movl	28(%rdx), %ebx
	cmpl	%ebx, 4(%rax)
	jne	.L45
	movl	32(%rdx), %ebx
	cmpl	%ebx, 8(%rax)
	jne	.L45
	cmpl	%ecx, 36(%rdx)
	jne	.L45
	movd	%xmm0, %ebx
	cmpl	40(%rdx), %ebx
	jne	.L45
	xorl	%ecx, %ecx
	cmpl	%esi, 44(%rdx)
	sete	%cl
	addl	%ecx, %r9d
	.p2align 4,,10
	.p2align 3
.L45:
	movq	4(%rax), %xmm1
	movups	%xmm2, (%rax)
	pshufd	$0xe5, %xmm1, %xmm5
	pshufd	$225, %xmm1, %xmm1
	movd	%xmm5, %ecx
	movq	%xmm1, 16(%rax)
	subl	$1, %r8d
	jne	.L46
	movl	16(%rax), %r8d
	movl	(%rax), %esi
	movl	$4, %ebx
.L51:
	movd	%r8d, %xmm1
	movd	%esi, %xmm6
	cmpl	24(%rdx), %esi
	movl	4(%rax), %r10d
	punpckldq	%xmm6, %xmm1
	je	.L76
	movl	8(%rax), %r11d
	movl	12(%rax), %ecx
	movl	20(%rax), %edi
.L47:
	movd	%edi, %xmm3
	movd	%ecx, %xmm6
	movd	%edi, %xmm7
	movl	%r8d, (%rax)
	movd	%r8d, %xmm0
	movd	%esi, %xmm2
	punpckldq	%xmm6, %xmm3
	movl	%esi, 20(%rax)
	punpckldq	%xmm7, %xmm0
	punpckldq	%xmm7, %xmm2
	movq	%xmm3, 12(%rax)
	cmpl	24(%rdx), %r8d
	jne	.L48
	cmpl	28(%rdx), %r10d
	jne	.L48
	cmpl	32(%rdx), %r11d
	jne	.L48
	cmpl	36(%rdx), %edi
	jne	.L48
	cmpl	40(%rdx), %ecx
	jne	.L48
	xorl	%r14d, %r14d
	cmpl	%esi, 44(%rdx)
	sete	%r14b
	addl	%r14d, %r9d
	.p2align 4,,10
	.p2align 3
.L48:
	movl	%ecx, (%rax)
	movl	%r8d, 20(%rax)
	movq	%xmm2, 12(%rax)
	cmpl	24(%rdx), %ecx
	jne	.L49
	cmpl	28(%rdx), %r10d
	jne	.L49
	cmpl	32(%rdx), %r11d
	jne	.L49
	cmpl	36(%rdx), %esi
	jne	.L49
	cmpl	40(%rdx), %edi
	jne	.L49
	xorl	%r14d, %r14d
	cmpl	%r8d, 44(%rdx)
	sete	%r14b
	addl	%r14d, %r9d
	.p2align 4,,10
	.p2align 3
.L49:
	movl	%edi, (%rax)
	movl	%ecx, 20(%rax)
	movq	%xmm1, 12(%rax)
	cmpl	24(%rdx), %edi
	jne	.L50
	cmpl	28(%rdx), %r10d
	jne	.L50
	cmpl	32(%rdx), %r11d
	jne	.L50
	cmpl	36(%rdx), %r8d
	jne	.L50
	cmpl	40(%rdx), %esi
	jne	.L50
	xorl	%edi, %edi
	cmpl	%ecx, 44(%rdx)
	sete	%dil
	addl	%edi, %r9d
	.p2align 4,,10
	.p2align 3
.L50:
	movq	%xmm0, 16(%rax)
	movd	%ecx, %xmm1
	movd	%r10d, %xmm7
	movd	%r11d, %xmm0
	movd	%esi, %xmm4
	punpckldq	%xmm7, %xmm1
	punpckldq	%xmm4, %xmm0
	punpcklqdq	%xmm1, %xmm0
	movups	%xmm0, (%rax)
	subl	$1, %ebx
	je	.L85
	movl	%r11d, %esi
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L82:
	movl	12(%rax), %esi
	movl	20(%rax), %edi
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L76:
	cmpl	28(%rdx), %r10d
	movl	8(%rax), %r11d
	je	.L77
	movl	12(%rax), %ecx
	movl	20(%rax), %edi
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L85:
	testl	%r9d, %r9d
	jne	.L86
	addq	$24, %rdx
	cmpq	%rdx, %r12
	jne	.L54
	addl	$1, %r13d
	addq	$1, %r15
	addq	$24, %rax
	cmpl	%r13d, %ebp
	jne	.L87
.L40:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L77:
	cmpl	32(%rdx), %r11d
	movl	12(%rax), %ecx
	jne	.L84
	cmpl	36(%rdx), %ecx
	jne	.L84
	cmpl	40(%rdx), %r8d
	movl	20(%rax), %edi
	jne	.L47
	xorl	%r14d, %r14d
	cmpl	44(%rdx), %edi
	sete	%r14b
	addl	%r14d, %r9d
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L83:
	movl	20(%rax), %edi
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L84:
	movl	20(%rax), %edi
	jmp	.L47
.L86:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L53:
	movq	2440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L88
	addq	$2456, %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
.L88:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE29:
	.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:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d %d %d"
	.text
	.p2align 4
	.globl	dice_scan
	.type	dice_scan, @function
dice_scan:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$16, %rsp
	.cfi_def_cfa_offset 24
	leaq	20(%rdi), %rax
	leaq	4(%rdi), %rcx
	movq	%rdi, %r9
	pushq	%rax
	.cfi_def_cfa_offset 32
	leaq	12(%rdi), %rdx
	leaq	16(%rdi), %rsi
	xorl	%eax, %eax
	leaq	8(%rdi), %r8
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	addq	$24, %rsp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE23:
	.size	dice_scan, .-dice_scan
	.p2align 4
	.globl	dice_rorate_n
	.type	dice_rorate_n, @function
dice_rorate_n:
.LFB24:
	.cfi_startproc
	endbr64
	movq	16(%rdi), %xmm0
	movq	8(%rdi), %xmm1
	movl	(%rdi), %eax
	movl	16(%rdi), %edx
	punpckldq	%xmm1, %xmm0
	pshufd	$14, %xmm0, %xmm0
	movl	%edx, (%rdi)
	movl	%eax, 20(%rdi)
	movq	%xmm0, 12(%rdi)
	ret
	.cfi_endproc
.LFE24:
	.size	dice_rorate_n, .-dice_rorate_n
	.p2align 4
	.globl	dice_rorate_e
	.type	dice_rorate_e, @function
dice_rorate_e:
.LFB25:
	.cfi_startproc
	endbr64
	movq	4(%rdi), %xmm0
	movq	16(%rdi), %rax
	pshufd	$225, %xmm0, %xmm0
	movq	%rax, 4(%rdi)
	movq	%xmm0, 16(%rdi)
	ret
	.cfi_endproc
.LFE25:
	.size	dice_rorate_e, .-dice_rorate_e
	.p2align 4
	.globl	dice_rorate_r
	.type	dice_rorate_r, @function
dice_rorate_r:
.LFB26:
	.cfi_startproc
	endbr64
	movdqu	(%rdi), %xmm1
	pshufd	$114, %xmm1, %xmm0
	movups	%xmm0, (%rdi)
	ret
	.cfi_endproc
.LFE26:
	.size	dice_rorate_r, .-dice_rorate_r
	.p2align 4
	.globl	dice_equal
	.type	dice_equal, @function
dice_equal:
.LFB27:
	.cfi_startproc
	endbr64
	movl	(%rsi), %edx
	xorl	%eax, %eax
	cmpl	%edx, (%rdi)
	jne	.L7
	movl	4(%rsi), %ecx
	cmpl	%ecx, 4(%rdi)
	je	.L14
.L7:
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	movl	8(%rsi), %ecx
	cmpl	%ecx, 8(%rdi)
	jne	.L7
	movl	12(%rsi), %ecx
	cmpl	%ecx, 12(%rdi)
	jne	.L7
	movl	16(%rsi), %ecx
	cmpl	%ecx, 16(%rdi)
	jne	.L7
	movl	20(%rsi), %eax
	cmpl	%eax, 20(%rdi)
	sete	%al
	movzbl	%al, %eax
	ret
	.cfi_endproc
.LFE27:
	.size	dice_equal, .-dice_equal
	.p2align 4
	.globl	dice_rorate_equal
	.type	dice_rorate_equal, @function
dice_rorate_equal:
.LFB28:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	%rsi, %rdx
	movl	$4, %r11d
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	(%rdi), %ecx
	xorl	%r12d, %r12d
	movl	4(%rdi), %r9d
	movl	8(%rdi), %r10d
	movl	16(%rax), %esi
	movl	12(%rdi), %edi
	movl	20(%rax), %r8d
.L20:
	movd	%r8d, %xmm1
	movd	%edi, %xmm4
	movd	%ecx, %xmm0
	movd	%esi, %xmm5
	punpckldq	%xmm4, %xmm1
	movd	%esi, %xmm2
	punpckldq	%xmm5, %xmm0
	movd	%ecx, %xmm6
	movd	%ecx, %xmm3
	movd	%r8d, %xmm7
	punpcklqdq	%xmm1, %xmm0
	punpckldq	%xmm6, %xmm2
	punpckldq	%xmm7, %xmm3
	cmpl	%ecx, (%rdx)
	jne	.L16
	cmpl	4(%rdx), %r9d
	jne	.L16
	cmpl	8(%rdx), %r10d
	je	.L29
	.p2align 4,,10
	.p2align 3
.L16:
	movl	%esi, (%rax)
	movl	%ecx, 20(%rax)
	movq	%xmm1, 12(%rax)
	cmpl	(%rdx), %esi
	jne	.L17
	cmpl	4(%rdx), %r9d
	jne	.L17
	cmpl	8(%rdx), %r10d
	je	.L30
	.p2align 4,,10
	.p2align 3
.L17:
	movl	%edi, (%rax)
	movl	%esi, 20(%rax)
	movq	%xmm3, 12(%rax)
	cmpl	(%rdx), %edi
	jne	.L18
	cmpl	4(%rdx), %r9d
	jne	.L18
	cmpl	8(%rdx), %r10d
	je	.L31
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%r8d, (%rax)
	movl	%edi, 20(%rax)
	movq	%xmm2, 12(%rax)
	cmpl	(%rdx), %r8d
	jne	.L19
	cmpl	4(%rdx), %r9d
	jne	.L19
	cmpl	8(%rdx), %r10d
	je	.L32
	.p2align 4,,10
	.p2align 3
.L19:
	movl	%r10d, 16(%rax)
	movl	%r9d, 20(%rax)
	movups	%xmm0, (%rax)
	subl	$1, %r11d
	je	.L33
	movl	%r9d, %ebx
	movl	%esi, %r9d
	movl	%r10d, %esi
	movl	%r8d, %r10d
	movl	%ebx, %r8d
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L33:
	movl	$4, %r11d
.L25:
	movd	%r10d, %xmm0
	movd	%ecx, %xmm4
	movd	%ecx, %xmm1
	movd	%r9d, %xmm5
	movd	%r9d, %xmm2
	movd	%edi, %xmm6
	punpckldq	%xmm4, %xmm0
	punpckldq	%xmm5, %xmm1
	punpckldq	%xmm6, %xmm2
	cmpl	(%rdx), %ecx
	jne	.L21
	cmpl	4(%rdx), %esi
	jne	.L21
	cmpl	8(%rdx), %r8d
	je	.L34
	.p2align 4,,10
	.p2align 3
.L21:
	movl	%r10d, (%rax)
	movl	%ecx, 20(%rax)
	movq	%xmm2, 12(%rax)
	cmpl	(%rdx), %r10d
	jne	.L22
	cmpl	4(%rdx), %esi
	jne	.L22
	cmpl	8(%rdx), %r8d
	je	.L35
	.p2align 4,,10
	.p2align 3
.L22:
	movl	%edi, (%rax)
	movl	%r10d, 20(%rax)
	movq	%xmm1, 12(%rax)
	cmpl	(%rdx), %edi
	jne	.L23
	cmpl	4(%rdx), %esi
	jne	.L23
	cmpl	8(%rdx), %r8d
	je	.L36
	.p2align 4,,10
	.p2align 3
.L23:
	movl	%r9d, (%rax)
	movl	%edi, 20(%rax)
	movq	%xmm0, 12(%rax)
	cmpl	%r9d, (%rdx)
	jne	.L24
	cmpl	4(%rdx), %esi
	jne	.L24
	cmpl	8(%rdx), %r8d
	je	.L37
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%r8d, (%rax)
	movl	%r8d, %ebx
	movl	%edi, %r8d
	movl	%edi, 8(%rax)
	movl	%esi, %edi
	movl	%r10d, 16(%rax)
	movl	%r9d, 20(%rax)
	movl	%esi, 12(%rax)
	movl	%ecx, 4(%rax)
	subl	$1, %r11d
	je	.L38
	movl	%ecx, %esi
	movl	%ebx, %ecx
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L38:
	movl	%r12d, %eax
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L37:
	.cfi_restore_state
	cmpl	12(%rdx), %r10d
	jne	.L24
	cmpl	16(%rdx), %ecx
	jne	.L24
	xorl	%ebx, %ebx
	cmpl	%edi, 20(%rdx)
	sete	%bl
	addl	%ebx, %r12d
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L36:
	cmpl	12(%rdx), %ecx
	jne	.L23
	cmpl	%r9d, 16(%rdx)
	jne	.L23
	xorl	%ebx, %ebx
	cmpl	%r10d, 20(%rdx)
	sete	%bl
	addl	%ebx, %r12d
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L35:
	cmpl	%r9d, 12(%rdx)
	jne	.L22
	cmpl	16(%rdx), %edi
	jne	.L22
	xorl	%ebx, %ebx
	cmpl	%ecx, 20(%rdx)
	sete	%bl
	addl	%ebx, %r12d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L34:
	cmpl	12(%rdx), %edi
	jne	.L21
	cmpl	16(%rdx), %r10d
	jne	.L21
	xorl	%ebx, %ebx
	cmpl	%r9d, 20(%rdx)
	sete	%bl
	addl	%ebx, %r12d
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L32:
	cmpl	12(%rdx), %esi
	jne	.L19
	cmpl	%ecx, 16(%rdx)
	jne	.L19
	xorl	%ebx, %ebx
	cmpl	%edi, 20(%rdx)
	sete	%bl
	addl	%ebx, %r12d
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L31:
	cmpl	%ecx, 12(%rdx)
	jne	.L18
	cmpl	16(%rdx), %r8d
	jne	.L18
	xorl	%ebx, %ebx
	cmpl	%esi, 20(%rdx)
	sete	%bl
	addl	%ebx, %r12d
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L30:
	cmpl	12(%rdx), %r8d
	jne	.L17
	cmpl	16(%rdx), %edi
	jne	.L17
	xorl	%ebx, %ebx
	cmpl	%ecx, 20(%rdx)
	sete	%bl
	addl	%ebx, %r12d
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L29:
	cmpl	12(%rdx), %edi
	jne	.L16
	cmpl	16(%rdx), %esi
	jne	.L16
	xorl	%ebx, %ebx
	cmpl	%r8d, 20(%rdx)
	sete	%bl
	addl	%ebx, %r12d
	jmp	.L16
	.cfi_endproc
.LFE28:
	.size	dice_rorate_equal, .-dice_rorate_equal
	.section	.rodata.str1.1
.LC1:
	.string	"%d"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB29:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC1(%rip), %rdi
	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	$2456, %rsp
	.cfi_def_cfa_offset 2512
	movq	%fs:40, %rax
	movq	%rax, 2440(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	28(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L40
	leaq	48(%rsp), %rbx
	xorl	%r12d, %r12d
	leaq	.LC0(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L41:
	subq	$8, %rsp
	.cfi_def_cfa_offset 2520
	leaq	4(%rbx), %rax
	leaq	-4(%rbx), %rdx
	movq	%rbx, %rsi
	pushq	%rax
	.cfi_def_cfa_offset 2528
	leaq	-12(%rbx), %rcx
	leaq	-16(%rbx), %r9
	movq	%r13, %rdi
	leaq	-8(%rbx), %r8
	xorl	%eax, %eax
	addl	$1, %r12d
	addq	$24, %rbx
	call	__isoc99_scanf@PLT
	movl	44(%rsp), %ebp
	popq	%rax
	.cfi_def_cfa_offset 2520
	popq	%rdx
	.cfi_def_cfa_offset 2512
	cmpl	%r12d, %ebp
	jg	.L41
	testl	%ebp, %ebp
	jle	.L40
	leal	-1(%rbp), %ebx
	xorl	%r13d, %r13d
	leaq	32(%rsp), %rax
	xorl	%r15d, %r15d
	movl	%ebx, 4(%rsp)
	addl	$1, %r13d
	leaq	56(%rsp), %rbx
	movq	%rbx, 8(%rsp)
	cmpl	%r13d, %ebp
	je	.L40
.L87:
	movl	4(%rsp), %edx
	movq	8(%rsp), %rbx
	subl	%r13d, %edx
	addq	%r15, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rbx,%rdx,8), %r12
	movq	%rax, %rdx
	.p2align 4,,10
	.p2align 3
.L54:
	movl	16(%rax), %ecx
	movd	(%rax), %xmm0
	movl	$4, %r8d
	xorl	%r9d, %r9d
.L46:
	movd	%ecx, %xmm3
	movd	%xmm0, %ebx
	punpckldq	%xmm0, %xmm3
	cmpl	24(%rdx), %ebx
	jne	.L82
	movl	28(%rdx), %ebx
	cmpl	%ebx, 4(%rax)
	jne	.L82
	movl	32(%rdx), %ebx
	cmpl	%ebx, 8(%rax)
	movl	12(%rax), %esi
	jne	.L83
	cmpl	36(%rdx), %esi
	jne	.L83
	cmpl	%ecx, 40(%rdx)
	movl	20(%rax), %edi
	jne	.L42
	xorl	%r10d, %r10d
	cmpl	44(%rdx), %edi
	sete	%r10b
	addl	%r10d, %r9d
	.p2align 4,,10
	.p2align 3
.L42:
	movd	%edi, %xmm1
	movd	%esi, %xmm5
	movdqa	%xmm0, %xmm2
	movl	%ecx, (%rax)
	movd	%ecx, %xmm6
	punpckldq	%xmm5, %xmm1
	movdqa	%xmm0, %xmm4
	movd	%xmm0, 20(%rax)
	punpckldq	%xmm6, %xmm2
	movd	%edi, %xmm7
	movq	%xmm1, 12(%rax)
	punpcklqdq	%xmm1, %xmm2
	punpckldq	%xmm7, %xmm4
	cmpl	%ecx, 24(%rdx)
	jne	.L43
	movl	28(%rdx), %ebx
	cmpl	%ebx, 4(%rax)
	jne	.L43
	movl	32(%rdx), %ebx
	cmpl	%ebx, 8(%rax)
	jne	.L43
	cmpl	36(%rdx), %edi
	jne	.L43
	cmpl	40(%rdx), %esi
	jne	.L43
	xorl	%r10d, %r10d
	movd	%xmm0, %ebx
	cmpl	%ebx, 44(%rdx)
	sete	%r10b
	addl	%r10d, %r9d
	.p2align 4,,10
	.p2align 3
.L43:
	movl	%esi, (%rax)
	movl	%ecx, 20(%rax)
	movq	%xmm4, 12(%rax)
	cmpl	24(%rdx), %esi
	jne	.L44
	movl	28(%rdx), %ebx
	cmpl	%ebx, 4(%rax)
	jne	.L44
	movl	32(%rdx), %ebx
	cmpl	%ebx, 8(%rax)
	jne	.L44
	movd	%xmm0, %ebx
	cmpl	36(%rdx), %ebx
	jne	.L44
	cmpl	40(%rdx), %edi
	jne	.L44
	xorl	%r10d, %r10d
	cmpl	%ecx, 44(%rdx)
	sete	%r10b
	addl	%r10d, %r9d
	.p2align 4,,10
	.p2align 3
.L44:
	movl	%edi, (%rax)
	movl	%esi, 20(%rax)
	movq	%xmm3, 12(%rax)
	cmpl	24(%rdx), %edi
	jne	.L45
	movl	28(%rdx), %ebx
	cmpl	%ebx, 4(%rax)
	jne	.L45
	movl	32(%rdx), %ebx
	cmpl	%ebx, 8(%rax)
	jne	.L45
	cmpl	%ecx, 36(%rdx)
	jne	.L45
	movd	%xmm0, %ebx
	cmpl	40(%rdx), %ebx
	jne	.L45
	xorl	%ecx, %ecx
	cmpl	%esi, 44(%rdx)
	sete	%cl
	addl	%ecx, %r9d
	.p2align 4,,10
	.p2align 3
.L45:
	movq	4(%rax), %xmm1
	movups	%xmm2, (%rax)
	pshufd	$0xe5, %xmm1, %xmm5
	pshufd	$225, %xmm1, %xmm1
	movd	%xmm5, %ecx
	movq	%xmm1, 16(%rax)
	subl	$1, %r8d
	jne	.L46
	movl	16(%rax), %r8d
	movl	(%rax), %esi
	movl	$4, %ebx
.L51:
	movd	%r8d, %xmm1
	movd	%esi, %xmm6
	cmpl	24(%rdx), %esi
	movl	4(%rax), %r10d
	punpckldq	%xmm6, %xmm1
	je	.L76
	movl	8(%rax), %r11d
	movl	12(%rax), %ecx
	movl	20(%rax), %edi
.L47:
	movd	%edi, %xmm3
	movd	%ecx, %xmm6
	movd	%edi, %xmm7
	movl	%r8d, (%rax)
	movd	%r8d, %xmm0
	movd	%esi, %xmm2
	punpckldq	%xmm6, %xmm3
	movl	%esi, 20(%rax)
	punpckldq	%xmm7, %xmm0
	punpckldq	%xmm7, %xmm2
	movq	%xmm3, 12(%rax)
	cmpl	24(%rdx), %r8d
	jne	.L48
	cmpl	28(%rdx), %r10d
	jne	.L48
	cmpl	32(%rdx), %r11d
	jne	.L48
	cmpl	36(%rdx), %edi
	jne	.L48
	cmpl	40(%rdx), %ecx
	jne	.L48
	xorl	%r14d, %r14d
	cmpl	%esi, 44(%rdx)
	sete	%r14b
	addl	%r14d, %r9d
	.p2align 4,,10
	.p2align 3
.L48:
	movl	%ecx, (%rax)
	movl	%r8d, 20(%rax)
	movq	%xmm2, 12(%rax)
	cmpl	24(%rdx), %ecx
	jne	.L49
	cmpl	28(%rdx), %r10d
	jne	.L49
	cmpl	32(%rdx), %r11d
	jne	.L49
	cmpl	36(%rdx), %esi
	jne	.L49
	cmpl	40(%rdx), %edi
	jne	.L49
	xorl	%r14d, %r14d
	cmpl	%r8d, 44(%rdx)
	sete	%r14b
	addl	%r14d, %r9d
	.p2align 4,,10
	.p2align 3
.L49:
	movl	%edi, (%rax)
	movl	%ecx, 20(%rax)
	movq	%xmm1, 12(%rax)
	cmpl	24(%rdx), %edi
	jne	.L50
	cmpl	28(%rdx), %r10d
	jne	.L50
	cmpl	32(%rdx), %r11d
	jne	.L50
	cmpl	36(%rdx), %r8d
	jne	.L50
	cmpl	40(%rdx), %esi
	jne	.L50
	xorl	%edi, %edi
	cmpl	%ecx, 44(%rdx)
	sete	%dil
	addl	%edi, %r9d
	.p2align 4,,10
	.p2align 3
.L50:
	movq	%xmm0, 16(%rax)
	movd	%ecx, %xmm1
	movd	%r10d, %xmm7
	movd	%r11d, %xmm0
	movd	%esi, %xmm4
	punpckldq	%xmm7, %xmm1
	punpckldq	%xmm4, %xmm0
	punpcklqdq	%xmm1, %xmm0
	movups	%xmm0, (%rax)
	subl	$1, %ebx
	je	.L85
	movl	%r11d, %esi
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L82:
	movl	12(%rax), %esi
	movl	20(%rax), %edi
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L76:
	cmpl	28(%rdx), %r10d
	movl	8(%rax), %r11d
	je	.L77
	movl	12(%rax), %ecx
	movl	20(%rax), %edi
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L85:
	testl	%r9d, %r9d
	jne	.L86
	addq	$24, %rdx
	cmpq	%rdx, %r12
	jne	.L54
	addl	$1, %r13d
	addq	$1, %r15
	addq	$24, %rax
	cmpl	%r13d, %ebp
	jne	.L87
.L40:
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	jmp	.L53
	.p2align 4,,10
	.p2align 3
.L77:
	cmpl	32(%rdx), %r11d
	movl	12(%rax), %ecx
	jne	.L84
	cmpl	36(%rdx), %ecx
	jne	.L84
	cmpl	40(%rdx), %r8d
	movl	20(%rax), %edi
	jne	.L47
	xorl	%r14d, %r14d
	cmpl	44(%rdx), %edi
	sete	%r14b
	addl	%r14d, %r9d
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L83:
	movl	20(%rax), %edi
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L84:
	movl	20(%rax), %edi
	jmp	.L47
.L86:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L53:
	movq	2440(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L88
	addq	$2456, %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
.L88:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE29:
	.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:

#include <stdio.h>

typedef struct
{
	int n, e, w, s, t, b;
} dice;

void dice_scan(dice *x)
{
	scanf("%d %d %d %d %d %d", &x->t, &x->s, &x->e, &x->w, &x->n, &x->b);
}

void dice_rorate_n(dice *x)
{
	int temp;
	temp = x->n;
	x->n = x->t;
	x->t = x->s;
	x->s = x->b;
	x->b = temp;
}

void dice_rorate_e(dice *x)
{
	int temp;
	temp = x->e;
	x->e = x->t;
	x->t = x->w;
	x->w = x->b;
	x->b = temp;
}

void dice_rorate_r(dice *x)
{
	int temp;
	temp = x->n;
	x->n = x->w;
	x->w = x->s;
	x->s = x->e;
	x->e = temp;
}

int dice_equal(const dice *d1, const dice *d2)
{
	if(d1->n != d2->n) { return 0; }
	if(d1->e != d2->e) { return 0; }
	if(d1->w != d2->w) { return 0; }
	if(d1->s != d2->s) { return 0; }
	if(d1->t != d2->t) { return 0; }
	if(d1->b != d2->b) { return 0; }
	return 1;
}

int dice_rorate_equal(dice *d1, dice *d2)
{
	int ok = 0;
	for(int i = 0; i < 4; ++i)
	{
		for(int j = 0; j < 4; ++j)
		{
			ok += dice_equal(d1, d2);
			dice_rorate_n(d1);
		}
		dice_rorate_e(d1);
	}
	for(int i = 0; i < 4; ++i)
	{
		for(int j = 0; j < 4; ++j)
		{
			ok += dice_equal(d1, d2);
			dice_rorate_n(d1);
		}
		dice_rorate_r(d1);
	}
	return ok;
}

int main()
{
	int n;
	dice d[100];

	scanf("%d", &n);
	for(int i = 0; i < n; ++i)
	{
		dice_scan(&d[i]);
	}

	for(int i = 0; i < n; ++i)
	{
		for(int j = i + 1; j < n; ++j)
		{
			if(dice_rorate_equal(&d[i], &d[j]))
			{
				printf("No\n");
				return 0;
			}
		}
	}

	printf("Yes\n");
	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>

typedef struct
{
	int n, e, w, s, t, b;
} dice;

void dice_scan(dice *x)
{
	scanf("%d %d %d %d %d %d", &x->t, &x->s, &x->e, &x->w, &x->n, &x->b);
}

void dice_rorate_n(dice *x)
{
	int temp;
	temp = x->n;
	x->n = x->t;
	x->t = x->s;
	x->s = x->b;
	x->b = temp;
}

void dice_rorate_e(dice *x)
{
	int temp;
	temp = x->e;
	x->e = x->t;
	x->t = x->w;
	x->w = x->b;
	x->b = temp;
}

void dice_rorate_r(dice *x)
{
	int temp;
	temp = x->n;
	x->n = x->w;
	x->w = x->s;
	x->s = x->e;
	x->e = temp;
}

int dice_equal(const dice *d1, const dice *d2)
{
	if(d1->n != d2->n) { return 0; }
	if(d1->e != d2->e) { return 0; }
	if(d1->w != d2->w) { return 0; }
	if(d1->s != d2->s) { return 0; }
	if(d1->t != d2->t) { return 0; }
	if(d1->b != d2->b) { return 0; }
	return 1;
}

int dice_rorate_equal(dice *d1, dice *d2)
{
	int ok = 0;
	for(int i = 0; i < 4; ++i)
	{
		for(int j = 0; j < 4; ++j)
		{
			ok += dice_equal(d1, d2);
			dice_rorate_n(d1);
		}
		dice_rorate_e(d1);
	}
	for(int i = 0; i < 4; ++i)
	{
		for(int j = 0; j < 4; ++j)
		{
			ok += dice_equal(d1, d2);
			dice_rorate_n(d1);
		}
		dice_rorate_r(d1);
	}
	return ok;
}

int main()
{
	int n;
	dice d[100];

	scanf("%d", &n);
	for(int i = 0; i < n; ++i)
	{
		dice_scan(&d[i]);
	}

	for(int i = 0; i < n; ++i)
	{
		for(int j = i + 1; j < n; ++j)
		{
			if(dice_rorate_equal(&d[i], &d[j]))
			{
				printf("No\n");
				return 0;
			}
		}
	}

	printf("Yes\n");
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d %d %d %d"
	.text
	.globl	dice_scan
	.type	dice_scan, @function
dice_scan:
.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
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	leaq	20(%rax), %rsi
	movq	-8(%rbp), %rdi
	movq	-8(%rbp), %rax
	leaq	8(%rax), %r8
	movq	-8(%rbp), %rax
	leaq	4(%rax), %rcx
	movq	-8(%rbp), %rax
	leaq	12(%rax), %rdx
	movq	-8(%rbp), %rax
	addq	$16, %rax
	subq	$8, %rsp
	pushq	%rsi
	movq	%rdi, %r9
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dice_scan, .-dice_scan
	.globl	dice_rorate_n
	.type	dice_rorate_n, @function
dice_rorate_n:
.LFB1:
	.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	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-24(%rbp), %rax
	movl	16(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-24(%rbp), %rax
	movl	12(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 16(%rax)
	movq	-24(%rbp), %rax
	movl	20(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 12(%rax)
	movq	-24(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, 20(%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dice_rorate_n, .-dice_rorate_n
	.globl	dice_rorate_e
	.type	dice_rorate_e, @function
dice_rorate_e:
.LFB2:
	.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	-24(%rbp), %rax
	movl	4(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-24(%rbp), %rax
	movl	16(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 4(%rax)
	movq	-24(%rbp), %rax
	movl	8(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 16(%rax)
	movq	-24(%rbp), %rax
	movl	20(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 8(%rax)
	movq	-24(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, 20(%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	dice_rorate_e, .-dice_rorate_e
	.globl	dice_rorate_r
	.type	dice_rorate_r, @function
dice_rorate_r:
.LFB3:
	.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	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-24(%rbp), %rax
	movl	8(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-24(%rbp), %rax
	movl	12(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 8(%rax)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 12(%rax)
	movq	-24(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, 4(%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	dice_rorate_r, .-dice_rorate_r
	.globl	dice_equal
	.type	dice_equal, @function
dice_equal:
.LFB4:
	.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), %eax
	cmpl	%eax, %edx
	je	.L6
	movl	$0, %eax
	jmp	.L7
.L6:
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	je	.L8
	movl	$0, %eax
	jmp	.L7
.L8:
	movq	-8(%rbp), %rax
	movl	8(%rax), %edx
	movq	-16(%rbp), %rax
	movl	8(%rax), %eax
	cmpl	%eax, %edx
	je	.L9
	movl	$0, %eax
	jmp	.L7
.L9:
	movq	-8(%rbp), %rax
	movl	12(%rax), %edx
	movq	-16(%rbp), %rax
	movl	12(%rax), %eax
	cmpl	%eax, %edx
	je	.L10
	movl	$0, %eax
	jmp	.L7
.L10:
	movq	-8(%rbp), %rax
	movl	16(%rax), %edx
	movq	-16(%rbp), %rax
	movl	16(%rax), %eax
	cmpl	%eax, %edx
	je	.L11
	movl	$0, %eax
	jmp	.L7
.L11:
	movq	-8(%rbp), %rax
	movl	20(%rax), %edx
	movq	-16(%rbp), %rax
	movl	20(%rax), %eax
	cmpl	%eax, %edx
	je	.L12
	movl	$0, %eax
	jmp	.L7
.L12:
	movl	$1, %eax
.L7:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	dice_equal, .-dice_equal
	.globl	dice_rorate_equal
	.type	dice_rorate_equal, @function
dice_rorate_equal:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L14
.L17:
	movl	$0, -12(%rbp)
	jmp	.L15
.L16:
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	dice_equal
	addl	%eax, -20(%rbp)
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	dice_rorate_n
	addl	$1, -12(%rbp)
.L15:
	cmpl	$3, -12(%rbp)
	jle	.L16
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	dice_rorate_e
	addl	$1, -16(%rbp)
.L14:
	cmpl	$3, -16(%rbp)
	jle	.L17
	movl	$0, -8(%rbp)
	jmp	.L18
.L21:
	movl	$0, -4(%rbp)
	jmp	.L19
.L20:
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	dice_equal
	addl	%eax, -20(%rbp)
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	dice_rorate_n
	addl	$1, -4(%rbp)
.L19:
	cmpl	$3, -4(%rbp)
	jle	.L20
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	dice_rorate_r
	addl	$1, -8(%rbp)
.L18:
	cmpl	$3, -8(%rbp)
	jle	.L21
	movl	-20(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	dice_rorate_equal, .-dice_rorate_equal
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$2432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-2432(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2428(%rbp)
	jmp	.L24
.L25:
	leaq	-2416(%rbp), %rcx
	movl	-2428(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rdi
	call	dice_scan
	addl	$1, -2428(%rbp)
.L24:
	movl	-2432(%rbp), %eax
	cmpl	%eax, -2428(%rbp)
	jl	.L25
	movl	$0, -2424(%rbp)
	jmp	.L26
.L31:
	movl	-2424(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -2420(%rbp)
	jmp	.L27
.L30:
	leaq	-2416(%rbp), %rcx
	movl	-2420(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-2416(%rbp), %rsi
	movl	-2424(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	dice_rorate_equal
	testl	%eax, %eax
	je	.L28
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L32
.L28:
	addl	$1, -2420(%rbp)
.L27:
	movl	-2432(%rbp), %eax
	cmpl	%eax, -2420(%rbp)
	jl	.L30
	addl	$1, -2424(%rbp)
.L26:
	movl	-2432(%rbp), %eax
	cmpl	%eax, -2424(%rbp)
	jl	.L31
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L32:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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
	.section	.rodata
.LC0:
	.string	"%d %d %d %d %d %d"
	.text
	.globl	dice_scan
	.type	dice_scan, @function
dice_scan:
.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
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	leaq	20(%rax), %rsi
	movq	-8(%rbp), %rdi
	movq	-8(%rbp), %rax
	leaq	8(%rax), %r8
	movq	-8(%rbp), %rax
	leaq	4(%rax), %rcx
	movq	-8(%rbp), %rax
	leaq	12(%rax), %rdx
	movq	-8(%rbp), %rax
	addq	$16, %rax
	subq	$8, %rsp
	pushq	%rsi
	movq	%rdi, %r9
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dice_scan, .-dice_scan
	.globl	dice_rorate_n
	.type	dice_rorate_n, @function
dice_rorate_n:
.LFB1:
	.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	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-24(%rbp), %rax
	movl	16(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-24(%rbp), %rax
	movl	12(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 16(%rax)
	movq	-24(%rbp), %rax
	movl	20(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 12(%rax)
	movq	-24(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, 20(%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dice_rorate_n, .-dice_rorate_n
	.globl	dice_rorate_e
	.type	dice_rorate_e, @function
dice_rorate_e:
.LFB2:
	.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	-24(%rbp), %rax
	movl	4(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-24(%rbp), %rax
	movl	16(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 4(%rax)
	movq	-24(%rbp), %rax
	movl	8(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 16(%rax)
	movq	-24(%rbp), %rax
	movl	20(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 8(%rax)
	movq	-24(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, 20(%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	dice_rorate_e, .-dice_rorate_e
	.globl	dice_rorate_r
	.type	dice_rorate_r, @function
dice_rorate_r:
.LFB3:
	.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	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-24(%rbp), %rax
	movl	8(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-24(%rbp), %rax
	movl	12(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 8(%rax)
	movq	-24(%rbp), %rax
	movl	4(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, 12(%rax)
	movq	-24(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, 4(%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	dice_rorate_r, .-dice_rorate_r
	.globl	dice_equal
	.type	dice_equal, @function
dice_equal:
.LFB4:
	.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), %eax
	cmpl	%eax, %edx
	je	.L6
	movl	$0, %eax
	jmp	.L7
.L6:
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	je	.L8
	movl	$0, %eax
	jmp	.L7
.L8:
	movq	-8(%rbp), %rax
	movl	8(%rax), %edx
	movq	-16(%rbp), %rax
	movl	8(%rax), %eax
	cmpl	%eax, %edx
	je	.L9
	movl	$0, %eax
	jmp	.L7
.L9:
	movq	-8(%rbp), %rax
	movl	12(%rax), %edx
	movq	-16(%rbp), %rax
	movl	12(%rax), %eax
	cmpl	%eax, %edx
	je	.L10
	movl	$0, %eax
	jmp	.L7
.L10:
	movq	-8(%rbp), %rax
	movl	16(%rax), %edx
	movq	-16(%rbp), %rax
	movl	16(%rax), %eax
	cmpl	%eax, %edx
	je	.L11
	movl	$0, %eax
	jmp	.L7
.L11:
	movq	-8(%rbp), %rax
	movl	20(%rax), %edx
	movq	-16(%rbp), %rax
	movl	20(%rax), %eax
	cmpl	%eax, %edx
	je	.L12
	movl	$0, %eax
	jmp	.L7
.L12:
	movl	$1, %eax
.L7:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	dice_equal, .-dice_equal
	.globl	dice_rorate_equal
	.type	dice_rorate_equal, @function
dice_rorate_equal:
.LFB5:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -40(%rbp)
	movq	%rsi, -48(%rbp)
	movl	$0, -20(%rbp)
	movl	$0, -16(%rbp)
	jmp	.L14
.L17:
	movl	$0, -12(%rbp)
	jmp	.L15
.L16:
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	dice_equal
	addl	%eax, -20(%rbp)
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	dice_rorate_n
	addl	$1, -12(%rbp)
.L15:
	cmpl	$3, -12(%rbp)
	jle	.L16
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	dice_rorate_e
	addl	$1, -16(%rbp)
.L14:
	cmpl	$3, -16(%rbp)
	jle	.L17
	movl	$0, -8(%rbp)
	jmp	.L18
.L21:
	movl	$0, -4(%rbp)
	jmp	.L19
.L20:
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	dice_equal
	addl	%eax, -20(%rbp)
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	dice_rorate_n
	addl	$1, -4(%rbp)
.L19:
	cmpl	$3, -4(%rbp)
	jle	.L20
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	dice_rorate_r
	addl	$1, -8(%rbp)
.L18:
	cmpl	$3, -8(%rbp)
	jle	.L21
	movl	-20(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	dice_rorate_equal, .-dice_rorate_equal
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"No"
.LC3:
	.string	"Yes"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$2432, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-2432(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -2428(%rbp)
	jmp	.L24
.L25:
	leaq	-2416(%rbp), %rcx
	movl	-2428(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rcx, %rax
	movq	%rax, %rdi
	call	dice_scan
	addl	$1, -2428(%rbp)
.L24:
	movl	-2432(%rbp), %eax
	cmpl	%eax, -2428(%rbp)
	jl	.L25
	movl	$0, -2424(%rbp)
	jmp	.L26
.L31:
	movl	-2424(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -2420(%rbp)
	jmp	.L27
.L30:
	leaq	-2416(%rbp), %rcx
	movl	-2420(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	leaq	(%rcx,%rax), %rdx
	leaq	-2416(%rbp), %rsi
	movl	-2424(%rbp), %eax
	movslq	%eax, %rcx
	movq	%rcx, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$3, %rax
	addq	%rsi, %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	dice_rorate_equal
	testl	%eax, %eax
	je	.L28
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L32
.L28:
	addl	$1, -2420(%rbp)
.L27:
	movl	-2432(%rbp), %eax
	cmpl	%eax, -2420(%rbp)
	jl	.L30
	addl	$1, -2424(%rbp)
.L26:
	movl	-2432(%rbp), %eax
	cmpl	%eax, -2424(%rbp)
	jl	.L31
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L32:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
