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>

int main (void)
{
    char S[101];
    int i, len, s = 0, e = 0;

    gets(S);

    if (strstr(S, "keyence") != NULL) {
        puts("YES");
        return 0;
    }

    len = strlen(S);
    if (S[0] == 'k') {
        s = 1;
        if (S[1] == 'e') {
            s = 2;
            if (S[2] == 'y') {
                s = 3;
                if (S[3] == 'e') {
                    s = 4;
                    if (S[4] == 'n') {
                        s = 5;
                        if (S[5] == 'c') {
                            s = 6;
                            if (S[6] == 'e') s = 7;
                        }
                    }
                }
            }
        }
    }
    

    if (S[len - 1] == 'e') {
        e = 1;
        if (S[len - 2] == 'c') {
            e = 2;
            if (S[len - 3] == 'n') {
                e = 3;
                if (S[len - 4] == 'e') {
                    e = 4;
                    if (S[len - 5] == 'y') {
                        e = 5;
                        if (S[len - 6] == 'e') {
                            e = 6;
                            if (S[len - 7] == 'k') e = 7;
                        }
                    }
                }
            }
        }
    }

    if (s + e >= 7) {
        puts("YES");
        return 0;
    }

    puts("NO");
    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"keyence"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rdi
	call	gets@PLT
	leaq	.LC0(%rip), %rsi
	movq	%rbp, %rdi
	call	strstr@PLT
	testq	%rax, %rax
	jne	.L7
	movq	%rbp, %rdi
	call	strlen@PLT
	xorl	%ecx, %ecx
	cmpb	$107, (%rsp)
	leal	-1(%rax), %edx
	je	.L28
.L4:
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	je	.L29
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L29:
	leal	-2(%rax), %esi
	movl	$1, %edx
	movslq	%esi, %rsi
	cmpb	$99, (%rsp,%rsi)
	je	.L30
.L6:
	addl	%ecx, %edx
	cmpl	$6, %edx
	jle	.L10
.L7:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L3:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	cmpb	$101, 1(%rsp)
	movl	$1, %ecx
	jne	.L4
	cmpb	$121, 2(%rsp)
	movl	$2, %ecx
	jne	.L4
	cmpb	$101, 3(%rsp)
	movl	$3, %ecx
	jne	.L4
	cmpb	$110, 4(%rsp)
	movl	$4, %ecx
	jne	.L4
	cmpb	$99, 5(%rsp)
	movl	$5, %ecx
	jne	.L4
	cmpb	$101, 6(%rsp)
	je	.L5
	movl	$6, %ecx
	jmp	.L4
.L30:
	leal	-3(%rax), %esi
	movl	$2, %edx
	movslq	%esi, %rsi
	cmpb	$110, (%rsp,%rsi)
	jne	.L6
	leal	-4(%rax), %esi
	movl	$3, %edx
	movslq	%esi, %rsi
	cmpb	$101, (%rsp,%rsi)
	jne	.L6
.L11:
	leal	-5(%rax), %esi
	movl	$4, %edx
	movslq	%esi, %rsi
	cmpb	$121, (%rsp,%rsi)
	jne	.L6
	leal	-6(%rax), %esi
	movl	$5, %edx
	movslq	%esi, %rsi
	cmpb	$101, (%rsp,%rsi)
	jne	.L6
	subl	$7, %eax
	cltq
	cmpb	$107, (%rsp,%rax)
	je	.L7
	movl	$6, %edx
	jmp	.L6
.L31:
	call	__stack_chk_fail@PLT
.L5:
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L7
	leal	-2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$99, (%rsp,%rdx)
	jne	.L7
	leal	-3(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$110, (%rsp,%rdx)
	jne	.L7
	leal	-4(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L7
	movl	$7, %ecx
	jmp	.L11
	.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	"keyence"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rdi
	call	gets@PLT
	leaq	.LC0(%rip), %rsi
	movq	%rbp, %rdi
	call	strstr@PLT
	testq	%rax, %rax
	jne	.L7
	movq	%rbp, %rdi
	call	strlen@PLT
	xorl	%ecx, %ecx
	cmpb	$107, (%rsp)
	leal	-1(%rax), %edx
	je	.L28
.L4:
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	je	.L29
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L29:
	leal	-2(%rax), %esi
	movl	$1, %edx
	movslq	%esi, %rsi
	cmpb	$99, (%rsp,%rsi)
	je	.L30
.L6:
	addl	%ecx, %edx
	cmpl	$6, %edx
	jle	.L10
.L7:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L3:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	cmpb	$101, 1(%rsp)
	movl	$1, %ecx
	jne	.L4
	cmpb	$121, 2(%rsp)
	movl	$2, %ecx
	jne	.L4
	cmpb	$101, 3(%rsp)
	movl	$3, %ecx
	jne	.L4
	cmpb	$110, 4(%rsp)
	movl	$4, %ecx
	jne	.L4
	cmpb	$99, 5(%rsp)
	movl	$5, %ecx
	jne	.L4
	cmpb	$101, 6(%rsp)
	je	.L5
	movl	$6, %ecx
	jmp	.L4
.L30:
	leal	-3(%rax), %esi
	movl	$2, %edx
	movslq	%esi, %rsi
	cmpb	$110, (%rsp,%rsi)
	jne	.L6
	leal	-4(%rax), %esi
	movl	$3, %edx
	movslq	%esi, %rsi
	cmpb	$101, (%rsp,%rsi)
	jne	.L6
.L11:
	leal	-5(%rax), %esi
	movl	$4, %edx
	movslq	%esi, %rsi
	cmpb	$121, (%rsp,%rsi)
	jne	.L6
	leal	-6(%rax), %esi
	movl	$5, %edx
	movslq	%esi, %rsi
	cmpb	$101, (%rsp,%rsi)
	jne	.L6
	subl	$7, %eax
	cltq
	cmpb	$107, (%rsp,%rax)
	je	.L7
	movl	$6, %edx
	jmp	.L6
.L31:
	call	__stack_chk_fail@PLT
.L5:
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L7
	leal	-2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$99, (%rsp,%rdx)
	jne	.L7
	leal	-3(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$110, (%rsp,%rdx)
	jne	.L7
	leal	-4(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L7
	movl	$7, %ecx
	jmp	.L11
	.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	"keyence"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rdi
	call	gets@PLT
	leaq	.LC0(%rip), %rsi
	movq	%rbp, %rdi
	call	strstr@PLT
	testq	%rax, %rax
	jne	.L7
	movq	%rbp, %rdi
	call	strlen@PLT
	xorl	%ecx, %ecx
	cmpb	$107, (%rsp)
	leal	-1(%rax), %edx
	je	.L28
.L4:
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	je	.L29
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L29:
	leal	-2(%rax), %esi
	movl	$1, %edx
	movslq	%esi, %rsi
	cmpb	$99, (%rsp,%rsi)
	je	.L30
.L6:
	addl	%ecx, %edx
	cmpl	$6, %edx
	jle	.L10
.L7:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L3:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	cmpb	$101, 1(%rsp)
	movl	$1, %ecx
	jne	.L4
	cmpb	$121, 2(%rsp)
	movl	$2, %ecx
	jne	.L4
	cmpb	$101, 3(%rsp)
	movl	$3, %ecx
	jne	.L4
	cmpb	$110, 4(%rsp)
	movl	$4, %ecx
	jne	.L4
	cmpb	$99, 5(%rsp)
	movl	$5, %ecx
	jne	.L4
	cmpb	$101, 6(%rsp)
	je	.L5
	movl	$6, %ecx
	jmp	.L4
.L30:
	leal	-3(%rax), %esi
	movl	$2, %edx
	movslq	%esi, %rsi
	cmpb	$110, (%rsp,%rsi)
	jne	.L6
	leal	-4(%rax), %esi
	movl	$3, %edx
	movslq	%esi, %rsi
	cmpb	$101, (%rsp,%rsi)
	jne	.L6
.L11:
	leal	-5(%rax), %esi
	movl	$4, %edx
	movslq	%esi, %rsi
	cmpb	$121, (%rsp,%rsi)
	jne	.L6
	leal	-6(%rax), %esi
	movl	$5, %edx
	movslq	%esi, %rsi
	cmpb	$101, (%rsp,%rsi)
	jne	.L6
	subl	$7, %eax
	cltq
	cmpb	$107, (%rsp,%rax)
	je	.L7
	movl	$6, %edx
	jmp	.L6
.L31:
	call	__stack_chk_fail@PLT
.L5:
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L7
	leal	-2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$99, (%rsp,%rdx)
	jne	.L7
	leal	-3(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$110, (%rsp,%rdx)
	jne	.L7
	leal	-4(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L7
	movl	$7, %ecx
	jmp	.L11
	.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>

int main (void)
{
    char S[101];
    int i, len, s = 0, e = 0;

    gets(S);

    if (strstr(S, "keyence") != NULL) {
        puts("YES");
        return 0;
    }

    len = strlen(S);
    if (S[0] == 'k') {
        s = 1;
        if (S[1] == 'e') {
            s = 2;
            if (S[2] == 'y') {
                s = 3;
                if (S[3] == 'e') {
                    s = 4;
                    if (S[4] == 'n') {
                        s = 5;
                        if (S[5] == 'c') {
                            s = 6;
                            if (S[6] == 'e') s = 7;
                        }
                    }
                }
            }
        }
    }
    

    if (S[len - 1] == 'e') {
        e = 1;
        if (S[len - 2] == 'c') {
            e = 2;
            if (S[len - 3] == 'n') {
                e = 3;
                if (S[len - 4] == 'e') {
                    e = 4;
                    if (S[len - 5] == 'y') {
                        e = 5;
                        if (S[len - 6] == 'e') {
                            e = 6;
                            if (S[len - 7] == 'k') e = 7;
                        }
                    }
                }
            }
        }
    }

    if (s + e >= 7) {
        puts("YES");
        return 0;
    }

    puts("NO");
    return 0;
}
```
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>

int main (void)
{
    char S[101];
    int i, len, s = 0, e = 0;

    gets(S);

    if (strstr(S, "keyence") != NULL) {
        puts("YES");
        return 0;
    }

    len = strlen(S);
    if (S[0] == 'k') {
        s = 1;
        if (S[1] == 'e') {
            s = 2;
            if (S[2] == 'y') {
                s = 3;
                if (S[3] == 'e') {
                    s = 4;
                    if (S[4] == 'n') {
                        s = 5;
                        if (S[5] == 'c') {
                            s = 6;
                            if (S[6] == 'e') s = 7;
                        }
                    }
                }
            }
        }
    }
    

    if (S[len - 1] == 'e') {
        e = 1;
        if (S[len - 2] == 'c') {
            e = 2;
            if (S[len - 3] == 'n') {
                e = 3;
                if (S[len - 4] == 'e') {
                    e = 4;
                    if (S[len - 5] == 'y') {
                        e = 5;
                        if (S[len - 6] == 'e') {
                            e = 6;
                            if (S[len - 7] == 'k') e = 7;
                        }
                    }
                }
            }
        }
    }

    if (s + e >= 7) {
        puts("YES");
        return 0;
    }

    puts("NO");
    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
#include <stdio.h>
#include <string.h>

int main (void)
{
    char S[101];
    int i, len, s = 0, e = 0;

    gets(S);

    if (strstr(S, "keyence") != NULL) {
        puts("YES");
        return 0;
    }

    len = strlen(S);
    if (S[0] == 'k') {
        s = 1;
        if (S[1] == 'e') {
            s = 2;
            if (S[2] == 'y') {
                s = 3;
                if (S[3] == 'e') {
                    s = 4;
                    if (S[4] == 'n') {
                        s = 5;
                        if (S[5] == 'c') {
                            s = 6;
                            if (S[6] == 'e') s = 7;
                        }
                    }
                }
            }
        }
    }
    

    if (S[len - 1] == 'e') {
        e = 1;
        if (S[len - 2] == 'c') {
            e = 2;
            if (S[len - 3] == 'n') {
                e = 3;
                if (S[len - 4] == 'e') {
                    e = 4;
                    if (S[len - 5] == 'y') {
                        e = 5;
                        if (S[len - 6] == 'e') {
                            e = 6;
                            if (S[len - 7] == 'k') e = 7;
                        }
                    }
                }
            }
        }
    }

    if (s + e >= 7) {
        puts("YES");
        return 0;
    }

    puts("NO");
    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"keyence"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rdi
	call	gets@PLT
	leaq	.LC0(%rip), %rsi
	movq	%rbp, %rdi
	call	strstr@PLT
	testq	%rax, %rax
	jne	.L7
	movq	%rbp, %rdi
	call	strlen@PLT
	xorl	%ecx, %ecx
	cmpb	$107, (%rsp)
	leal	-1(%rax), %edx
	je	.L28
.L4:
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	je	.L29
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L29:
	leal	-2(%rax), %esi
	movl	$1, %edx
	movslq	%esi, %rsi
	cmpb	$99, (%rsp,%rsi)
	je	.L30
.L6:
	addl	%ecx, %edx
	cmpl	$6, %edx
	jle	.L10
.L7:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L3:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	cmpb	$101, 1(%rsp)
	movl	$1, %ecx
	jne	.L4
	cmpb	$121, 2(%rsp)
	movl	$2, %ecx
	jne	.L4
	cmpb	$101, 3(%rsp)
	movl	$3, %ecx
	jne	.L4
	cmpb	$110, 4(%rsp)
	movl	$4, %ecx
	jne	.L4
	cmpb	$99, 5(%rsp)
	movl	$5, %ecx
	jne	.L4
	cmpb	$101, 6(%rsp)
	je	.L5
	movl	$6, %ecx
	jmp	.L4
.L30:
	leal	-3(%rax), %esi
	movl	$2, %edx
	movslq	%esi, %rsi
	cmpb	$110, (%rsp,%rsi)
	jne	.L6
	leal	-4(%rax), %esi
	movl	$3, %edx
	movslq	%esi, %rsi
	cmpb	$101, (%rsp,%rsi)
	jne	.L6
.L11:
	leal	-5(%rax), %esi
	movl	$4, %edx
	movslq	%esi, %rsi
	cmpb	$121, (%rsp,%rsi)
	jne	.L6
	leal	-6(%rax), %esi
	movl	$5, %edx
	movslq	%esi, %rsi
	cmpb	$101, (%rsp,%rsi)
	jne	.L6
	subl	$7, %eax
	cltq
	cmpb	$107, (%rsp,%rax)
	je	.L7
	movl	$6, %edx
	jmp	.L6
.L31:
	call	__stack_chk_fail@PLT
.L5:
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L7
	leal	-2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$99, (%rsp,%rdx)
	jne	.L7
	leal	-3(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$110, (%rsp,%rdx)
	jne	.L7
	leal	-4(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L7
	movl	$7, %ecx
	jmp	.L11
	.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	"keyence"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	subq	$112, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rdi
	call	gets@PLT
	leaq	.LC0(%rip), %rsi
	movq	%rbp, %rdi
	call	strstr@PLT
	testq	%rax, %rax
	jne	.L7
	movq	%rbp, %rdi
	call	strlen@PLT
	xorl	%ecx, %ecx
	cmpb	$107, (%rsp)
	leal	-1(%rax), %edx
	je	.L28
.L4:
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	je	.L29
.L10:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L29:
	leal	-2(%rax), %esi
	movl	$1, %edx
	movslq	%esi, %rsi
	cmpb	$99, (%rsp,%rsi)
	je	.L30
.L6:
	addl	%ecx, %edx
	cmpl	$6, %edx
	jle	.L10
.L7:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L3:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$112, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L28:
	.cfi_restore_state
	cmpb	$101, 1(%rsp)
	movl	$1, %ecx
	jne	.L4
	cmpb	$121, 2(%rsp)
	movl	$2, %ecx
	jne	.L4
	cmpb	$101, 3(%rsp)
	movl	$3, %ecx
	jne	.L4
	cmpb	$110, 4(%rsp)
	movl	$4, %ecx
	jne	.L4
	cmpb	$99, 5(%rsp)
	movl	$5, %ecx
	jne	.L4
	cmpb	$101, 6(%rsp)
	je	.L5
	movl	$6, %ecx
	jmp	.L4
.L30:
	leal	-3(%rax), %esi
	movl	$2, %edx
	movslq	%esi, %rsi
	cmpb	$110, (%rsp,%rsi)
	jne	.L6
	leal	-4(%rax), %esi
	movl	$3, %edx
	movslq	%esi, %rsi
	cmpb	$101, (%rsp,%rsi)
	jne	.L6
.L11:
	leal	-5(%rax), %esi
	movl	$4, %edx
	movslq	%esi, %rsi
	cmpb	$121, (%rsp,%rsi)
	jne	.L6
	leal	-6(%rax), %esi
	movl	$5, %edx
	movslq	%esi, %rsi
	cmpb	$101, (%rsp,%rsi)
	jne	.L6
	subl	$7, %eax
	cltq
	cmpb	$107, (%rsp,%rax)
	je	.L7
	movl	$6, %edx
	jmp	.L6
.L31:
	call	__stack_chk_fail@PLT
.L5:
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L7
	leal	-2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$99, (%rsp,%rdx)
	jne	.L7
	leal	-3(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$110, (%rsp,%rdx)
	jne	.L7
	leal	-4(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L7
	movl	$7, %ecx
	jmp	.L11
	.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:
```