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>
#define rep(i,n) for(int i=0; i<(int)(n); i++)

int main(){
    char s[105]; scanf("%s",s);
    char c[10] = {"keyence"};
    int n = strlen(s);
    int m = strlen(c);
    rep(i,m+1){
        char tc[10]={0};
        strncpy(tc,s,i);
        strncpy(tc+i,s+i+(n-m),m-i);
        if(strcmp(tc,c)==0){
            puts("YES");
            return 0;
        }
    }

    puts("NO");
}```

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
	subq	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movabsq	$28538298447783275, %rax
	movq	%rax, -148(%rbp)
	movw	$0, -140(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -156(%rbp)
	leaq	-148(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -152(%rbp)
	movl	$0, -160(%rbp)
	jmp	.L2
.L5:
	movq	$0, -138(%rbp)
	movw	$0, -130(%rbp)
	movl	-160(%rbp), %eax
	movslq	%eax, %rdx
	leaq	-128(%rbp), %rcx
	leaq	-138(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncpy@PLT
	movl	-152(%rbp), %eax
	subl	-160(%rbp), %eax
	cltq
	movl	-160(%rbp), %edx
	movslq	%edx, %rcx
	movl	-156(%rbp), %edx
	subl	-152(%rbp), %edx
	movslq	%edx, %rdx
	addq	%rdx, %rcx
	leaq	-128(%rbp), %rdx
	leaq	(%rdx,%rcx), %rsi
	movl	-160(%rbp), %edx
	movslq	%edx, %rdx
	leaq	-138(%rbp), %rcx
	addq	%rdx, %rcx
	movq	%rax, %rdx
	movq	%rcx, %rdi
	call	strncpy@PLT
	leaq	-148(%rbp), %rdx
	leaq	-138(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L3
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L4
.L3:
	addl	$1, -160(%rbp)
.L2:
	movl	-152(%rbp), %eax
	cmpl	-160(%rbp), %eax
	jge	.L5
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L4:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	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	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	$7, %r14d
	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
	xorl	%ebx, %ebx
	subq	$168, %rsp
	.cfi_def_cfa_offset 224
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %r12
	leaq	22(%rsp), %rbp
	movq	%r12, %rsi
	leaq	12(%rsp), %r15
	call	__isoc99_scanf@PLT
	xorl	%edx, %edx
	movq	%r12, %rdi
	movabsq	$28538298447783275, %rax
	movq	%rax, 12(%rsp)
	movw	%dx, 20(%rsp)
	call	strlen@PLT
	leal	-7(%rax), %r13d
	movslq	%r13d, %r13
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movl	$10, %ecx
	movq	%rbx, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	movw	%ax, 30(%rsp)
	movq	$0, 22(%rsp)
	call	__strncpy_chk@PLT
	movq	%r14, %rdx
	leaq	(%r12,%r13), %rsi
	leaq	0(%rbp,%rbx), %rdi
	addq	%rbx, %rsi
	subq	%rbx, %rdx
	call	strncpy@PLT
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L9
	addq	$1, %rbx
	cmpq	$8, %rbx
	jne	.L4
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L3:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	addq	$168, %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
.L9:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L10:
	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	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	$7, %r14d
	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
	xorl	%ebx, %ebx
	subq	$168, %rsp
	.cfi_def_cfa_offset 224
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	32(%rsp), %r12
	leaq	22(%rsp), %rbp
	movq	%r12, %rsi
	leaq	12(%rsp), %r15
	call	__isoc99_scanf@PLT
	xorl	%edx, %edx
	movq	%r12, %rdi
	movabsq	$28538298447783275, %rax
	movq	%rax, 12(%rsp)
	movw	%dx, 20(%rsp)
	call	strlen@PLT
	leal	-7(%rax), %r13d
	movslq	%r13d, %r13
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movl	$10, %ecx
	movq	%rbx, %rdx
	movq	%r12, %rsi
	movq	%rbp, %rdi
	movw	%ax, 30(%rsp)
	movq	$0, 22(%rsp)
	call	__strncpy_chk@PLT
	movq	%r14, %rdx
	leaq	(%r12,%r13), %rsi
	leaq	0(%rbp,%rbx), %rdi
	addq	%rbx, %rsi
	subq	%rbx, %rdx
	call	strncpy@PLT
	movq	%r15, %rsi
	movq	%rbp, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	je	.L9
	addq	$1, %rbx
	cmpq	$8, %rbx
	jne	.L4
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L3:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L10
	addq	$168, %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
.L9:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L10:
	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>
#define rep(i,n) for(int i=0; i<(int)(n); i++)

int main(){
    char s[105]; scanf("%s",s);
    char c[10] = {"keyence"};
    int n = strlen(s);
    int m = strlen(c);
    rep(i,m+1){
        char tc[10]={0};
        strncpy(tc,s,i);
        strncpy(tc+i,s+i+(n-m),m-i);
        if(strcmp(tc,c)==0){
            puts("YES");
            return 0;
        }
    }

    puts("NO");
}
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>
#define rep(i,n) for(int i=0; i<(int)(n); i++)

int main(){
    char s[105]; scanf("%s",s);
    char c[10] = {"keyence"};
    int n = strlen(s);
    int m = strlen(c);
    rep(i,m+1){
        char tc[10]={0};
        strncpy(tc,s,i);
        strncpy(tc+i,s+i+(n-m),m-i);
        if(strcmp(tc,c)==0){
            puts("YES");
            return 0;
        }
    }

    puts("NO");
}```

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
	subq	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movabsq	$28538298447783275, %rax
	movq	%rax, -148(%rbp)
	movw	$0, -140(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -156(%rbp)
	leaq	-148(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -152(%rbp)
	movl	$0, -160(%rbp)
	jmp	.L2
.L5:
	movq	$0, -138(%rbp)
	movw	$0, -130(%rbp)
	movl	-160(%rbp), %eax
	movslq	%eax, %rdx
	leaq	-128(%rbp), %rcx
	leaq	-138(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncpy@PLT
	movl	-152(%rbp), %eax
	subl	-160(%rbp), %eax
	cltq
	movl	-160(%rbp), %edx
	movslq	%edx, %rcx
	movl	-156(%rbp), %edx
	subl	-152(%rbp), %edx
	movslq	%edx, %rdx
	addq	%rdx, %rcx
	leaq	-128(%rbp), %rdx
	leaq	(%rdx,%rcx), %rsi
	movl	-160(%rbp), %edx
	movslq	%edx, %rdx
	leaq	-138(%rbp), %rcx
	addq	%rdx, %rcx
	movq	%rax, %rdx
	movq	%rcx, %rdi
	call	strncpy@PLT
	leaq	-148(%rbp), %rdx
	leaq	-138(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L3
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L4
.L3:
	addl	$1, -160(%rbp)
.L2:
	movl	-152(%rbp), %eax
	cmpl	-160(%rbp), %eax
	jge	.L5
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L4:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	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
	subq	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-128(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movabsq	$28538298447783275, %rax
	movq	%rax, -148(%rbp)
	movw	$0, -140(%rbp)
	leaq	-128(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -156(%rbp)
	leaq	-148(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -152(%rbp)
	movl	$0, -160(%rbp)
	jmp	.L2
.L5:
	movq	$0, -138(%rbp)
	movw	$0, -130(%rbp)
	movl	-160(%rbp), %eax
	movslq	%eax, %rdx
	leaq	-128(%rbp), %rcx
	leaq	-138(%rbp), %rax
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncpy@PLT
	movl	-152(%rbp), %eax
	subl	-160(%rbp), %eax
	cltq
	movl	-160(%rbp), %edx
	movslq	%edx, %rcx
	movl	-156(%rbp), %edx
	subl	-152(%rbp), %edx
	movslq	%edx, %rdx
	addq	%rdx, %rcx
	leaq	-128(%rbp), %rdx
	leaq	(%rdx,%rcx), %rsi
	movl	-160(%rbp), %edx
	movslq	%edx, %rdx
	leaq	-138(%rbp), %rcx
	addq	%rdx, %rcx
	movq	%rax, %rdx
	movq	%rcx, %rdi
	call	strncpy@PLT
	leaq	-148(%rbp), %rdx
	leaq	-138(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	strcmp@PLT
	testl	%eax, %eax
	jne	.L3
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L4
.L3:
	addl	$1, -160(%rbp)
.L2:
	movl	-152(%rbp), %eax
	cmpl	-160(%rbp), %eax
	jge	.L5
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
.L4:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	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:
