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

```c
#include <ctype.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

static bool compare(const char *s, const char *t, size_t len)
{
    for (int i = len - 1; 0 <= i; i--) {
        if (*s != t[i]) return false;
        s--;
    }
    return true;
}

int main(int argc, char **argv)
{
    char s[100002] = {'\0'};
    scanf("%s", s + 1);
    int n = strlen(s + 1);
    for (char *i = s + n; *i; i--) {
        if (compare(i, "dream", 5)) {
            i -= 4;
        } else if (compare(i, "dreamer", 7)) {
            i -= 6;
        } else if (compare(i, "erase", 5)) {
            i -= 4;
        } else if (compare(i, "eraser", 6)) {
            i -= 5;
        } else {
            printf("NO\n");
            return EXIT_SUCCESS;
        }
    }
    printf("YES\n");
    return EXIT_SUCCESS;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.type	compare, @function
compare:
.LFB6:
	.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	-40(%rbp), %rax
	subl	$1, %eax
	movl	%eax, -4(%rbp)
	jmp	.L2
.L5:
	movq	-24(%rbp), %rax
	movzbl	(%rax), %edx
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L3
	movl	$0, %eax
	jmp	.L4
.L3:
	subq	$1, -24(%rbp)
	subl	$1, -4(%rbp)
.L2:
	cmpl	$0, -4(%rbp)
	jns	.L5
	movl	$1, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare, .-compare
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"dream"
.LC2:
	.string	"dreamer"
.LC3:
	.string	"erase"
.LC4:
	.string	"eraser"
.LC5:
	.string	"NO"
.LC6:
	.string	"YES"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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	$1744, %rsp
	movl	%edi, -100036(%rbp)
	movq	%rsi, -100048(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -100016(%rbp)
	movq	$0, -100008(%rbp)
	leaq	-100000(%rbp), %rax
	movl	$99986, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-100016(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -100028(%rbp)
	movl	-100028(%rbp), %eax
	cltq
	leaq	-100016(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, -100024(%rbp)
	jmp	.L7
.L14:
	movq	-100024(%rbp), %rax
	movl	$5, %edx
	leaq	.LC1(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	compare
	testb	%al, %al
	je	.L8
	subq	$4, -100024(%rbp)
	jmp	.L9
.L8:
	movq	-100024(%rbp), %rax
	movl	$7, %edx
	leaq	.LC2(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	compare
	testb	%al, %al
	je	.L10
	subq	$6, -100024(%rbp)
	jmp	.L9
.L10:
	movq	-100024(%rbp), %rax
	movl	$5, %edx
	leaq	.LC3(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	compare
	testb	%al, %al
	je	.L11
	subq	$4, -100024(%rbp)
	jmp	.L9
.L11:
	movq	-100024(%rbp), %rax
	movl	$6, %edx
	leaq	.LC4(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	compare
	testb	%al, %al
	je	.L12
	subq	$5, -100024(%rbp)
	jmp	.L9
.L12:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L15
.L9:
	subq	$1, -100024(%rbp)
.L7:
	movq	-100024(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L14
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L15:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"NO"
.LC2:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98328
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1720, %rsp
	.cfi_def_cfa_offset 100048
	pxor	%xmm0, %xmm0
	movl	$99986, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 100008(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	1(%rsp), %rbp
	movaps	%xmm0, (%rsp)
	call	memset@PLT
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movq	%rsp, %rbx
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	addq	%rbx, %rax
	movzbl	(%rax), %edx
	testb	%dl, %dl
	jne	.L2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L23:
	cmpb	$97, -1(%rax)
	jne	.L6
	cmpb	$101, -2(%rax)
	jne	.L6
	cmpb	$114, -3(%rax)
	jne	.L6
	cmpb	$100, -4(%rax)
	jne	.L6
.L21:
	leaq	-4(%rax), %rdx
.L4:
	leaq	-1(%rdx), %rax
	movzbl	-1(%rdx), %edx
	testb	%dl, %dl
	je	.L3
.L2:
	cmpb	$109, %dl
	je	.L23
	cmpb	$114, %dl
	jne	.L5
	cmpb	$101, -1(%rax)
	jne	.L6
	cmpb	$109, -2(%rax)
	jne	.L7
	cmpb	$97, -3(%rax)
	jne	.L7
	cmpb	$101, -4(%rax)
	jne	.L7
	cmpb	$114, -5(%rax)
	jne	.L7
	cmpb	$100, -6(%rax)
	jne	.L7
	leaq	-6(%rax), %rdx
	leaq	-1(%rdx), %rax
	movzbl	-1(%rdx), %edx
	testb	%dl, %dl
	jne	.L2
.L3:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L8:
	movq	100008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$100024, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	cmpb	$115, -2(%rax)
	jne	.L6
	cmpb	$97, -3(%rax)
	jne	.L6
	cmpb	$114, -4(%rax)
	jne	.L6
	cmpb	$101, -5(%rax)
	jne	.L6
	leaq	-5(%rax), %rdx
	jmp	.L4
.L5:
	cmpb	$101, %dl
	jne	.L6
	cmpb	$115, -1(%rax)
	jne	.L6
	cmpb	$97, -2(%rax)
	jne	.L6
	cmpb	$114, -3(%rax)
	jne	.L6
	cmpb	$101, -4(%rax)
	je	.L21
.L6:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.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	"NO"
.LC2:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98328
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1720, %rsp
	.cfi_def_cfa_offset 100048
	pxor	%xmm0, %xmm0
	movl	$99986, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 100008(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	leaq	1(%rsp), %rbp
	movaps	%xmm0, (%rsp)
	call	memset@PLT
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movq	%rsp, %rbx
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	addq	%rbx, %rax
	movzbl	(%rax), %edx
	testb	%dl, %dl
	jne	.L2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L23:
	cmpb	$97, -1(%rax)
	jne	.L6
	cmpb	$101, -2(%rax)
	jne	.L6
	cmpb	$114, -3(%rax)
	jne	.L6
	cmpb	$100, -4(%rax)
	jne	.L6
.L21:
	leaq	-4(%rax), %rdx
.L4:
	leaq	-1(%rdx), %rax
	movzbl	-1(%rdx), %edx
	testb	%dl, %dl
	je	.L3
.L2:
	cmpb	$109, %dl
	je	.L23
	cmpb	$114, %dl
	jne	.L5
	cmpb	$101, -1(%rax)
	jne	.L6
	cmpb	$109, -2(%rax)
	jne	.L7
	cmpb	$97, -3(%rax)
	jne	.L7
	cmpb	$101, -4(%rax)
	jne	.L7
	cmpb	$114, -5(%rax)
	jne	.L7
	cmpb	$100, -6(%rax)
	jne	.L7
	leaq	-6(%rax), %rdx
	leaq	-1(%rdx), %rax
	movzbl	-1(%rdx), %edx
	testb	%dl, %dl
	jne	.L2
.L3:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L8:
	movq	100008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	addq	$100024, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	cmpb	$115, -2(%rax)
	jne	.L6
	cmpb	$97, -3(%rax)
	jne	.L6
	cmpb	$114, -4(%rax)
	jne	.L6
	cmpb	$101, -5(%rax)
	jne	.L6
	leaq	-5(%rax), %rdx
	jmp	.L4
.L5:
	cmpb	$101, %dl
	jne	.L6
	cmpb	$115, -1(%rax)
	jne	.L6
	cmpb	$97, -2(%rax)
	jne	.L6
	cmpb	$114, -3(%rax)
	jne	.L6
	cmpb	$101, -4(%rax)
	je	.L21
.L6:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L8
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE54:
	.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 <ctype.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

static bool compare(const char *s, const char *t, size_t len)
{
    for (int i = len - 1; 0 <= i; i--) {
        if (*s != t[i]) return false;
        s--;
    }
    return true;
}

int main(int argc, char **argv)
{
    char s[100002] = {'\0'};
    scanf("%s", s + 1);
    int n = strlen(s + 1);
    for (char *i = s + n; *i; i--) {
        if (compare(i, "dream", 5)) {
            i -= 4;
        } else if (compare(i, "dreamer", 7)) {
            i -= 6;
        } else if (compare(i, "erase", 5)) {
            i -= 4;
        } else if (compare(i, "eraser", 6)) {
            i -= 5;
        } else {
            printf("NO\n");
            return EXIT_SUCCESS;
        }
    }
    printf("YES\n");
    return EXIT_SUCCESS;
}

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 <ctype.h>
#include <limits.h>
#include <math.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

static bool compare(const char *s, const char *t, size_t len)
{
    for (int i = len - 1; 0 <= i; i--) {
        if (*s != t[i]) return false;
        s--;
    }
    return true;
}

int main(int argc, char **argv)
{
    char s[100002] = {'\0'};
    scanf("%s", s + 1);
    int n = strlen(s + 1);
    for (char *i = s + n; *i; i--) {
        if (compare(i, "dream", 5)) {
            i -= 4;
        } else if (compare(i, "dreamer", 7)) {
            i -= 6;
        } else if (compare(i, "erase", 5)) {
            i -= 4;
        } else if (compare(i, "eraser", 6)) {
            i -= 5;
        } else {
            printf("NO\n");
            return EXIT_SUCCESS;
        }
    }
    printf("YES\n");
    return EXIT_SUCCESS;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.type	compare, @function
compare:
.LFB6:
	.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	-40(%rbp), %rax
	subl	$1, %eax
	movl	%eax, -4(%rbp)
	jmp	.L2
.L5:
	movq	-24(%rbp), %rax
	movzbl	(%rax), %edx
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L3
	movl	$0, %eax
	jmp	.L4
.L3:
	subq	$1, -24(%rbp)
	subl	$1, -4(%rbp)
.L2:
	cmpl	$0, -4(%rbp)
	jns	.L5
	movl	$1, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare, .-compare
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"dream"
.LC2:
	.string	"dreamer"
.LC3:
	.string	"erase"
.LC4:
	.string	"eraser"
.LC5:
	.string	"NO"
.LC6:
	.string	"YES"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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	$1744, %rsp
	movl	%edi, -100036(%rbp)
	movq	%rsi, -100048(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -100016(%rbp)
	movq	$0, -100008(%rbp)
	leaq	-100000(%rbp), %rax
	movl	$99986, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-100016(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -100028(%rbp)
	movl	-100028(%rbp), %eax
	cltq
	leaq	-100016(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, -100024(%rbp)
	jmp	.L7
.L14:
	movq	-100024(%rbp), %rax
	movl	$5, %edx
	leaq	.LC1(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	compare
	testb	%al, %al
	je	.L8
	subq	$4, -100024(%rbp)
	jmp	.L9
.L8:
	movq	-100024(%rbp), %rax
	movl	$7, %edx
	leaq	.LC2(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	compare
	testb	%al, %al
	je	.L10
	subq	$6, -100024(%rbp)
	jmp	.L9
.L10:
	movq	-100024(%rbp), %rax
	movl	$5, %edx
	leaq	.LC3(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	compare
	testb	%al, %al
	je	.L11
	subq	$4, -100024(%rbp)
	jmp	.L9
.L11:
	movq	-100024(%rbp), %rax
	movl	$6, %edx
	leaq	.LC4(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	compare
	testb	%al, %al
	je	.L12
	subq	$5, -100024(%rbp)
	jmp	.L9
.L12:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L15
.L9:
	subq	$1, -100024(%rbp)
.L7:
	movq	-100024(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L14
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L15:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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
	.type	compare, @function
compare:
.LFB6:
	.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	-40(%rbp), %rax
	subl	$1, %eax
	movl	%eax, -4(%rbp)
	jmp	.L2
.L5:
	movq	-24(%rbp), %rax
	movzbl	(%rax), %edx
	movl	-4(%rbp), %eax
	movslq	%eax, %rcx
	movq	-32(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L3
	movl	$0, %eax
	jmp	.L4
.L3:
	subq	$1, -24(%rbp)
	subl	$1, -4(%rbp)
.L2:
	cmpl	$0, -4(%rbp)
	jns	.L5
	movl	$1, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare, .-compare
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"dream"
.LC2:
	.string	"dreamer"
.LC3:
	.string	"erase"
.LC4:
	.string	"eraser"
.LC5:
	.string	"NO"
.LC6:
	.string	"YES"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.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	$1744, %rsp
	movl	%edi, -100036(%rbp)
	movq	%rsi, -100048(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -100016(%rbp)
	movq	$0, -100008(%rbp)
	leaq	-100000(%rbp), %rax
	movl	$99986, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-100016(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	addq	$1, %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -100028(%rbp)
	movl	-100028(%rbp), %eax
	cltq
	leaq	-100016(%rbp), %rdx
	addq	%rdx, %rax
	movq	%rax, -100024(%rbp)
	jmp	.L7
.L14:
	movq	-100024(%rbp), %rax
	movl	$5, %edx
	leaq	.LC1(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	compare
	testb	%al, %al
	je	.L8
	subq	$4, -100024(%rbp)
	jmp	.L9
.L8:
	movq	-100024(%rbp), %rax
	movl	$7, %edx
	leaq	.LC2(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	compare
	testb	%al, %al
	je	.L10
	subq	$6, -100024(%rbp)
	jmp	.L9
.L10:
	movq	-100024(%rbp), %rax
	movl	$5, %edx
	leaq	.LC3(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	compare
	testb	%al, %al
	je	.L11
	subq	$4, -100024(%rbp)
	jmp	.L9
.L11:
	movq	-100024(%rbp), %rax
	movl	$6, %edx
	leaq	.LC4(%rip), %rcx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	compare
	testb	%al, %al
	je	.L12
	subq	$5, -100024(%rbp)
	jmp	.L9
.L12:
	leaq	.LC5(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L15
.L9:
	subq	$1, -100024(%rbp)
.L7:
	movq	-100024(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L14
	leaq	.LC6(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L15:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
