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>

//関数プロトタイプ宣言
void moving_north(int *top, int *bottom, int *front, int *back);
void moving_east(int *top, int *bottom, int *right_side, int *left_side);
void rotate_right(int *front, int *back, int *right_side, int *left_side);

//ダイスの構造体
typedef struct{
	int top;
	int bottom;
	int right_side;
	int left_side;
	int front;
	int back;
}Dice;

int main(void)
{
	Dice dice1;
	Dice dice2;

	//iとjはループ変数、flagは2つのダイスが等しいか表す
	int i, j, flag;

	flag = 0;
	//ダイスの目を入力
	scanf("%d %d %d %d %d %d", 
		  &dice1.top, &dice1.front, &dice1.right_side, &dice1.left_side, &dice1.back, &dice1.bottom);
	scanf("%d %d %d %d %d %d", 
		  &dice2.top, &dice2.front, &dice2.right_side, &dice2.left_side, &dice2.back, &dice2.bottom);

	//dice1を基準とし、dice2を転がして各面を比較する
	for(i = 0; i < (4 * 4); i++){
		for(j = 0; j < 4; j++){
			//2つのダイスの目が全て等しければflagに1を代入
			if((dice1.top == dice2.top) && (dice1.bottom == dice2.bottom) && (dice1.front == dice2.front) &&
				(dice1.back == dice2.back) && (dice1.right_side == dice2.right_side) && (dice1.left_side == dice2.left_side)){
					flag = 1;
			}
			//ダイスの向きを変える
			rotate_right(&dice2.front, &dice2.back, &dice2.right_side, &dice2.left_side);
		}

		//ダイスを北側に転がし、ダイスが1周する度に東側に回転させる
		moving_north(&dice2.top, &dice2.bottom, &dice2.front, &dice2.back);
		if((i > 0) && (i % 4 == 0)){
			moving_east(&dice2.top, &dice2.bottom, &dice2.right_side, &dice2.left_side);
		}

		/* 無駄な繰り返しを省略
		if(flag){
			break;
		}
		*/
	}

	//結果を出力
	if(flag){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}

	return 0;
}

//北側に転がす関数
void moving_north(int *top, int *bottom, int *front, int *back)
{
	int temp;

	//各面の値をずらす
	temp = *top;
	*top = *front;
	*front = *bottom;
	*bottom = *back;
	*back = temp;
}

//東側に転がす関数
void moving_east(int *top, int *bottom, int *right_side, int *left_side)
{
	int temp;

	//各面の値をずらす
	temp = *top;
	*top = *left_side;
	*left_side = *bottom;
	*bottom = *right_side;
	*right_side = temp;
}

//上面と下面を軸とし右側へ回転する関数
void rotate_right(int *front, int *back, int *right_side, int *left_side)
{
	int temp;

	//各面の値をずらす
	temp = *front;
	*front = *left_side;
	*left_side = *back;
	*back = *right_side;
	*right_side = temp;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d %d %d %d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -68(%rbp)
	leaq	-64(%rbp), %rax
	leaq	20(%rax), %r8
	leaq	-64(%rbp), %rax
	leaq	12(%rax), %rdi
	leaq	-64(%rbp), %rax
	leaq	8(%rax), %rcx
	leaq	-64(%rbp), %rax
	leaq	16(%rax), %rdx
	leaq	-64(%rbp), %rax
	subq	$8, %rsp
	leaq	-64(%rbp), %rsi
	addq	$4, %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	leaq	-32(%rbp), %rax
	leaq	20(%rax), %r8
	leaq	-32(%rbp), %rax
	leaq	12(%rax), %rdi
	leaq	-32(%rbp), %rax
	leaq	8(%rax), %rcx
	leaq	-32(%rbp), %rax
	leaq	16(%rax), %rdx
	leaq	-32(%rbp), %rax
	subq	$8, %rsp
	leaq	-32(%rbp), %rsi
	addq	$4, %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	movl	$0, -76(%rbp)
	jmp	.L2
.L7:
	movl	$0, -72(%rbp)
	jmp	.L3
.L5:
	movl	-64(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-60(%rbp), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-48(%rbp), %edx
	movl	-16(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-44(%rbp), %edx
	movl	-12(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-56(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-52(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	$1, -68(%rbp)
.L4:
	leaq	-32(%rbp), %rax
	leaq	12(%rax), %rcx
	leaq	-32(%rbp), %rax
	leaq	8(%rax), %rdx
	leaq	-32(%rbp), %rax
	leaq	20(%rax), %rsi
	leaq	-32(%rbp), %rax
	addq	$16, %rax
	movq	%rax, %rdi
	call	rotate_right
	addl	$1, -72(%rbp)
.L3:
	cmpl	$3, -72(%rbp)
	jle	.L5
	leaq	-32(%rbp), %rax
	leaq	20(%rax), %rcx
	leaq	-32(%rbp), %rax
	leaq	16(%rax), %rdx
	leaq	-32(%rbp), %rax
	leaq	4(%rax), %rsi
	leaq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	moving_north
	cmpl	$0, -76(%rbp)
	jle	.L6
	movl	-76(%rbp), %eax
	andl	$3, %eax
	testl	%eax, %eax
	jne	.L6
	leaq	-32(%rbp), %rax
	leaq	12(%rax), %rcx
	leaq	-32(%rbp), %rax
	leaq	8(%rax), %rdx
	leaq	-32(%rbp), %rax
	leaq	4(%rax), %rsi
	leaq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	moving_east
.L6:
	addl	$1, -76(%rbp)
.L2:
	cmpl	$15, -76(%rbp)
	jle	.L7
	cmpl	$0, -68(%rbp)
	je	.L8
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L9
.L8:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L9:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	moving_north
	.type	moving_north, @function
moving_north:
.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	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	movq	-40(%rbp), %rax
	movl	%edx, (%rax)
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	%edx, (%rax)
	movq	-48(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	moving_north, .-moving_north
	.globl	moving_east
	.type	moving_east, @function
moving_east:
.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	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rax
	movl	%edx, (%rax)
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	%edx, (%rax)
	movq	-40(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	moving_east, .-moving_east
	.globl	rotate_right
	.type	rotate_right, @function
rotate_right:
.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	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rax
	movl	%edx, (%rax)
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	%edx, (%rax)
	movq	-40(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	rotate_right, .-rotate_right
	.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"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	8(%rsp), %rcx
	leaq	16(%rsp), %rdx
	subq	$8, %rsp
	.cfi_def_cfa_offset 136
	leaq	12(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 144
	xorl	%eax, %eax
	leaq	36(%rsp), %r9
	leaq	28(%rsp), %r8
	call	__isoc99_scanf@PLT
	leaq	48(%rsp), %rsi
	leaq	56(%rsp), %rcx
	movq	%rbp, %rdi
	leaq	64(%rsp), %rdx
	popq	%rax
	.cfi_def_cfa_offset 136
	leaq	44(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 144
	xorl	%eax, %eax
	leaq	68(%rsp), %r9
	leaq	60(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %r9d
	movl	20(%rsp), %ebp
	xorl	%eax, %eax
	movl	52(%rsp), %esi
	movl	32(%rsp), %ebx
	movl	36(%rsp), %r12d
	movl	24(%rsp), %r14d
	movl	28(%rsp), %r15d
	movl	60(%rsp), %r10d
	movl	56(%rsp), %r11d
	movl	64(%rsp), %edi
	movl	68(%rsp), %ecx
	movl	48(%rsp), %edx
	popq	%r8
	.cfi_def_cfa_offset 136
	popq	%r13
	.cfi_def_cfa_offset 128
	xorl	%r13d, %r13d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%edi, %r8d
	testl	%eax, %eax
	je	.L10
	movl	%edi, %r8d
	testb	$3, %al
	jne	.L3
	movl	%r10d, %r8d
	movl	%ecx, %r10d
	movl	%r11d, %ecx
	movl	%edi, %r11d
.L3:
	cmpl	$15, %eax
	je	.L4
.L10:
	movl	%esi, %edi
	addl	$1, %eax
	movl	%ecx, %esi
	movl	%edx, %ecx
	movl	%r8d, %edx
.L2:
	cmpl	%edx, %r9d
	jne	.L5
	cmpl	%esi, %ebp
	jne	.L5
	cmpl	%ebx, %edi
	je	.L22
.L6:
	cmpl	%r10d, %ebx
	je	.L23
.L7:
	cmpl	%ebx, %ecx
	je	.L24
.L8:
	cmpl	%r11d, %ebx
	jne	.L5
	cmpl	%r10d, %r12d
	jne	.L5
	cmpl	%r14d, %ecx
	jne	.L5
	cmpl	%r15d, %edi
	movl	$1, %r8d
	cmove	%r8d, %r13d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%edx, 52(%rsp)
	movl	%esi, 48(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%ecx, 36(%rsp)
	movl	%r10d, 44(%rsp)
	movl	%r8d, 32(%rsp)
	testl	%r13d, %r13d
	je	.L11
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L12:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$72, %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
.L22:
	.cfi_restore_state
	cmpl	%r12d, %ecx
	jne	.L6
	cmpl	%r11d, %r14d
	jne	.L6
	cmpl	%r10d, %r15d
	movl	$1, %r8d
	cmove	%r8d, %r13d
	jmp	.L6
.L24:
	cmpl	%r12d, %edi
	jne	.L8
	cmpl	%r10d, %r14d
	jne	.L8
	cmpl	%r11d, %r15d
	movl	$1, %r8d
	cmove	%r8d, %r13d
	jmp	.L8
.L23:
	cmpl	%r11d, %r12d
	jne	.L7
	cmpl	%r14d, %edi
	jne	.L7
	cmpl	%r15d, %ecx
	movl	$1, %r8d
	cmove	%r8d, %r13d
	jmp	.L7
.L11:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L12
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	moving_north
	.type	moving_north, @function
moving_north:
.LFB24:
	.cfi_startproc
	endbr64
	movl	(%rdx), %r8d
	movl	(%rdi), %eax
	movl	%r8d, (%rdi)
	movl	(%rsi), %edi
	movl	%edi, (%rdx)
	movl	(%rcx), %edx
	movl	%edx, (%rsi)
	movl	%eax, (%rcx)
	ret
	.cfi_endproc
.LFE24:
	.size	moving_north, .-moving_north
	.p2align 4
	.globl	moving_east
	.type	moving_east, @function
moving_east:
.LFB25:
	.cfi_startproc
	endbr64
	movl	(%rcx), %r8d
	movl	(%rdi), %eax
	movl	%r8d, (%rdi)
	movl	(%rsi), %edi
	movl	%edi, (%rcx)
	movl	(%rdx), %ecx
	movl	%ecx, (%rsi)
	movl	%eax, (%rdx)
	ret
	.cfi_endproc
.LFE25:
	.size	moving_east, .-moving_east
	.p2align 4
	.globl	rotate_right
	.type	rotate_right, @function
rotate_right:
.LFB28:
	.cfi_startproc
	endbr64
	movl	(%rcx), %r8d
	movl	(%rdi), %eax
	movl	%r8d, (%rdi)
	movl	(%rsi), %edi
	movl	%edi, (%rcx)
	movl	(%rdx), %ecx
	movl	%ecx, (%rsi)
	movl	%eax, (%rdx)
	ret
	.cfi_endproc
.LFE28:
	.size	rotate_right, .-rotate_right
	.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"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	.LC0(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rdi
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	leaq	8(%rsp), %rcx
	leaq	16(%rsp), %rdx
	subq	$8, %rsp
	.cfi_def_cfa_offset 136
	leaq	12(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 144
	xorl	%eax, %eax
	leaq	36(%rsp), %r9
	leaq	28(%rsp), %r8
	call	__isoc99_scanf@PLT
	leaq	48(%rsp), %rsi
	leaq	56(%rsp), %rcx
	movq	%rbp, %rdi
	leaq	64(%rsp), %rdx
	popq	%rax
	.cfi_def_cfa_offset 136
	leaq	44(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 144
	xorl	%eax, %eax
	leaq	68(%rsp), %r9
	leaq	60(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %r9d
	movl	20(%rsp), %ebp
	xorl	%eax, %eax
	movl	52(%rsp), %esi
	movl	32(%rsp), %ebx
	movl	36(%rsp), %r12d
	movl	24(%rsp), %r14d
	movl	28(%rsp), %r15d
	movl	60(%rsp), %r10d
	movl	56(%rsp), %r11d
	movl	64(%rsp), %edi
	movl	68(%rsp), %ecx
	movl	48(%rsp), %edx
	popq	%r8
	.cfi_def_cfa_offset 136
	popq	%r13
	.cfi_def_cfa_offset 128
	xorl	%r13d, %r13d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%edi, %r8d
	testl	%eax, %eax
	je	.L10
	movl	%edi, %r8d
	testb	$3, %al
	jne	.L3
	movl	%r10d, %r8d
	movl	%ecx, %r10d
	movl	%r11d, %ecx
	movl	%edi, %r11d
.L3:
	cmpl	$15, %eax
	je	.L4
.L10:
	movl	%esi, %edi
	addl	$1, %eax
	movl	%ecx, %esi
	movl	%edx, %ecx
	movl	%r8d, %edx
.L2:
	cmpl	%edx, %r9d
	jne	.L5
	cmpl	%esi, %ebp
	jne	.L5
	cmpl	%ebx, %edi
	je	.L22
.L6:
	cmpl	%r10d, %ebx
	je	.L23
.L7:
	cmpl	%ebx, %ecx
	je	.L24
.L8:
	cmpl	%r11d, %ebx
	jne	.L5
	cmpl	%r10d, %r12d
	jne	.L5
	cmpl	%r14d, %ecx
	jne	.L5
	cmpl	%r15d, %edi
	movl	$1, %r8d
	cmove	%r8d, %r13d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%edx, 52(%rsp)
	movl	%esi, 48(%rsp)
	movl	%r11d, 40(%rsp)
	movl	%ecx, 36(%rsp)
	movl	%r10d, 44(%rsp)
	movl	%r8d, 32(%rsp)
	testl	%r13d, %r13d
	je	.L11
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L12:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$72, %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
.L22:
	.cfi_restore_state
	cmpl	%r12d, %ecx
	jne	.L6
	cmpl	%r11d, %r14d
	jne	.L6
	cmpl	%r10d, %r15d
	movl	$1, %r8d
	cmove	%r8d, %r13d
	jmp	.L6
.L24:
	cmpl	%r12d, %edi
	jne	.L8
	cmpl	%r10d, %r14d
	jne	.L8
	cmpl	%r11d, %r15d
	movl	$1, %r8d
	cmove	%r8d, %r13d
	jmp	.L8
.L23:
	cmpl	%r11d, %r12d
	jne	.L7
	cmpl	%r14d, %edi
	jne	.L7
	cmpl	%r15d, %ecx
	movl	$1, %r8d
	cmove	%r8d, %r13d
	jmp	.L7
.L11:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L12
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	moving_north
	.type	moving_north, @function
moving_north:
.LFB24:
	.cfi_startproc
	endbr64
	movl	(%rdx), %r8d
	movl	(%rdi), %eax
	movl	%r8d, (%rdi)
	movl	(%rsi), %edi
	movl	%edi, (%rdx)
	movl	(%rcx), %edx
	movl	%edx, (%rsi)
	movl	%eax, (%rcx)
	ret
	.cfi_endproc
.LFE24:
	.size	moving_north, .-moving_north
	.p2align 4
	.globl	moving_east
	.type	moving_east, @function
moving_east:
.LFB25:
	.cfi_startproc
	endbr64
	movl	(%rcx), %r8d
	movl	(%rdi), %eax
	movl	%r8d, (%rdi)
	movl	(%rsi), %edi
	movl	%edi, (%rcx)
	movl	(%rdx), %ecx
	movl	%ecx, (%rsi)
	movl	%eax, (%rdx)
	ret
	.cfi_endproc
.LFE25:
	.size	moving_east, .-moving_east
	.p2align 4
	.globl	rotate_right
	.type	rotate_right, @function
rotate_right:
.LFB28:
	.cfi_startproc
	endbr64
	movl	(%rcx), %r8d
	movl	(%rdi), %eax
	movl	%r8d, (%rdi)
	movl	(%rsi), %edi
	movl	%edi, (%rcx)
	movl	(%rdx), %ecx
	movl	%ecx, (%rsi)
	movl	%eax, (%rdx)
	ret
	.cfi_endproc
.LFE28:
	.size	rotate_right, .-rotate_right
	.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>

//関数プロトタイプ宣言
void moving_north(int *top, int *bottom, int *front, int *back);
void moving_east(int *top, int *bottom, int *right_side, int *left_side);
void rotate_right(int *front, int *back, int *right_side, int *left_side);

//ダイスの構造体
typedef struct{
	int top;
	int bottom;
	int right_side;
	int left_side;
	int front;
	int back;
}Dice;

int main(void)
{
	Dice dice1;
	Dice dice2;

	//iとjはループ変数、flagは2つのダイスが等しいか表す
	int i, j, flag;

	flag = 0;
	//ダイスの目を入力
	scanf("%d %d %d %d %d %d", 
		  &dice1.top, &dice1.front, &dice1.right_side, &dice1.left_side, &dice1.back, &dice1.bottom);
	scanf("%d %d %d %d %d %d", 
		  &dice2.top, &dice2.front, &dice2.right_side, &dice2.left_side, &dice2.back, &dice2.bottom);

	//dice1を基準とし、dice2を転がして各面を比較する
	for(i = 0; i < (4 * 4); i++){
		for(j = 0; j < 4; j++){
			//2つのダイスの目が全て等しければflagに1を代入
			if((dice1.top == dice2.top) && (dice1.bottom == dice2.bottom) && (dice1.front == dice2.front) &&
				(dice1.back == dice2.back) && (dice1.right_side == dice2.right_side) && (dice1.left_side == dice2.left_side)){
					flag = 1;
			}
			//ダイスの向きを変える
			rotate_right(&dice2.front, &dice2.back, &dice2.right_side, &dice2.left_side);
		}

		//ダイスを北側に転がし、ダイスが1周する度に東側に回転させる
		moving_north(&dice2.top, &dice2.bottom, &dice2.front, &dice2.back);
		if((i > 0) && (i % 4 == 0)){
			moving_east(&dice2.top, &dice2.bottom, &dice2.right_side, &dice2.left_side);
		}

		/* 無駄な繰り返しを省略
		if(flag){
			break;
		}
		*/
	}

	//結果を出力
	if(flag){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}

	return 0;
}

//北側に転がす関数
void moving_north(int *top, int *bottom, int *front, int *back)
{
	int temp;

	//各面の値をずらす
	temp = *top;
	*top = *front;
	*front = *bottom;
	*bottom = *back;
	*back = temp;
}

//東側に転がす関数
void moving_east(int *top, int *bottom, int *right_side, int *left_side)
{
	int temp;

	//各面の値をずらす
	temp = *top;
	*top = *left_side;
	*left_side = *bottom;
	*bottom = *right_side;
	*right_side = temp;
}

//上面と下面を軸とし右側へ回転する関数
void rotate_right(int *front, int *back, int *right_side, int *left_side)
{
	int temp;

	//各面の値をずらす
	temp = *front;
	*front = *left_side;
	*left_side = *back;
	*back = *right_side;
	*right_side = temp;
}

1 2 3 2 5 6
6 5 4 3 2 1
 1 2 3 2 5 6
6 1 4 3 2 1
 1 2 3 2 5 6
6 0 4 3 2 1
 1 2 3 2 5 6
6 0 4 3 4 1
 1 2 3 2 7 6
6 0 4 3 4 1
 1 2 3 2 7 3
6 0 4 3 4 1
 1 2 2 2 7 6
6 0 4 3 4 1
 1 2 2 2 7 9
6 0 4 3 4 1
 1 2 2 2 7 9
6 0 4 5 4 1
 1 0 2 2 7 9
6 0 4 5 4 1

No
 No
 No
 No
 No
 No
 No
 No
 No
 No

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

```c
#include <stdio.h>

//関数プロトタイプ宣言
void moving_north(int *top, int *bottom, int *front, int *back);
void moving_east(int *top, int *bottom, int *right_side, int *left_side);
void rotate_right(int *front, int *back, int *right_side, int *left_side);

//ダイスの構造体
typedef struct{
	int top;
	int bottom;
	int right_side;
	int left_side;
	int front;
	int back;
}Dice;

int main(void)
{
	Dice dice1;
	Dice dice2;

	//iとjはループ変数、flagは2つのダイスが等しいか表す
	int i, j, flag;

	flag = 0;
	//ダイスの目を入力
	scanf("%d %d %d %d %d %d", 
		  &dice1.top, &dice1.front, &dice1.right_side, &dice1.left_side, &dice1.back, &dice1.bottom);
	scanf("%d %d %d %d %d %d", 
		  &dice2.top, &dice2.front, &dice2.right_side, &dice2.left_side, &dice2.back, &dice2.bottom);

	//dice1を基準とし、dice2を転がして各面を比較する
	for(i = 0; i < (4 * 4); i++){
		for(j = 0; j < 4; j++){
			//2つのダイスの目が全て等しければflagに1を代入
			if((dice1.top == dice2.top) && (dice1.bottom == dice2.bottom) && (dice1.front == dice2.front) &&
				(dice1.back == dice2.back) && (dice1.right_side == dice2.right_side) && (dice1.left_side == dice2.left_side)){
					flag = 1;
			}
			//ダイスの向きを変える
			rotate_right(&dice2.front, &dice2.back, &dice2.right_side, &dice2.left_side);
		}

		//ダイスを北側に転がし、ダイスが1周する度に東側に回転させる
		moving_north(&dice2.top, &dice2.bottom, &dice2.front, &dice2.back);
		if((i > 0) && (i % 4 == 0)){
			moving_east(&dice2.top, &dice2.bottom, &dice2.right_side, &dice2.left_side);
		}

		/* 無駄な繰り返しを省略
		if(flag){
			break;
		}
		*/
	}

	//結果を出力
	if(flag){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}

	return 0;
}

//北側に転がす関数
void moving_north(int *top, int *bottom, int *front, int *back)
{
	int temp;

	//各面の値をずらす
	temp = *top;
	*top = *front;
	*front = *bottom;
	*bottom = *back;
	*back = temp;
}

//東側に転がす関数
void moving_east(int *top, int *bottom, int *right_side, int *left_side)
{
	int temp;

	//各面の値をずらす
	temp = *top;
	*top = *left_side;
	*left_side = *bottom;
	*bottom = *right_side;
	*right_side = temp;
}

//上面と下面を軸とし右側へ回転する関数
void rotate_right(int *front, int *back, int *right_side, int *left_side)
{
	int temp;

	//各面の値をずらす
	temp = *front;
	*front = *left_side;
	*left_side = *back;
	*back = *right_side;
	*right_side = temp;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d %d %d %d"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -68(%rbp)
	leaq	-64(%rbp), %rax
	leaq	20(%rax), %r8
	leaq	-64(%rbp), %rax
	leaq	12(%rax), %rdi
	leaq	-64(%rbp), %rax
	leaq	8(%rax), %rcx
	leaq	-64(%rbp), %rax
	leaq	16(%rax), %rdx
	leaq	-64(%rbp), %rax
	subq	$8, %rsp
	leaq	-64(%rbp), %rsi
	addq	$4, %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	leaq	-32(%rbp), %rax
	leaq	20(%rax), %r8
	leaq	-32(%rbp), %rax
	leaq	12(%rax), %rdi
	leaq	-32(%rbp), %rax
	leaq	8(%rax), %rcx
	leaq	-32(%rbp), %rax
	leaq	16(%rax), %rdx
	leaq	-32(%rbp), %rax
	subq	$8, %rsp
	leaq	-32(%rbp), %rsi
	addq	$4, %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	movl	$0, -76(%rbp)
	jmp	.L2
.L7:
	movl	$0, -72(%rbp)
	jmp	.L3
.L5:
	movl	-64(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-60(%rbp), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-48(%rbp), %edx
	movl	-16(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-44(%rbp), %edx
	movl	-12(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-56(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-52(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	$1, -68(%rbp)
.L4:
	leaq	-32(%rbp), %rax
	leaq	12(%rax), %rcx
	leaq	-32(%rbp), %rax
	leaq	8(%rax), %rdx
	leaq	-32(%rbp), %rax
	leaq	20(%rax), %rsi
	leaq	-32(%rbp), %rax
	addq	$16, %rax
	movq	%rax, %rdi
	call	rotate_right
	addl	$1, -72(%rbp)
.L3:
	cmpl	$3, -72(%rbp)
	jle	.L5
	leaq	-32(%rbp), %rax
	leaq	20(%rax), %rcx
	leaq	-32(%rbp), %rax
	leaq	16(%rax), %rdx
	leaq	-32(%rbp), %rax
	leaq	4(%rax), %rsi
	leaq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	moving_north
	cmpl	$0, -76(%rbp)
	jle	.L6
	movl	-76(%rbp), %eax
	andl	$3, %eax
	testl	%eax, %eax
	jne	.L6
	leaq	-32(%rbp), %rax
	leaq	12(%rax), %rcx
	leaq	-32(%rbp), %rax
	leaq	8(%rax), %rdx
	leaq	-32(%rbp), %rax
	leaq	4(%rax), %rsi
	leaq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	moving_east
.L6:
	addl	$1, -76(%rbp)
.L2:
	cmpl	$15, -76(%rbp)
	jle	.L7
	cmpl	$0, -68(%rbp)
	je	.L8
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L9
.L8:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L9:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	moving_north
	.type	moving_north, @function
moving_north:
.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	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	movq	-40(%rbp), %rax
	movl	%edx, (%rax)
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	%edx, (%rax)
	movq	-48(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	moving_north, .-moving_north
	.globl	moving_east
	.type	moving_east, @function
moving_east:
.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	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rax
	movl	%edx, (%rax)
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	%edx, (%rax)
	movq	-40(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	moving_east, .-moving_east
	.globl	rotate_right
	.type	rotate_right, @function
rotate_right:
.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	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rax
	movl	%edx, (%rax)
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	%edx, (%rax)
	movq	-40(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	rotate_right, .-rotate_right
	.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"
.LC1:
	.string	"Yes"
.LC2:
	.string	"No"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -68(%rbp)
	leaq	-64(%rbp), %rax
	leaq	20(%rax), %r8
	leaq	-64(%rbp), %rax
	leaq	12(%rax), %rdi
	leaq	-64(%rbp), %rax
	leaq	8(%rax), %rcx
	leaq	-64(%rbp), %rax
	leaq	16(%rax), %rdx
	leaq	-64(%rbp), %rax
	subq	$8, %rsp
	leaq	-64(%rbp), %rsi
	addq	$4, %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	leaq	-32(%rbp), %rax
	leaq	20(%rax), %r8
	leaq	-32(%rbp), %rax
	leaq	12(%rax), %rdi
	leaq	-32(%rbp), %rax
	leaq	8(%rax), %rcx
	leaq	-32(%rbp), %rax
	leaq	16(%rax), %rdx
	leaq	-32(%rbp), %rax
	subq	$8, %rsp
	leaq	-32(%rbp), %rsi
	addq	$4, %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	movl	$0, -76(%rbp)
	jmp	.L2
.L7:
	movl	$0, -72(%rbp)
	jmp	.L3
.L5:
	movl	-64(%rbp), %edx
	movl	-32(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-60(%rbp), %edx
	movl	-28(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-48(%rbp), %edx
	movl	-16(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-44(%rbp), %edx
	movl	-12(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-56(%rbp), %edx
	movl	-24(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	-52(%rbp), %edx
	movl	-20(%rbp), %eax
	cmpl	%eax, %edx
	jne	.L4
	movl	$1, -68(%rbp)
.L4:
	leaq	-32(%rbp), %rax
	leaq	12(%rax), %rcx
	leaq	-32(%rbp), %rax
	leaq	8(%rax), %rdx
	leaq	-32(%rbp), %rax
	leaq	20(%rax), %rsi
	leaq	-32(%rbp), %rax
	addq	$16, %rax
	movq	%rax, %rdi
	call	rotate_right
	addl	$1, -72(%rbp)
.L3:
	cmpl	$3, -72(%rbp)
	jle	.L5
	leaq	-32(%rbp), %rax
	leaq	20(%rax), %rcx
	leaq	-32(%rbp), %rax
	leaq	16(%rax), %rdx
	leaq	-32(%rbp), %rax
	leaq	4(%rax), %rsi
	leaq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	moving_north
	cmpl	$0, -76(%rbp)
	jle	.L6
	movl	-76(%rbp), %eax
	andl	$3, %eax
	testl	%eax, %eax
	jne	.L6
	leaq	-32(%rbp), %rax
	leaq	12(%rax), %rcx
	leaq	-32(%rbp), %rax
	leaq	8(%rax), %rdx
	leaq	-32(%rbp), %rax
	leaq	4(%rax), %rsi
	leaq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	moving_east
.L6:
	addl	$1, -76(%rbp)
.L2:
	cmpl	$15, -76(%rbp)
	jle	.L7
	cmpl	$0, -68(%rbp)
	je	.L8
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L9
.L8:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L9:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	moving_north
	.type	moving_north, @function
moving_north:
.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	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	movq	-40(%rbp), %rax
	movl	%edx, (%rax)
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	%edx, (%rax)
	movq	-48(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	moving_north, .-moving_north
	.globl	moving_east
	.type	moving_east, @function
moving_east:
.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	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rax
	movl	%edx, (%rax)
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	%edx, (%rax)
	movq	-40(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	moving_east, .-moving_east
	.globl	rotate_right
	.type	rotate_right, @function
rotate_right:
.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	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	%rcx, -48(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-32(%rbp), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rax
	movl	%edx, (%rax)
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	%edx, (%rax)
	movq	-40(%rbp), %rax
	movl	-4(%rbp), %edx
	movl	%edx, (%rax)
	nop
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	rotate_right, .-rotate_right
	.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:
