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

```c
#include <stdio.h>
int main(void){
	int dice[6];
	int swap;				//????????¨
	char c;
	
	int i;
	
	for(i=0;i<6;i++){
		scanf("%d",&dice[i]);
	}
	
	while(scanf("%c",&c)!=EOF){
	
		if(c=='E'){
			swap=dice[0];
			dice[0]=dice[3];
			dice[3]=dice[5];
			dice[5]=dice[2];
			dice[2]=swap;
		}
		if(c=='W'){
			swap=dice[0];
			dice[0]=dice[2];
			dice[2]=dice[5];
			dice[5]=dice[3];
			dice[3]=swap;
		}
		if(c=='S'){
			swap=dice[0];
			dice[0]=dice[4];
			dice[4]=dice[5];
			dice[5]=dice[1];
			dice[1]=swap;
		}	
		if(c=='N'){
			swap=dice[0];
			dice[0]=dice[1];
			dice[1]=dice[5];
			dice[5]=dice[4];
			dice[4]=swap;
		}
	}
	
	printf("%d\n",dice[0]);
	
	return 0;

}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	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	16(%rsp), %rbx
	leaq	40(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r12, %rbx
	jne	.L2
	leaq	15(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L10:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L17
	movzbl	15(%rsp), %eax
	cmpb	$69, %al
	je	.L18
	cmpb	$87, %al
	je	.L6
	cmpb	$83, %al
	jne	.L19
	movq	32(%rsp), %xmm0
	movq	16(%rsp), %xmm1
	movdqa	%xmm0, %xmm2
	punpckldq	%xmm1, %xmm0
	punpckldq	%xmm1, %xmm2
	movq	%xmm0, 16(%rsp)
	pshufd	$14, %xmm2, %xmm2
	movq	%xmm2, 32(%rsp)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	movl	28(%rsp), %eax
	movd	16(%rsp), %xmm0
	movd	36(%rsp), %xmm3
	movl	%eax, 16(%rsp)
	movl	24(%rsp), %eax
	punpckldq	%xmm3, %xmm0
	movl	%eax, 36(%rsp)
	movq	%xmm0, 24(%rsp)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L6:
	movl	16(%rsp), %eax
	movd	36(%rsp), %xmm0
	movl	24(%rsp), %edx
	movd	%eax, %xmm4
	movl	28(%rsp), %eax
	punpckldq	%xmm4, %xmm0
	movl	%edx, 16(%rsp)
	movl	%eax, 36(%rsp)
	movq	%xmm0, 24(%rsp)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L17:
	movl	16(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	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
.L19:
	.cfi_restore_state
	cmpb	$78, %al
	jne	.L10
	movq	16(%rsp), %xmm0
	movq	32(%rsp), %xmm1
	movdqa	%xmm0, %xmm2
	punpckldq	%xmm1, %xmm0
	punpckldq	%xmm1, %xmm2
	movq	%xmm0, 32(%rsp)
	pshufd	$14, %xmm2, %xmm2
	movq	%xmm2, 16(%rsp)
	jmp	.L10
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	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	16(%rsp), %rbx
	leaq	40(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r12, %rbx
	jne	.L2
	leaq	15(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L10:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L17
	movzbl	15(%rsp), %eax
	cmpb	$69, %al
	je	.L18
	cmpb	$87, %al
	je	.L6
	cmpb	$83, %al
	jne	.L19
	movq	32(%rsp), %xmm0
	movq	16(%rsp), %xmm1
	movdqa	%xmm0, %xmm2
	punpckldq	%xmm1, %xmm0
	punpckldq	%xmm1, %xmm2
	movq	%xmm0, 16(%rsp)
	pshufd	$14, %xmm2, %xmm2
	movq	%xmm2, 32(%rsp)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	movl	28(%rsp), %eax
	movd	16(%rsp), %xmm0
	movd	36(%rsp), %xmm3
	movl	%eax, 16(%rsp)
	movl	24(%rsp), %eax
	punpckldq	%xmm3, %xmm0
	movl	%eax, 36(%rsp)
	movq	%xmm0, 24(%rsp)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L6:
	movl	16(%rsp), %eax
	movd	36(%rsp), %xmm0
	movl	24(%rsp), %edx
	movd	%eax, %xmm4
	movl	28(%rsp), %eax
	punpckldq	%xmm4, %xmm0
	movl	%edx, 16(%rsp)
	movl	%eax, 36(%rsp)
	movq	%xmm0, 24(%rsp)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L17:
	movl	16(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	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
.L19:
	.cfi_restore_state
	cmpb	$78, %al
	jne	.L10
	movq	16(%rsp), %xmm0
	movq	32(%rsp), %xmm1
	movdqa	%xmm0, %xmm2
	punpckldq	%xmm1, %xmm0
	punpckldq	%xmm1, %xmm2
	movq	%xmm0, 32(%rsp)
	pshufd	$14, %xmm2, %xmm2
	movq	%xmm2, 16(%rsp)
	jmp	.L10
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	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	16(%rsp), %rbx
	leaq	40(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r12, %rbx
	jne	.L2
	leaq	15(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L10:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L17
	movzbl	15(%rsp), %eax
	cmpb	$69, %al
	je	.L18
	cmpb	$87, %al
	je	.L6
	cmpb	$83, %al
	jne	.L19
	movq	32(%rsp), %xmm0
	movq	16(%rsp), %xmm1
	movdqa	%xmm0, %xmm2
	punpckldq	%xmm1, %xmm0
	punpckldq	%xmm1, %xmm2
	movq	%xmm0, 16(%rsp)
	pshufd	$14, %xmm2, %xmm2
	movq	%xmm2, 32(%rsp)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	movl	28(%rsp), %eax
	movd	16(%rsp), %xmm0
	movd	36(%rsp), %xmm3
	movl	%eax, 16(%rsp)
	movl	24(%rsp), %eax
	punpckldq	%xmm3, %xmm0
	movl	%eax, 36(%rsp)
	movq	%xmm0, 24(%rsp)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L6:
	movl	16(%rsp), %eax
	movd	36(%rsp), %xmm0
	movl	24(%rsp), %edx
	movd	%eax, %xmm4
	movl	28(%rsp), %eax
	punpckldq	%xmm4, %xmm0
	movl	%edx, 16(%rsp)
	movl	%eax, 36(%rsp)
	movq	%xmm0, 24(%rsp)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L17:
	movl	16(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	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
.L19:
	.cfi_restore_state
	cmpb	$78, %al
	jne	.L10
	movq	16(%rsp), %xmm0
	movq	32(%rsp), %xmm1
	movdqa	%xmm0, %xmm2
	punpckldq	%xmm1, %xmm0
	punpckldq	%xmm1, %xmm2
	movq	%xmm0, 32(%rsp)
	pshufd	$14, %xmm2, %xmm2
	movq	%xmm2, 16(%rsp)
	jmp	.L10
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```
```c
#include <stdio.h>
int main(void){
	int dice[6];
	int swap;				//????????¨
	char c;
	
	int i;
	
	for(i=0;i<6;i++){
		scanf("%d",&dice[i]);
	}
	
	while(scanf("%c",&c)!=EOF){
	
		if(c=='E'){
			swap=dice[0];
			dice[0]=dice[3];
			dice[3]=dice[5];
			dice[5]=dice[2];
			dice[2]=swap;
		}
		if(c=='W'){
			swap=dice[0];
			dice[0]=dice[2];
			dice[2]=dice[5];
			dice[5]=dice[3];
			dice[3]=swap;
		}
		if(c=='S'){
			swap=dice[0];
			dice[0]=dice[4];
			dice[4]=dice[5];
			dice[5]=dice[1];
			dice[1]=swap;
		}	
		if(c=='N'){
			swap=dice[0];
			dice[0]=dice[1];
			dice[1]=dice[5];
			dice[5]=dice[4];
			dice[4]=swap;
		}
	}
	
	printf("%d\n",dice[0]);
	
	return 0;

}

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

```c
#include <stdio.h>
int main(void){
	int dice[6];
	int swap;				//????????¨
	char c;
	
	int i;
	
	for(i=0;i<6;i++){
		scanf("%d",&dice[i]);
	}
	
	while(scanf("%c",&c)!=EOF){
	
		if(c=='E'){
			swap=dice[0];
			dice[0]=dice[3];
			dice[3]=dice[5];
			dice[5]=dice[2];
			dice[2]=swap;
		}
		if(c=='W'){
			swap=dice[0];
			dice[0]=dice[2];
			dice[2]=dice[5];
			dice[5]=dice[3];
			dice[3]=swap;
		}
		if(c=='S'){
			swap=dice[0];
			dice[0]=dice[4];
			dice[4]=dice[5];
			dice[5]=dice[1];
			dice[1]=swap;
		}	
		if(c=='N'){
			swap=dice[0];
			dice[0]=dice[1];
			dice[1]=dice[5];
			dice[5]=dice[4];
			dice[4]=swap;
		}
	}
	
	printf("%d\n",dice[0]);
	
	return 0;

}

```

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.
Optimized Assembly Code:

0 2 4 8 16 32
EESWN
 1 2 4 6 16 32
SE
 0 2 4 8 16 30
EESWN
 1 2 4 0 16 32
SE
 1 2 4 -1 16 32
SE
 0 2 0 8 16 23
EESWN
 1 2 4 8 16 32
ES
 1 2 4 8 27 32
ES
 0 4 4 8 16 5
EESWN
 1 4 4 -1 24 32
ES

32
 6
 30
 0
 -1
 23
 16
 27
 5
 24

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

```c
#include <stdio.h>
int main(void){
	int dice[6];
	int swap;				//????????¨
	char c;
	
	int i;
	
	for(i=0;i<6;i++){
		scanf("%d",&dice[i]);
	}
	
	while(scanf("%c",&c)!=EOF){
	
		if(c=='E'){
			swap=dice[0];
			dice[0]=dice[3];
			dice[3]=dice[5];
			dice[5]=dice[2];
			dice[2]=swap;
		}
		if(c=='W'){
			swap=dice[0];
			dice[0]=dice[2];
			dice[2]=dice[5];
			dice[5]=dice[3];
			dice[3]=swap;
		}
		if(c=='S'){
			swap=dice[0];
			dice[0]=dice[4];
			dice[4]=dice[5];
			dice[5]=dice[1];
			dice[1]=swap;
		}	
		if(c=='N'){
			swap=dice[0];
			dice[0]=dice[1];
			dice[1]=dice[5];
			dice[5]=dice[4];
			dice[4]=swap;
		}
	}
	
	printf("%d\n",dice[0]);
	
	return 0;

}

```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	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	16(%rsp), %rbx
	leaq	40(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r12, %rbx
	jne	.L2
	leaq	15(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L10:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L17
	movzbl	15(%rsp), %eax
	cmpb	$69, %al
	je	.L18
	cmpb	$87, %al
	je	.L6
	cmpb	$83, %al
	jne	.L19
	movq	32(%rsp), %xmm0
	movq	16(%rsp), %xmm1
	movdqa	%xmm0, %xmm2
	punpckldq	%xmm1, %xmm0
	punpckldq	%xmm1, %xmm2
	movq	%xmm0, 16(%rsp)
	pshufd	$14, %xmm2, %xmm2
	movq	%xmm2, 32(%rsp)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	movl	28(%rsp), %eax
	movd	16(%rsp), %xmm0
	movd	36(%rsp), %xmm3
	movl	%eax, 16(%rsp)
	movl	24(%rsp), %eax
	punpckldq	%xmm3, %xmm0
	movl	%eax, 36(%rsp)
	movq	%xmm0, 24(%rsp)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L6:
	movl	16(%rsp), %eax
	movd	36(%rsp), %xmm0
	movl	24(%rsp), %edx
	movd	%eax, %xmm4
	movl	28(%rsp), %eax
	punpckldq	%xmm4, %xmm0
	movl	%edx, 16(%rsp)
	movl	%eax, 36(%rsp)
	movq	%xmm0, 24(%rsp)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L17:
	movl	16(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	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
.L19:
	.cfi_restore_state
	cmpb	$78, %al
	jne	.L10
	movq	16(%rsp), %xmm0
	movq	32(%rsp), %xmm1
	movdqa	%xmm0, %xmm2
	punpckldq	%xmm1, %xmm0
	punpckldq	%xmm1, %xmm2
	movq	%xmm0, 32(%rsp)
	pshufd	$14, %xmm2, %xmm2
	movq	%xmm2, 16(%rsp)
	jmp	.L10
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%c"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	.LC0(%rip), %rbp
	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	16(%rsp), %rbx
	leaq	40(%rsp), %r12
	.p2align 4,,10
	.p2align 3
.L2:
	movq	%rbx, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$4, %rbx
	call	__isoc99_scanf@PLT
	cmpq	%r12, %rbx
	jne	.L2
	leaq	15(%rsp), %rbp
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L10:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$-1, %eax
	je	.L17
	movzbl	15(%rsp), %eax
	cmpb	$69, %al
	je	.L18
	cmpb	$87, %al
	je	.L6
	cmpb	$83, %al
	jne	.L19
	movq	32(%rsp), %xmm0
	movq	16(%rsp), %xmm1
	movdqa	%xmm0, %xmm2
	punpckldq	%xmm1, %xmm0
	punpckldq	%xmm1, %xmm2
	movq	%xmm0, 16(%rsp)
	pshufd	$14, %xmm2, %xmm2
	movq	%xmm2, 32(%rsp)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L18:
	movl	28(%rsp), %eax
	movd	16(%rsp), %xmm0
	movd	36(%rsp), %xmm3
	movl	%eax, 16(%rsp)
	movl	24(%rsp), %eax
	punpckldq	%xmm3, %xmm0
	movl	%eax, 36(%rsp)
	movq	%xmm0, 24(%rsp)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L6:
	movl	16(%rsp), %eax
	movd	36(%rsp), %xmm0
	movl	24(%rsp), %edx
	movd	%eax, %xmm4
	movl	28(%rsp), %eax
	punpckldq	%xmm4, %xmm0
	movl	%edx, 16(%rsp)
	movl	%eax, 36(%rsp)
	movq	%xmm0, 24(%rsp)
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L17:
	movl	16(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	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
.L19:
	.cfi_restore_state
	cmpb	$78, %al
	jne	.L10
	movq	16(%rsp), %xmm0
	movq	32(%rsp), %xmm1
	movdqa	%xmm0, %xmm2
	punpckldq	%xmm1, %xmm0
	punpckldq	%xmm1, %xmm2
	movq	%xmm0, 32(%rsp)
	pshufd	$14, %xmm2, %xmm2
	movq	%xmm2, 16(%rsp)
	jmp	.L10
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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:
```