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>

typedef struct dice
{
	int front;		/* the front side of the dice. */
	int south;		/* the south side of the dice. */
	int east;		/* the  east side of the dice. */
	int west;		/* the  west side of the dice. */
	int north;		/* the north side of the dice. */
	int other;		/* the other side of the dice. */
} dice_t;

void turn(int *a, int *b, int *c, int *d);
dice_t turn_dice(dice_t dice, char side);
void answer_east_side(dice_t dice, int north, int front);

int main()
{
	dice_t dice;
	int q = 0;
	int front, north;
	char move[100];
	scanf("%d %d %d %d %d %d", 
		&dice.front, &dice.south, &dice.east,
		 &dice.west, &dice.north, &dice.other);
	scanf("%d", &q);
	while(q > 0)
	{
		if(scanf("%d %d",  &north, &front) == 2)
		{
			answer_east_side(dice, north, front);
		}
		q--;
	}
	
	return 0;
}


void turn(int *a, int *b, int *c, int *d)
{
	int tmp = *a;
	*a = *b;
	*b = *c;
	*c = *d;
	*d = tmp;
}

dice_t turn_dice(dice_t dice, char side)
{
	int side_int = side;
		
	switch(side_int)
	{
	case 'N':
		turn(&dice.front, &dice.south, &dice.other, &dice.north);
		break;
	case 'S':
		turn(&dice.front, &dice.north, &dice.other, &dice.south);
		break;
	case 'W':
		turn(&dice.front, &dice.east, &dice.other, &dice.west);
		break;
	case 'E':
		turn(&dice.front, &dice.west, &dice.other, &dice.east);
		break;
	}
	
	return dice;
}

void answer_east_side(dice_t dice, int north, int front)
{
	int *dice_p = &dice.front;
	int count = 0;
	
	/* set the north side before setting front side. */
	while(*dice_p != north){
		dice_p++;
		count++;		 /* count "How many check the number of side" of north. */
	}
	switch(count)
	{
	case 0:
		dice = turn_dice(dice, 'N');
		break;
	case 1:
		dice = turn_dice(dice, 'N');
		dice = turn_dice(dice, 'N');
		break;
	case 2:
		dice = turn_dice(dice, 'W');
		dice = turn_dice(dice, 'N');
		break;
	case 3:
		dice = turn_dice(dice, 'E');
		dice = turn_dice(dice, 'N');
		break;
	/* if count == 4, the number of 'north' is exist on the north side. */
	case 5:
		dice = turn_dice(dice, 'S');
		break;
	}
	
	/* set the front side. */
	dice_p = &dice.front;
	count = 0;
	while(*dice_p != front){
		dice_p++;
		count++;		 /* count "How many check the number of side" of front. */
	}
	switch(count)
	{
	/* if count == 0, the number of 'front' is exist on the front side. */
	/* count doesn't become 1(other side of the north side). */
	case 2:
		dice = turn_dice(dice, 'W');
		break;
	case 3:
		dice = turn_dice(dice, 'E');
		break;
	/* count doesn't become 4(the north side). */
	case 5:
		dice = turn_dice(dice, 'E');
		dice = turn_dice(dice, 'E');
		break;
	}
	
	/* answer the east side. */
	printf("%d\n", dice.east);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d %d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d"
	.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	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -156(%rbp)
	leaq	-144(%rbp), %rax
	leaq	16(%rax), %r8
	leaq	-144(%rbp), %rax
	leaq	12(%rax), %rdi
	leaq	-144(%rbp), %rax
	leaq	8(%rax), %rcx
	leaq	-144(%rbp), %rax
	leaq	4(%rax), %rdx
	leaq	-144(%rbp), %rax
	subq	$8, %rsp
	leaq	-144(%rbp), %rsi
	addq	$20, %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	-156(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L4:
	leaq	-152(%rbp), %rdx
	leaq	-148(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L3
	movl	-152(%rbp), %edx
	movl	-148(%rbp), %eax
	subq	$8, %rsp
	pushq	-128(%rbp)
	pushq	-136(%rbp)
	pushq	-144(%rbp)
	movl	%edx, %esi
	movl	%eax, %edi
	call	answer_east_side
	addq	$32, %rsp
.L3:
	movl	-156(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -156(%rbp)
.L2:
	movl	-156(%rbp), %eax
	testl	%eax, %eax
	jg	.L4
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	turn
	.type	turn, @function
turn:
.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	-32(%rbp), %rax
	movl	(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	%edx, (%rax)
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	movq	-40(%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	turn, .-turn
	.globl	turn_dice
	.type	turn_dice, @function
turn_dice:
.LFB2:
	.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)
	movl	%esi, %eax
	movb	%al, -28(%rbp)
	movsbl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
	cmpl	$87, -4(%rbp)
	je	.L9
	cmpl	$87, -4(%rbp)
	jg	.L10
	cmpl	$83, -4(%rbp)
	je	.L11
	cmpl	$83, -4(%rbp)
	jg	.L10
	cmpl	$69, -4(%rbp)
	je	.L12
	cmpl	$78, -4(%rbp)
	jne	.L10
	leaq	32(%rbp), %rcx
	leaq	36(%rbp), %rdx
	leaq	20(%rbp), %rax
	movq	%rax, %rsi
	leaq	16(%rbp), %rdi
	call	turn
	jmp	.L10
.L11:
	leaq	20(%rbp), %rcx
	leaq	36(%rbp), %rdx
	leaq	32(%rbp), %rax
	movq	%rax, %rsi
	leaq	16(%rbp), %rdi
	call	turn
	jmp	.L10
.L9:
	leaq	28(%rbp), %rcx
	leaq	36(%rbp), %rdx
	leaq	24(%rbp), %rax
	movq	%rax, %rsi
	leaq	16(%rbp), %rdi
	call	turn
	jmp	.L10
.L12:
	leaq	24(%rbp), %rcx
	leaq	36(%rbp), %rdx
	leaq	28(%rbp), %rax
	movq	%rax, %rsi
	leaq	16(%rbp), %rdi
	call	turn
	nop
.L10:
	movq	-24(%rbp), %rcx
	movq	16(%rbp), %rax
	movq	24(%rbp), %rdx
	movq	%rax, (%rcx)
	movq	%rdx, 8(%rcx)
	movq	32(%rbp), %rax
	movq	%rax, 16(%rcx)
	movq	-24(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	turn_dice, .-turn_dice
	.section	.rodata
.LC3:
	.string	"%d\n"
	.text
	.globl	answer_east_side
	.type	answer_east_side, @function
answer_east_side:
.LFB3:
	.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
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	16(%rbp), %rax
	movq	%rax, -16(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L15
.L16:
	addq	$4, -16(%rbp)
	addl	$1, -20(%rbp)
.L15:
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -36(%rbp)
	jne	.L16
	cmpl	$5, -20(%rbp)
	ja	.L17
	movl	-20(%rbp), %eax
	leaq	0(,%rax,4), %rdx
	leaq	.L19(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	.L19(%rip), %rdx
	addq	%rdx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L19:
	.long	.L23-.L19
	.long	.L22-.L19
	.long	.L21-.L19
	.long	.L20-.L19
	.long	.L17-.L19
	.long	.L18-.L19
	.text
.L23:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$78, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	jmp	.L17
.L22:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$78, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$78, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	jmp	.L17
.L21:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$87, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$78, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	jmp	.L17
.L20:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$69, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$78, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	jmp	.L17
.L18:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$83, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	nop
.L17:
	leaq	16(%rbp), %rax
	movq	%rax, -16(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L24
.L25:
	addq	$4, -16(%rbp)
	addl	$1, -20(%rbp)
.L24:
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -40(%rbp)
	jne	.L25
	cmpl	$5, -20(%rbp)
	je	.L26
	cmpl	$5, -20(%rbp)
	jg	.L27
	cmpl	$2, -20(%rbp)
	je	.L28
	cmpl	$3, -20(%rbp)
	je	.L29
	jmp	.L27
.L28:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$87, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	jmp	.L27
.L29:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$69, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	jmp	.L27
.L26:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$69, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$69, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	nop
.L27:
	movl	24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	answer_east_side, .-answer_east_side
	.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	turn
	.type	turn, @function
turn:
.LFB36:
	.cfi_startproc
	endbr64
	movl	(%rsi), %r8d
	movl	(%rdi), %eax
	movl	%r8d, (%rdi)
	movl	(%rdx), %edi
	movl	%edi, (%rsi)
	movl	(%rcx), %esi
	movl	%esi, (%rdx)
	movl	%eax, (%rcx)
	ret
	.cfi_endproc
.LFE36:
	.size	turn, .-turn
	.p2align 4
	.globl	turn_dice
	.type	turn_dice, @function
turn_dice:
.LFB37:
	.cfi_startproc
	endbr64
	movd	20(%rsp), %xmm3
	movd	16(%rsp), %xmm6
	movq	%rdi, %rax
	movd	8(%rsp), %xmm4
	movd	12(%rsp), %xmm0
	punpckldq	%xmm3, %xmm6
	movd	20(%rsp), %xmm2
	movl	24(%rsp), %edx
	movd	28(%rsp), %xmm3
	movdqa	%xmm4, %xmm8
	movd	16(%rsp), %xmm1
	punpckldq	%xmm0, %xmm2
	movd	%edx, %xmm5
	movl	20(%rsp), %r8d
	movl	16(%rsp), %ecx
	punpckldq	%xmm3, %xmm8
	punpckldq	%xmm0, %xmm1
	punpckldq	%xmm4, %xmm5
	movdqu	8(%rsp), %xmm7
	punpcklqdq	%xmm8, %xmm2
	movdqa	%xmm3, %xmm8
	punpckldq	%xmm3, %xmm0
	movl	12(%rsp), %r9d
	punpckldq	%xmm4, %xmm8
	punpcklqdq	%xmm6, %xmm5
	punpcklqdq	%xmm6, %xmm0
	punpcklqdq	%xmm8, %xmm1
	cmpb	$83, %sil
	je	.L6
	jg	.L5
	cmpb	$69, %sil
	je	.L7
	cmpb	$78, %sil
	jne	.L9
	movl	%edx, %ecx
	movd	%xmm7, %edx
.L4:
	movl	%edx, 16(%rax)
	movl	%ecx, 20(%rax)
	movups	%xmm0, (%rax)
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	cmpb	$87, %sil
	jne	.L9
	movdqa	%xmm1, %xmm0
	movl	%r8d, %ecx
	movl	%edx, 16(%rax)
	movl	%ecx, 20(%rax)
	movups	%xmm0, (%rax)
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm2, %xmm0
	movl	%edx, 16(%rax)
	movl	%ecx, 20(%rax)
	movups	%xmm0, (%rax)
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	movdqa	%xmm7, %xmm0
	movd	%xmm3, %ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	movdqa	%xmm5, %xmm0
	movl	%r9d, %ecx
	movd	%xmm3, %edx
	jmp	.L4
	.cfi_endproc
.LFE37:
	.size	turn_dice, .-turn_dice
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	answer_east_side
	.type	answer_east_side, @function
answer_east_side:
.LFB38:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movl	%esi, %ecx
	movl	16(%rsp), %r8d
	cmpl	%r8d, %edi
	je	.L11
	xorl	%edx, %edx
	leaq	16(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L12:
	addq	$4, %rax
	addl	$1, %edx
	cmpl	%edi, (%rax)
	jne	.L12
	cmpl	$5, %edx
	ja	.L13
	leaq	.L15(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rax
	addq	%rsi, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L15:
	.long	.L13-.L15
	.long	.L18-.L15
	.long	.L17-.L15
	.long	.L16-.L15
	.long	.L13-.L15
	.long	.L14-.L15
	.text
	.p2align 4,,10
	.p2align 3
.L11:
	movl	20(%rsp), %eax
	movd	32(%rsp), %xmm3
	movd	%r8d, %xmm1
	movd	36(%rsp), %xmm4
	movd	%eax, %xmm0
	punpckldq	%xmm3, %xmm1
	movl	%eax, %r8d
	punpckldq	%xmm4, %xmm0
	movq	%xmm1, 32(%rsp)
	movq	%xmm0, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	%r8d, %ecx
	je	.L32
	xorl	%edx, %edx
	leaq	16(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L20:
	addq	$4, %rax
	addl	$1, %edx
	cmpl	%ecx, (%rax)
	jne	.L20
	cmpl	$3, %edx
	je	.L22
	cmpl	$5, %edx
	je	.L23
	cmpl	$2, %edx
	je	.L24
.L32:
	movl	24(%rsp), %r8d
.L22:
	movl	%r8d, %edx
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	movl	36(%rsp), %r8d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L23:
	movl	28(%rsp), %r8d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L16:
	movl	20(%rsp), %eax
	movd	36(%rsp), %xmm4
	movd	%r8d, %xmm1
	movd	24(%rsp), %xmm5
	movq	28(%rsp), %rdx
	movd	%eax, %xmm0
	punpckldq	%xmm4, %xmm1
	movl	%eax, %r8d
	punpckldq	%xmm5, %xmm0
	movq	%rdx, 32(%rsp)
	punpcklqdq	%xmm1, %xmm0
	movups	%xmm0, 16(%rsp)
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	movl	32(%rsp), %eax
	movd	36(%rsp), %xmm0
	movd	%r8d, %xmm7
	movd	20(%rsp), %xmm6
	movd	%eax, %xmm1
	movl	%eax, %r8d
	punpckldq	%xmm6, %xmm0
	punpckldq	%xmm7, %xmm1
	movq	%xmm1, 16(%rsp)
	movq	%xmm0, 32(%rsp)
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L18:
	movd	%r8d, %xmm5
	movl	36(%rsp), %r8d
	movd	20(%rsp), %xmm0
	movd	32(%rsp), %xmm6
	movd	%r8d, %xmm1
	punpckldq	%xmm5, %xmm0
	punpckldq	%xmm6, %xmm1
	movq	%xmm0, 32(%rsp)
	movq	%xmm1, 16(%rsp)
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L17:
	movq	28(%rsp), %xmm1
	movl	20(%rsp), %eax
	movd	%r8d, %xmm7
	movq	20(%rsp), %xmm0
	movd	36(%rsp), %xmm2
	movd	28(%rsp), %xmm3
	movl	%eax, %r8d
	punpckldq	%xmm1, %xmm0
	movd	%eax, %xmm1
	punpckldq	%xmm7, %xmm2
	punpckldq	%xmm3, %xmm1
	pshufd	$14, %xmm0, %xmm0
	punpcklqdq	%xmm2, %xmm1
	movq	%xmm0, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	jmp	.L13
	.cfi_endproc
.LFE38:
	.size	answer_east_side, .-answer_east_side
	.section	.rodata.str1.1
.LC1:
	.string	"%d %d %d %d %d %d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC1(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$48, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rcx
	movl	$0, 4(%rsp)
	leaq	20(%rsp), %rdx
	leaq	16(%rsp), %rsi
	subq	$8, %rsp
	.cfi_def_cfa_offset 88
	leaq	44(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 96
	xorl	%eax, %eax
	leaq	48(%rsp), %r9
	leaq	44(%rsp), %r8
	call	__isoc99_scanf@PLT
	leaq	20(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	popq	%rax
	.cfi_def_cfa_offset 88
	popq	%rdx
	.cfi_def_cfa_offset 80
	movl	4(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L34
	leaq	8(%rsp), %r12
	leaq	12(%rsp), %rbp
	leaq	.LC3(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L37:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L40
	movl	4(%rsp), %eax
	subl	$1, %eax
	movl	%eax, 4(%rsp)
	testl	%eax, %eax
	jg	.L37
.L34:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L41
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L40:
	.cfi_restore_state
	subq	$8, %rsp
	.cfi_def_cfa_offset 88
	pushq	40(%rsp)
	.cfi_def_cfa_offset 96
	pushq	40(%rsp)
	.cfi_def_cfa_offset 104
	pushq	40(%rsp)
	.cfi_def_cfa_offset 112
	movl	40(%rsp), %esi
	movl	44(%rsp), %edi
	call	answer_east_side
	movl	36(%rsp), %eax
	subl	$1, %eax
	movl	%eax, 36(%rsp)
	addq	$32, %rsp
	.cfi_def_cfa_offset 80
	testl	%eax, %eax
	jg	.L37
	jmp	.L34
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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
	.p2align 4
	.globl	turn
	.type	turn, @function
turn:
.LFB36:
	.cfi_startproc
	endbr64
	movl	(%rsi), %r8d
	movl	(%rdi), %eax
	movl	%r8d, (%rdi)
	movl	(%rdx), %edi
	movl	%edi, (%rsi)
	movl	(%rcx), %esi
	movl	%esi, (%rdx)
	movl	%eax, (%rcx)
	ret
	.cfi_endproc
.LFE36:
	.size	turn, .-turn
	.p2align 4
	.globl	turn_dice
	.type	turn_dice, @function
turn_dice:
.LFB37:
	.cfi_startproc
	endbr64
	movd	20(%rsp), %xmm3
	movd	16(%rsp), %xmm6
	movq	%rdi, %rax
	movd	8(%rsp), %xmm4
	movd	12(%rsp), %xmm0
	punpckldq	%xmm3, %xmm6
	movd	20(%rsp), %xmm2
	movl	24(%rsp), %edx
	movd	28(%rsp), %xmm3
	movdqa	%xmm4, %xmm8
	movd	16(%rsp), %xmm1
	punpckldq	%xmm0, %xmm2
	movd	%edx, %xmm5
	movl	20(%rsp), %r8d
	movl	16(%rsp), %ecx
	punpckldq	%xmm3, %xmm8
	punpckldq	%xmm0, %xmm1
	punpckldq	%xmm4, %xmm5
	movdqu	8(%rsp), %xmm7
	punpcklqdq	%xmm8, %xmm2
	movdqa	%xmm3, %xmm8
	punpckldq	%xmm3, %xmm0
	movl	12(%rsp), %r9d
	punpckldq	%xmm4, %xmm8
	punpcklqdq	%xmm6, %xmm5
	punpcklqdq	%xmm6, %xmm0
	punpcklqdq	%xmm8, %xmm1
	cmpb	$83, %sil
	je	.L6
	jg	.L5
	cmpb	$69, %sil
	je	.L7
	cmpb	$78, %sil
	jne	.L9
	movl	%edx, %ecx
	movd	%xmm7, %edx
.L4:
	movl	%edx, 16(%rax)
	movl	%ecx, 20(%rax)
	movups	%xmm0, (%rax)
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	cmpb	$87, %sil
	jne	.L9
	movdqa	%xmm1, %xmm0
	movl	%r8d, %ecx
	movl	%edx, 16(%rax)
	movl	%ecx, 20(%rax)
	movups	%xmm0, (%rax)
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	movdqa	%xmm2, %xmm0
	movl	%edx, 16(%rax)
	movl	%ecx, 20(%rax)
	movups	%xmm0, (%rax)
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	movdqa	%xmm7, %xmm0
	movd	%xmm3, %ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	movdqa	%xmm5, %xmm0
	movl	%r9d, %ecx
	movd	%xmm3, %edx
	jmp	.L4
	.cfi_endproc
.LFE37:
	.size	turn_dice, .-turn_dice
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.text
	.p2align 4
	.globl	answer_east_side
	.type	answer_east_side, @function
answer_east_side:
.LFB38:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	movl	%esi, %ecx
	movl	16(%rsp), %r8d
	cmpl	%r8d, %edi
	je	.L11
	xorl	%edx, %edx
	leaq	16(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L12:
	addq	$4, %rax
	addl	$1, %edx
	cmpl	%edi, (%rax)
	jne	.L12
	cmpl	$5, %edx
	ja	.L13
	leaq	.L15(%rip), %rsi
	movslq	(%rsi,%rdx,4), %rax
	addq	%rsi, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L15:
	.long	.L13-.L15
	.long	.L18-.L15
	.long	.L17-.L15
	.long	.L16-.L15
	.long	.L13-.L15
	.long	.L14-.L15
	.text
	.p2align 4,,10
	.p2align 3
.L11:
	movl	20(%rsp), %eax
	movd	32(%rsp), %xmm3
	movd	%r8d, %xmm1
	movd	36(%rsp), %xmm4
	movd	%eax, %xmm0
	punpckldq	%xmm3, %xmm1
	movl	%eax, %r8d
	punpckldq	%xmm4, %xmm0
	movq	%xmm1, 32(%rsp)
	movq	%xmm0, 16(%rsp)
	.p2align 4,,10
	.p2align 3
.L13:
	cmpl	%r8d, %ecx
	je	.L32
	xorl	%edx, %edx
	leaq	16(%rsp), %rax
	.p2align 4,,10
	.p2align 3
.L20:
	addq	$4, %rax
	addl	$1, %edx
	cmpl	%ecx, (%rax)
	jne	.L20
	cmpl	$3, %edx
	je	.L22
	cmpl	$5, %edx
	je	.L23
	cmpl	$2, %edx
	je	.L24
.L32:
	movl	24(%rsp), %r8d
.L22:
	movl	%r8d, %edx
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	movl	36(%rsp), %r8d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L23:
	movl	28(%rsp), %r8d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L16:
	movl	20(%rsp), %eax
	movd	36(%rsp), %xmm4
	movd	%r8d, %xmm1
	movd	24(%rsp), %xmm5
	movq	28(%rsp), %rdx
	movd	%eax, %xmm0
	punpckldq	%xmm4, %xmm1
	movl	%eax, %r8d
	punpckldq	%xmm5, %xmm0
	movq	%rdx, 32(%rsp)
	punpcklqdq	%xmm1, %xmm0
	movups	%xmm0, 16(%rsp)
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	movl	32(%rsp), %eax
	movd	36(%rsp), %xmm0
	movd	%r8d, %xmm7
	movd	20(%rsp), %xmm6
	movd	%eax, %xmm1
	movl	%eax, %r8d
	punpckldq	%xmm6, %xmm0
	punpckldq	%xmm7, %xmm1
	movq	%xmm1, 16(%rsp)
	movq	%xmm0, 32(%rsp)
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L18:
	movd	%r8d, %xmm5
	movl	36(%rsp), %r8d
	movd	20(%rsp), %xmm0
	movd	32(%rsp), %xmm6
	movd	%r8d, %xmm1
	punpckldq	%xmm5, %xmm0
	punpckldq	%xmm6, %xmm1
	movq	%xmm0, 32(%rsp)
	movq	%xmm1, 16(%rsp)
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L17:
	movq	28(%rsp), %xmm1
	movl	20(%rsp), %eax
	movd	%r8d, %xmm7
	movq	20(%rsp), %xmm0
	movd	36(%rsp), %xmm2
	movd	28(%rsp), %xmm3
	movl	%eax, %r8d
	punpckldq	%xmm1, %xmm0
	movd	%eax, %xmm1
	punpckldq	%xmm7, %xmm2
	punpckldq	%xmm3, %xmm1
	pshufd	$14, %xmm0, %xmm0
	punpcklqdq	%xmm2, %xmm1
	movq	%xmm0, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	jmp	.L13
	.cfi_endproc
.LFE38:
	.size	answer_east_side, .-answer_east_side
	.section	.rodata.str1.1
.LC1:
	.string	"%d %d %d %d %d %d"
.LC2:
	.string	"%d"
.LC3:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC1(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$48, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rcx
	movl	$0, 4(%rsp)
	leaq	20(%rsp), %rdx
	leaq	16(%rsp), %rsi
	subq	$8, %rsp
	.cfi_def_cfa_offset 88
	leaq	44(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 96
	xorl	%eax, %eax
	leaq	48(%rsp), %r9
	leaq	44(%rsp), %r8
	call	__isoc99_scanf@PLT
	leaq	20(%rsp), %rsi
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	popq	%rax
	.cfi_def_cfa_offset 88
	popq	%rdx
	.cfi_def_cfa_offset 80
	movl	4(%rsp), %ecx
	testl	%ecx, %ecx
	jle	.L34
	leaq	8(%rsp), %r12
	leaq	12(%rsp), %rbp
	leaq	.LC3(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L37:
	xorl	%eax, %eax
	movq	%r12, %rdx
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L40
	movl	4(%rsp), %eax
	subl	$1, %eax
	movl	%eax, 4(%rsp)
	testl	%eax, %eax
	jg	.L37
.L34:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L41
	addq	$48, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L40:
	.cfi_restore_state
	subq	$8, %rsp
	.cfi_def_cfa_offset 88
	pushq	40(%rsp)
	.cfi_def_cfa_offset 96
	pushq	40(%rsp)
	.cfi_def_cfa_offset 104
	pushq	40(%rsp)
	.cfi_def_cfa_offset 112
	movl	40(%rsp), %esi
	movl	44(%rsp), %edi
	call	answer_east_side
	movl	36(%rsp), %eax
	subl	$1, %eax
	movl	%eax, 36(%rsp)
	addq	$32, %rsp
	.cfi_def_cfa_offset 80
	testl	%eax, %eax
	jg	.L37
	jmp	.L34
.L41:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE35:
	.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>
#include <string.h>

typedef struct dice
{
	int front;		/* the front side of the dice. */
	int south;		/* the south side of the dice. */
	int east;		/* the  east side of the dice. */
	int west;		/* the  west side of the dice. */
	int north;		/* the north side of the dice. */
	int other;		/* the other side of the dice. */
} dice_t;

void turn(int *a, int *b, int *c, int *d);
dice_t turn_dice(dice_t dice, char side);
void answer_east_side(dice_t dice, int north, int front);

int main()
{
	dice_t dice;
	int q = 0;
	int front, north;
	char move[100];
	scanf("%d %d %d %d %d %d", 
		&dice.front, &dice.south, &dice.east,
		 &dice.west, &dice.north, &dice.other);
	scanf("%d", &q);
	while(q > 0)
	{
		if(scanf("%d %d",  &north, &front) == 2)
		{
			answer_east_side(dice, north, front);
		}
		q--;
	}
	
	return 0;
}


void turn(int *a, int *b, int *c, int *d)
{
	int tmp = *a;
	*a = *b;
	*b = *c;
	*c = *d;
	*d = tmp;
}

dice_t turn_dice(dice_t dice, char side)
{
	int side_int = side;
		
	switch(side_int)
	{
	case 'N':
		turn(&dice.front, &dice.south, &dice.other, &dice.north);
		break;
	case 'S':
		turn(&dice.front, &dice.north, &dice.other, &dice.south);
		break;
	case 'W':
		turn(&dice.front, &dice.east, &dice.other, &dice.west);
		break;
	case 'E':
		turn(&dice.front, &dice.west, &dice.other, &dice.east);
		break;
	}
	
	return dice;
}

void answer_east_side(dice_t dice, int north, int front)
{
	int *dice_p = &dice.front;
	int count = 0;
	
	/* set the north side before setting front side. */
	while(*dice_p != north){
		dice_p++;
		count++;		 /* count "How many check the number of side" of north. */
	}
	switch(count)
	{
	case 0:
		dice = turn_dice(dice, 'N');
		break;
	case 1:
		dice = turn_dice(dice, 'N');
		dice = turn_dice(dice, 'N');
		break;
	case 2:
		dice = turn_dice(dice, 'W');
		dice = turn_dice(dice, 'N');
		break;
	case 3:
		dice = turn_dice(dice, 'E');
		dice = turn_dice(dice, 'N');
		break;
	/* if count == 4, the number of 'north' is exist on the north side. */
	case 5:
		dice = turn_dice(dice, 'S');
		break;
	}
	
	/* set the front side. */
	dice_p = &dice.front;
	count = 0;
	while(*dice_p != front){
		dice_p++;
		count++;		 /* count "How many check the number of side" of front. */
	}
	switch(count)
	{
	/* if count == 0, the number of 'front' is exist on the front side. */
	/* count doesn't become 1(other side of the north side). */
	case 2:
		dice = turn_dice(dice, 'W');
		break;
	case 3:
		dice = turn_dice(dice, 'E');
		break;
	/* count doesn't become 4(the north side). */
	case 5:
		dice = turn_dice(dice, 'E');
		dice = turn_dice(dice, 'E');
		break;
	}
	
	/* answer the east side. */
	printf("%d\n", dice.east);
}
1 2 3 4 5 6
3
4 5
1 3
3 2
 1 2 3 4 5 6
3
4 5
1 3
6 2
 1 2 3 4 5 6
3
4 5
2 3
6 2
 1 2 3 4 5 6
3
6 5
2 3
6 2
 1 2 3 4 5 6
3
6 3
1 3
3 2
 1 2 3 4 5 6
3
4 2
1 3
3 2
 1 2 3 4 5 6
3
4 5
2 3
4 2
 1 2 3 4 5 6
3
6 5
2 6
6 2
 1 2 3 4 5 6
3
6 4
1 3
3 2
 1 2 3 4 5 6
3
4 5
1 4
6 2

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

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>

typedef struct dice
{
	int front;		/* the front side of the dice. */
	int south;		/* the south side of the dice. */
	int east;		/* the  east side of the dice. */
	int west;		/* the  west side of the dice. */
	int north;		/* the north side of the dice. */
	int other;		/* the other side of the dice. */
} dice_t;

void turn(int *a, int *b, int *c, int *d);
dice_t turn_dice(dice_t dice, char side);
void answer_east_side(dice_t dice, int north, int front);

int main()
{
	dice_t dice;
	int q = 0;
	int front, north;
	char move[100];
	scanf("%d %d %d %d %d %d", 
		&dice.front, &dice.south, &dice.east,
		 &dice.west, &dice.north, &dice.other);
	scanf("%d", &q);
	while(q > 0)
	{
		if(scanf("%d %d",  &north, &front) == 2)
		{
			answer_east_side(dice, north, front);
		}
		q--;
	}
	
	return 0;
}


void turn(int *a, int *b, int *c, int *d)
{
	int tmp = *a;
	*a = *b;
	*b = *c;
	*c = *d;
	*d = tmp;
}

dice_t turn_dice(dice_t dice, char side)
{
	int side_int = side;
		
	switch(side_int)
	{
	case 'N':
		turn(&dice.front, &dice.south, &dice.other, &dice.north);
		break;
	case 'S':
		turn(&dice.front, &dice.north, &dice.other, &dice.south);
		break;
	case 'W':
		turn(&dice.front, &dice.east, &dice.other, &dice.west);
		break;
	case 'E':
		turn(&dice.front, &dice.west, &dice.other, &dice.east);
		break;
	}
	
	return dice;
}

void answer_east_side(dice_t dice, int north, int front)
{
	int *dice_p = &dice.front;
	int count = 0;
	
	/* set the north side before setting front side. */
	while(*dice_p != north){
		dice_p++;
		count++;		 /* count "How many check the number of side" of north. */
	}
	switch(count)
	{
	case 0:
		dice = turn_dice(dice, 'N');
		break;
	case 1:
		dice = turn_dice(dice, 'N');
		dice = turn_dice(dice, 'N');
		break;
	case 2:
		dice = turn_dice(dice, 'W');
		dice = turn_dice(dice, 'N');
		break;
	case 3:
		dice = turn_dice(dice, 'E');
		dice = turn_dice(dice, 'N');
		break;
	/* if count == 4, the number of 'north' is exist on the north side. */
	case 5:
		dice = turn_dice(dice, 'S');
		break;
	}
	
	/* set the front side. */
	dice_p = &dice.front;
	count = 0;
	while(*dice_p != front){
		dice_p++;
		count++;		 /* count "How many check the number of side" of front. */
	}
	switch(count)
	{
	/* if count == 0, the number of 'front' is exist on the front side. */
	/* count doesn't become 1(other side of the north side). */
	case 2:
		dice = turn_dice(dice, 'W');
		break;
	case 3:
		dice = turn_dice(dice, 'E');
		break;
	/* count doesn't become 4(the north side). */
	case 5:
		dice = turn_dice(dice, 'E');
		dice = turn_dice(dice, 'E');
		break;
	}
	
	/* answer the east side. */
	printf("%d\n", dice.east);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d %d %d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d %d"
	.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	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -156(%rbp)
	leaq	-144(%rbp), %rax
	leaq	16(%rax), %r8
	leaq	-144(%rbp), %rax
	leaq	12(%rax), %rdi
	leaq	-144(%rbp), %rax
	leaq	8(%rax), %rcx
	leaq	-144(%rbp), %rax
	leaq	4(%rax), %rdx
	leaq	-144(%rbp), %rax
	subq	$8, %rsp
	leaq	-144(%rbp), %rsi
	addq	$20, %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	-156(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L4:
	leaq	-152(%rbp), %rdx
	leaq	-148(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L3
	movl	-152(%rbp), %edx
	movl	-148(%rbp), %eax
	subq	$8, %rsp
	pushq	-128(%rbp)
	pushq	-136(%rbp)
	pushq	-144(%rbp)
	movl	%edx, %esi
	movl	%eax, %edi
	call	answer_east_side
	addq	$32, %rsp
.L3:
	movl	-156(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -156(%rbp)
.L2:
	movl	-156(%rbp), %eax
	testl	%eax, %eax
	jg	.L4
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	turn
	.type	turn, @function
turn:
.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	-32(%rbp), %rax
	movl	(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	%edx, (%rax)
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	movq	-40(%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	turn, .-turn
	.globl	turn_dice
	.type	turn_dice, @function
turn_dice:
.LFB2:
	.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)
	movl	%esi, %eax
	movb	%al, -28(%rbp)
	movsbl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
	cmpl	$87, -4(%rbp)
	je	.L9
	cmpl	$87, -4(%rbp)
	jg	.L10
	cmpl	$83, -4(%rbp)
	je	.L11
	cmpl	$83, -4(%rbp)
	jg	.L10
	cmpl	$69, -4(%rbp)
	je	.L12
	cmpl	$78, -4(%rbp)
	jne	.L10
	leaq	32(%rbp), %rcx
	leaq	36(%rbp), %rdx
	leaq	20(%rbp), %rax
	movq	%rax, %rsi
	leaq	16(%rbp), %rdi
	call	turn
	jmp	.L10
.L11:
	leaq	20(%rbp), %rcx
	leaq	36(%rbp), %rdx
	leaq	32(%rbp), %rax
	movq	%rax, %rsi
	leaq	16(%rbp), %rdi
	call	turn
	jmp	.L10
.L9:
	leaq	28(%rbp), %rcx
	leaq	36(%rbp), %rdx
	leaq	24(%rbp), %rax
	movq	%rax, %rsi
	leaq	16(%rbp), %rdi
	call	turn
	jmp	.L10
.L12:
	leaq	24(%rbp), %rcx
	leaq	36(%rbp), %rdx
	leaq	28(%rbp), %rax
	movq	%rax, %rsi
	leaq	16(%rbp), %rdi
	call	turn
	nop
.L10:
	movq	-24(%rbp), %rcx
	movq	16(%rbp), %rax
	movq	24(%rbp), %rdx
	movq	%rax, (%rcx)
	movq	%rdx, 8(%rcx)
	movq	32(%rbp), %rax
	movq	%rax, 16(%rcx)
	movq	-24(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	turn_dice, .-turn_dice
	.section	.rodata
.LC3:
	.string	"%d\n"
	.text
	.globl	answer_east_side
	.type	answer_east_side, @function
answer_east_side:
.LFB3:
	.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
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	16(%rbp), %rax
	movq	%rax, -16(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L15
.L16:
	addq	$4, -16(%rbp)
	addl	$1, -20(%rbp)
.L15:
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -36(%rbp)
	jne	.L16
	cmpl	$5, -20(%rbp)
	ja	.L17
	movl	-20(%rbp), %eax
	leaq	0(,%rax,4), %rdx
	leaq	.L19(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	.L19(%rip), %rdx
	addq	%rdx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L19:
	.long	.L23-.L19
	.long	.L22-.L19
	.long	.L21-.L19
	.long	.L20-.L19
	.long	.L17-.L19
	.long	.L18-.L19
	.text
.L23:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$78, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	jmp	.L17
.L22:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$78, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$78, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	jmp	.L17
.L21:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$87, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$78, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	jmp	.L17
.L20:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$69, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$78, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	jmp	.L17
.L18:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$83, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	nop
.L17:
	leaq	16(%rbp), %rax
	movq	%rax, -16(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L24
.L25:
	addq	$4, -16(%rbp)
	addl	$1, -20(%rbp)
.L24:
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -40(%rbp)
	jne	.L25
	cmpl	$5, -20(%rbp)
	je	.L26
	cmpl	$5, -20(%rbp)
	jg	.L27
	cmpl	$2, -20(%rbp)
	je	.L28
	cmpl	$3, -20(%rbp)
	je	.L29
	jmp	.L27
.L28:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$87, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	jmp	.L27
.L29:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$69, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	jmp	.L27
.L26:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$69, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$69, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	nop
.L27:
	movl	24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	answer_east_side, .-answer_east_side
	.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	"%d"
.LC2:
	.string	"%d %d"
	.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	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -156(%rbp)
	leaq	-144(%rbp), %rax
	leaq	16(%rax), %r8
	leaq	-144(%rbp), %rax
	leaq	12(%rax), %rdi
	leaq	-144(%rbp), %rax
	leaq	8(%rax), %rcx
	leaq	-144(%rbp), %rax
	leaq	4(%rax), %rdx
	leaq	-144(%rbp), %rax
	subq	$8, %rsp
	leaq	-144(%rbp), %rsi
	addq	$20, %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	-156(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L4:
	leaq	-152(%rbp), %rdx
	leaq	-148(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L3
	movl	-152(%rbp), %edx
	movl	-148(%rbp), %eax
	subq	$8, %rsp
	pushq	-128(%rbp)
	pushq	-136(%rbp)
	pushq	-144(%rbp)
	movl	%edx, %esi
	movl	%eax, %edi
	call	answer_east_side
	addq	$32, %rsp
.L3:
	movl	-156(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -156(%rbp)
.L2:
	movl	-156(%rbp), %eax
	testl	%eax, %eax
	jg	.L4
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	turn
	.type	turn, @function
turn:
.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	-32(%rbp), %rax
	movl	(%rax), %edx
	movq	-24(%rbp), %rax
	movl	%edx, (%rax)
	movq	-40(%rbp), %rax
	movl	(%rax), %edx
	movq	-32(%rbp), %rax
	movl	%edx, (%rax)
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	movq	-40(%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	turn, .-turn
	.globl	turn_dice
	.type	turn_dice, @function
turn_dice:
.LFB2:
	.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)
	movl	%esi, %eax
	movb	%al, -28(%rbp)
	movsbl	-28(%rbp), %eax
	movl	%eax, -4(%rbp)
	cmpl	$87, -4(%rbp)
	je	.L9
	cmpl	$87, -4(%rbp)
	jg	.L10
	cmpl	$83, -4(%rbp)
	je	.L11
	cmpl	$83, -4(%rbp)
	jg	.L10
	cmpl	$69, -4(%rbp)
	je	.L12
	cmpl	$78, -4(%rbp)
	jne	.L10
	leaq	32(%rbp), %rcx
	leaq	36(%rbp), %rdx
	leaq	20(%rbp), %rax
	movq	%rax, %rsi
	leaq	16(%rbp), %rdi
	call	turn
	jmp	.L10
.L11:
	leaq	20(%rbp), %rcx
	leaq	36(%rbp), %rdx
	leaq	32(%rbp), %rax
	movq	%rax, %rsi
	leaq	16(%rbp), %rdi
	call	turn
	jmp	.L10
.L9:
	leaq	28(%rbp), %rcx
	leaq	36(%rbp), %rdx
	leaq	24(%rbp), %rax
	movq	%rax, %rsi
	leaq	16(%rbp), %rdi
	call	turn
	jmp	.L10
.L12:
	leaq	24(%rbp), %rcx
	leaq	36(%rbp), %rdx
	leaq	28(%rbp), %rax
	movq	%rax, %rsi
	leaq	16(%rbp), %rdi
	call	turn
	nop
.L10:
	movq	-24(%rbp), %rcx
	movq	16(%rbp), %rax
	movq	24(%rbp), %rdx
	movq	%rax, (%rcx)
	movq	%rdx, 8(%rcx)
	movq	32(%rbp), %rax
	movq	%rax, 16(%rcx)
	movq	-24(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	turn_dice, .-turn_dice
	.section	.rodata
.LC3:
	.string	"%d\n"
	.text
	.globl	answer_east_side
	.type	answer_east_side, @function
answer_east_side:
.LFB3:
	.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
	movl	%edi, -36(%rbp)
	movl	%esi, -40(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	16(%rbp), %rax
	movq	%rax, -16(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L15
.L16:
	addq	$4, -16(%rbp)
	addl	$1, -20(%rbp)
.L15:
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -36(%rbp)
	jne	.L16
	cmpl	$5, -20(%rbp)
	ja	.L17
	movl	-20(%rbp), %eax
	leaq	0(,%rax,4), %rdx
	leaq	.L19(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	.L19(%rip), %rdx
	addq	%rdx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L19:
	.long	.L23-.L19
	.long	.L22-.L19
	.long	.L21-.L19
	.long	.L20-.L19
	.long	.L17-.L19
	.long	.L18-.L19
	.text
.L23:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$78, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	jmp	.L17
.L22:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$78, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$78, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	jmp	.L17
.L21:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$87, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$78, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	jmp	.L17
.L20:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$69, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$78, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	jmp	.L17
.L18:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$83, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	nop
.L17:
	leaq	16(%rbp), %rax
	movq	%rax, -16(%rbp)
	movl	$0, -20(%rbp)
	jmp	.L24
.L25:
	addq	$4, -16(%rbp)
	addl	$1, -20(%rbp)
.L24:
	movq	-16(%rbp), %rax
	movl	(%rax), %eax
	cmpl	%eax, -40(%rbp)
	jne	.L25
	cmpl	$5, -20(%rbp)
	je	.L26
	cmpl	$5, -20(%rbp)
	jg	.L27
	cmpl	$2, -20(%rbp)
	je	.L28
	cmpl	$3, -20(%rbp)
	je	.L29
	jmp	.L27
.L28:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$87, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	jmp	.L27
.L29:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$69, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	jmp	.L27
.L26:
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$69, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	leaq	-80(%rbp), %rax
	pushq	32(%rbp)
	pushq	24(%rbp)
	pushq	16(%rbp)
	movl	$69, %esi
	movq	%rax, %rdi
	call	turn_dice
	addq	$24, %rsp
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rdx
	movq	%rax, 16(%rbp)
	movq	%rdx, 24(%rbp)
	movq	-64(%rbp), %rax
	movq	%rax, 32(%rbp)
	nop
.L27:
	movl	24(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	answer_east_side, .-answer_east_side
	.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:
