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>

int main(void){
    char imp[100001];
    char five[5] = {0};
    char six[6] = {0};
    char seven[7] = {0};
    char dr[] = {'r','e','m','a','e','r','d'};
    char dm[] = {'m','a','e','r','d'};
    char ee[] = {'e','s','a','r','e'};
    char er[] = {'r','e','s','a','r','e'};
    int count = 0;
    fgets(imp,sizeof(imp),stdin);
    for (int i = 0; imp[i] != 0; ++i)count++;
    count -= 1;
    char str[count];
    for (int j = 0; j < count; ++j) {
        int index;
        index = count - 1 - j;
        str[j] = imp[index];
    }

    int before;
    before = count;

    do{
        if (count >= 7){
            for (int i = 0; i < 7; ++i){
                int temp;
                temp = i + before - count;
                seven[i] = str[temp];
            }
            if (strncmp(seven,dr,7) == 0){
                count -= 7;
                continue;
            }
        }

        if (count >= 6){
            for (int i = 0; i < 6; ++i){
                int temp;
                temp = i + before - count;
                six[i] = str[temp];
            }
            if (strncmp(six,er,6) == 0){
                count -= 6;
                continue;
            }
        }

        if (count >= 5){
            for (int i = 0; i < 5; ++i){
                int temp;
                temp = i + before - count;
                five[i] = str[temp];
            }
            if (strncmp(five,dm,5) == 0 || strncmp(five,ee,5) == 0){
                count -= 5;
                continue;
            }
        }
        break;
    }while (count > 0);

    if (count == 0){printf("YES");}
    else{printf("NO");}

    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"YES"
.LC1:
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1832, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	$0, -100105(%rbp)
	movb	$0, -100101(%rbp)
	movl	$0, -100090(%rbp)
	movw	$0, -100086(%rbp)
	movl	$0, -100078(%rbp)
	movw	$0, -100074(%rbp)
	movb	$0, -100072(%rbp)
	movl	$1634559346, -100071(%rbp)
	movw	$29285, -100067(%rbp)
	movb	$100, -100065(%rbp)
	movl	$1919246701, -100100(%rbp)
	movb	$100, -100096(%rbp)
	movl	$1918989157, -100095(%rbp)
	movb	$101, -100091(%rbp)
	movl	$1634952562, -100084(%rbp)
	movw	$25970, -100080(%rbp)
	movl	$0, -100172(%rbp)
	movq	stdin(%rip), %rdx
	leaq	-100064(%rbp), %rax
	movl	$100001, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movl	$0, -100168(%rbp)
	jmp	.L2
.L3:
	addl	$1, -100172(%rbp)
	addl	$1, -100168(%rbp)
.L2:
	movl	-100168(%rbp), %eax
	cltq
	movzbl	-100064(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L3
	subl	$1, -100172(%rbp)
	movl	-100172(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -100128(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L4:
	cmpq	%rdx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L5:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L6
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L6:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -100120(%rbp)
	movl	$0, -100164(%rbp)
	jmp	.L7
.L8:
	movl	-100172(%rbp), %eax
	subl	$1, %eax
	subl	-100164(%rbp), %eax
	movl	%eax, -100132(%rbp)
	movl	-100132(%rbp), %eax
	cltq
	movzbl	-100064(%rbp,%rax), %ecx
	movq	-100120(%rbp), %rdx
	movl	-100164(%rbp), %eax
	cltq
	movb	%cl, (%rdx,%rax)
	addl	$1, -100164(%rbp)
.L7:
	movl	-100164(%rbp), %eax
	cmpl	-100172(%rbp), %eax
	jl	.L8
	movl	-100172(%rbp), %eax
	movl	%eax, -100148(%rbp)
.L21:
	cmpl	$6, -100172(%rbp)
	jle	.L9
	movl	$0, -100160(%rbp)
	jmp	.L10
.L11:
	movl	-100160(%rbp), %edx
	movl	-100148(%rbp), %eax
	addl	%edx, %eax
	subl	-100172(%rbp), %eax
	movl	%eax, -100144(%rbp)
	movq	-100120(%rbp), %rdx
	movl	-100144(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %edx
	movl	-100160(%rbp), %eax
	cltq
	movb	%dl, -100078(%rbp,%rax)
	addl	$1, -100160(%rbp)
.L10:
	cmpl	$6, -100160(%rbp)
	jle	.L11
	leaq	-100071(%rbp), %rcx
	leaq	-100078(%rbp), %rax
	movl	$7, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L9
	subl	$7, -100172(%rbp)
	jmp	.L12
.L9:
	cmpl	$5, -100172(%rbp)
	jle	.L13
	movl	$0, -100156(%rbp)
	jmp	.L14
.L15:
	movl	-100156(%rbp), %edx
	movl	-100148(%rbp), %eax
	addl	%edx, %eax
	subl	-100172(%rbp), %eax
	movl	%eax, -100140(%rbp)
	movq	-100120(%rbp), %rdx
	movl	-100140(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %edx
	movl	-100156(%rbp), %eax
	cltq
	movb	%dl, -100090(%rbp,%rax)
	addl	$1, -100156(%rbp)
.L14:
	cmpl	$5, -100156(%rbp)
	jle	.L15
	leaq	-100084(%rbp), %rcx
	leaq	-100090(%rbp), %rax
	movl	$6, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L13
	subl	$6, -100172(%rbp)
	jmp	.L12
.L13:
	cmpl	$4, -100172(%rbp)
	jle	.L26
	movl	$0, -100152(%rbp)
	jmp	.L17
.L18:
	movl	-100152(%rbp), %edx
	movl	-100148(%rbp), %eax
	addl	%edx, %eax
	subl	-100172(%rbp), %eax
	movl	%eax, -100136(%rbp)
	movq	-100120(%rbp), %rdx
	movl	-100136(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %edx
	movl	-100152(%rbp), %eax
	cltq
	movb	%dl, -100105(%rbp,%rax)
	addl	$1, -100152(%rbp)
.L17:
	cmpl	$4, -100152(%rbp)
	jle	.L18
	leaq	-100100(%rbp), %rcx
	leaq	-100105(%rbp), %rax
	movl	$5, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L19
	leaq	-100095(%rbp), %rcx
	leaq	-100105(%rbp), %rax
	movl	$5, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L26
.L19:
	subl	$5, -100172(%rbp)
	nop
.L12:
	cmpl	$0, -100172(%rbp)
	jg	.L21
	jmp	.L20
.L26:
	nop
.L20:
	cmpl	$0, -100172(%rbp)
	jne	.L22
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L23
.L22:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L23:
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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	"YES"
.LC1:
	.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
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1832, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	xorl	%edx, %edx
	movl	$25970, %esi
	movl	$29285, %ecx
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-100064(%rbp), %rbx
	movw	%dx, -100076(%rbp)
	movq	stdin(%rip), %rdx
	xorl	%eax, %eax
	movq	%rbx, %rdi
	movw	%si, -100082(%rbp)
	movl	$100001, %esi
	movl	$0, -100108(%rbp)
	movb	$0, -100104(%rbp)
	movl	$0, -100092(%rbp)
	movw	%ax, -100088(%rbp)
	movl	$0, -100080(%rbp)
	movb	$0, -100074(%rbp)
	movl	$1634559346, -100071(%rbp)
	movw	%cx, -100067(%rbp)
	movb	$100, -100065(%rbp)
	movl	$1919246701, -100102(%rbp)
	movb	$100, -100098(%rbp)
	movl	$1918989157, -100097(%rbp)
	movb	$101, -100093(%rbp)
	movl	$1634952562, -100086(%rbp)
	call	fgets@PLT
	cmpb	$0, -100064(%rbp)
	je	.L2
	leaq	-100063(%rbp), %rax
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %rax
	movl	%r13d, %esi
	addl	$1, %r13d
	cmpb	$0, -1(%rax)
	jne	.L3
	movslq	%esi, %rdi
	movq	%rsp, %rcx
	leaq	15(%rdi), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L4:
	cmpq	%rcx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L49:
	testl	%r14d, %r14d
	je	.L21
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L20:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L46
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L5:
	.cfi_restore_state
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L47
.L6:
	movq	%rsp, %r14
	testl	%esi, %esi
	je	.L23
	leaq	-1(%rbx,%rdi), %rdx
	movq	%rsp, %rax
	addq	%rsp, %rdi
	.p2align 4,,10
	.p2align 3
.L8:
	movzbl	(%rdx), %ecx
	addq	$1, %rax
	subq	$1, %rdx
	movb	%cl, -1(%rax)
	cmpq	%rax, %rdi
	jne	.L8
	movl	%esi, %ebx
.L7:
	leaq	-100102(%rbp), %rax
	leaq	-100108(%rbp), %r15
	movq	%rax, -100136(%rbp)
	leaq	-100097(%rbp), %rax
	movq	%rax, -100160(%rbp)
	leal	2(%rsi), %eax
	movl	%eax, -100116(%rbp)
	leal	3(%rsi), %eax
	movl	%eax, -100120(%rbp)
	leal	4(%rsi), %eax
	movl	%eax, -100124(%rbp)
	leal	5(%rsi), %eax
	movl	%eax, -100128(%rbp)
	leaq	-100086(%rbp), %rax
	movq	%rax, -100144(%rbp)
	leaq	-100092(%rbp), %rax
	movq	%rax, -100152(%rbp)
	leal	6(%rsi), %eax
	movl	%eax, -100164(%rbp)
	movq	%r15, %rax
	movq	%r14, %r15
	movl	%ebx, %r14d
	movq	%rax, %r12
.L19:
	cmpl	$6, %r14d
	jg	.L48
	je	.L14
	cmpl	$5, %r14d
	jne	.L49
.L12:
	movl	%ebx, %edx
	xorl	%eax, %eax
	movq	%r12, %rdi
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movb	(%r15,%rdx), %al
	movl	%r13d, %edx
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movzbl	(%r15,%rdx), %ecx
	movl	-100116(%rbp), %edx
	subl	%r14d, %edx
	movb	%cl, %ah
	movslq	%edx, %rdx
	movzwl	%ax, %eax
	movzbl	(%r15,%rdx), %esi
	movl	-100120(%rbp), %edx
	subl	%r14d, %edx
	sall	$16, %esi
	movslq	%edx, %rdx
	orl	%esi, %eax
	movq	-100136(%rbp), %rsi
	movzbl	(%r15,%rdx), %edx
	sall	$24, %edx
	orl	%edx, %eax
	movl	$5, %edx
	movl	%eax, -100108(%rbp)
	movl	-100124(%rbp), %eax
	subl	%r14d, %eax
	cltq
	movzbl	(%r15,%rax), %eax
	movb	%al, -100104(%rbp)
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L16
	movq	-100160(%rbp), %rsi
	movl	$5, %edx
	movq	%r12, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L2
.L16:
	subl	$5, %r14d
.L13:
	testl	%r14d, %r14d
	jne	.L19
.L21:
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L14:
	movl	%ebx, %edx
	xorl	%eax, %eax
	movq	-100152(%rbp), %rdi
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movb	(%r15,%rdx), %al
	movl	%r13d, %edx
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movzbl	(%r15,%rdx), %ecx
	movl	-100116(%rbp), %edx
	subl	%r14d, %edx
	movb	%cl, %ah
	movslq	%edx, %rdx
	movzwl	%ax, %eax
	movzbl	(%r15,%rdx), %esi
	movl	-100120(%rbp), %edx
	subl	%r14d, %edx
	sall	$16, %esi
	movslq	%edx, %rdx
	orl	%esi, %eax
	movq	-100144(%rbp), %rsi
	movzbl	(%r15,%rdx), %edx
	sall	$24, %edx
	orl	%edx, %eax
	movl	-100124(%rbp), %edx
	movl	%eax, -100092(%rbp)
	xorl	%eax, %eax
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movb	(%r15,%rdx), %al
	movl	-100128(%rbp), %edx
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movzbl	(%r15,%rdx), %ecx
	movl	$6, %edx
	movb	%cl, %ah
	movw	%ax, -100088(%rbp)
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L12
	subl	$6, %r14d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L48:
	movl	%ebx, %edx
	xorl	%eax, %eax
	leaq	-100080(%rbp), %rdi
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movb	(%r15,%rdx), %al
	movl	%r13d, %edx
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movzbl	(%r15,%rdx), %ecx
	movl	-100116(%rbp), %edx
	subl	%r14d, %edx
	movb	%cl, %ah
	movslq	%edx, %rdx
	movzwl	%ax, %eax
	movzbl	(%r15,%rdx), %esi
	movl	-100120(%rbp), %edx
	subl	%r14d, %edx
	sall	$16, %esi
	movslq	%edx, %rdx
	orl	%esi, %eax
	leaq	-100071(%rbp), %rsi
	movzbl	(%r15,%rdx), %edx
	sall	$24, %edx
	orl	%edx, %eax
	movl	-100124(%rbp), %edx
	movl	%eax, -100080(%rbp)
	xorl	%eax, %eax
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movb	(%r15,%rdx), %al
	movl	-100128(%rbp), %edx
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movzbl	(%r15,%rdx), %ecx
	movl	$7, %edx
	movb	%cl, %ah
	movw	%ax, -100076(%rbp)
	movl	-100164(%rbp), %eax
	subl	%r14d, %eax
	cltq
	movzbl	(%r15,%rax), %eax
	movb	%al, -100074(%rbp)
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L14
	subl	$7, %r14d
	jmp	.L13
.L47:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L46:
	call	__stack_chk_fail@PLT
.L23:
	xorl	%ebx, %ebx
	jmp	.L7
	.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	"YES"
.LC1:
	.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
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1832, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	xorl	%edx, %edx
	movl	$25970, %esi
	movl	$29285, %ecx
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	leaq	-100064(%rbp), %rbx
	movw	%dx, -100076(%rbp)
	movq	stdin(%rip), %rdx
	xorl	%eax, %eax
	movq	%rbx, %rdi
	movw	%si, -100082(%rbp)
	movl	$100001, %esi
	movl	$0, -100108(%rbp)
	movb	$0, -100104(%rbp)
	movl	$0, -100092(%rbp)
	movw	%ax, -100088(%rbp)
	movl	$0, -100080(%rbp)
	movb	$0, -100074(%rbp)
	movl	$1634559346, -100071(%rbp)
	movw	%cx, -100067(%rbp)
	movb	$100, -100065(%rbp)
	movl	$1919246701, -100102(%rbp)
	movb	$100, -100098(%rbp)
	movl	$1918989157, -100097(%rbp)
	movb	$101, -100093(%rbp)
	movl	$1634952562, -100086(%rbp)
	call	fgets@PLT
	cmpb	$0, -100064(%rbp)
	je	.L2
	leaq	-100063(%rbp), %rax
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L3:
	addq	$1, %rax
	movl	%r13d, %esi
	addl	$1, %r13d
	cmpb	$0, -1(%rax)
	jne	.L3
	movslq	%esi, %rdi
	movq	%rsp, %rcx
	leaq	15(%rdi), %rax
	movq	%rax, %rdx
	andq	$-4096, %rax
	andq	$-16, %rdx
	subq	%rax, %rcx
.L4:
	cmpq	%rcx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L49:
	testl	%r14d, %r14d
	je	.L21
	.p2align 4,,10
	.p2align 3
.L2:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L20:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L46
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L5:
	.cfi_restore_state
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L47
.L6:
	movq	%rsp, %r14
	testl	%esi, %esi
	je	.L23
	leaq	-1(%rbx,%rdi), %rdx
	movq	%rsp, %rax
	addq	%rsp, %rdi
	.p2align 4,,10
	.p2align 3
.L8:
	movzbl	(%rdx), %ecx
	addq	$1, %rax
	subq	$1, %rdx
	movb	%cl, -1(%rax)
	cmpq	%rax, %rdi
	jne	.L8
	movl	%esi, %ebx
.L7:
	leaq	-100102(%rbp), %rax
	leaq	-100108(%rbp), %r15
	movq	%rax, -100136(%rbp)
	leaq	-100097(%rbp), %rax
	movq	%rax, -100160(%rbp)
	leal	2(%rsi), %eax
	movl	%eax, -100116(%rbp)
	leal	3(%rsi), %eax
	movl	%eax, -100120(%rbp)
	leal	4(%rsi), %eax
	movl	%eax, -100124(%rbp)
	leal	5(%rsi), %eax
	movl	%eax, -100128(%rbp)
	leaq	-100086(%rbp), %rax
	movq	%rax, -100144(%rbp)
	leaq	-100092(%rbp), %rax
	movq	%rax, -100152(%rbp)
	leal	6(%rsi), %eax
	movl	%eax, -100164(%rbp)
	movq	%r15, %rax
	movq	%r14, %r15
	movl	%ebx, %r14d
	movq	%rax, %r12
.L19:
	cmpl	$6, %r14d
	jg	.L48
	je	.L14
	cmpl	$5, %r14d
	jne	.L49
.L12:
	movl	%ebx, %edx
	xorl	%eax, %eax
	movq	%r12, %rdi
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movb	(%r15,%rdx), %al
	movl	%r13d, %edx
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movzbl	(%r15,%rdx), %ecx
	movl	-100116(%rbp), %edx
	subl	%r14d, %edx
	movb	%cl, %ah
	movslq	%edx, %rdx
	movzwl	%ax, %eax
	movzbl	(%r15,%rdx), %esi
	movl	-100120(%rbp), %edx
	subl	%r14d, %edx
	sall	$16, %esi
	movslq	%edx, %rdx
	orl	%esi, %eax
	movq	-100136(%rbp), %rsi
	movzbl	(%r15,%rdx), %edx
	sall	$24, %edx
	orl	%edx, %eax
	movl	$5, %edx
	movl	%eax, -100108(%rbp)
	movl	-100124(%rbp), %eax
	subl	%r14d, %eax
	cltq
	movzbl	(%r15,%rax), %eax
	movb	%al, -100104(%rbp)
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L16
	movq	-100160(%rbp), %rsi
	movl	$5, %edx
	movq	%r12, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L2
.L16:
	subl	$5, %r14d
.L13:
	testl	%r14d, %r14d
	jne	.L19
.L21:
	leaq	.LC0(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L14:
	movl	%ebx, %edx
	xorl	%eax, %eax
	movq	-100152(%rbp), %rdi
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movb	(%r15,%rdx), %al
	movl	%r13d, %edx
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movzbl	(%r15,%rdx), %ecx
	movl	-100116(%rbp), %edx
	subl	%r14d, %edx
	movb	%cl, %ah
	movslq	%edx, %rdx
	movzwl	%ax, %eax
	movzbl	(%r15,%rdx), %esi
	movl	-100120(%rbp), %edx
	subl	%r14d, %edx
	sall	$16, %esi
	movslq	%edx, %rdx
	orl	%esi, %eax
	movq	-100144(%rbp), %rsi
	movzbl	(%r15,%rdx), %edx
	sall	$24, %edx
	orl	%edx, %eax
	movl	-100124(%rbp), %edx
	movl	%eax, -100092(%rbp)
	xorl	%eax, %eax
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movb	(%r15,%rdx), %al
	movl	-100128(%rbp), %edx
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movzbl	(%r15,%rdx), %ecx
	movl	$6, %edx
	movb	%cl, %ah
	movw	%ax, -100088(%rbp)
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L12
	subl	$6, %r14d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L48:
	movl	%ebx, %edx
	xorl	%eax, %eax
	leaq	-100080(%rbp), %rdi
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movb	(%r15,%rdx), %al
	movl	%r13d, %edx
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movzbl	(%r15,%rdx), %ecx
	movl	-100116(%rbp), %edx
	subl	%r14d, %edx
	movb	%cl, %ah
	movslq	%edx, %rdx
	movzwl	%ax, %eax
	movzbl	(%r15,%rdx), %esi
	movl	-100120(%rbp), %edx
	subl	%r14d, %edx
	sall	$16, %esi
	movslq	%edx, %rdx
	orl	%esi, %eax
	leaq	-100071(%rbp), %rsi
	movzbl	(%r15,%rdx), %edx
	sall	$24, %edx
	orl	%edx, %eax
	movl	-100124(%rbp), %edx
	movl	%eax, -100080(%rbp)
	xorl	%eax, %eax
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movb	(%r15,%rdx), %al
	movl	-100128(%rbp), %edx
	subl	%r14d, %edx
	movslq	%edx, %rdx
	movzbl	(%r15,%rdx), %ecx
	movl	$7, %edx
	movb	%cl, %ah
	movw	%ax, -100076(%rbp)
	movl	-100164(%rbp), %eax
	subl	%r14d, %eax
	cltq
	movzbl	(%r15,%rax), %eax
	movb	%al, -100074(%rbp)
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L14
	subl	$7, %r14d
	jmp	.L13
.L47:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L6
.L46:
	call	__stack_chk_fail@PLT
.L23:
	xorl	%ebx, %ebx
	jmp	.L7
	.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>

int main(void){
    char imp[100001];
    char five[5] = {0};
    char six[6] = {0};
    char seven[7] = {0};
    char dr[] = {'r','e','m','a','e','r','d'};
    char dm[] = {'m','a','e','r','d'};
    char ee[] = {'e','s','a','r','e'};
    char er[] = {'r','e','s','a','r','e'};
    int count = 0;
    fgets(imp,sizeof(imp),stdin);
    for (int i = 0; imp[i] != 0; ++i)count++;
    count -= 1;
    char str[count];
    for (int j = 0; j < count; ++j) {
        int index;
        index = count - 1 - j;
        str[j] = imp[index];
    }

    int before;
    before = count;

    do{
        if (count >= 7){
            for (int i = 0; i < 7; ++i){
                int temp;
                temp = i + before - count;
                seven[i] = str[temp];
            }
            if (strncmp(seven,dr,7) == 0){
                count -= 7;
                continue;
            }
        }

        if (count >= 6){
            for (int i = 0; i < 6; ++i){
                int temp;
                temp = i + before - count;
                six[i] = str[temp];
            }
            if (strncmp(six,er,6) == 0){
                count -= 6;
                continue;
            }
        }

        if (count >= 5){
            for (int i = 0; i < 5; ++i){
                int temp;
                temp = i + before - count;
                five[i] = str[temp];
            }
            if (strncmp(five,dm,5) == 0 || strncmp(five,ee,5) == 0){
                count -= 5;
                continue;
            }
        }
        break;
    }while (count > 0);

    if (count == 0){printf("YES");}
    else{printf("NO");}

    return 0;
}


dre`merer
 maerdesare
 resaremaerd
 dre`meqer
 er`sedream
 ersaremaerd
 reqem`erd
 eq`sedream
 ersaremadrd
 reqem`erc

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>

int main(void){
    char imp[100001];
    char five[5] = {0};
    char six[6] = {0};
    char seven[7] = {0};
    char dr[] = {'r','e','m','a','e','r','d'};
    char dm[] = {'m','a','e','r','d'};
    char ee[] = {'e','s','a','r','e'};
    char er[] = {'r','e','s','a','r','e'};
    int count = 0;
    fgets(imp,sizeof(imp),stdin);
    for (int i = 0; imp[i] != 0; ++i)count++;
    count -= 1;
    char str[count];
    for (int j = 0; j < count; ++j) {
        int index;
        index = count - 1 - j;
        str[j] = imp[index];
    }

    int before;
    before = count;

    do{
        if (count >= 7){
            for (int i = 0; i < 7; ++i){
                int temp;
                temp = i + before - count;
                seven[i] = str[temp];
            }
            if (strncmp(seven,dr,7) == 0){
                count -= 7;
                continue;
            }
        }

        if (count >= 6){
            for (int i = 0; i < 6; ++i){
                int temp;
                temp = i + before - count;
                six[i] = str[temp];
            }
            if (strncmp(six,er,6) == 0){
                count -= 6;
                continue;
            }
        }

        if (count >= 5){
            for (int i = 0; i < 5; ++i){
                int temp;
                temp = i + before - count;
                five[i] = str[temp];
            }
            if (strncmp(five,dm,5) == 0 || strncmp(five,ee,5) == 0){
                count -= 5;
                continue;
            }
        }
        break;
    }while (count > 0);

    if (count == 0){printf("YES");}
    else{printf("NO");}

    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"YES"
.LC1:
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1832, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	$0, -100105(%rbp)
	movb	$0, -100101(%rbp)
	movl	$0, -100090(%rbp)
	movw	$0, -100086(%rbp)
	movl	$0, -100078(%rbp)
	movw	$0, -100074(%rbp)
	movb	$0, -100072(%rbp)
	movl	$1634559346, -100071(%rbp)
	movw	$29285, -100067(%rbp)
	movb	$100, -100065(%rbp)
	movl	$1919246701, -100100(%rbp)
	movb	$100, -100096(%rbp)
	movl	$1918989157, -100095(%rbp)
	movb	$101, -100091(%rbp)
	movl	$1634952562, -100084(%rbp)
	movw	$25970, -100080(%rbp)
	movl	$0, -100172(%rbp)
	movq	stdin(%rip), %rdx
	leaq	-100064(%rbp), %rax
	movl	$100001, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movl	$0, -100168(%rbp)
	jmp	.L2
.L3:
	addl	$1, -100172(%rbp)
	addl	$1, -100168(%rbp)
.L2:
	movl	-100168(%rbp), %eax
	cltq
	movzbl	-100064(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L3
	subl	$1, -100172(%rbp)
	movl	-100172(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -100128(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L4:
	cmpq	%rdx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L5:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L6
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L6:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -100120(%rbp)
	movl	$0, -100164(%rbp)
	jmp	.L7
.L8:
	movl	-100172(%rbp), %eax
	subl	$1, %eax
	subl	-100164(%rbp), %eax
	movl	%eax, -100132(%rbp)
	movl	-100132(%rbp), %eax
	cltq
	movzbl	-100064(%rbp,%rax), %ecx
	movq	-100120(%rbp), %rdx
	movl	-100164(%rbp), %eax
	cltq
	movb	%cl, (%rdx,%rax)
	addl	$1, -100164(%rbp)
.L7:
	movl	-100164(%rbp), %eax
	cmpl	-100172(%rbp), %eax
	jl	.L8
	movl	-100172(%rbp), %eax
	movl	%eax, -100148(%rbp)
.L21:
	cmpl	$6, -100172(%rbp)
	jle	.L9
	movl	$0, -100160(%rbp)
	jmp	.L10
.L11:
	movl	-100160(%rbp), %edx
	movl	-100148(%rbp), %eax
	addl	%edx, %eax
	subl	-100172(%rbp), %eax
	movl	%eax, -100144(%rbp)
	movq	-100120(%rbp), %rdx
	movl	-100144(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %edx
	movl	-100160(%rbp), %eax
	cltq
	movb	%dl, -100078(%rbp,%rax)
	addl	$1, -100160(%rbp)
.L10:
	cmpl	$6, -100160(%rbp)
	jle	.L11
	leaq	-100071(%rbp), %rcx
	leaq	-100078(%rbp), %rax
	movl	$7, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L9
	subl	$7, -100172(%rbp)
	jmp	.L12
.L9:
	cmpl	$5, -100172(%rbp)
	jle	.L13
	movl	$0, -100156(%rbp)
	jmp	.L14
.L15:
	movl	-100156(%rbp), %edx
	movl	-100148(%rbp), %eax
	addl	%edx, %eax
	subl	-100172(%rbp), %eax
	movl	%eax, -100140(%rbp)
	movq	-100120(%rbp), %rdx
	movl	-100140(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %edx
	movl	-100156(%rbp), %eax
	cltq
	movb	%dl, -100090(%rbp,%rax)
	addl	$1, -100156(%rbp)
.L14:
	cmpl	$5, -100156(%rbp)
	jle	.L15
	leaq	-100084(%rbp), %rcx
	leaq	-100090(%rbp), %rax
	movl	$6, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L13
	subl	$6, -100172(%rbp)
	jmp	.L12
.L13:
	cmpl	$4, -100172(%rbp)
	jle	.L26
	movl	$0, -100152(%rbp)
	jmp	.L17
.L18:
	movl	-100152(%rbp), %edx
	movl	-100148(%rbp), %eax
	addl	%edx, %eax
	subl	-100172(%rbp), %eax
	movl	%eax, -100136(%rbp)
	movq	-100120(%rbp), %rdx
	movl	-100136(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %edx
	movl	-100152(%rbp), %eax
	cltq
	movb	%dl, -100105(%rbp,%rax)
	addl	$1, -100152(%rbp)
.L17:
	cmpl	$4, -100152(%rbp)
	jle	.L18
	leaq	-100100(%rbp), %rcx
	leaq	-100105(%rbp), %rax
	movl	$5, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L19
	leaq	-100095(%rbp), %rcx
	leaq	-100105(%rbp), %rax
	movl	$5, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L26
.L19:
	subl	$5, -100172(%rbp)
	nop
.L12:
	cmpl	$0, -100172(%rbp)
	jg	.L21
	jmp	.L20
.L26:
	nop
.L20:
	cmpl	$0, -100172(%rbp)
	jne	.L22
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L23
.L22:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L23:
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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	"YES"
.LC1:
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1832, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	$0, -100105(%rbp)
	movb	$0, -100101(%rbp)
	movl	$0, -100090(%rbp)
	movw	$0, -100086(%rbp)
	movl	$0, -100078(%rbp)
	movw	$0, -100074(%rbp)
	movb	$0, -100072(%rbp)
	movl	$1634559346, -100071(%rbp)
	movw	$29285, -100067(%rbp)
	movb	$100, -100065(%rbp)
	movl	$1919246701, -100100(%rbp)
	movb	$100, -100096(%rbp)
	movl	$1918989157, -100095(%rbp)
	movb	$101, -100091(%rbp)
	movl	$1634952562, -100084(%rbp)
	movw	$25970, -100080(%rbp)
	movl	$0, -100172(%rbp)
	movq	stdin(%rip), %rdx
	leaq	-100064(%rbp), %rax
	movl	$100001, %esi
	movq	%rax, %rdi
	call	fgets@PLT
	movl	$0, -100168(%rbp)
	jmp	.L2
.L3:
	addl	$1, -100172(%rbp)
	addl	$1, -100168(%rbp)
.L2:
	movl	-100168(%rbp), %eax
	cltq
	movzbl	-100064(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L3
	subl	$1, -100172(%rbp)
	movl	-100172(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -100128(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, %r14
	movl	$0, %r15d
	movslq	%eax, %rdx
	movq	%rdx, %r12
	movl	$0, %r13d
	cltq
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L4:
	cmpq	%rdx, %rsp
	je	.L5
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L4
.L5:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L6
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L6:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -100120(%rbp)
	movl	$0, -100164(%rbp)
	jmp	.L7
.L8:
	movl	-100172(%rbp), %eax
	subl	$1, %eax
	subl	-100164(%rbp), %eax
	movl	%eax, -100132(%rbp)
	movl	-100132(%rbp), %eax
	cltq
	movzbl	-100064(%rbp,%rax), %ecx
	movq	-100120(%rbp), %rdx
	movl	-100164(%rbp), %eax
	cltq
	movb	%cl, (%rdx,%rax)
	addl	$1, -100164(%rbp)
.L7:
	movl	-100164(%rbp), %eax
	cmpl	-100172(%rbp), %eax
	jl	.L8
	movl	-100172(%rbp), %eax
	movl	%eax, -100148(%rbp)
.L21:
	cmpl	$6, -100172(%rbp)
	jle	.L9
	movl	$0, -100160(%rbp)
	jmp	.L10
.L11:
	movl	-100160(%rbp), %edx
	movl	-100148(%rbp), %eax
	addl	%edx, %eax
	subl	-100172(%rbp), %eax
	movl	%eax, -100144(%rbp)
	movq	-100120(%rbp), %rdx
	movl	-100144(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %edx
	movl	-100160(%rbp), %eax
	cltq
	movb	%dl, -100078(%rbp,%rax)
	addl	$1, -100160(%rbp)
.L10:
	cmpl	$6, -100160(%rbp)
	jle	.L11
	leaq	-100071(%rbp), %rcx
	leaq	-100078(%rbp), %rax
	movl	$7, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L9
	subl	$7, -100172(%rbp)
	jmp	.L12
.L9:
	cmpl	$5, -100172(%rbp)
	jle	.L13
	movl	$0, -100156(%rbp)
	jmp	.L14
.L15:
	movl	-100156(%rbp), %edx
	movl	-100148(%rbp), %eax
	addl	%edx, %eax
	subl	-100172(%rbp), %eax
	movl	%eax, -100140(%rbp)
	movq	-100120(%rbp), %rdx
	movl	-100140(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %edx
	movl	-100156(%rbp), %eax
	cltq
	movb	%dl, -100090(%rbp,%rax)
	addl	$1, -100156(%rbp)
.L14:
	cmpl	$5, -100156(%rbp)
	jle	.L15
	leaq	-100084(%rbp), %rcx
	leaq	-100090(%rbp), %rax
	movl	$6, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L13
	subl	$6, -100172(%rbp)
	jmp	.L12
.L13:
	cmpl	$4, -100172(%rbp)
	jle	.L26
	movl	$0, -100152(%rbp)
	jmp	.L17
.L18:
	movl	-100152(%rbp), %edx
	movl	-100148(%rbp), %eax
	addl	%edx, %eax
	subl	-100172(%rbp), %eax
	movl	%eax, -100136(%rbp)
	movq	-100120(%rbp), %rdx
	movl	-100136(%rbp), %eax
	cltq
	movzbl	(%rdx,%rax), %edx
	movl	-100152(%rbp), %eax
	cltq
	movb	%dl, -100105(%rbp,%rax)
	addl	$1, -100152(%rbp)
.L17:
	cmpl	$4, -100152(%rbp)
	jle	.L18
	leaq	-100100(%rbp), %rcx
	leaq	-100105(%rbp), %rax
	movl	$5, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	je	.L19
	leaq	-100095(%rbp), %rcx
	leaq	-100105(%rbp), %rax
	movl	$5, %edx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	strncmp@PLT
	testl	%eax, %eax
	jne	.L26
.L19:
	subl	$5, -100172(%rbp)
	nop
.L12:
	cmpl	$0, -100172(%rbp)
	jg	.L21
	jmp	.L20
.L26:
	nop
.L20:
	cmpl	$0, -100172(%rbp)
	jne	.L22
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L23
.L22:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L23:
	movl	$0, %eax
	movq	%rbx, %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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:
