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<stdlib.h>

#define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};}
//pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ

#define INFTY 999999

//char型のポインタ(=配列と意味は同じ)をString型と定義
typedef char* String;

//文字列の長さを求める関数
int string_len(String str){
    int len=0;
    while(str[len]!=0){
        len++;
    }
    return len;
}

//文字列を標準入力から読み込み、それをString型のメモリを確保し直してくれる関数
String string_input(void){
    int i,len;
    char buf[200];
    String str;
    scanf("%s",buf);//buf=入力した文字列が入るchar型の配列
    //ここまでは文字列の長さがわからなかったから、一旦1000個分のメモリを用意しそこに入力させる
    
    len=string_len(buf);//len=文字列の長さを表すint型変数
    NEW(str,len+1);//strはただのポインタだから、ここでNEWを使ってメモリを確保しなくちゃいけない
    for(i=0;i<len;i++){
        str[i]=buf[i];
    }
    str[len]=0;
    
    return str;
}

int main(void){
    String S;
    S=string_input();

    String T="keyence";

    int n=string_len(S);

    //keyenceが分割or最初にあるかどうか
    if(S[0]==T[0]){
        int k=1;
        if(S[1]==T[1]){
            k++;
            if(S[2]==T[2]){
                k++;
                if(S[3]==T[3]){
                    k++;
                    if(S[4]==T[4]){
                        k++;
                        if(S[5]==T[5]){
                            k++;
                            if(S[6]==T[6]){
                                k++;
                            }
                        }
                    }
                }
            }
        }

        if(k==7){
            printf("YES\n");
        }
        else{
            int d=7-k;
            int ans=1;
            while(d!=0){
                if(S[n-d]==T[k]){
                    d--;
                    k++;
                }
                else{
                    printf("NO\n");
                    ans=0;
                    break;
                }
            }
            if(ans==1){
                printf("YES\n");
            }
        }

    }
    //そうじゃ無いなら最後にあるしかない
    else{
        if(S[n-7]==T[0]&&S[n-6]==T[1]&&S[n-5]==T[2]&&S[n-4]==T[3]&&S[n-3]==T[4]&&S[n-2]==T[5]&&S[n-1]==T[6]){
            printf("YES\n");
        }
        else{
            printf("NO\n");
        }
    }
    
    return 0;
    
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	string_len
	.type	string_len, @function
string_len:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L3:
	addl	$1, -4(%rbp)
.L2:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L3
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	string_len, .-string_len
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"not enough memory"
	.text
	.globl	string_input
	.type	string_input, @function
string_input:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-208(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-208(%rbp), %rax
	movq	%rax, %rdi
	call	string_len
	movl	%eax, -220(%rbp)
	movl	-220(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -216(%rbp)
	cmpq	$0, -216(%rbp)
	jne	.L6
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$1, %edi
	call	exit@PLT
.L6:
	movl	$0, -224(%rbp)
	jmp	.L7
.L8:
	movl	-224(%rbp), %eax
	movslq	%eax, %rdx
	movq	-216(%rbp), %rax
	addq	%rax, %rdx
	movl	-224(%rbp), %eax
	cltq
	movzbl	-208(%rbp,%rax), %eax
	movb	%al, (%rdx)
	addl	$1, -224(%rbp)
.L7:
	movl	-224(%rbp), %eax
	cmpl	-220(%rbp), %eax
	jl	.L8
	movl	-220(%rbp), %eax
	movslq	%eax, %rdx
	movq	-216(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	movq	-216(%rbp), %rax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	string_input, .-string_input
	.section	.rodata
.LC2:
	.string	"keyence"
.LC3:
	.string	"YES"
.LC4:
	.string	"NO"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	call	string_input
	movq	%rax, -16(%rbp)
	leaq	.LC2(%rip), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	string_len
	movl	%eax, -20(%rbp)
	movq	-16(%rbp), %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L12
	movl	$1, -32(%rbp)
	movq	-16(%rbp), %rax
	addq	$1, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	addl	$1, -32(%rbp)
	movq	-16(%rbp), %rax
	addq	$2, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$2, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	addl	$1, -32(%rbp)
	movq	-16(%rbp), %rax
	addq	$3, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$3, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	addl	$1, -32(%rbp)
	movq	-16(%rbp), %rax
	addq	$4, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$4, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	addl	$1, -32(%rbp)
	movq	-16(%rbp), %rax
	addq	$5, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$5, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	addl	$1, -32(%rbp)
	movq	-16(%rbp), %rax
	addq	$6, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$6, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	addl	$1, -32(%rbp)
.L13:
	cmpl	$7, -32(%rbp)
	jne	.L14
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L15
.L14:
	movl	$7, %eax
	subl	-32(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	$1, -24(%rbp)
	jmp	.L16
.L19:
	movl	-20(%rbp), %eax
	subl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-32(%rbp), %eax
	movslq	%eax, %rcx
	movq	-8(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L17
	subl	$1, -28(%rbp)
	addl	$1, -32(%rbp)
	jmp	.L16
.L17:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, -24(%rbp)
	jmp	.L18
.L16:
	cmpl	$0, -28(%rbp)
	jne	.L19
.L18:
	cmpl	$1, -24(%rbp)
	jne	.L15
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L15
.L12:
	movl	-20(%rbp), %eax
	cltq
	leaq	-7(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	-6(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	-5(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$2, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	-4(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$3, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	-3(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$4, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	-2(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$5, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	-1(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$6, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L15
.L20:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L15:
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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
	.p2align 4
	.globl	string_len
	.type	string_len, @function
string_len:
.LFB39:
	.cfi_startproc
	endbr64
	cmpb	$0, (%rdi)
	je	.L4
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, %r8d
	addq	$1, %rax
	cmpb	$0, -1(%rdi,%rax)
	jne	.L3
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%r8d, %r8d
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	string_len, .-string_len
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"not enough memory"
	.text
	.p2align 4
	.globl	string_input
	.type	string_input, @function
string_input:
.LFB40:
	.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	$216, %rsp
	.cfi_def_cfa_offset 240
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	cmpb	$0, (%rsp)
	je	.L8
	movl	$1, %eax
	leaq	-1(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%eax, %edi
	movq	%rax, %rbx
	addq	$1, %rax
	cmpb	$0, (%rdx,%rax)
	jne	.L9
	addl	$1, %edi
	movslq	%edi, %rdi
	call	malloc@PLT
	testq	%rax, %rax
	je	.L12
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movq	%rax, %r8
	addq	%rax, %rbx
.L11:
	movb	$0, (%rbx)
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$216, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movq	%r8, %rax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movl	$1, %edi
	call	malloc@PLT
	movq	%rax, %r8
	testq	%rax, %rax
	je	.L12
	movq	%rax, %rbx
	jmp	.L11
.L12:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	movl	$1, %edi
	call	exit@PLT
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	string_input, .-string_input
	.section	.rodata.str1.1
.LC2:
	.string	"YES"
.LC3:
	.string	"keyence"
.LC4:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	call	string_input
	movzbl	(%rax), %edi
	movq	%rax, %rdx
	testb	%dil, %dil
	je	.L32
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%eax, %ecx
	movq	%rax, %rsi
	addq	$1, %rax
	cmpb	$0, -1(%rdx,%rax)
	jne	.L24
	cmpb	$107, %dil
	je	.L53
.L23:
	cmpb	$107, -7(%rdx,%rsi)
	jne	.L29
	cmpb	$101, -6(%rdx,%rsi)
	je	.L54
.L29:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
.L51:
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L53:
	.cfi_restore_state
	cmpb	$101, 1(%rdx)
	movl	$1, %eax
	je	.L55
.L25:
	leal	-7(%rcx,%rax), %edi
	movslq	%eax, %r8
	leaq	.LC3(%rip), %rsi
	movslq	%edi, %rdi
	movzbl	(%rdx,%rdi), %edi
	cmpb	%dil, (%rsi,%r8)
	jne	.L29
	leal	1(%rax), %r8d
	leal	-6(%rcx,%rax), %edi
	movslq	%edi, %rdi
	movslq	%r8d, %r8
	movzbl	(%rdx,%rdi), %edi
	cmpb	%dil, (%rsi,%r8)
	jne	.L29
	movl	$5, %edi
	leal	2(%rax), %r8d
	subl	%eax, %edi
	je	.L28
	movl	%ecx, %r9d
	movslq	%r8d, %r8
	subl	%edi, %r9d
	movslq	%r9d, %rdi
	movzbl	(%rdx,%rdi), %edi
	cmpb	%dil, (%rsi,%r8)
	jne	.L29
	movl	$4, %edi
	leal	3(%rax), %r8d
	subl	%eax, %edi
	je	.L28
	movl	%ecx, %r9d
	movslq	%r8d, %r8
	subl	%edi, %r9d
	movslq	%r9d, %rdi
	movzbl	(%rdx,%rdi), %edi
	cmpb	%dil, (%rsi,%r8)
	jne	.L29
	movl	$3, %edi
	leal	4(%rax), %r8d
	subl	%eax, %edi
	je	.L28
	movl	%ecx, %r9d
	movslq	%r8d, %r8
	subl	%edi, %r9d
	movslq	%r9d, %r9
	movzbl	(%rdx,%r9), %r10d
	cmpb	%r10b, (%rsi,%r8)
	jne	.L29
	addl	$5, %eax
	subl	$1, %edi
	je	.L28
	subl	$1, %ecx
	cltq
	movslq	%ecx, %rcx
	movzbl	(%rsi,%rax), %eax
	cmpb	%al, (%rdx,%rcx)
	jne	.L29
.L28:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L51
.L54:
	cmpb	$121, -5(%rdx,%rsi)
	jne	.L29
	cmpb	$101, -4(%rdx,%rsi)
	jne	.L29
	cmpb	$110, -3(%rdx,%rsi)
	jne	.L29
	cmpb	$99, -2(%rdx,%rsi)
	jne	.L29
	cmpb	$101, -1(%rdx,%rsi)
	jne	.L29
	jmp	.L28
.L55:
	cmpb	$121, 2(%rdx)
	movl	$2, %eax
	jne	.L25
	cmpb	$101, 3(%rdx)
	movl	$3, %eax
	jne	.L25
	cmpb	$110, 4(%rdx)
	movl	$4, %eax
	jne	.L25
	cmpb	$99, 5(%rdx)
	movl	$5, %eax
	jne	.L25
	cmpb	$101, 6(%rdx)
	je	.L28
	leal	-1(%rcx), %eax
	cltq
	cmpb	$101, (%rdx,%rax)
	je	.L28
	jmp	.L29
.L32:
	xorl	%esi, %esi
	jmp	.L23
	.cfi_endproc
.LFE41:
	.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
	.p2align 4
	.globl	string_len
	.type	string_len, @function
string_len:
.LFB39:
	.cfi_startproc
	endbr64
	cmpb	$0, (%rdi)
	je	.L4
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, %r8d
	addq	$1, %rax
	cmpb	$0, -1(%rdi,%rax)
	jne	.L3
	movl	%r8d, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%r8d, %r8d
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	string_len, .-string_len
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"not enough memory"
	.text
	.p2align 4
	.globl	string_input
	.type	string_input, @function
string_input:
.LFB40:
	.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	$216, %rsp
	.cfi_def_cfa_offset 240
	movq	%fs:40, %rax
	movq	%rax, 200(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	cmpb	$0, (%rsp)
	je	.L8
	movl	$1, %eax
	leaq	-1(%rsp), %rdx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%eax, %edi
	movq	%rax, %rbx
	addq	$1, %rax
	cmpb	$0, (%rdx,%rax)
	jne	.L9
	addl	$1, %edi
	movslq	%edi, %rdi
	call	malloc@PLT
	testq	%rax, %rax
	je	.L12
	movq	%rbx, %rdx
	movq	%rbp, %rsi
	movq	%rax, %rdi
	call	memcpy@PLT
	movq	%rax, %r8
	addq	%rax, %rbx
.L11:
	movb	$0, (%rbx)
	movq	200(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$216, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movq	%r8, %rax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	movl	$1, %edi
	call	malloc@PLT
	movq	%rax, %r8
	testq	%rax, %rax
	je	.L12
	movq	%rax, %rbx
	jmp	.L11
.L12:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	movl	$1, %edi
	call	exit@PLT
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.size	string_input, .-string_input
	.section	.rodata.str1.1
.LC2:
	.string	"YES"
.LC3:
	.string	"keyence"
.LC4:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	call	string_input
	movzbl	(%rax), %edi
	movq	%rax, %rdx
	testb	%dil, %dil
	je	.L32
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L24:
	movl	%eax, %ecx
	movq	%rax, %rsi
	addq	$1, %rax
	cmpb	$0, -1(%rdx,%rax)
	jne	.L24
	cmpb	$107, %dil
	je	.L53
.L23:
	cmpb	$107, -7(%rdx,%rsi)
	jne	.L29
	cmpb	$101, -6(%rdx,%rsi)
	je	.L54
.L29:
	leaq	.LC4(%rip), %rdi
	call	puts@PLT
.L51:
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L53:
	.cfi_restore_state
	cmpb	$101, 1(%rdx)
	movl	$1, %eax
	je	.L55
.L25:
	leal	-7(%rcx,%rax), %edi
	movslq	%eax, %r8
	leaq	.LC3(%rip), %rsi
	movslq	%edi, %rdi
	movzbl	(%rdx,%rdi), %edi
	cmpb	%dil, (%rsi,%r8)
	jne	.L29
	leal	1(%rax), %r8d
	leal	-6(%rcx,%rax), %edi
	movslq	%edi, %rdi
	movslq	%r8d, %r8
	movzbl	(%rdx,%rdi), %edi
	cmpb	%dil, (%rsi,%r8)
	jne	.L29
	movl	$5, %edi
	leal	2(%rax), %r8d
	subl	%eax, %edi
	je	.L28
	movl	%ecx, %r9d
	movslq	%r8d, %r8
	subl	%edi, %r9d
	movslq	%r9d, %rdi
	movzbl	(%rdx,%rdi), %edi
	cmpb	%dil, (%rsi,%r8)
	jne	.L29
	movl	$4, %edi
	leal	3(%rax), %r8d
	subl	%eax, %edi
	je	.L28
	movl	%ecx, %r9d
	movslq	%r8d, %r8
	subl	%edi, %r9d
	movslq	%r9d, %rdi
	movzbl	(%rdx,%rdi), %edi
	cmpb	%dil, (%rsi,%r8)
	jne	.L29
	movl	$3, %edi
	leal	4(%rax), %r8d
	subl	%eax, %edi
	je	.L28
	movl	%ecx, %r9d
	movslq	%r8d, %r8
	subl	%edi, %r9d
	movslq	%r9d, %r9
	movzbl	(%rdx,%r9), %r10d
	cmpb	%r10b, (%rsi,%r8)
	jne	.L29
	addl	$5, %eax
	subl	$1, %edi
	je	.L28
	subl	$1, %ecx
	cltq
	movslq	%ecx, %rcx
	movzbl	(%rsi,%rax), %eax
	cmpb	%al, (%rdx,%rcx)
	jne	.L29
.L28:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L51
.L54:
	cmpb	$121, -5(%rdx,%rsi)
	jne	.L29
	cmpb	$101, -4(%rdx,%rsi)
	jne	.L29
	cmpb	$110, -3(%rdx,%rsi)
	jne	.L29
	cmpb	$99, -2(%rdx,%rsi)
	jne	.L29
	cmpb	$101, -1(%rdx,%rsi)
	jne	.L29
	jmp	.L28
.L55:
	cmpb	$121, 2(%rdx)
	movl	$2, %eax
	jne	.L25
	cmpb	$101, 3(%rdx)
	movl	$3, %eax
	jne	.L25
	cmpb	$110, 4(%rdx)
	movl	$4, %eax
	jne	.L25
	cmpb	$99, 5(%rdx)
	movl	$5, %eax
	jne	.L25
	cmpb	$101, 6(%rdx)
	je	.L28
	leal	-1(%rcx), %eax
	cltq
	cmpb	$101, (%rdx,%rax)
	je	.L28
	jmp	.L29
.L32:
	xorl	%esi, %esi
	jmp	.L23
	.cfi_endproc
.LFE41:
	.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<stdlib.h>

#define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};}
//pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ

#define INFTY 999999

//char型のポインタ(=配列と意味は同じ)をString型と定義
typedef char* String;

//文字列の長さを求める関数
int string_len(String str){
    int len=0;
    while(str[len]!=0){
        len++;
    }
    return len;
}

//文字列を標準入力から読み込み、それをString型のメモリを確保し直してくれる関数
String string_input(void){
    int i,len;
    char buf[200];
    String str;
    scanf("%s",buf);//buf=入力した文字列が入るchar型の配列
    //ここまでは文字列の長さがわからなかったから、一旦1000個分のメモリを用意しそこに入力させる
    
    len=string_len(buf);//len=文字列の長さを表すint型変数
    NEW(str,len+1);//strはただのポインタだから、ここでNEWを使ってメモリを確保しなくちゃいけない
    for(i=0;i<len;i++){
        str[i]=buf[i];
    }
    str[len]=0;
    
    return str;
}

int main(void){
    String S;
    S=string_input();

    String T="keyence";

    int n=string_len(S);

    //keyenceが分割or最初にあるかどうか
    if(S[0]==T[0]){
        int k=1;
        if(S[1]==T[1]){
            k++;
            if(S[2]==T[2]){
                k++;
                if(S[3]==T[3]){
                    k++;
                    if(S[4]==T[4]){
                        k++;
                        if(S[5]==T[5]){
                            k++;
                            if(S[6]==T[6]){
                                k++;
                            }
                        }
                    }
                }
            }
        }

        if(k==7){
            printf("YES\n");
        }
        else{
            int d=7-k;
            int ans=1;
            while(d!=0){
                if(S[n-d]==T[k]){
                    d--;
                    k++;
                }
                else{
                    printf("NO\n");
                    ans=0;
                    break;
                }
            }
            if(ans==1){
                printf("YES\n");
            }
        }

    }
    //そうじゃ無いなら最後にあるしかない
    else{
        if(S[n-7]==T[0]&&S[n-6]==T[1]&&S[n-5]==T[2]&&S[n-4]==T[3]&&S[n-3]==T[4]&&S[n-2]==T[5]&&S[n-1]==T[6]){
            printf("YES\n");
        }
        else{
            printf("NO\n");
        }
    }
    
    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<stdlib.h>

#define NEW(p,n){p=malloc((n)*sizeof(p[0]));if(p==NULL){printf("not enough memory\n");exit(1);};}
//pの型の変数n個の要素分のメモリを確保し、そのアドレスをpに代入するマクロ

#define INFTY 999999

//char型のポインタ(=配列と意味は同じ)をString型と定義
typedef char* String;

//文字列の長さを求める関数
int string_len(String str){
    int len=0;
    while(str[len]!=0){
        len++;
    }
    return len;
}

//文字列を標準入力から読み込み、それをString型のメモリを確保し直してくれる関数
String string_input(void){
    int i,len;
    char buf[200];
    String str;
    scanf("%s",buf);//buf=入力した文字列が入るchar型の配列
    //ここまでは文字列の長さがわからなかったから、一旦1000個分のメモリを用意しそこに入力させる
    
    len=string_len(buf);//len=文字列の長さを表すint型変数
    NEW(str,len+1);//strはただのポインタだから、ここでNEWを使ってメモリを確保しなくちゃいけない
    for(i=0;i<len;i++){
        str[i]=buf[i];
    }
    str[len]=0;
    
    return str;
}

int main(void){
    String S;
    S=string_input();

    String T="keyence";

    int n=string_len(S);

    //keyenceが分割or最初にあるかどうか
    if(S[0]==T[0]){
        int k=1;
        if(S[1]==T[1]){
            k++;
            if(S[2]==T[2]){
                k++;
                if(S[3]==T[3]){
                    k++;
                    if(S[4]==T[4]){
                        k++;
                        if(S[5]==T[5]){
                            k++;
                            if(S[6]==T[6]){
                                k++;
                            }
                        }
                    }
                }
            }
        }

        if(k==7){
            printf("YES\n");
        }
        else{
            int d=7-k;
            int ans=1;
            while(d!=0){
                if(S[n-d]==T[k]){
                    d--;
                    k++;
                }
                else{
                    printf("NO\n");
                    ans=0;
                    break;
                }
            }
            if(ans==1){
                printf("YES\n");
            }
        }

    }
    //そうじゃ無いなら最後にあるしかない
    else{
        if(S[n-7]==T[0]&&S[n-6]==T[1]&&S[n-5]==T[2]&&S[n-4]==T[3]&&S[n-3]==T[4]&&S[n-2]==T[5]&&S[n-1]==T[6]){
            printf("YES\n");
        }
        else{
            printf("NO\n");
        }
    }
    
    return 0;
    
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	string_len
	.type	string_len, @function
string_len:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L3:
	addl	$1, -4(%rbp)
.L2:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L3
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	string_len, .-string_len
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"not enough memory"
	.text
	.globl	string_input
	.type	string_input, @function
string_input:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-208(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-208(%rbp), %rax
	movq	%rax, %rdi
	call	string_len
	movl	%eax, -220(%rbp)
	movl	-220(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -216(%rbp)
	cmpq	$0, -216(%rbp)
	jne	.L6
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$1, %edi
	call	exit@PLT
.L6:
	movl	$0, -224(%rbp)
	jmp	.L7
.L8:
	movl	-224(%rbp), %eax
	movslq	%eax, %rdx
	movq	-216(%rbp), %rax
	addq	%rax, %rdx
	movl	-224(%rbp), %eax
	cltq
	movzbl	-208(%rbp,%rax), %eax
	movb	%al, (%rdx)
	addl	$1, -224(%rbp)
.L7:
	movl	-224(%rbp), %eax
	cmpl	-220(%rbp), %eax
	jl	.L8
	movl	-220(%rbp), %eax
	movslq	%eax, %rdx
	movq	-216(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	movq	-216(%rbp), %rax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	string_input, .-string_input
	.section	.rodata
.LC2:
	.string	"keyence"
.LC3:
	.string	"YES"
.LC4:
	.string	"NO"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	call	string_input
	movq	%rax, -16(%rbp)
	leaq	.LC2(%rip), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	string_len
	movl	%eax, -20(%rbp)
	movq	-16(%rbp), %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L12
	movl	$1, -32(%rbp)
	movq	-16(%rbp), %rax
	addq	$1, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	addl	$1, -32(%rbp)
	movq	-16(%rbp), %rax
	addq	$2, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$2, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	addl	$1, -32(%rbp)
	movq	-16(%rbp), %rax
	addq	$3, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$3, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	addl	$1, -32(%rbp)
	movq	-16(%rbp), %rax
	addq	$4, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$4, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	addl	$1, -32(%rbp)
	movq	-16(%rbp), %rax
	addq	$5, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$5, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	addl	$1, -32(%rbp)
	movq	-16(%rbp), %rax
	addq	$6, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$6, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	addl	$1, -32(%rbp)
.L13:
	cmpl	$7, -32(%rbp)
	jne	.L14
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L15
.L14:
	movl	$7, %eax
	subl	-32(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	$1, -24(%rbp)
	jmp	.L16
.L19:
	movl	-20(%rbp), %eax
	subl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-32(%rbp), %eax
	movslq	%eax, %rcx
	movq	-8(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L17
	subl	$1, -28(%rbp)
	addl	$1, -32(%rbp)
	jmp	.L16
.L17:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, -24(%rbp)
	jmp	.L18
.L16:
	cmpl	$0, -28(%rbp)
	jne	.L19
.L18:
	cmpl	$1, -24(%rbp)
	jne	.L15
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L15
.L12:
	movl	-20(%rbp), %eax
	cltq
	leaq	-7(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	-6(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	-5(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$2, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	-4(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$3, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	-3(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$4, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	-2(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$5, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	-1(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$6, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L15
.L20:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L15:
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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
	.globl	string_len
	.type	string_len, @function
string_len:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movl	$0, -4(%rbp)
	jmp	.L2
.L3:
	addl	$1, -4(%rbp)
.L2:
	movl	-4(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	jne	.L3
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	string_len, .-string_len
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"not enough memory"
	.text
	.globl	string_input
	.type	string_input, @function
string_input:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$224, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-208(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-208(%rbp), %rax
	movq	%rax, %rdi
	call	string_len
	movl	%eax, -220(%rbp)
	movl	-220(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	%rax, %rdi
	call	malloc@PLT
	movq	%rax, -216(%rbp)
	cmpq	$0, -216(%rbp)
	jne	.L6
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$1, %edi
	call	exit@PLT
.L6:
	movl	$0, -224(%rbp)
	jmp	.L7
.L8:
	movl	-224(%rbp), %eax
	movslq	%eax, %rdx
	movq	-216(%rbp), %rax
	addq	%rax, %rdx
	movl	-224(%rbp), %eax
	cltq
	movzbl	-208(%rbp,%rax), %eax
	movb	%al, (%rdx)
	addl	$1, -224(%rbp)
.L7:
	movl	-224(%rbp), %eax
	cmpl	-220(%rbp), %eax
	jl	.L8
	movl	-220(%rbp), %eax
	movslq	%eax, %rdx
	movq	-216(%rbp), %rax
	addq	%rdx, %rax
	movb	$0, (%rax)
	movq	-216(%rbp), %rax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	string_input, .-string_input
	.section	.rodata
.LC2:
	.string	"keyence"
.LC3:
	.string	"YES"
.LC4:
	.string	"NO"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	call	string_input
	movq	%rax, -16(%rbp)
	leaq	.LC2(%rip), %rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	string_len
	movl	%eax, -20(%rbp)
	movq	-16(%rbp), %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L12
	movl	$1, -32(%rbp)
	movq	-16(%rbp), %rax
	addq	$1, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	addl	$1, -32(%rbp)
	movq	-16(%rbp), %rax
	addq	$2, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$2, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	addl	$1, -32(%rbp)
	movq	-16(%rbp), %rax
	addq	$3, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$3, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	addl	$1, -32(%rbp)
	movq	-16(%rbp), %rax
	addq	$4, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$4, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	addl	$1, -32(%rbp)
	movq	-16(%rbp), %rax
	addq	$5, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$5, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	addl	$1, -32(%rbp)
	movq	-16(%rbp), %rax
	addq	$6, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$6, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	addl	$1, -32(%rbp)
.L13:
	cmpl	$7, -32(%rbp)
	jne	.L14
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L15
.L14:
	movl	$7, %eax
	subl	-32(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	$1, -24(%rbp)
	jmp	.L16
.L19:
	movl	-20(%rbp), %eax
	subl	-28(%rbp), %eax
	movslq	%eax, %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movl	-32(%rbp), %eax
	movslq	%eax, %rcx
	movq	-8(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L17
	subl	$1, -28(%rbp)
	addl	$1, -32(%rbp)
	jmp	.L16
.L17:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, -24(%rbp)
	jmp	.L18
.L16:
	cmpl	$0, -28(%rbp)
	jne	.L19
.L18:
	cmpl	$1, -24(%rbp)
	jne	.L15
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L15
.L12:
	movl	-20(%rbp), %eax
	cltq
	leaq	-7(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	-6(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$1, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	-5(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$2, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	-4(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$3, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	-3(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$4, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	-2(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$5, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	movl	-20(%rbp), %eax
	cltq
	leaq	-1(%rax), %rdx
	movq	-16(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	movq	-8(%rbp), %rax
	addq	$6, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	jne	.L20
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L15
.L20:
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L15:
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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:
