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>
#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");
}```

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	%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:
```

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	%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
```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	%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:
```
```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");
}```
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>
#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");
}```

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>
#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");
}```

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	%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:
```

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	%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:
```