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>

int main(){
    char s0[100];
    char s1[7];
    fgets(s0, 100, stdin);
    int n = 0;
    int r = 0;
    for(int i = 0; i<100; i++){
        if(s0[i] == '\0'){
            n = i-1;
            break;
        }
    }
    for(int i = 0; i < 7; i++){
        s1[i] = s0[i];
    }
    if(strcmp(s1,"keyence") == 0) r = 1;
    
    s1[6] = s0[n-1];
    if(strcmp(s1,"keyence") == 0) r = 1;
    
    s1[5] = s0[n-2];
    if(strcmp(s1,"keyence") == 0) r = 1;

    s1[4] = s0[n-3];
    if(strcmp(s1,"keyence") == 0) r = 1;

    s1[3] = s0[n-4];
    if(strcmp(s1,"keyence") == 0) r = 1;
    
    s1[2] = s0[n-5];
    if(strcmp(s1,"keyence") == 0) r = 1;

    s1[1] = s0[n-6];
    if(strcmp(s1,"keyence") == 0) r = 1;

    s1[0] = s0[n-7];
    if(strcmp(s1,"keyence") == 0) r = 1;

    if (r == 1)
    printf("%s\n", "YES");
    else
    printf("%s\n", "NO");
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"keyence"
.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
	subq	$144, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rdx
	leaq	-112(%rbp), %rax
	movl	$100, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movl	$0, -136(%rbp)
	movl	$0, -132(%rbp)
	movl	$0, -128(%rbp)
	jmp	.L2
.L5:
	movl	-128(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L3
	movl	-128(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -136(%rbp)
	jmp	.L4
.L3:
	addl	$1, -128(%rbp)
.L2:
	cmpl	$99, -128(%rbp)
	jle	.L5
.L4:
	movl	$0, -124(%rbp)
	jmp	.L6
.L7:
	movl	-124(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-124(%rbp), %eax
	cltq
	movb	%dl, -119(%rbp,%rax)
	addl	$1, -124(%rbp)
.L6:
	cmpl	$6, -124(%rbp)
	jle	.L7
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L8
	movl	$1, -132(%rbp)
.L8:
	movl	-136(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -113(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L9
	movl	$1, -132(%rbp)
.L9:
	movl	-136(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -114(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L10
	movl	$1, -132(%rbp)
.L10:
	movl	-136(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -115(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L11
	movl	$1, -132(%rbp)
.L11:
	movl	-136(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -116(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L12
	movl	$1, -132(%rbp)
.L12:
	movl	-136(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -117(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L13
	movl	$1, -132(%rbp)
.L13:
	movl	-136(%rbp), %eax
	subl	$6, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -118(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L14
	movl	$1, -132(%rbp)
.L14:
	movl	-136(%rbp), %eax
	subl	$7, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -119(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L15
	movl	$1, -132(%rbp)
.L15:
	cmpl	$1, -132(%rbp)
	jne	.L16
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L17
.L16:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L17:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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	"keyence"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$100, %esi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	addq	$-128, %rsp
	.cfi_def_cfa_offset 176
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	movq	%rbx, %rdi
	call	fgets@PLT
	xorl	%eax, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	addq	$1, %rax
	cmpq	$100, %rax
	je	.L23
.L4:
	cmpb	$0, (%rbx,%rax)
	jne	.L2
	leal	-1(%rax), %ebx
.L3:
	movl	16(%rsp), %eax
	leaq	9(%rsp), %r12
	movl	$1, %ebp
	leaq	.LC0(%rip), %r13
	movq	%r13, %rsi
	movq	%r12, %rdi
	movl	%eax, 9(%rsp)
	movzwl	20(%rsp), %eax
	movw	%ax, 13(%rsp)
	movzbl	22(%rsp), %eax
	movb	%al, 15(%rsp)
	call	strcmp@PLT
	movq	%r13, %rsi
	movq	%r12, %rdi
	movl	%eax, %r14d
	leal	-1(%rbx), %eax
	cltq
	movzbl	16(%rsp,%rax), %eax
	movb	%al, 15(%rsp)
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L5
	xorl	%ebp, %ebp
	testl	%r14d, %r14d
	sete	%bpl
.L5:
	leal	-2(%rbx), %eax
	movq	%r13, %rsi
	movq	%r12, %rdi
	movl	$1, %r14d
	cltq
	movzbl	16(%rsp,%rax), %eax
	movb	%al, 14(%rsp)
	call	strcmp@PLT
	movq	%r13, %rsi
	movq	%r12, %rdi
	testl	%eax, %eax
	leal	-3(%rbx), %eax
	cltq
	cmove	%r14d, %ebp
	movzbl	16(%rsp,%rax), %eax
	movb	%al, 13(%rsp)
	call	strcmp@PLT
	movq	%r13, %rsi
	movq	%r12, %rdi
	testl	%eax, %eax
	leal	-4(%rbx), %eax
	cltq
	cmove	%r14d, %ebp
	movzbl	16(%rsp,%rax), %eax
	movb	%al, 12(%rsp)
	call	strcmp@PLT
	movq	%r13, %rsi
	movq	%r12, %rdi
	testl	%eax, %eax
	leal	-5(%rbx), %eax
	cltq
	cmove	%r14d, %ebp
	movzbl	16(%rsp,%rax), %eax
	movb	%al, 11(%rsp)
	call	strcmp@PLT
	movl	%eax, %r8d
	leal	-6(%rbx), %eax
	cltq
	movzbl	16(%rsp,%rax), %eax
	movb	%al, 10(%rsp)
	testl	%r8d, %r8d
	je	.L11
	movq	%r13, %rsi
	movq	%r12, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L11
	leal	-7(%rbx), %edx
	movq	%r13, %rsi
	movq	%r12, %rdi
	movslq	%edx, %rdx
	movzbl	16(%rsp,%rdx), %eax
	movb	%al, 9(%rsp)
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L11
	andb	$1, %bpl
	jne	.L11
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L12:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	subq	$-128, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L23:
	.cfi_restore_state
	xorl	%ebx, %ebx
	jmp	.L3
.L24:
	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	"keyence"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	movl	$100, %esi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	addq	$-128, %rsp
	.cfi_def_cfa_offset 176
	movq	stdin(%rip), %rdx
	movq	%fs:40, %rax
	movq	%rax, 120(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	movq	%rbx, %rdi
	call	fgets@PLT
	xorl	%eax, %eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	addq	$1, %rax
	cmpq	$100, %rax
	je	.L23
.L4:
	cmpb	$0, (%rbx,%rax)
	jne	.L2
	leal	-1(%rax), %ebx
.L3:
	movl	16(%rsp), %eax
	leaq	9(%rsp), %r12
	movl	$1, %ebp
	leaq	.LC0(%rip), %r13
	movq	%r13, %rsi
	movq	%r12, %rdi
	movl	%eax, 9(%rsp)
	movzwl	20(%rsp), %eax
	movw	%ax, 13(%rsp)
	movzbl	22(%rsp), %eax
	movb	%al, 15(%rsp)
	call	strcmp@PLT
	movq	%r13, %rsi
	movq	%r12, %rdi
	movl	%eax, %r14d
	leal	-1(%rbx), %eax
	cltq
	movzbl	16(%rsp,%rax), %eax
	movb	%al, 15(%rsp)
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L5
	xorl	%ebp, %ebp
	testl	%r14d, %r14d
	sete	%bpl
.L5:
	leal	-2(%rbx), %eax
	movq	%r13, %rsi
	movq	%r12, %rdi
	movl	$1, %r14d
	cltq
	movzbl	16(%rsp,%rax), %eax
	movb	%al, 14(%rsp)
	call	strcmp@PLT
	movq	%r13, %rsi
	movq	%r12, %rdi
	testl	%eax, %eax
	leal	-3(%rbx), %eax
	cltq
	cmove	%r14d, %ebp
	movzbl	16(%rsp,%rax), %eax
	movb	%al, 13(%rsp)
	call	strcmp@PLT
	movq	%r13, %rsi
	movq	%r12, %rdi
	testl	%eax, %eax
	leal	-4(%rbx), %eax
	cltq
	cmove	%r14d, %ebp
	movzbl	16(%rsp,%rax), %eax
	movb	%al, 12(%rsp)
	call	strcmp@PLT
	movq	%r13, %rsi
	movq	%r12, %rdi
	testl	%eax, %eax
	leal	-5(%rbx), %eax
	cltq
	cmove	%r14d, %ebp
	movzbl	16(%rsp,%rax), %eax
	movb	%al, 11(%rsp)
	call	strcmp@PLT
	movl	%eax, %r8d
	leal	-6(%rbx), %eax
	cltq
	movzbl	16(%rsp,%rax), %eax
	movb	%al, 10(%rsp)
	testl	%r8d, %r8d
	je	.L11
	movq	%r13, %rsi
	movq	%r12, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L11
	leal	-7(%rbx), %edx
	movq	%r13, %rsi
	movq	%r12, %rdi
	movslq	%edx, %rdx
	movzbl	16(%rsp,%rdx), %eax
	movb	%al, 9(%rsp)
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L11
	andb	$1, %bpl
	jne	.L11
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L12:
	movq	120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	subq	$-128, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L23:
	.cfi_restore_state
	xorl	%ebx, %ebx
	jmp	.L3
.L24:
	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>

int main(){
    char s0[100];
    char s1[7];
    fgets(s0, 100, stdin);
    int n = 0;
    int r = 0;
    for(int i = 0; i<100; i++){
        if(s0[i] == '\0'){
            n = i-1;
            break;
        }
    }
    for(int i = 0; i < 7; i++){
        s1[i] = s0[i];
    }
    if(strcmp(s1,"keyence") == 0) r = 1;
    
    s1[6] = s0[n-1];
    if(strcmp(s1,"keyence") == 0) r = 1;
    
    s1[5] = s0[n-2];
    if(strcmp(s1,"keyence") == 0) r = 1;

    s1[4] = s0[n-3];
    if(strcmp(s1,"keyence") == 0) r = 1;

    s1[3] = s0[n-4];
    if(strcmp(s1,"keyence") == 0) r = 1;
    
    s1[2] = s0[n-5];
    if(strcmp(s1,"keyence") == 0) r = 1;

    s1[1] = s0[n-6];
    if(strcmp(s1,"keyence") == 0) r = 1;

    s1[0] = s0[n-7];
    if(strcmp(s1,"keyence") == 0) r = 1;

    if (r == 1)
    printf("%s\n", "YES");
    else
    printf("%s\n", "NO");
    return 0;
}
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 unoptimized 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 s0[100];
    char s1[7];
    fgets(s0, 100, stdin);
    int n = 0;
    int r = 0;
    for(int i = 0; i<100; i++){
        if(s0[i] == '\0'){
            n = i-1;
            break;
        }
    }
    for(int i = 0; i < 7; i++){
        s1[i] = s0[i];
    }
    if(strcmp(s1,"keyence") == 0) r = 1;
    
    s1[6] = s0[n-1];
    if(strcmp(s1,"keyence") == 0) r = 1;
    
    s1[5] = s0[n-2];
    if(strcmp(s1,"keyence") == 0) r = 1;

    s1[4] = s0[n-3];
    if(strcmp(s1,"keyence") == 0) r = 1;

    s1[3] = s0[n-4];
    if(strcmp(s1,"keyence") == 0) r = 1;
    
    s1[2] = s0[n-5];
    if(strcmp(s1,"keyence") == 0) r = 1;

    s1[1] = s0[n-6];
    if(strcmp(s1,"keyence") == 0) r = 1;

    s1[0] = s0[n-7];
    if(strcmp(s1,"keyence") == 0) r = 1;

    if (r == 1)
    printf("%s\n", "YES");
    else
    printf("%s\n", "NO");
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"keyence"
.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
	subq	$144, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rdx
	leaq	-112(%rbp), %rax
	movl	$100, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movl	$0, -136(%rbp)
	movl	$0, -132(%rbp)
	movl	$0, -128(%rbp)
	jmp	.L2
.L5:
	movl	-128(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L3
	movl	-128(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -136(%rbp)
	jmp	.L4
.L3:
	addl	$1, -128(%rbp)
.L2:
	cmpl	$99, -128(%rbp)
	jle	.L5
.L4:
	movl	$0, -124(%rbp)
	jmp	.L6
.L7:
	movl	-124(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-124(%rbp), %eax
	cltq
	movb	%dl, -119(%rbp,%rax)
	addl	$1, -124(%rbp)
.L6:
	cmpl	$6, -124(%rbp)
	jle	.L7
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L8
	movl	$1, -132(%rbp)
.L8:
	movl	-136(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -113(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L9
	movl	$1, -132(%rbp)
.L9:
	movl	-136(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -114(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L10
	movl	$1, -132(%rbp)
.L10:
	movl	-136(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -115(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L11
	movl	$1, -132(%rbp)
.L11:
	movl	-136(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -116(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L12
	movl	$1, -132(%rbp)
.L12:
	movl	-136(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -117(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L13
	movl	$1, -132(%rbp)
.L13:
	movl	-136(%rbp), %eax
	subl	$6, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -118(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L14
	movl	$1, -132(%rbp)
.L14:
	movl	-136(%rbp), %eax
	subl	$7, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -119(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L15
	movl	$1, -132(%rbp)
.L15:
	cmpl	$1, -132(%rbp)
	jne	.L16
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L17
.L16:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L17:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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	"keyence"
.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
	subq	$144, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	stdin(%rip), %rdx
	leaq	-112(%rbp), %rax
	movl	$100, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movl	$0, -136(%rbp)
	movl	$0, -132(%rbp)
	movl	$0, -128(%rbp)
	jmp	.L2
.L5:
	movl	-128(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L3
	movl	-128(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -136(%rbp)
	jmp	.L4
.L3:
	addl	$1, -128(%rbp)
.L2:
	cmpl	$99, -128(%rbp)
	jle	.L5
.L4:
	movl	$0, -124(%rbp)
	jmp	.L6
.L7:
	movl	-124(%rbp), %eax
	cltq
	movzbl	-112(%rbp,%rax), %edx
	movl	-124(%rbp), %eax
	cltq
	movb	%dl, -119(%rbp,%rax)
	addl	$1, -124(%rbp)
.L6:
	cmpl	$6, -124(%rbp)
	jle	.L7
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L8
	movl	$1, -132(%rbp)
.L8:
	movl	-136(%rbp), %eax
	subl	$1, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -113(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L9
	movl	$1, -132(%rbp)
.L9:
	movl	-136(%rbp), %eax
	subl	$2, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -114(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L10
	movl	$1, -132(%rbp)
.L10:
	movl	-136(%rbp), %eax
	subl	$3, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -115(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L11
	movl	$1, -132(%rbp)
.L11:
	movl	-136(%rbp), %eax
	subl	$4, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -116(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L12
	movl	$1, -132(%rbp)
.L12:
	movl	-136(%rbp), %eax
	subl	$5, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -117(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L13
	movl	$1, -132(%rbp)
.L13:
	movl	-136(%rbp), %eax
	subl	$6, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -118(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L14
	movl	$1, -132(%rbp)
.L14:
	movl	-136(%rbp), %eax
	subl	$7, %eax
	cltq
	movzbl	-112(%rbp,%rax), %eax
	movb	%al, -119(%rbp)
	leaq	-119(%rbp), %rax
	leaq	.LC0(%rip), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L15
	movl	$1, -132(%rbp)
.L15:
	cmpl	$1, -132(%rbp)
	jne	.L16
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L17
.L16:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L17:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	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:
