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>
#include<string.h>
int main()
{
    char s[102];
    scanf("%s", s);
    int i, j;
    char t[8] = "keyence";
    i = j = 0;
    while (s[i] == t[j] && i < strlen(s))
    {
        i++;
        j++;
    }
    i = strlen(s) - 7 + j;
    while (s[i] == t[j] && i < strlen(s))
    {
        i++;
        j++;
    }
    if (i == strlen(s))
        printf("YES\n");
    else
        printf("NO\n");
    return 0;
}```

Assembly Code:

```assembly
	.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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$136, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	cmpb	$107, 16(%rsp)
	movabsq	$28538298447783275, %rax
	movq	%rax, 8(%rsp)
	jne	.L11
	movq	%rbp, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L11
	cmpb	$101, 17(%rsp)
	jne	.L14
	cmpq	$1, %rax
	je	.L14
	cmpb	$121, 18(%rsp)
	jne	.L16
	cmpq	$2, %rax
	je	.L16
	cmpb	$101, 19(%rsp)
	jne	.L18
	cmpq	$3, %rax
	je	.L18
	cmpb	$110, 20(%rsp)
	jne	.L20
	cmpq	$4, %rax
	je	.L20
	cmpb	$99, 21(%rsp)
	jne	.L22
	cmpq	$5, %rax
	je	.L22
	cmpb	$101, 22(%rsp)
	jne	.L23
	xorl	%ebx, %ebx
	cmpq	$6, %rax
	setne	%bl
	addl	$6, %ebx
.L2:
	movq	%rbp, %rdi
	call	strlen@PLT
	movslq	%ebx, %rsi
	leal	(%rbx,%rax), %ecx
	movq	%rax, %rdx
	movzbl	8(%rsp,%rsi), %edi
	leal	-7(%rcx), %eax
	cltq
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-6(%rcx), %eax
	leal	1(%rbx), %esi
	cltq
	movslq	%esi, %rsi
	movzbl	16(%rsp,%rax), %edi
	cmpb	%dil, 8(%rsp,%rsi)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-5(%rcx), %eax
	leal	2(%rbx), %esi
	cltq
	movslq	%esi, %rsi
	movzbl	16(%rsp,%rax), %edi
	cmpb	%dil, 8(%rsp,%rsi)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-4(%rcx), %eax
	leal	3(%rbx), %esi
	cltq
	movslq	%esi, %rsi
	movzbl	16(%rsp,%rax), %edi
	cmpb	%dil, 8(%rsp,%rsi)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-3(%rcx), %eax
	leal	4(%rbx), %esi
	movslq	%esi, %rsi
	cltq
	movzbl	8(%rsp,%rsi), %edi
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-2(%rcx), %eax
	leal	5(%rbx), %esi
	movslq	%esi, %rsi
	cltq
	movzbl	8(%rsp,%rsi), %edi
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-1(%rcx), %eax
	leal	6(%rbx), %esi
	movslq	%esi, %rsi
	cltq
	movzbl	8(%rsp,%rsi), %edi
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	addl	$7, %ebx
	movslq	%ecx, %rax
	movslq	%ebx, %rbx
	movzbl	8(%rsp,%rbx), %ebx
	cmpb	%bl, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	1(%rcx), %eax
	cltq
.L5:
	cmpq	%rax, %rdx
	je	.L32
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L9:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L33
	addq	$136, %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
.L32:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L11:
	xorl	%ebx, %ebx
	jmp	.L2
.L14:
	movl	$1, %ebx
	jmp	.L2
.L16:
	movl	$2, %ebx
	jmp	.L2
.L18:
	movl	$3, %ebx
	jmp	.L2
.L20:
	movl	$4, %ebx
	jmp	.L2
.L22:
	movl	$5, %ebx
	jmp	.L2
.L23:
	movl	$6, %ebx
	jmp	.L2
.L33:
	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:
```

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	"%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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$136, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	cmpb	$107, 16(%rsp)
	movabsq	$28538298447783275, %rax
	movq	%rax, 8(%rsp)
	jne	.L11
	movq	%rbp, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L11
	cmpb	$101, 17(%rsp)
	jne	.L14
	cmpq	$1, %rax
	je	.L14
	cmpb	$121, 18(%rsp)
	jne	.L16
	cmpq	$2, %rax
	je	.L16
	cmpb	$101, 19(%rsp)
	jne	.L18
	cmpq	$3, %rax
	je	.L18
	cmpb	$110, 20(%rsp)
	jne	.L20
	cmpq	$4, %rax
	je	.L20
	cmpb	$99, 21(%rsp)
	jne	.L22
	cmpq	$5, %rax
	je	.L22
	cmpb	$101, 22(%rsp)
	jne	.L23
	xorl	%ebx, %ebx
	cmpq	$6, %rax
	setne	%bl
	addl	$6, %ebx
.L2:
	movq	%rbp, %rdi
	call	strlen@PLT
	movslq	%ebx, %rsi
	leal	(%rbx,%rax), %ecx
	movq	%rax, %rdx
	movzbl	8(%rsp,%rsi), %edi
	leal	-7(%rcx), %eax
	cltq
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-6(%rcx), %eax
	leal	1(%rbx), %esi
	cltq
	movslq	%esi, %rsi
	movzbl	16(%rsp,%rax), %edi
	cmpb	%dil, 8(%rsp,%rsi)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-5(%rcx), %eax
	leal	2(%rbx), %esi
	cltq
	movslq	%esi, %rsi
	movzbl	16(%rsp,%rax), %edi
	cmpb	%dil, 8(%rsp,%rsi)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-4(%rcx), %eax
	leal	3(%rbx), %esi
	cltq
	movslq	%esi, %rsi
	movzbl	16(%rsp,%rax), %edi
	cmpb	%dil, 8(%rsp,%rsi)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-3(%rcx), %eax
	leal	4(%rbx), %esi
	movslq	%esi, %rsi
	cltq
	movzbl	8(%rsp,%rsi), %edi
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-2(%rcx), %eax
	leal	5(%rbx), %esi
	movslq	%esi, %rsi
	cltq
	movzbl	8(%rsp,%rsi), %edi
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-1(%rcx), %eax
	leal	6(%rbx), %esi
	movslq	%esi, %rsi
	cltq
	movzbl	8(%rsp,%rsi), %edi
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	addl	$7, %ebx
	movslq	%ecx, %rax
	movslq	%ebx, %rbx
	movzbl	8(%rsp,%rbx), %ebx
	cmpb	%bl, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	1(%rcx), %eax
	cltq
.L5:
	cmpq	%rax, %rdx
	je	.L32
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L9:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L33
	addq	$136, %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
.L32:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L11:
	xorl	%ebx, %ebx
	jmp	.L2
.L14:
	movl	$1, %ebx
	jmp	.L2
.L16:
	movl	$2, %ebx
	jmp	.L2
.L18:
	movl	$3, %ebx
	jmp	.L2
.L20:
	movl	$4, %ebx
	jmp	.L2
.L22:
	movl	$5, %ebx
	jmp	.L2
.L23:
	movl	$6, %ebx
	jmp	.L2
.L33:
	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
```assembly
	.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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$136, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	cmpb	$107, 16(%rsp)
	movabsq	$28538298447783275, %rax
	movq	%rax, 8(%rsp)
	jne	.L11
	movq	%rbp, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L11
	cmpb	$101, 17(%rsp)
	jne	.L14
	cmpq	$1, %rax
	je	.L14
	cmpb	$121, 18(%rsp)
	jne	.L16
	cmpq	$2, %rax
	je	.L16
	cmpb	$101, 19(%rsp)
	jne	.L18
	cmpq	$3, %rax
	je	.L18
	cmpb	$110, 20(%rsp)
	jne	.L20
	cmpq	$4, %rax
	je	.L20
	cmpb	$99, 21(%rsp)
	jne	.L22
	cmpq	$5, %rax
	je	.L22
	cmpb	$101, 22(%rsp)
	jne	.L23
	xorl	%ebx, %ebx
	cmpq	$6, %rax
	setne	%bl
	addl	$6, %ebx
.L2:
	movq	%rbp, %rdi
	call	strlen@PLT
	movslq	%ebx, %rsi
	leal	(%rbx,%rax), %ecx
	movq	%rax, %rdx
	movzbl	8(%rsp,%rsi), %edi
	leal	-7(%rcx), %eax
	cltq
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-6(%rcx), %eax
	leal	1(%rbx), %esi
	cltq
	movslq	%esi, %rsi
	movzbl	16(%rsp,%rax), %edi
	cmpb	%dil, 8(%rsp,%rsi)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-5(%rcx), %eax
	leal	2(%rbx), %esi
	cltq
	movslq	%esi, %rsi
	movzbl	16(%rsp,%rax), %edi
	cmpb	%dil, 8(%rsp,%rsi)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-4(%rcx), %eax
	leal	3(%rbx), %esi
	cltq
	movslq	%esi, %rsi
	movzbl	16(%rsp,%rax), %edi
	cmpb	%dil, 8(%rsp,%rsi)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-3(%rcx), %eax
	leal	4(%rbx), %esi
	movslq	%esi, %rsi
	cltq
	movzbl	8(%rsp,%rsi), %edi
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-2(%rcx), %eax
	leal	5(%rbx), %esi
	movslq	%esi, %rsi
	cltq
	movzbl	8(%rsp,%rsi), %edi
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-1(%rcx), %eax
	leal	6(%rbx), %esi
	movslq	%esi, %rsi
	cltq
	movzbl	8(%rsp,%rsi), %edi
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	addl	$7, %ebx
	movslq	%ecx, %rax
	movslq	%ebx, %rbx
	movzbl	8(%rsp,%rbx), %ebx
	cmpb	%bl, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	1(%rcx), %eax
	cltq
.L5:
	cmpq	%rax, %rdx
	je	.L32
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L9:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L33
	addq	$136, %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
.L32:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L11:
	xorl	%ebx, %ebx
	jmp	.L2
.L14:
	movl	$1, %ebx
	jmp	.L2
.L16:
	movl	$2, %ebx
	jmp	.L2
.L18:
	movl	$3, %ebx
	jmp	.L2
.L20:
	movl	$4, %ebx
	jmp	.L2
.L22:
	movl	$5, %ebx
	jmp	.L2
.L23:
	movl	$6, %ebx
	jmp	.L2
.L33:
	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:
```
```c
#include<stdio.h>
#include<string.h>
int main()
{
    char s[102];
    scanf("%s", s);
    int i, j;
    char t[8] = "keyence";
    i = j = 0;
    while (s[i] == t[j] && i < strlen(s))
    {
        i++;
        j++;
    }
    i = strlen(s) - 7 + j;
    while (s[i] == t[j] && i < strlen(s))
    {
        i++;
        j++;
    }
    if (i == strlen(s))
        printf("YES\n");
    else
        printf("NO\n");
    return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<string.h>
int main()
{
    char s[102];
    scanf("%s", s);
    int i, j;
    char t[8] = "keyence";
    i = j = 0;
    while (s[i] == t[j] && i < strlen(s))
    {
        i++;
        j++;
    }
    i = strlen(s) - 7 + j;
    while (s[i] == t[j] && i < strlen(s))
    {
        i++;
        j++;
    }
    if (i == strlen(s))
        printf("YES\n");
    else
        printf("NO\n");
    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:

ecneyek
 ashkfyha
 eeyofscienck
 mnyszsbzpf
 ecneyel
 arhkfyha
 eeyofsciencj
 mnyszsb{pf
 ecleyen
 arhkyfha

NO
 NO
 NO
 NO
 NO
 NO
 NO
 NO
 NO
 NO

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>
#include<string.h>
int main()
{
    char s[102];
    scanf("%s", s);
    int i, j;
    char t[8] = "keyence";
    i = j = 0;
    while (s[i] == t[j] && i < strlen(s))
    {
        i++;
        j++;
    }
    i = strlen(s) - 7 + j;
    while (s[i] == t[j] && i < strlen(s))
    {
        i++;
        j++;
    }
    if (i == strlen(s))
        printf("YES\n");
    else
        printf("NO\n");
    return 0;
}```

Assembly Code:

```assembly
	.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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$136, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	cmpb	$107, 16(%rsp)
	movabsq	$28538298447783275, %rax
	movq	%rax, 8(%rsp)
	jne	.L11
	movq	%rbp, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L11
	cmpb	$101, 17(%rsp)
	jne	.L14
	cmpq	$1, %rax
	je	.L14
	cmpb	$121, 18(%rsp)
	jne	.L16
	cmpq	$2, %rax
	je	.L16
	cmpb	$101, 19(%rsp)
	jne	.L18
	cmpq	$3, %rax
	je	.L18
	cmpb	$110, 20(%rsp)
	jne	.L20
	cmpq	$4, %rax
	je	.L20
	cmpb	$99, 21(%rsp)
	jne	.L22
	cmpq	$5, %rax
	je	.L22
	cmpb	$101, 22(%rsp)
	jne	.L23
	xorl	%ebx, %ebx
	cmpq	$6, %rax
	setne	%bl
	addl	$6, %ebx
.L2:
	movq	%rbp, %rdi
	call	strlen@PLT
	movslq	%ebx, %rsi
	leal	(%rbx,%rax), %ecx
	movq	%rax, %rdx
	movzbl	8(%rsp,%rsi), %edi
	leal	-7(%rcx), %eax
	cltq
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-6(%rcx), %eax
	leal	1(%rbx), %esi
	cltq
	movslq	%esi, %rsi
	movzbl	16(%rsp,%rax), %edi
	cmpb	%dil, 8(%rsp,%rsi)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-5(%rcx), %eax
	leal	2(%rbx), %esi
	cltq
	movslq	%esi, %rsi
	movzbl	16(%rsp,%rax), %edi
	cmpb	%dil, 8(%rsp,%rsi)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-4(%rcx), %eax
	leal	3(%rbx), %esi
	cltq
	movslq	%esi, %rsi
	movzbl	16(%rsp,%rax), %edi
	cmpb	%dil, 8(%rsp,%rsi)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-3(%rcx), %eax
	leal	4(%rbx), %esi
	movslq	%esi, %rsi
	cltq
	movzbl	8(%rsp,%rsi), %edi
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-2(%rcx), %eax
	leal	5(%rbx), %esi
	movslq	%esi, %rsi
	cltq
	movzbl	8(%rsp,%rsi), %edi
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-1(%rcx), %eax
	leal	6(%rbx), %esi
	movslq	%esi, %rsi
	cltq
	movzbl	8(%rsp,%rsi), %edi
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	addl	$7, %ebx
	movslq	%ecx, %rax
	movslq	%ebx, %rbx
	movzbl	8(%rsp,%rbx), %ebx
	cmpb	%bl, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	1(%rcx), %eax
	cltq
.L5:
	cmpq	%rax, %rdx
	je	.L32
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L9:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L33
	addq	$136, %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
.L32:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L11:
	xorl	%ebx, %ebx
	jmp	.L2
.L14:
	movl	$1, %ebx
	jmp	.L2
.L16:
	movl	$2, %ebx
	jmp	.L2
.L18:
	movl	$3, %ebx
	jmp	.L2
.L20:
	movl	$4, %ebx
	jmp	.L2
.L22:
	movl	$5, %ebx
	jmp	.L2
.L23:
	movl	$6, %ebx
	jmp	.L2
.L33:
	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:
```

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	"%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	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	subq	$136, %rsp
	.cfi_def_cfa_offset 160
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	cmpb	$107, 16(%rsp)
	movabsq	$28538298447783275, %rax
	movq	%rax, 8(%rsp)
	jne	.L11
	movq	%rbp, %rdi
	call	strlen@PLT
	testq	%rax, %rax
	je	.L11
	cmpb	$101, 17(%rsp)
	jne	.L14
	cmpq	$1, %rax
	je	.L14
	cmpb	$121, 18(%rsp)
	jne	.L16
	cmpq	$2, %rax
	je	.L16
	cmpb	$101, 19(%rsp)
	jne	.L18
	cmpq	$3, %rax
	je	.L18
	cmpb	$110, 20(%rsp)
	jne	.L20
	cmpq	$4, %rax
	je	.L20
	cmpb	$99, 21(%rsp)
	jne	.L22
	cmpq	$5, %rax
	je	.L22
	cmpb	$101, 22(%rsp)
	jne	.L23
	xorl	%ebx, %ebx
	cmpq	$6, %rax
	setne	%bl
	addl	$6, %ebx
.L2:
	movq	%rbp, %rdi
	call	strlen@PLT
	movslq	%ebx, %rsi
	leal	(%rbx,%rax), %ecx
	movq	%rax, %rdx
	movzbl	8(%rsp,%rsi), %edi
	leal	-7(%rcx), %eax
	cltq
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-6(%rcx), %eax
	leal	1(%rbx), %esi
	cltq
	movslq	%esi, %rsi
	movzbl	16(%rsp,%rax), %edi
	cmpb	%dil, 8(%rsp,%rsi)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-5(%rcx), %eax
	leal	2(%rbx), %esi
	cltq
	movslq	%esi, %rsi
	movzbl	16(%rsp,%rax), %edi
	cmpb	%dil, 8(%rsp,%rsi)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-4(%rcx), %eax
	leal	3(%rbx), %esi
	cltq
	movslq	%esi, %rsi
	movzbl	16(%rsp,%rax), %edi
	cmpb	%dil, 8(%rsp,%rsi)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-3(%rcx), %eax
	leal	4(%rbx), %esi
	movslq	%esi, %rsi
	cltq
	movzbl	8(%rsp,%rsi), %edi
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-2(%rcx), %eax
	leal	5(%rbx), %esi
	movslq	%esi, %rsi
	cltq
	movzbl	8(%rsp,%rsi), %edi
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	-1(%rcx), %eax
	leal	6(%rbx), %esi
	movslq	%esi, %rsi
	cltq
	movzbl	8(%rsp,%rsi), %edi
	cmpb	%dil, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	addl	$7, %ebx
	movslq	%ecx, %rax
	movslq	%ebx, %rbx
	movzbl	8(%rsp,%rbx), %ebx
	cmpb	%bl, 16(%rsp,%rax)
	jne	.L5
	cmpq	%rax, %rdx
	jbe	.L5
	leal	1(%rcx), %eax
	cltq
.L5:
	cmpq	%rax, %rdx
	je	.L32
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L9:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L33
	addq	$136, %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
.L32:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L9
.L11:
	xorl	%ebx, %ebx
	jmp	.L2
.L14:
	movl	$1, %ebx
	jmp	.L2
.L16:
	movl	$2, %ebx
	jmp	.L2
.L18:
	movl	$3, %ebx
	jmp	.L2
.L20:
	movl	$4, %ebx
	jmp	.L2
.L22:
	movl	$5, %ebx
	jmp	.L2
.L23:
	movl	$6, %ebx
	jmp	.L2
.L33:
	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:
```