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>
#include<stdbool.h>

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

  bool isOk = false;
  bool isEnd = false;
  int tag = 0;
  int count = 0;

  while(!isEnd){
    if(tag == 0){
      if(S[count] == 'd'){
        tag = 1;
        count ++;
      }else if(S[count] == 'e'){
        tag = 11;
        count ++;
      }else if(S[count] == '\0'){
        isOk = true;
        break;
      }else{
        break;
      }
    }
    if(tag == 1){
      if(S[count] == 'r'){
        tag = 2;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 2){
      if(S[count] == 'e'){
        tag = 3;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 3){
      if(S[count] == 'a'){
        tag = 4;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 4){
      if(S[count] == 'm'){
        tag = 5;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 5){
      if(S[count] == 'e'){
        tag = 6;
        count ++;
      }else if(S[count] == 'd'){
        tag = 1;
        count ++;
      }else if(S[count] == '\0'){
        isOk = true;
        break;
      }else{
        break;
      }
    }
    if(tag == 6){
      if(S[count] == 'r'){
        tag = 7;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 7){
      if(S[count] == 'a'){
        tag = 13;
        count ++;
      }else if(S[count] == 'e'){
        tag = 11;
        count ++;
      }else if(S[count] == 'd'){
        tag = 1;
        count ++;
      }else if(S[count] == '\0'){
        isOk = true;
        break;
      }else{
        break;
      }
    }
    if(tag == 11){
      if(S[count] == 'r'){
        tag = 12;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 12){
      if(S[count] == 'a'){
        tag = 13;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 13){
      if(S[count] == 's'){
        tag = 14;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 14){
      if(S[count] == 'e'){
        tag = 15;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 15){
      if(S[count] == 'r'){
        tag = 16;
        count ++;
      }else if(S[count] == 'd'){
        tag = 1;
        count ++;
      }else if(S[count] == 'e'){
        tag = 11;
        count ++;
      }else if(S[count] == '\0'){
        isOk = true;
        break;
      }else{
        break;
      }
    }
    if(tag == 16){
      if(S[count] == 'a'){
        tag = 13;
        count ++;
      }else if(S[count] == 'd'){
        tag = 1;
        count ++;
      }else if(S[count] == 'e'){
        tag = 11;
        count ++;
      }else if(S[count] == '\0'){
        isOk = true;
        break;
      }else{
        break;
      }
    }
  }

  if(isOk){
    printf("%s\n", "YES");
  }else{
    printf("%s\n", "NO");
  }

  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.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
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1728, %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
	movb	$0, -100026(%rbp)
	movb	$0, -100025(%rbp)
	movl	$0, -100024(%rbp)
	movl	$0, -100020(%rbp)
	jmp	.L2
.L44:
	cmpl	$0, -100024(%rbp)
	jne	.L3
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L4
	movl	$1, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L3
.L4:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L5
	movl	$11, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L3
.L5:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L49
	movb	$1, -100026(%rbp)
	jmp	.L7
.L3:
	cmpl	$1, -100024(%rbp)
	jne	.L8
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L50
	movl	$2, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L8:
	cmpl	$2, -100024(%rbp)
	jne	.L10
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L51
	movl	$3, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L10:
	cmpl	$3, -100024(%rbp)
	jne	.L12
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L52
	movl	$4, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L12:
	cmpl	$4, -100024(%rbp)
	jne	.L14
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$109, %al
	jne	.L53
	movl	$5, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L14:
	cmpl	$5, -100024(%rbp)
	jne	.L16
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L17
	movl	$6, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L16
.L17:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L18
	movl	$1, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L16
.L18:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L54
	movb	$1, -100026(%rbp)
	jmp	.L7
.L16:
	cmpl	$6, -100024(%rbp)
	jne	.L20
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L55
	movl	$7, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L20:
	cmpl	$7, -100024(%rbp)
	jne	.L22
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L23
	movl	$13, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L22
.L23:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L24
	movl	$11, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L22
.L24:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L25
	movl	$1, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L22
.L25:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L56
	movb	$1, -100026(%rbp)
	jmp	.L7
.L22:
	cmpl	$11, -100024(%rbp)
	jne	.L27
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L57
	movl	$12, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L27:
	cmpl	$12, -100024(%rbp)
	jne	.L29
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L58
	movl	$13, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L29:
	cmpl	$13, -100024(%rbp)
	jne	.L31
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$115, %al
	jne	.L59
	movl	$14, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L31:
	cmpl	$14, -100024(%rbp)
	jne	.L33
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L60
	movl	$15, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L33:
	cmpl	$15, -100024(%rbp)
	jne	.L35
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L36
	movl	$16, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L35
.L36:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L37
	movl	$1, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L35
.L37:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L38
	movl	$11, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L35
.L38:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L61
	movb	$1, -100026(%rbp)
	jmp	.L7
.L35:
	cmpl	$16, -100024(%rbp)
	jne	.L2
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L40
	movl	$13, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L2
.L40:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L41
	movl	$1, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L2
.L41:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L42
	movl	$11, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L2
.L42:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L62
	movb	$1, -100026(%rbp)
	jmp	.L7
.L2:
	movzbl	-100025(%rbp), %eax
	xorl	$1, %eax
	testb	%al, %al
	jne	.L44
	jmp	.L7
.L49:
	nop
	jmp	.L7
.L50:
	nop
	jmp	.L7
.L51:
	nop
	jmp	.L7
.L52:
	nop
	jmp	.L7
.L53:
	nop
	jmp	.L7
.L54:
	nop
	jmp	.L7
.L55:
	nop
	jmp	.L7
.L56:
	nop
	jmp	.L7
.L57:
	nop
	jmp	.L7
.L58:
	nop
	jmp	.L7
.L59:
	nop
	jmp	.L7
.L60:
	nop
	jmp	.L7
.L61:
	nop
	jmp	.L7
.L62:
	nop
.L7:
	cmpb	$0, -100026(%rbp)
	je	.L45
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L46
.L45:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L46:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	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	"%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98320
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1712, %rsp
	.cfi_def_cfa_offset 100032
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100008(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movzbl	(%rsp), %edx
	movl	$1, %eax
	cmpb	$100, %dl
	je	.L20
	cmpb	$101, %dl
	jne	.L13
.L3:
	movslq	%eax, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L5
	leal	1(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$97, (%rsp,%rdx)
	jne	.L5
	leal	2(%rax), %edx
	jmp	.L14
.L46:
	leal	5(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L5
	leal	6(%rax), %edx
	movslq	%edx, %rdx
	movzbl	(%rsp,%rdx), %edx
	cmpb	$97, %dl
	je	.L44
	cmpb	$101, %dl
	je	.L45
	cmpb	$100, %dl
	jne	.L13
	addl	$7, %eax
.L20:
	movslq	%eax, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L5
	leal	1(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L5
	leal	2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$97, (%rsp,%rdx)
	jne	.L5
	leal	3(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$109, (%rsp,%rdx)
	jne	.L5
	leal	4(%rax), %edx
	movslq	%edx, %rdx
	movzbl	(%rsp,%rdx), %edx
	cmpb	$101, %dl
	je	.L46
	cmpb	$100, %dl
	jne	.L13
	addl	$5, %eax
	jmp	.L20
.L44:
	leal	7(%rax), %edx
.L14:
	movslq	%edx, %rdx
	leaq	1(%rsp), %rdi
	leaq	2(%rsp), %rsi
	leaq	-1(%rsp), %r8
.L11:
	cmpb	$115, (%rbx,%rdx)
	movl	%edx, %eax
	jne	.L5
	cmpb	$101, (%rdi,%rdx)
	jne	.L5
	movzbl	(%rsi,%rdx), %ecx
	cmpb	$114, %cl
	je	.L47
	cmpb	$100, %cl
	je	.L48
	cmpb	$101, %cl
	jne	.L21
	addl	$3, %eax
	jmp	.L3
.L13:
	testb	%dl, %dl
	jne	.L5
.L4:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L22:
	movq	100008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	addq	$100016, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	testb	%cl, %cl
	je	.L4
.L5:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L22
.L47:
	addq	$4, %rdx
	movzbl	(%r8,%rdx), %ecx
	cmpb	$97, %cl
	je	.L11
	cmpb	$100, %cl
	je	.L50
	cmpb	$101, %cl
	jne	.L21
	addl	$4, %eax
	jmp	.L3
.L45:
	addl	$7, %eax
	jmp	.L3
.L48:
	addl	$3, %eax
	jmp	.L20
.L50:
	addl	$4, %eax
	jmp	.L20
.L49:
	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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98320
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1712, %rsp
	.cfi_def_cfa_offset 100032
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100008(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbx
	movq	%rbx, %rsi
	call	__isoc99_scanf@PLT
	movzbl	(%rsp), %edx
	movl	$1, %eax
	cmpb	$100, %dl
	je	.L20
	cmpb	$101, %dl
	jne	.L13
.L3:
	movslq	%eax, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L5
	leal	1(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$97, (%rsp,%rdx)
	jne	.L5
	leal	2(%rax), %edx
	jmp	.L14
.L46:
	leal	5(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L5
	leal	6(%rax), %edx
	movslq	%edx, %rdx
	movzbl	(%rsp,%rdx), %edx
	cmpb	$97, %dl
	je	.L44
	cmpb	$101, %dl
	je	.L45
	cmpb	$100, %dl
	jne	.L13
	addl	$7, %eax
.L20:
	movslq	%eax, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L5
	leal	1(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L5
	leal	2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$97, (%rsp,%rdx)
	jne	.L5
	leal	3(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$109, (%rsp,%rdx)
	jne	.L5
	leal	4(%rax), %edx
	movslq	%edx, %rdx
	movzbl	(%rsp,%rdx), %edx
	cmpb	$101, %dl
	je	.L46
	cmpb	$100, %dl
	jne	.L13
	addl	$5, %eax
	jmp	.L20
.L44:
	leal	7(%rax), %edx
.L14:
	movslq	%edx, %rdx
	leaq	1(%rsp), %rdi
	leaq	2(%rsp), %rsi
	leaq	-1(%rsp), %r8
.L11:
	cmpb	$115, (%rbx,%rdx)
	movl	%edx, %eax
	jne	.L5
	cmpb	$101, (%rdi,%rdx)
	jne	.L5
	movzbl	(%rsi,%rdx), %ecx
	cmpb	$114, %cl
	je	.L47
	cmpb	$100, %cl
	je	.L48
	cmpb	$101, %cl
	jne	.L21
	addl	$3, %eax
	jmp	.L3
.L13:
	testb	%dl, %dl
	jne	.L5
.L4:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L22:
	movq	100008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L49
	addq	$100016, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	testb	%cl, %cl
	je	.L4
.L5:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L22
.L47:
	addq	$4, %rdx
	movzbl	(%r8,%rdx), %ecx
	cmpb	$97, %cl
	je	.L11
	cmpb	$100, %cl
	je	.L50
	cmpb	$101, %cl
	jne	.L21
	addl	$4, %eax
	jmp	.L3
.L45:
	addl	$7, %eax
	jmp	.L3
.L48:
	addl	$3, %eax
	jmp	.L20
.L50:
	addl	$4, %eax
	jmp	.L20
.L49:
	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>
#include<stdbool.h>

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

  bool isOk = false;
  bool isEnd = false;
  int tag = 0;
  int count = 0;

  while(!isEnd){
    if(tag == 0){
      if(S[count] == 'd'){
        tag = 1;
        count ++;
      }else if(S[count] == 'e'){
        tag = 11;
        count ++;
      }else if(S[count] == '\0'){
        isOk = true;
        break;
      }else{
        break;
      }
    }
    if(tag == 1){
      if(S[count] == 'r'){
        tag = 2;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 2){
      if(S[count] == 'e'){
        tag = 3;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 3){
      if(S[count] == 'a'){
        tag = 4;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 4){
      if(S[count] == 'm'){
        tag = 5;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 5){
      if(S[count] == 'e'){
        tag = 6;
        count ++;
      }else if(S[count] == 'd'){
        tag = 1;
        count ++;
      }else if(S[count] == '\0'){
        isOk = true;
        break;
      }else{
        break;
      }
    }
    if(tag == 6){
      if(S[count] == 'r'){
        tag = 7;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 7){
      if(S[count] == 'a'){
        tag = 13;
        count ++;
      }else if(S[count] == 'e'){
        tag = 11;
        count ++;
      }else if(S[count] == 'd'){
        tag = 1;
        count ++;
      }else if(S[count] == '\0'){
        isOk = true;
        break;
      }else{
        break;
      }
    }
    if(tag == 11){
      if(S[count] == 'r'){
        tag = 12;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 12){
      if(S[count] == 'a'){
        tag = 13;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 13){
      if(S[count] == 's'){
        tag = 14;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 14){
      if(S[count] == 'e'){
        tag = 15;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 15){
      if(S[count] == 'r'){
        tag = 16;
        count ++;
      }else if(S[count] == 'd'){
        tag = 1;
        count ++;
      }else if(S[count] == 'e'){
        tag = 11;
        count ++;
      }else if(S[count] == '\0'){
        isOk = true;
        break;
      }else{
        break;
      }
    }
    if(tag == 16){
      if(S[count] == 'a'){
        tag = 13;
        count ++;
      }else if(S[count] == 'd'){
        tag = 1;
        count ++;
      }else if(S[count] == 'e'){
        tag = 11;
        count ++;
      }else if(S[count] == '\0'){
        isOk = true;
        break;
      }else{
        break;
      }
    }
  }

  if(isOk){
    printf("%s\n", "YES");
  }else{
    printf("%s\n", "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<string.h>
#include<stdbool.h>

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

  bool isOk = false;
  bool isEnd = false;
  int tag = 0;
  int count = 0;

  while(!isEnd){
    if(tag == 0){
      if(S[count] == 'd'){
        tag = 1;
        count ++;
      }else if(S[count] == 'e'){
        tag = 11;
        count ++;
      }else if(S[count] == '\0'){
        isOk = true;
        break;
      }else{
        break;
      }
    }
    if(tag == 1){
      if(S[count] == 'r'){
        tag = 2;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 2){
      if(S[count] == 'e'){
        tag = 3;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 3){
      if(S[count] == 'a'){
        tag = 4;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 4){
      if(S[count] == 'm'){
        tag = 5;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 5){
      if(S[count] == 'e'){
        tag = 6;
        count ++;
      }else if(S[count] == 'd'){
        tag = 1;
        count ++;
      }else if(S[count] == '\0'){
        isOk = true;
        break;
      }else{
        break;
      }
    }
    if(tag == 6){
      if(S[count] == 'r'){
        tag = 7;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 7){
      if(S[count] == 'a'){
        tag = 13;
        count ++;
      }else if(S[count] == 'e'){
        tag = 11;
        count ++;
      }else if(S[count] == 'd'){
        tag = 1;
        count ++;
      }else if(S[count] == '\0'){
        isOk = true;
        break;
      }else{
        break;
      }
    }
    if(tag == 11){
      if(S[count] == 'r'){
        tag = 12;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 12){
      if(S[count] == 'a'){
        tag = 13;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 13){
      if(S[count] == 's'){
        tag = 14;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 14){
      if(S[count] == 'e'){
        tag = 15;
        count ++;
      }else{
        break;
      }
    }
    if(tag == 15){
      if(S[count] == 'r'){
        tag = 16;
        count ++;
      }else if(S[count] == 'd'){
        tag = 1;
        count ++;
      }else if(S[count] == 'e'){
        tag = 11;
        count ++;
      }else if(S[count] == '\0'){
        isOk = true;
        break;
      }else{
        break;
      }
    }
    if(tag == 16){
      if(S[count] == 'a'){
        tag = 13;
        count ++;
      }else if(S[count] == 'd'){
        tag = 1;
        count ++;
      }else if(S[count] == 'e'){
        tag = 11;
        count ++;
      }else if(S[count] == '\0'){
        isOk = true;
        break;
      }else{
        break;
      }
    }
  }

  if(isOk){
    printf("%s\n", "YES");
  }else{
    printf("%s\n", "NO");
  }

  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.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
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1728, %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
	movb	$0, -100026(%rbp)
	movb	$0, -100025(%rbp)
	movl	$0, -100024(%rbp)
	movl	$0, -100020(%rbp)
	jmp	.L2
.L44:
	cmpl	$0, -100024(%rbp)
	jne	.L3
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L4
	movl	$1, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L3
.L4:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L5
	movl	$11, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L3
.L5:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L49
	movb	$1, -100026(%rbp)
	jmp	.L7
.L3:
	cmpl	$1, -100024(%rbp)
	jne	.L8
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L50
	movl	$2, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L8:
	cmpl	$2, -100024(%rbp)
	jne	.L10
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L51
	movl	$3, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L10:
	cmpl	$3, -100024(%rbp)
	jne	.L12
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L52
	movl	$4, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L12:
	cmpl	$4, -100024(%rbp)
	jne	.L14
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$109, %al
	jne	.L53
	movl	$5, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L14:
	cmpl	$5, -100024(%rbp)
	jne	.L16
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L17
	movl	$6, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L16
.L17:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L18
	movl	$1, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L16
.L18:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L54
	movb	$1, -100026(%rbp)
	jmp	.L7
.L16:
	cmpl	$6, -100024(%rbp)
	jne	.L20
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L55
	movl	$7, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L20:
	cmpl	$7, -100024(%rbp)
	jne	.L22
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L23
	movl	$13, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L22
.L23:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L24
	movl	$11, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L22
.L24:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L25
	movl	$1, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L22
.L25:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L56
	movb	$1, -100026(%rbp)
	jmp	.L7
.L22:
	cmpl	$11, -100024(%rbp)
	jne	.L27
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L57
	movl	$12, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L27:
	cmpl	$12, -100024(%rbp)
	jne	.L29
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L58
	movl	$13, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L29:
	cmpl	$13, -100024(%rbp)
	jne	.L31
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$115, %al
	jne	.L59
	movl	$14, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L31:
	cmpl	$14, -100024(%rbp)
	jne	.L33
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L60
	movl	$15, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L33:
	cmpl	$15, -100024(%rbp)
	jne	.L35
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L36
	movl	$16, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L35
.L36:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L37
	movl	$1, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L35
.L37:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L38
	movl	$11, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L35
.L38:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L61
	movb	$1, -100026(%rbp)
	jmp	.L7
.L35:
	cmpl	$16, -100024(%rbp)
	jne	.L2
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L40
	movl	$13, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L2
.L40:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L41
	movl	$1, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L2
.L41:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L42
	movl	$11, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L2
.L42:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L62
	movb	$1, -100026(%rbp)
	jmp	.L7
.L2:
	movzbl	-100025(%rbp), %eax
	xorl	$1, %eax
	testb	%al, %al
	jne	.L44
	jmp	.L7
.L49:
	nop
	jmp	.L7
.L50:
	nop
	jmp	.L7
.L51:
	nop
	jmp	.L7
.L52:
	nop
	jmp	.L7
.L53:
	nop
	jmp	.L7
.L54:
	nop
	jmp	.L7
.L55:
	nop
	jmp	.L7
.L56:
	nop
	jmp	.L7
.L57:
	nop
	jmp	.L7
.L58:
	nop
	jmp	.L7
.L59:
	nop
	jmp	.L7
.L60:
	nop
	jmp	.L7
.L61:
	nop
	jmp	.L7
.L62:
	nop
.L7:
	cmpb	$0, -100026(%rbp)
	je	.L45
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L46
.L45:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L46:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	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	"%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.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
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1728, %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
	movb	$0, -100026(%rbp)
	movb	$0, -100025(%rbp)
	movl	$0, -100024(%rbp)
	movl	$0, -100020(%rbp)
	jmp	.L2
.L44:
	cmpl	$0, -100024(%rbp)
	jne	.L3
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L4
	movl	$1, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L3
.L4:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L5
	movl	$11, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L3
.L5:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L49
	movb	$1, -100026(%rbp)
	jmp	.L7
.L3:
	cmpl	$1, -100024(%rbp)
	jne	.L8
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L50
	movl	$2, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L8:
	cmpl	$2, -100024(%rbp)
	jne	.L10
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L51
	movl	$3, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L10:
	cmpl	$3, -100024(%rbp)
	jne	.L12
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L52
	movl	$4, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L12:
	cmpl	$4, -100024(%rbp)
	jne	.L14
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$109, %al
	jne	.L53
	movl	$5, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L14:
	cmpl	$5, -100024(%rbp)
	jne	.L16
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L17
	movl	$6, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L16
.L17:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L18
	movl	$1, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L16
.L18:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L54
	movb	$1, -100026(%rbp)
	jmp	.L7
.L16:
	cmpl	$6, -100024(%rbp)
	jne	.L20
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L55
	movl	$7, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L20:
	cmpl	$7, -100024(%rbp)
	jne	.L22
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L23
	movl	$13, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L22
.L23:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L24
	movl	$11, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L22
.L24:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L25
	movl	$1, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L22
.L25:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L56
	movb	$1, -100026(%rbp)
	jmp	.L7
.L22:
	cmpl	$11, -100024(%rbp)
	jne	.L27
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L57
	movl	$12, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L27:
	cmpl	$12, -100024(%rbp)
	jne	.L29
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L58
	movl	$13, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L29:
	cmpl	$13, -100024(%rbp)
	jne	.L31
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$115, %al
	jne	.L59
	movl	$14, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L31:
	cmpl	$14, -100024(%rbp)
	jne	.L33
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L60
	movl	$15, -100024(%rbp)
	addl	$1, -100020(%rbp)
.L33:
	cmpl	$15, -100024(%rbp)
	jne	.L35
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$114, %al
	jne	.L36
	movl	$16, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L35
.L36:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L37
	movl	$1, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L35
.L37:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L38
	movl	$11, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L35
.L38:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L61
	movb	$1, -100026(%rbp)
	jmp	.L7
.L35:
	cmpl	$16, -100024(%rbp)
	jne	.L2
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$97, %al
	jne	.L40
	movl	$13, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L2
.L40:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$100, %al
	jne	.L41
	movl	$1, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L2
.L41:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$101, %al
	jne	.L42
	movl	$11, -100024(%rbp)
	addl	$1, -100020(%rbp)
	jmp	.L2
.L42:
	movl	-100020(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L62
	movb	$1, -100026(%rbp)
	jmp	.L7
.L2:
	movzbl	-100025(%rbp), %eax
	xorl	$1, %eax
	testb	%al, %al
	jne	.L44
	jmp	.L7
.L49:
	nop
	jmp	.L7
.L50:
	nop
	jmp	.L7
.L51:
	nop
	jmp	.L7
.L52:
	nop
	jmp	.L7
.L53:
	nop
	jmp	.L7
.L54:
	nop
	jmp	.L7
.L55:
	nop
	jmp	.L7
.L56:
	nop
	jmp	.L7
.L57:
	nop
	jmp	.L7
.L58:
	nop
	jmp	.L7
.L59:
	nop
	jmp	.L7
.L60:
	nop
	jmp	.L7
.L61:
	nop
	jmp	.L7
.L62:
	nop
.L7:
	cmpb	$0, -100026(%rbp)
	je	.L45
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L46
.L45:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L46:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	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:
