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>

int main()
{
    struct Dice {
        int dice1;
        int dice2;
        int dice3;
        int dice4;
        int dice5;
        int dice6;
    };
    int a[6], i;
    for(i = 0; i < 6; i++){
        scanf("%d", &a[i]);
    }
    struct Dice Dice_1 = {a[0], a[1], a[2], a[3], a[4], a[5]};
    struct Dice Dice_2;
    char c;
    c = getchar();
    while(1){
        c = getchar();
        if(c == '\n') break;
        Dice_2 = Dice_1;
        if(c == 'E'){
            Dice_1.dice1 = Dice_2.dice4;
            Dice_1.dice3 = Dice_2.dice1;
            Dice_1.dice4 = Dice_2.dice6;
            Dice_1.dice6 = Dice_2.dice3;
        } else if(c == 'N'){
            Dice_1.dice1 = Dice_2.dice2;
            Dice_1.dice2 = Dice_2.dice6;
            Dice_1.dice5 = Dice_2.dice1;
            Dice_1.dice6 = Dice_2.dice5;
        } else if(c == 'S'){
            Dice_1.dice1 = Dice_2.dice5;
            Dice_1.dice2 = Dice_2.dice1;
            Dice_1.dice5 = Dice_2.dice6;
            Dice_1.dice6 = Dice_2.dice2;
        } else if(c == 'W'){
            Dice_1.dice1 = Dice_2.dice3;
            Dice_1.dice3 = Dice_2.dice6;
            Dice_1.dice4 = Dice_2.dice1;
            Dice_1.dice6 = Dice_2.dice4;
        }
    }
    printf("%d\n", Dice_1.dice1);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.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	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -100(%rbp)
	jmp	.L2
.L3:
	leaq	-32(%rbp), %rdx
	movl	-100(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -100(%rbp)
.L2:
	cmpl	$5, -100(%rbp)
	jle	.L3
	movl	-32(%rbp), %eax
	movl	%eax, -96(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -92(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -88(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -84(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -80(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -76(%rbp)
	call	getchar@PLT
	movb	%al, -101(%rbp)
.L10:
	call	getchar@PLT
	movb	%al, -101(%rbp)
	cmpb	$10, -101(%rbp)
	je	.L14
	movq	-96(%rbp), %rax
	movq	-88(%rbp), %rdx
	movq	%rax, -64(%rbp)
	movq	%rdx, -56(%rbp)
	movq	-80(%rbp), %rax
	movq	%rax, -48(%rbp)
	cmpb	$69, -101(%rbp)
	jne	.L6
	movl	-52(%rbp), %eax
	movl	%eax, -96(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -88(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -84(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -76(%rbp)
	jmp	.L10
.L6:
	cmpb	$78, -101(%rbp)
	jne	.L8
	movl	-60(%rbp), %eax
	movl	%eax, -96(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -92(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -80(%rbp)
	movl	-48(%rbp), %eax
	movl	%eax, -76(%rbp)
	jmp	.L10
.L8:
	cmpb	$83, -101(%rbp)
	jne	.L9
	movl	-48(%rbp), %eax
	movl	%eax, -96(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -92(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -80(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -76(%rbp)
	jmp	.L10
.L9:
	cmpb	$87, -101(%rbp)
	jne	.L10
	movl	-56(%rbp), %eax
	movl	%eax, -96(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -88(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -84(%rbp)
	movl	-52(%rbp), %eax
	movl	%eax, -76(%rbp)
	jmp	.L10
.L14:
	nop
	movl	-96(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.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
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	leaq	24(%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
	movq	stdin(%rip), %rdi
	movl	(%rsp), %r12d
	movl	4(%rsp), %r15d
	movl	8(%rsp), %r13d
	movl	12(%rsp), %ebp
	movl	16(%rsp), %r14d
	movl	20(%rsp), %ebx
	call	getc@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	cmpb	$10, %al
	je	.L4
.L13:
	cmpb	$69, %al
	je	.L7
	cmpb	$78, %al
	je	.L8
	cmpb	$83, %al
	je	.L9
	cmpb	$87, %al
	jne	.L3
	movq	stdin(%rip), %rdi
	movl	%r12d, %eax
	movl	%r13d, %r12d
	movl	%ebx, %r13d
	movl	%ebp, %ebx
	movl	%eax, %ebp
	call	getc@PLT
	cmpb	$10, %al
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	movl	%r12d, %eax
	movl	%ebp, %r12d
	movl	%ebx, %ebp
	movl	%r13d, %ebx
	movl	%eax, %r13d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%r12d, %eax
	movl	%r15d, %r12d
	movl	%ebx, %r15d
	movl	%r14d, %ebx
	movl	%eax, %r14d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%r12d, %eax
	movl	%r14d, %r12d
	movl	%ebx, %r14d
	movl	%r15d, %ebx
	movl	%eax, %r15d
	jmp	.L3
.L14:
	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
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.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
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	leaq	24(%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
	movq	stdin(%rip), %rdi
	movl	(%rsp), %r12d
	movl	4(%rsp), %r15d
	movl	8(%rsp), %r13d
	movl	12(%rsp), %ebp
	movl	16(%rsp), %r14d
	movl	20(%rsp), %ebx
	call	getc@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	cmpb	$10, %al
	je	.L4
.L13:
	cmpb	$69, %al
	je	.L7
	cmpb	$78, %al
	je	.L8
	cmpb	$83, %al
	je	.L9
	cmpb	$87, %al
	jne	.L3
	movq	stdin(%rip), %rdi
	movl	%r12d, %eax
	movl	%r13d, %r12d
	movl	%ebx, %r13d
	movl	%ebp, %ebx
	movl	%eax, %ebp
	call	getc@PLT
	cmpb	$10, %al
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L14
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	movl	%r12d, %eax
	movl	%ebp, %r12d
	movl	%ebx, %ebp
	movl	%r13d, %ebx
	movl	%eax, %r13d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	movl	%r12d, %eax
	movl	%r15d, %r12d
	movl	%ebx, %r15d
	movl	%r14d, %ebx
	movl	%eax, %r14d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%r12d, %eax
	movl	%r14d, %r12d
	movl	%ebx, %r14d
	movl	%r15d, %ebx
	movl	%eax, %r15d
	jmp	.L3
.L14:
	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:

#include <stdio.h>

int main()
{
    struct Dice {
        int dice1;
        int dice2;
        int dice3;
        int dice4;
        int dice5;
        int dice6;
    };
    int a[6], i;
    for(i = 0; i < 6; i++){
        scanf("%d", &a[i]);
    }
    struct Dice Dice_1 = {a[0], a[1], a[2], a[3], a[4], a[5]};
    struct Dice Dice_2;
    char c;
    c = getchar();
    while(1){
        c = getchar();
        if(c == '\n') break;
        Dice_2 = Dice_1;
        if(c == 'E'){
            Dice_1.dice1 = Dice_2.dice4;
            Dice_1.dice3 = Dice_2.dice1;
            Dice_1.dice4 = Dice_2.dice6;
            Dice_1.dice6 = Dice_2.dice3;
        } else if(c == 'N'){
            Dice_1.dice1 = Dice_2.dice2;
            Dice_1.dice2 = Dice_2.dice6;
            Dice_1.dice5 = Dice_2.dice1;
            Dice_1.dice6 = Dice_2.dice5;
        } else if(c == 'S'){
            Dice_1.dice1 = Dice_2.dice5;
            Dice_1.dice2 = Dice_2.dice1;
            Dice_1.dice5 = Dice_2.dice6;
            Dice_1.dice6 = Dice_2.dice2;
        } else if(c == 'W'){
            Dice_1.dice1 = Dice_2.dice3;
            Dice_1.dice3 = Dice_2.dice6;
            Dice_1.dice4 = Dice_2.dice1;
            Dice_1.dice6 = Dice_2.dice4;
        }
    }
    printf("%d\n", Dice_1.dice1);
    return 0;
}
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 unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main()
{
    struct Dice {
        int dice1;
        int dice2;
        int dice3;
        int dice4;
        int dice5;
        int dice6;
    };
    int a[6], i;
    for(i = 0; i < 6; i++){
        scanf("%d", &a[i]);
    }
    struct Dice Dice_1 = {a[0], a[1], a[2], a[3], a[4], a[5]};
    struct Dice Dice_2;
    char c;
    c = getchar();
    while(1){
        c = getchar();
        if(c == '\n') break;
        Dice_2 = Dice_1;
        if(c == 'E'){
            Dice_1.dice1 = Dice_2.dice4;
            Dice_1.dice3 = Dice_2.dice1;
            Dice_1.dice4 = Dice_2.dice6;
            Dice_1.dice6 = Dice_2.dice3;
        } else if(c == 'N'){
            Dice_1.dice1 = Dice_2.dice2;
            Dice_1.dice2 = Dice_2.dice6;
            Dice_1.dice5 = Dice_2.dice1;
            Dice_1.dice6 = Dice_2.dice5;
        } else if(c == 'S'){
            Dice_1.dice1 = Dice_2.dice5;
            Dice_1.dice2 = Dice_2.dice1;
            Dice_1.dice5 = Dice_2.dice6;
            Dice_1.dice6 = Dice_2.dice2;
        } else if(c == 'W'){
            Dice_1.dice1 = Dice_2.dice3;
            Dice_1.dice3 = Dice_2.dice6;
            Dice_1.dice4 = Dice_2.dice1;
            Dice_1.dice6 = Dice_2.dice4;
        }
    }
    printf("%d\n", Dice_1.dice1);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.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	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -100(%rbp)
	jmp	.L2
.L3:
	leaq	-32(%rbp), %rdx
	movl	-100(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -100(%rbp)
.L2:
	cmpl	$5, -100(%rbp)
	jle	.L3
	movl	-32(%rbp), %eax
	movl	%eax, -96(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -92(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -88(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -84(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -80(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -76(%rbp)
	call	getchar@PLT
	movb	%al, -101(%rbp)
.L10:
	call	getchar@PLT
	movb	%al, -101(%rbp)
	cmpb	$10, -101(%rbp)
	je	.L14
	movq	-96(%rbp), %rax
	movq	-88(%rbp), %rdx
	movq	%rax, -64(%rbp)
	movq	%rdx, -56(%rbp)
	movq	-80(%rbp), %rax
	movq	%rax, -48(%rbp)
	cmpb	$69, -101(%rbp)
	jne	.L6
	movl	-52(%rbp), %eax
	movl	%eax, -96(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -88(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -84(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -76(%rbp)
	jmp	.L10
.L6:
	cmpb	$78, -101(%rbp)
	jne	.L8
	movl	-60(%rbp), %eax
	movl	%eax, -96(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -92(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -80(%rbp)
	movl	-48(%rbp), %eax
	movl	%eax, -76(%rbp)
	jmp	.L10
.L8:
	cmpb	$83, -101(%rbp)
	jne	.L9
	movl	-48(%rbp), %eax
	movl	%eax, -96(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -92(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -80(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -76(%rbp)
	jmp	.L10
.L9:
	cmpb	$87, -101(%rbp)
	jne	.L10
	movl	-56(%rbp), %eax
	movl	%eax, -96(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -88(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -84(%rbp)
	movl	-52(%rbp), %eax
	movl	%eax, -76(%rbp)
	jmp	.L10
.L14:
	nop
	movl	-96(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.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	$112, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -100(%rbp)
	jmp	.L2
.L3:
	leaq	-32(%rbp), %rdx
	movl	-100(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -100(%rbp)
.L2:
	cmpl	$5, -100(%rbp)
	jle	.L3
	movl	-32(%rbp), %eax
	movl	%eax, -96(%rbp)
	movl	-28(%rbp), %eax
	movl	%eax, -92(%rbp)
	movl	-24(%rbp), %eax
	movl	%eax, -88(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -84(%rbp)
	movl	-16(%rbp), %eax
	movl	%eax, -80(%rbp)
	movl	-12(%rbp), %eax
	movl	%eax, -76(%rbp)
	call	getchar@PLT
	movb	%al, -101(%rbp)
.L10:
	call	getchar@PLT
	movb	%al, -101(%rbp)
	cmpb	$10, -101(%rbp)
	je	.L14
	movq	-96(%rbp), %rax
	movq	-88(%rbp), %rdx
	movq	%rax, -64(%rbp)
	movq	%rdx, -56(%rbp)
	movq	-80(%rbp), %rax
	movq	%rax, -48(%rbp)
	cmpb	$69, -101(%rbp)
	jne	.L6
	movl	-52(%rbp), %eax
	movl	%eax, -96(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -88(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -84(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -76(%rbp)
	jmp	.L10
.L6:
	cmpb	$78, -101(%rbp)
	jne	.L8
	movl	-60(%rbp), %eax
	movl	%eax, -96(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -92(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -80(%rbp)
	movl	-48(%rbp), %eax
	movl	%eax, -76(%rbp)
	jmp	.L10
.L8:
	cmpb	$83, -101(%rbp)
	jne	.L9
	movl	-48(%rbp), %eax
	movl	%eax, -96(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -92(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -80(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -76(%rbp)
	jmp	.L10
.L9:
	cmpb	$87, -101(%rbp)
	jne	.L10
	movl	-56(%rbp), %eax
	movl	%eax, -96(%rbp)
	movl	-44(%rbp), %eax
	movl	%eax, -88(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -84(%rbp)
	movl	-52(%rbp), %eax
	movl	%eax, -76(%rbp)
	jmp	.L10
.L14:
	nop
	movl	-96(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
