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 <math.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>

#define GYOU_MAX 256
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define s_pri(str) printf("%s\n",str);
#define PRINT(str) printf(#str "\n")
#define v_pri(val) printf("%d\n",val);
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define pi acos(-1.0)
#define sca(x) scanf("%d",&x);

typedef long long int ll;

/*
puts("aa");
//*/


int main(void) {


	char S[100001];
	scanf("%s", S);

	while (strlen(S) > 0) {
		if (strcmp(&S[strlen(S) - 7], "dreamer") == 0) {
			S[strlen(S) - 7] = 0;
		}
		else if (strcmp(&S[strlen(S) - 5], "dream") == 0) {
			S[strlen(S) - 5] = 0;
		}
		else if (strcmp(&S[strlen(S) - 6], "eraser") == 0) {
			S[strlen(S) - 6] = 0;
		}
		else if (strcmp(&S[strlen(S) - 5], "erase") == 0) {
			S[strlen(S) - 5] = 0;
		}
		else {
			s_pri("NO");
			return 0;
		}
		
	}
	
		if (S[0] == 0) {
			s_pri("YES");
		}
		else {
			s_pri("NO");
		}
		

	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"dreamer"
.LC2:
	.string	"dream"
.LC3:
	.string	"eraser"
.LC4:
	.string	"erase"
.LC5:
	.string	"NO"
.LC6:
	.string	"YES"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1712, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L8:
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-7(%rax), %rdx
	leaq	-100016(%rbp), %rax
	addq	%rdx, %rax
	leaq	.LC1(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L3
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$7, %rax
	movb	$0, -100016(%rbp,%rax)
	jmp	.L2
.L3:
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-5(%rax), %rdx
	leaq	-100016(%rbp), %rax
	addq	%rdx, %rax
	leaq	.LC2(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L4
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$5, %rax
	movb	$0, -100016(%rbp,%rax)
	jmp	.L2
.L4:
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-6(%rax), %rdx
	leaq	-100016(%rbp), %rax
	addq	%rdx, %rax
	leaq	.LC3(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L5
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$6, %rax
	movb	$0, -100016(%rbp,%rax)
	jmp	.L2
.L5:
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-5(%rax), %rdx
	leaq	-100016(%rbp), %rax
	addq	%rdx, %rax
	leaq	.LC4(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L6
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$5, %rax
	movb	$0, -100016(%rbp,%rax)
	jmp	.L2
.L6:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L11
.L2:
	leaq	-100016(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L8
	movzbl	-100016(%rbp), %eax
	testb	%al, %al
	jne	.L9
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movl	$0, %eax
.L11:
	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
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"dreamer"
.LC2:
	.string	"dream"
.LC3:
	.string	"eraser"
.LC4:
	.string	"erase"
.LC5:
	.string	"NO"
.LC6:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98360
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1720, %rsp
	.cfi_def_cfa_offset 100080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100008(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	cmpb	$0, (%rsp)
	je	.L2
	leaq	.LC1(%rip), %r13
	leaq	.LC2(%rip), %r14
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L15:
	movb	$0, -7(%rsp,%rbx)
.L4:
	cmpb	$0, (%rsp)
	je	.L2
.L9:
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%r13, %rsi
	leaq	-7(%rax), %r12
	movq	%rax, %rbx
	leaq	0(%rbp,%r12), %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L15
	leaq	-5(%rbx), %r12
	movq	%r14, %rsi
	leaq	0(%rbp,%r12), %r15
	movq	%r15, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L13
	subq	$6, %rbx
	leaq	.LC3(%rip), %rsi
	leaq	0(%rbp,%rbx), %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L6
	movb	$0, (%rsp,%rbx)
	cmpb	$0, (%rsp)
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
.L8:
	movq	100008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$100024, %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
.L6:
	.cfi_restore_state
	leaq	.LC4(%rip), %rsi
	movq	%r15, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L7
.L13:
	movb	$0, (%rsp,%r12)
	jmp	.L4
.L7:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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	"%s"
.LC1:
	.string	"dreamer"
.LC2:
	.string	"dream"
.LC3:
	.string	"eraser"
.LC4:
	.string	"erase"
.LC5:
	.string	"NO"
.LC6:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98360
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1720, %rsp
	.cfi_def_cfa_offset 100080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100008(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	cmpb	$0, (%rsp)
	je	.L2
	leaq	.LC1(%rip), %r13
	leaq	.LC2(%rip), %r14
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L15:
	movb	$0, -7(%rsp,%rbx)
.L4:
	cmpb	$0, (%rsp)
	je	.L2
.L9:
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%r13, %rsi
	leaq	-7(%rax), %r12
	movq	%rax, %rbx
	leaq	0(%rbp,%r12), %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L15
	leaq	-5(%rbx), %r12
	movq	%r14, %rsi
	leaq	0(%rbp,%r12), %r15
	movq	%r15, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L13
	subq	$6, %rbx
	leaq	.LC3(%rip), %rsi
	leaq	0(%rbp,%rbx), %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L6
	movb	$0, (%rsp,%rbx)
	cmpb	$0, (%rsp)
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	.LC6(%rip), %rdi
	call	puts@PLT
.L8:
	movq	100008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$100024, %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
.L6:
	.cfi_restore_state
	leaq	.LC4(%rip), %rsi
	movq	%r15, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L7
.L13:
	movb	$0, (%rsp,%r12)
	jmp	.L4
.L7:
	leaq	.LC5(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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 <math.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>

#define GYOU_MAX 256
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define s_pri(str) printf("%s\n",str);
#define PRINT(str) printf(#str "\n")
#define v_pri(val) printf("%d\n",val);
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define pi acos(-1.0)
#define sca(x) scanf("%d",&x);

typedef long long int ll;

/*
puts("aa");
//*/


int main(void) {


	char S[100001];
	scanf("%s", S);

	while (strlen(S) > 0) {
		if (strcmp(&S[strlen(S) - 7], "dreamer") == 0) {
			S[strlen(S) - 7] = 0;
		}
		else if (strcmp(&S[strlen(S) - 5], "dream") == 0) {
			S[strlen(S) - 5] = 0;
		}
		else if (strcmp(&S[strlen(S) - 6], "eraser") == 0) {
			S[strlen(S) - 6] = 0;
		}
		else if (strcmp(&S[strlen(S) - 5], "erase") == 0) {
			S[strlen(S) - 5] = 0;
		}
		else {
			s_pri("NO");
			return 0;
		}
		
	}
	
		if (S[0] == 0) {
			s_pri("YES");
		}
		else {
			s_pri("NO");
		}
		

	return 0;
}

dre`merer
 maerdesare
 resaremaerd
 dre`meqer
 er`sedream
 ersaremaerd
 reqem`erd
 eq`sedream
 ersaremadrd
 reqem`erc

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>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>

#define GYOU_MAX 256
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define s_pri(str) printf("%s\n",str);
#define PRINT(str) printf(#str "\n")
#define v_pri(val) printf("%d\n",val);
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define pi acos(-1.0)
#define sca(x) scanf("%d",&x);

typedef long long int ll;

/*
puts("aa");
//*/


int main(void) {


	char S[100001];
	scanf("%s", S);

	while (strlen(S) > 0) {
		if (strcmp(&S[strlen(S) - 7], "dreamer") == 0) {
			S[strlen(S) - 7] = 0;
		}
		else if (strcmp(&S[strlen(S) - 5], "dream") == 0) {
			S[strlen(S) - 5] = 0;
		}
		else if (strcmp(&S[strlen(S) - 6], "eraser") == 0) {
			S[strlen(S) - 6] = 0;
		}
		else if (strcmp(&S[strlen(S) - 5], "erase") == 0) {
			S[strlen(S) - 5] = 0;
		}
		else {
			s_pri("NO");
			return 0;
		}
		
	}
	
		if (S[0] == 0) {
			s_pri("YES");
		}
		else {
			s_pri("NO");
		}
		

	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"dreamer"
.LC2:
	.string	"dream"
.LC3:
	.string	"eraser"
.LC4:
	.string	"erase"
.LC5:
	.string	"NO"
.LC6:
	.string	"YES"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1712, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L8:
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-7(%rax), %rdx
	leaq	-100016(%rbp), %rax
	addq	%rdx, %rax
	leaq	.LC1(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L3
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$7, %rax
	movb	$0, -100016(%rbp,%rax)
	jmp	.L2
.L3:
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-5(%rax), %rdx
	leaq	-100016(%rbp), %rax
	addq	%rdx, %rax
	leaq	.LC2(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L4
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$5, %rax
	movb	$0, -100016(%rbp,%rax)
	jmp	.L2
.L4:
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-6(%rax), %rdx
	leaq	-100016(%rbp), %rax
	addq	%rdx, %rax
	leaq	.LC3(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L5
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$6, %rax
	movb	$0, -100016(%rbp,%rax)
	jmp	.L2
.L5:
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-5(%rax), %rdx
	leaq	-100016(%rbp), %rax
	addq	%rdx, %rax
	leaq	.LC4(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L6
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$5, %rax
	movb	$0, -100016(%rbp,%rax)
	jmp	.L2
.L6:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L11
.L2:
	leaq	-100016(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L8
	movzbl	-100016(%rbp), %eax
	testb	%al, %al
	jne	.L9
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movl	$0, %eax
.L11:
	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
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"dreamer"
.LC2:
	.string	"dream"
.LC3:
	.string	"eraser"
.LC4:
	.string	"erase"
.LC5:
	.string	"NO"
.LC6:
	.string	"YES"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1712, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L2
.L8:
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-7(%rax), %rdx
	leaq	-100016(%rbp), %rax
	addq	%rdx, %rax
	leaq	.LC1(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L3
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$7, %rax
	movb	$0, -100016(%rbp,%rax)
	jmp	.L2
.L3:
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-5(%rax), %rdx
	leaq	-100016(%rbp), %rax
	addq	%rdx, %rax
	leaq	.LC2(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L4
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$5, %rax
	movb	$0, -100016(%rbp,%rax)
	jmp	.L2
.L4:
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-6(%rax), %rdx
	leaq	-100016(%rbp), %rax
	addq	%rdx, %rax
	leaq	.LC3(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L5
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$6, %rax
	movb	$0, -100016(%rbp,%rax)
	jmp	.L2
.L5:
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	leaq	-5(%rax), %rdx
	leaq	-100016(%rbp), %rax
	addq	%rdx, %rax
	leaq	.LC4(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L6
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	subq	$5, %rax
	movb	$0, -100016(%rbp,%rax)
	jmp	.L2
.L6:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L11
.L2:
	leaq	-100016(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L8
	movzbl	-100016(%rbp), %eax
	testb	%al, %al
	jne	.L9
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movl	$0, %eax
.L11:
	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
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
