Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/*
 * main.c
 *
 *  Created on: 2019/01/13
 *      Author: family
 */


#include <stdio.h>
#include <stdlib.h>
#include <string.h>

char moji[101] = {0};

int main()
{
    int length = 0;
    char keyence[8] = {0};
    char answer[8] = "keyence\n";
    int i = 0;

    scanf("%s",&moji[0]);
    length = strlen(moji);
//    printf("length=%d moji=%s\n", length, moji);


    for (i = 0; i < 8; i++) {
 	    strncpy(&keyence[0], &moji[0], 7 - i);
//   		printf("%s\n", &moji[0]);
        if (i == 0) {

        } else if ( i == 7) {
            strncpy(&keyence[0], &moji[length - i], i);
//       		printf("%s\n", &moji[length - i]);
        } else {
            strncpy(&keyence[7 - i], &moji[length - i], i);
//       		printf("%s %d\n", &moji[length - (i) ], length - (i));
        }

   	    if (strncmp(answer, keyence, 7) == 0) {
//    		printf("%s\n", keyence);
    		printf("YES\n");
    		return 0;
    	} else {
//       		printf("--%s\n", keyence);
    	}
   	    memset(keyence,0, 7);
    }

	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:
.LFB51:
	.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
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	$7, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	moji(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rsi
	xorl	%ebx, %ebx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %r15
	leaq	32(%rsp), %r14
	movabsq	$749114238827062635, %rax
	movq	%rax, 32(%rsp)
	xorl	%eax, %eax
	movq	$0, 24(%rsp)
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rax, 8(%rsp)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	cmpl	$7, %ebx
	je	.L24
	movl	8(%rsp), %esi
	leaq	31(%rsp), %rdi
	movq	%rbx, %rdx
	subq	%rbx, %rdi
	subl	%ebx, %esi
	movslq	%esi, %rsi
	addq	%rbp, %rsi
	call	strncpy@PLT
	movl	$7, %edx
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L6
	xorl	%edx, %edx
	movl	$0, (%r15)
	movw	%dx, 4(%r15)
	movb	$0, 6(%r15)
	cmpl	$8, %r12d
	je	.L4
.L8:
	addq	$1, %rbx
	addl	$1, %r12d
.L7:
	movq	%r13, %rdx
	movl	$8, %ecx
	movq	%rbp, %rsi
	movq	%r15, %rdi
	subq	%rbx, %rdx
	call	__strncpy_chk@PLT
	testq	%rbx, %rbx
	jne	.L25
	movl	$7, %edx
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L6
	xorl	%eax, %eax
	movl	$0, (%r15)
	movw	%ax, 4(%r15)
	movb	$0, 6(%r15)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L24:
	movl	8(%rsp), %r13d
	movl	$7, %edx
	movq	%r15, %rdi
	subl	$7, %r13d
	movslq	%r13d, %r13
	leaq	0(%rbp,%r13), %rsi
	call	strncpy@PLT
	movl	$7, %edx
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L6
.L4:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L5:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$56, %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
.L6:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	moji
	.bss
	.align 32
	.type	moji, @object
	.size	moji, 101
moji:
	.zero	101
	.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:
.LFB51:
	.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
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	$7, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	moji(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rsi
	xorl	%ebx, %ebx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %r15
	leaq	32(%rsp), %r14
	movabsq	$749114238827062635, %rax
	movq	%rax, 32(%rsp)
	xorl	%eax, %eax
	movq	$0, 24(%rsp)
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rax, 8(%rsp)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	cmpl	$7, %ebx
	je	.L24
	movl	8(%rsp), %esi
	leaq	31(%rsp), %rdi
	movq	%rbx, %rdx
	subq	%rbx, %rdi
	subl	%ebx, %esi
	movslq	%esi, %rsi
	addq	%rbp, %rsi
	call	strncpy@PLT
	movl	$7, %edx
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L6
	xorl	%edx, %edx
	movl	$0, (%r15)
	movw	%dx, 4(%r15)
	movb	$0, 6(%r15)
	cmpl	$8, %r12d
	je	.L4
.L8:
	addq	$1, %rbx
	addl	$1, %r12d
.L7:
	movq	%r13, %rdx
	movl	$8, %ecx
	movq	%rbp, %rsi
	movq	%r15, %rdi
	subq	%rbx, %rdx
	call	__strncpy_chk@PLT
	testq	%rbx, %rbx
	jne	.L25
	movl	$7, %edx
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L6
	xorl	%eax, %eax
	movl	$0, (%r15)
	movw	%ax, 4(%r15)
	movb	$0, 6(%r15)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L24:
	movl	8(%rsp), %r13d
	movl	$7, %edx
	movq	%r15, %rdi
	subl	$7, %r13d
	movslq	%r13d, %r13
	leaq	0(%rbp,%r13), %rsi
	call	strncpy@PLT
	movl	$7, %edx
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L6
.L4:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L5:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$56, %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
.L6:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	moji
	.bss
	.align 32
	.type	moji, @object
	.size	moji, 101
moji:
	.zero	101
	.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:
.LFB51:
	.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
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	$7, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	moji(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rsi
	xorl	%ebx, %ebx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %r15
	leaq	32(%rsp), %r14
	movabsq	$749114238827062635, %rax
	movq	%rax, 32(%rsp)
	xorl	%eax, %eax
	movq	$0, 24(%rsp)
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rax, 8(%rsp)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	cmpl	$7, %ebx
	je	.L24
	movl	8(%rsp), %esi
	leaq	31(%rsp), %rdi
	movq	%rbx, %rdx
	subq	%rbx, %rdi
	subl	%ebx, %esi
	movslq	%esi, %rsi
	addq	%rbp, %rsi
	call	strncpy@PLT
	movl	$7, %edx
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L6
	xorl	%edx, %edx
	movl	$0, (%r15)
	movw	%dx, 4(%r15)
	movb	$0, 6(%r15)
	cmpl	$8, %r12d
	je	.L4
.L8:
	addq	$1, %rbx
	addl	$1, %r12d
.L7:
	movq	%r13, %rdx
	movl	$8, %ecx
	movq	%rbp, %rsi
	movq	%r15, %rdi
	subq	%rbx, %rdx
	call	__strncpy_chk@PLT
	testq	%rbx, %rbx
	jne	.L25
	movl	$7, %edx
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L6
	xorl	%eax, %eax
	movl	$0, (%r15)
	movw	%ax, 4(%r15)
	movb	$0, 6(%r15)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L24:
	movl	8(%rsp), %r13d
	movl	$7, %edx
	movq	%r15, %rdi
	subl	$7, %r13d
	movslq	%r13d, %r13
	leaq	0(%rbp,%r13), %rsi
	call	strncpy@PLT
	movl	$7, %edx
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L6
.L4:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L5:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$56, %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
.L6:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	moji
	.bss
	.align 32
	.type	moji, @object
	.size	moji, 101
moji:
	.zero	101
	.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
/*
 * main.c
 *
 *  Created on: 2019/01/13
 *      Author: family
 */


#include <stdio.h>
#include <stdlib.h>
#include <string.h>

char moji[101] = {0};

int main()
{
    int length = 0;
    char keyence[8] = {0};
    char answer[8] = "keyence\n";
    int i = 0;

    scanf("%s",&moji[0]);
    length = strlen(moji);
//    printf("length=%d moji=%s\n", length, moji);


    for (i = 0; i < 8; i++) {
 	    strncpy(&keyence[0], &moji[0], 7 - i);
//   		printf("%s\n", &moji[0]);
        if (i == 0) {

        } else if ( i == 7) {
            strncpy(&keyence[0], &moji[length - i], i);
//       		printf("%s\n", &moji[length - i]);
        } else {
            strncpy(&keyence[7 - i], &moji[length - i], i);
//       		printf("%s %d\n", &moji[length - (i) ], length - (i));
        }

   	    if (strncmp(answer, keyence, 7) == 0) {
//    		printf("%s\n", keyence);
    		printf("YES\n");
    		return 0;
    	} else {
//       		printf("--%s\n", keyence);
    	}
   	    memset(keyence,0, 7);
    }

	printf("NO\n");
	return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
/*
 * main.c
 *
 *  Created on: 2019/01/13
 *      Author: family
 */


#include <stdio.h>
#include <stdlib.h>
#include <string.h>

char moji[101] = {0};

int main()
{
    int length = 0;
    char keyence[8] = {0};
    char answer[8] = "keyence\n";
    int i = 0;

    scanf("%s",&moji[0]);
    length = strlen(moji);
//    printf("length=%d moji=%s\n", length, moji);


    for (i = 0; i < 8; i++) {
 	    strncpy(&keyence[0], &moji[0], 7 - i);
//   		printf("%s\n", &moji[0]);
        if (i == 0) {

        } else if ( i == 7) {
            strncpy(&keyence[0], &moji[length - i], i);
//       		printf("%s\n", &moji[length - i]);
        } else {
            strncpy(&keyence[7 - i], &moji[length - i], i);
//       		printf("%s %d\n", &moji[length - (i) ], length - (i));
        }

   	    if (strncmp(answer, keyence, 7) == 0) {
//    		printf("%s\n", keyence);
    		printf("YES\n");
    		return 0;
    	} else {
//       		printf("--%s\n", keyence);
    	}
   	    memset(keyence,0, 7);
    }

	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
/*
 * main.c
 *
 *  Created on: 2019/01/13
 *      Author: family
 */


#include <stdio.h>
#include <stdlib.h>
#include <string.h>

char moji[101] = {0};

int main()
{
    int length = 0;
    char keyence[8] = {0};
    char answer[8] = "keyence\n";
    int i = 0;

    scanf("%s",&moji[0]);
    length = strlen(moji);
//    printf("length=%d moji=%s\n", length, moji);


    for (i = 0; i < 8; i++) {
 	    strncpy(&keyence[0], &moji[0], 7 - i);
//   		printf("%s\n", &moji[0]);
        if (i == 0) {

        } else if ( i == 7) {
            strncpy(&keyence[0], &moji[length - i], i);
//       		printf("%s\n", &moji[length - i]);
        } else {
            strncpy(&keyence[7 - i], &moji[length - i], i);
//       		printf("%s %d\n", &moji[length - (i) ], length - (i));
        }

   	    if (strncmp(answer, keyence, 7) == 0) {
//    		printf("%s\n", keyence);
    		printf("YES\n");
    		return 0;
    	} else {
//       		printf("--%s\n", keyence);
    	}
   	    memset(keyence,0, 7);
    }

	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:
.LFB51:
	.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
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	$7, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	moji(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rsi
	xorl	%ebx, %ebx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %r15
	leaq	32(%rsp), %r14
	movabsq	$749114238827062635, %rax
	movq	%rax, 32(%rsp)
	xorl	%eax, %eax
	movq	$0, 24(%rsp)
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rax, 8(%rsp)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	cmpl	$7, %ebx
	je	.L24
	movl	8(%rsp), %esi
	leaq	31(%rsp), %rdi
	movq	%rbx, %rdx
	subq	%rbx, %rdi
	subl	%ebx, %esi
	movslq	%esi, %rsi
	addq	%rbp, %rsi
	call	strncpy@PLT
	movl	$7, %edx
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L6
	xorl	%edx, %edx
	movl	$0, (%r15)
	movw	%dx, 4(%r15)
	movb	$0, 6(%r15)
	cmpl	$8, %r12d
	je	.L4
.L8:
	addq	$1, %rbx
	addl	$1, %r12d
.L7:
	movq	%r13, %rdx
	movl	$8, %ecx
	movq	%rbp, %rsi
	movq	%r15, %rdi
	subq	%rbx, %rdx
	call	__strncpy_chk@PLT
	testq	%rbx, %rbx
	jne	.L25
	movl	$7, %edx
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L6
	xorl	%eax, %eax
	movl	$0, (%r15)
	movw	%ax, 4(%r15)
	movb	$0, 6(%r15)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L24:
	movl	8(%rsp), %r13d
	movl	$7, %edx
	movq	%r15, %rdi
	subl	$7, %r13d
	movslq	%r13d, %r13
	leaq	0(%rbp,%r13), %rsi
	call	strncpy@PLT
	movl	$7, %edx
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L6
.L4:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L5:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$56, %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
.L6:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	moji
	.bss
	.align 32
	.type	moji, @object
	.size	moji, 101
moji:
	.zero	101
	.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:
.LFB51:
	.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
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movl	$7, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	moji(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rbp, %rsi
	xorl	%ebx, %ebx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movq	%fs:40, %rax
	movq	%rax, 40(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %r15
	leaq	32(%rsp), %r14
	movabsq	$749114238827062635, %rax
	movq	%rax, 32(%rsp)
	xorl	%eax, %eax
	movq	$0, 24(%rsp)
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	strlen@PLT
	movq	%rax, 8(%rsp)
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L25:
	cmpl	$7, %ebx
	je	.L24
	movl	8(%rsp), %esi
	leaq	31(%rsp), %rdi
	movq	%rbx, %rdx
	subq	%rbx, %rdi
	subl	%ebx, %esi
	movslq	%esi, %rsi
	addq	%rbp, %rsi
	call	strncpy@PLT
	movl	$7, %edx
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L6
	xorl	%edx, %edx
	movl	$0, (%r15)
	movw	%dx, 4(%r15)
	movb	$0, 6(%r15)
	cmpl	$8, %r12d
	je	.L4
.L8:
	addq	$1, %rbx
	addl	$1, %r12d
.L7:
	movq	%r13, %rdx
	movl	$8, %ecx
	movq	%rbp, %rsi
	movq	%r15, %rdi
	subq	%rbx, %rdx
	call	__strncpy_chk@PLT
	testq	%rbx, %rbx
	jne	.L25
	movl	$7, %edx
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L6
	xorl	%eax, %eax
	movl	$0, (%r15)
	movw	%ax, 4(%r15)
	movb	$0, 6(%r15)
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L24:
	movl	8(%rsp), %r13d
	movl	$7, %edx
	movq	%r15, %rdi
	subl	$7, %r13d
	movslq	%r13d, %r13
	leaq	0(%rbp,%r13), %rsi
	call	strncpy@PLT
	movl	$7, %edx
	movq	%r15, %rsi
	movq	%r14, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L6
.L4:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L5:
	movq	40(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L26
	addq	$56, %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
.L6:
	.cfi_restore_state
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.size	main, .-main
	.globl	moji
	.bss
	.align 32
	.type	moji, @object
	.size	moji, 101
moji:
	.zero	101
	.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:
```