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>

void string_reverse(char s[]){

#if 0
    const size_t len = strlen(s);
    char tmp = {0};
    int i = 0;
    for(int j = len - 1; j > (len - 1) / 2; --j){
        tmp = s[j];
        s[j] = s[i];
        s[i] = tmp;
        i++;
    }
#endif

#if 1
	int size = strlen(s);
	int i,j;
	char tmp = {0};

	for(i = 0, j = size - 1; i < size / 2; i++, j--){
		tmp = s[i];
		s[i] = s[j];
		s[j] = tmp;
	}
#endif

}

int main(){
    char s[100005];
    //size_t len = sizeof(s) / sizeof(s[0]);
    char a[] = "maerd", b[] = "remaerd", c[] = "esare", d[] = "resare";

    scanf("%s", s);

#if 0
    int size = 0;
    while(s[size] != '\0'){
        size++;
    }
    char s_rev[100005];
    int i = 0;
    for(int j = size - 1; j >= 0; --j){
        s_rev[i] = s[j];
        i++;
    }
    s_rev[i] = '\0';
#endif

    size_t len = strlen(s);

    string_reverse(s);

    int j = 0;
    int flag = 0;
    while(s[j] != '\0'){
        int k = 0;
        flag = 0;
        if(s[j] != '\0' && flag == 0){
            while(a[k] != '\0'){
                if(s[j + k] == a[k]){
                    flag = 1;
                    k++;
                }else{
                    flag = 0;
                    k = 0;
                    break;
                }
            }
            if(flag == 1){
                j += k;
                k = 0;
            }
        }
        if(s[j] != '\0' && flag == 0){
            while(b[k] != '\0'){
                if(s[j + k] == b[k]){
                    flag = 1;
                    k++;
                }else{
                    flag = 0;
                    k = 0;
                    break;
                }
            }
            if(flag == 1){
                j += k;
                k = 0;
            }
        }
        if(s[j] != '\0' && flag == 0){
            while(c[k] != '\0'){
                if(s[j + k] == c[k]){
                    flag = 1;
                    k++;
                }else{
                    flag = 0;
                    k = 0;
                    break;
                }
            }
            if(flag == 1){
                j += k;
                k = 0;
            }
        }
        if(s[j] != '\0' && flag == 0){
            while(d[k] != '\0'){
                if(s[j + k] == d[k]){
                    flag = 1;
                    k++;
                }else{
                    flag = 0;
                    k = 0;
                    break;
                }
            }
            if(flag == 1){
                j += k;
                k = 0;
            }
        }
        if(flag == 0) break;
    }

    if(flag == 1) puts("YES");
    else puts("NO");

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	string_reverse
	.type	string_reverse, @function
string_reverse:
.LFB0:
	.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
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -4(%rbp)
	movb	$0, -13(%rbp)
	movl	$0, -12(%rbp)
	movl	-4(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L2
.L3:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -13(%rbp)
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movzbl	-13(%rbp), %eax
	movb	%al, (%rdx)
	addl	$1, -12(%rbp)
	subl	$1, -8(%rbp)
.L2:
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -12(%rbp)
	jl	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	string_reverse, .-string_reverse
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1776, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1919246701, -100043(%rbp)
	movw	$100, -100039(%rbp)
	movabsq	$28273277422888306, %rax
	movq	%rax, -100024(%rbp)
	movl	$1918989157, -100037(%rbp)
	movw	$101, -100033(%rbp)
	movl	$1634952562, -100031(%rbp)
	movw	$25970, -100027(%rbp)
	movb	$0, -100025(%rbp)
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, -100056(%rbp)
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	string_reverse
	movl	$0, -100068(%rbp)
	movl	$0, -100064(%rbp)
	jmp	.L5
.L27:
	movl	$0, -100060(%rbp)
	movl	$0, -100064(%rbp)
	movl	-100068(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	je	.L6
	cmpl	$0, -100064(%rbp)
	jne	.L6
	jmp	.L7
.L10:
	movl	-100068(%rbp), %edx
	movl	-100060(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100043(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L8
	movl	$1, -100064(%rbp)
	addl	$1, -100060(%rbp)
	jmp	.L7
.L8:
	movl	$0, -100064(%rbp)
	movl	$0, -100060(%rbp)
	jmp	.L9
.L7:
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100043(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L10
.L9:
	cmpl	$1, -100064(%rbp)
	jne	.L6
	movl	-100060(%rbp), %eax
	addl	%eax, -100068(%rbp)
	movl	$0, -100060(%rbp)
.L6:
	movl	-100068(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	je	.L11
	cmpl	$0, -100064(%rbp)
	jne	.L11
	jmp	.L12
.L15:
	movl	-100068(%rbp), %edx
	movl	-100060(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100024(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	movl	$1, -100064(%rbp)
	addl	$1, -100060(%rbp)
	jmp	.L12
.L13:
	movl	$0, -100064(%rbp)
	movl	$0, -100060(%rbp)
	jmp	.L14
.L12:
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100024(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L15
.L14:
	cmpl	$1, -100064(%rbp)
	jne	.L11
	movl	-100060(%rbp), %eax
	addl	%eax, -100068(%rbp)
	movl	$0, -100060(%rbp)
.L11:
	movl	-100068(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	je	.L16
	cmpl	$0, -100064(%rbp)
	jne	.L16
	jmp	.L17
.L20:
	movl	-100068(%rbp), %edx
	movl	-100060(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100037(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L18
	movl	$1, -100064(%rbp)
	addl	$1, -100060(%rbp)
	jmp	.L17
.L18:
	movl	$0, -100064(%rbp)
	movl	$0, -100060(%rbp)
	jmp	.L19
.L17:
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100037(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L20
.L19:
	cmpl	$1, -100064(%rbp)
	jne	.L16
	movl	-100060(%rbp), %eax
	addl	%eax, -100068(%rbp)
	movl	$0, -100060(%rbp)
.L16:
	movl	-100068(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	je	.L21
	cmpl	$0, -100064(%rbp)
	jne	.L21
	jmp	.L22
.L25:
	movl	-100068(%rbp), %edx
	movl	-100060(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100031(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L23
	movl	$1, -100064(%rbp)
	addl	$1, -100060(%rbp)
	jmp	.L22
.L23:
	movl	$0, -100064(%rbp)
	movl	$0, -100060(%rbp)
	jmp	.L24
.L22:
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100031(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L25
.L24:
	cmpl	$1, -100064(%rbp)
	jne	.L21
	movl	-100060(%rbp), %eax
	addl	%eax, -100068(%rbp)
	movl	$0, -100060(%rbp)
.L21:
	cmpl	$0, -100064(%rbp)
	je	.L32
.L5:
	movl	-100068(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L27
	jmp	.L26
.L32:
	nop
.L26:
	cmpl	$1, -100064(%rbp)
	jne	.L28
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L29
.L28:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L29:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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_reverse
	.type	string_reverse, @function
string_reverse:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	call	strlen@PLT
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	cmpl	$1, %eax
	jle	.L1
	leal	-1(%rax), %edx
	xorl	%eax, %eax
	movslq	%edx, %rdx
	addq	%rbx, %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	movzbl	(%rdx), %esi
	movzbl	(%rbx,%rax), %ecx
	subq	$1, %rdx
	movb	%sil, (%rbx,%rax)
	addq	$1, %rax
	movb	%cl, 1(%rdx)
	cmpl	%eax, %edi
	jg	.L3
.L1:
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	string_reverse, .-string_reverse
	.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:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98320
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1712, %rsp
	.cfi_def_cfa_offset 100032
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100008(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	string_reverse
	xorl	%eax, %eax
	xorl	%edx, %edx
	cmpb	$0, (%rsp)
	je	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	movzbl	(%rsp,%rdx), %edx
	cmpb	$109, %dl
	jne	.L16
	leal	1(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$97, (%rsp,%rdx)
	jne	.L9
	leal	2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L9
	leal	3(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L9
	leal	4(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$100, (%rsp,%rdx)
	jne	.L9
	addl	$5, %eax
	movslq	%eax, %rdx
	cmpb	$0, (%rsp,%rdx)
	jne	.L8
.L11:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L18:
	movq	100008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$100016, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	cmpb	$114, %dl
	jne	.L12
	leal	1(%rax), %ecx
	movslq	%ecx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L13
	leal	2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$109, (%rsp,%rdx)
	jne	.L13
	leal	3(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$97, (%rsp,%rdx)
	jne	.L13
	leal	4(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L13
	leal	5(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L13
	leal	6(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$100, (%rsp,%rdx)
	jne	.L13
	addl	$7, %eax
	movslq	%eax, %rdx
	cmpb	$0, (%rsp,%rdx)
	jne	.L8
	jmp	.L11
.L13:
	movslq	%ecx, %rcx
	cmpb	$101, (%rsp,%rcx)
	je	.L33
.L9:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L18
.L33:
	leal	2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$115, (%rsp,%rdx)
	jne	.L9
	leal	3(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$97, (%rsp,%rdx)
	jne	.L9
	leal	4(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L9
	leal	5(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L9
	addl	$6, %eax
	movslq	%eax, %rdx
	movzbl	(%rsp,%rdx), %ecx
.L15:
	testb	%cl, %cl
	jne	.L8
	jmp	.L11
.L12:
	cmpb	$101, %dl
	jne	.L9
	leal	1(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$115, (%rsp,%rdx)
	jne	.L9
	leal	2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$97, (%rsp,%rdx)
	jne	.L9
	leal	3(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L9
	leal	4(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L9
	addl	$5, %eax
	movslq	%eax, %rdx
	movzbl	(%rsp,%rdx), %ecx
	jmp	.L15
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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_reverse
	.type	string_reverse, @function
string_reverse:
.LFB35:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movq	%rdi, %rbx
	call	strlen@PLT
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	cmpl	$1, %eax
	jle	.L1
	leal	-1(%rax), %edx
	xorl	%eax, %eax
	movslq	%edx, %rdx
	addq	%rbx, %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	movzbl	(%rdx), %esi
	movzbl	(%rbx,%rax), %ecx
	subq	$1, %rdx
	movb	%sil, (%rbx,%rax)
	addq	$1, %rax
	movb	%cl, 1(%rdx)
	cmpl	%eax, %edi
	jg	.L3
.L1:
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE35:
	.size	string_reverse, .-string_reverse
	.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:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98320
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1712, %rsp
	.cfi_def_cfa_offset 100032
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 100008(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rbp
	movq	%rbp, %rsi
	call	__isoc99_scanf@PLT
	movq	%rbp, %rdi
	call	string_reverse
	xorl	%eax, %eax
	xorl	%edx, %edx
	cmpb	$0, (%rsp)
	je	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	movzbl	(%rsp,%rdx), %edx
	cmpb	$109, %dl
	jne	.L16
	leal	1(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$97, (%rsp,%rdx)
	jne	.L9
	leal	2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L9
	leal	3(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L9
	leal	4(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$100, (%rsp,%rdx)
	jne	.L9
	addl	$5, %eax
	movslq	%eax, %rdx
	cmpb	$0, (%rsp,%rdx)
	jne	.L8
.L11:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L18:
	movq	100008(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L32
	addq	$100016, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	cmpb	$114, %dl
	jne	.L12
	leal	1(%rax), %ecx
	movslq	%ecx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L13
	leal	2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$109, (%rsp,%rdx)
	jne	.L13
	leal	3(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$97, (%rsp,%rdx)
	jne	.L13
	leal	4(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L13
	leal	5(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L13
	leal	6(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$100, (%rsp,%rdx)
	jne	.L13
	addl	$7, %eax
	movslq	%eax, %rdx
	cmpb	$0, (%rsp,%rdx)
	jne	.L8
	jmp	.L11
.L13:
	movslq	%ecx, %rcx
	cmpb	$101, (%rsp,%rcx)
	je	.L33
.L9:
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L18
.L33:
	leal	2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$115, (%rsp,%rdx)
	jne	.L9
	leal	3(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$97, (%rsp,%rdx)
	jne	.L9
	leal	4(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L9
	leal	5(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L9
	addl	$6, %eax
	movslq	%eax, %rdx
	movzbl	(%rsp,%rdx), %ecx
.L15:
	testb	%cl, %cl
	jne	.L8
	jmp	.L11
.L12:
	cmpb	$101, %dl
	jne	.L9
	leal	1(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$115, (%rsp,%rdx)
	jne	.L9
	leal	2(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$97, (%rsp,%rdx)
	jne	.L9
	leal	3(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$114, (%rsp,%rdx)
	jne	.L9
	leal	4(%rax), %edx
	movslq	%edx, %rdx
	cmpb	$101, (%rsp,%rdx)
	jne	.L9
	addl	$5, %eax
	movslq	%eax, %rdx
	movzbl	(%rsp,%rdx), %ecx
	jmp	.L15
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE36:
	.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>

void string_reverse(char s[]){

#if 0
    const size_t len = strlen(s);
    char tmp = {0};
    int i = 0;
    for(int j = len - 1; j > (len - 1) / 2; --j){
        tmp = s[j];
        s[j] = s[i];
        s[i] = tmp;
        i++;
    }
#endif

#if 1
	int size = strlen(s);
	int i,j;
	char tmp = {0};

	for(i = 0, j = size - 1; i < size / 2; i++, j--){
		tmp = s[i];
		s[i] = s[j];
		s[j] = tmp;
	}
#endif

}

int main(){
    char s[100005];
    //size_t len = sizeof(s) / sizeof(s[0]);
    char a[] = "maerd", b[] = "remaerd", c[] = "esare", d[] = "resare";

    scanf("%s", s);

#if 0
    int size = 0;
    while(s[size] != '\0'){
        size++;
    }
    char s_rev[100005];
    int i = 0;
    for(int j = size - 1; j >= 0; --j){
        s_rev[i] = s[j];
        i++;
    }
    s_rev[i] = '\0';
#endif

    size_t len = strlen(s);

    string_reverse(s);

    int j = 0;
    int flag = 0;
    while(s[j] != '\0'){
        int k = 0;
        flag = 0;
        if(s[j] != '\0' && flag == 0){
            while(a[k] != '\0'){
                if(s[j + k] == a[k]){
                    flag = 1;
                    k++;
                }else{
                    flag = 0;
                    k = 0;
                    break;
                }
            }
            if(flag == 1){
                j += k;
                k = 0;
            }
        }
        if(s[j] != '\0' && flag == 0){
            while(b[k] != '\0'){
                if(s[j + k] == b[k]){
                    flag = 1;
                    k++;
                }else{
                    flag = 0;
                    k = 0;
                    break;
                }
            }
            if(flag == 1){
                j += k;
                k = 0;
            }
        }
        if(s[j] != '\0' && flag == 0){
            while(c[k] != '\0'){
                if(s[j + k] == c[k]){
                    flag = 1;
                    k++;
                }else{
                    flag = 0;
                    k = 0;
                    break;
                }
            }
            if(flag == 1){
                j += k;
                k = 0;
            }
        }
        if(s[j] != '\0' && flag == 0){
            while(d[k] != '\0'){
                if(s[j + k] == d[k]){
                    flag = 1;
                    k++;
                }else{
                    flag = 0;
                    k = 0;
                    break;
                }
            }
            if(flag == 1){
                j += k;
                k = 0;
            }
        }
        if(flag == 0) break;
    }

    if(flag == 1) puts("YES");
    else puts("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>

void string_reverse(char s[]){

#if 0
    const size_t len = strlen(s);
    char tmp = {0};
    int i = 0;
    for(int j = len - 1; j > (len - 1) / 2; --j){
        tmp = s[j];
        s[j] = s[i];
        s[i] = tmp;
        i++;
    }
#endif

#if 1
	int size = strlen(s);
	int i,j;
	char tmp = {0};

	for(i = 0, j = size - 1; i < size / 2; i++, j--){
		tmp = s[i];
		s[i] = s[j];
		s[j] = tmp;
	}
#endif

}

int main(){
    char s[100005];
    //size_t len = sizeof(s) / sizeof(s[0]);
    char a[] = "maerd", b[] = "remaerd", c[] = "esare", d[] = "resare";

    scanf("%s", s);

#if 0
    int size = 0;
    while(s[size] != '\0'){
        size++;
    }
    char s_rev[100005];
    int i = 0;
    for(int j = size - 1; j >= 0; --j){
        s_rev[i] = s[j];
        i++;
    }
    s_rev[i] = '\0';
#endif

    size_t len = strlen(s);

    string_reverse(s);

    int j = 0;
    int flag = 0;
    while(s[j] != '\0'){
        int k = 0;
        flag = 0;
        if(s[j] != '\0' && flag == 0){
            while(a[k] != '\0'){
                if(s[j + k] == a[k]){
                    flag = 1;
                    k++;
                }else{
                    flag = 0;
                    k = 0;
                    break;
                }
            }
            if(flag == 1){
                j += k;
                k = 0;
            }
        }
        if(s[j] != '\0' && flag == 0){
            while(b[k] != '\0'){
                if(s[j + k] == b[k]){
                    flag = 1;
                    k++;
                }else{
                    flag = 0;
                    k = 0;
                    break;
                }
            }
            if(flag == 1){
                j += k;
                k = 0;
            }
        }
        if(s[j] != '\0' && flag == 0){
            while(c[k] != '\0'){
                if(s[j + k] == c[k]){
                    flag = 1;
                    k++;
                }else{
                    flag = 0;
                    k = 0;
                    break;
                }
            }
            if(flag == 1){
                j += k;
                k = 0;
            }
        }
        if(s[j] != '\0' && flag == 0){
            while(d[k] != '\0'){
                if(s[j + k] == d[k]){
                    flag = 1;
                    k++;
                }else{
                    flag = 0;
                    k = 0;
                    break;
                }
            }
            if(flag == 1){
                j += k;
                k = 0;
            }
        }
        if(flag == 0) break;
    }

    if(flag == 1) puts("YES");
    else puts("NO");

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	string_reverse
	.type	string_reverse, @function
string_reverse:
.LFB0:
	.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
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -4(%rbp)
	movb	$0, -13(%rbp)
	movl	$0, -12(%rbp)
	movl	-4(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L2
.L3:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -13(%rbp)
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movzbl	-13(%rbp), %eax
	movb	%al, (%rdx)
	addl	$1, -12(%rbp)
	subl	$1, -8(%rbp)
.L2:
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -12(%rbp)
	jl	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	string_reverse, .-string_reverse
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1776, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1919246701, -100043(%rbp)
	movw	$100, -100039(%rbp)
	movabsq	$28273277422888306, %rax
	movq	%rax, -100024(%rbp)
	movl	$1918989157, -100037(%rbp)
	movw	$101, -100033(%rbp)
	movl	$1634952562, -100031(%rbp)
	movw	$25970, -100027(%rbp)
	movb	$0, -100025(%rbp)
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, -100056(%rbp)
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	string_reverse
	movl	$0, -100068(%rbp)
	movl	$0, -100064(%rbp)
	jmp	.L5
.L27:
	movl	$0, -100060(%rbp)
	movl	$0, -100064(%rbp)
	movl	-100068(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	je	.L6
	cmpl	$0, -100064(%rbp)
	jne	.L6
	jmp	.L7
.L10:
	movl	-100068(%rbp), %edx
	movl	-100060(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100043(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L8
	movl	$1, -100064(%rbp)
	addl	$1, -100060(%rbp)
	jmp	.L7
.L8:
	movl	$0, -100064(%rbp)
	movl	$0, -100060(%rbp)
	jmp	.L9
.L7:
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100043(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L10
.L9:
	cmpl	$1, -100064(%rbp)
	jne	.L6
	movl	-100060(%rbp), %eax
	addl	%eax, -100068(%rbp)
	movl	$0, -100060(%rbp)
.L6:
	movl	-100068(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	je	.L11
	cmpl	$0, -100064(%rbp)
	jne	.L11
	jmp	.L12
.L15:
	movl	-100068(%rbp), %edx
	movl	-100060(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100024(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	movl	$1, -100064(%rbp)
	addl	$1, -100060(%rbp)
	jmp	.L12
.L13:
	movl	$0, -100064(%rbp)
	movl	$0, -100060(%rbp)
	jmp	.L14
.L12:
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100024(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L15
.L14:
	cmpl	$1, -100064(%rbp)
	jne	.L11
	movl	-100060(%rbp), %eax
	addl	%eax, -100068(%rbp)
	movl	$0, -100060(%rbp)
.L11:
	movl	-100068(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	je	.L16
	cmpl	$0, -100064(%rbp)
	jne	.L16
	jmp	.L17
.L20:
	movl	-100068(%rbp), %edx
	movl	-100060(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100037(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L18
	movl	$1, -100064(%rbp)
	addl	$1, -100060(%rbp)
	jmp	.L17
.L18:
	movl	$0, -100064(%rbp)
	movl	$0, -100060(%rbp)
	jmp	.L19
.L17:
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100037(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L20
.L19:
	cmpl	$1, -100064(%rbp)
	jne	.L16
	movl	-100060(%rbp), %eax
	addl	%eax, -100068(%rbp)
	movl	$0, -100060(%rbp)
.L16:
	movl	-100068(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	je	.L21
	cmpl	$0, -100064(%rbp)
	jne	.L21
	jmp	.L22
.L25:
	movl	-100068(%rbp), %edx
	movl	-100060(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100031(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L23
	movl	$1, -100064(%rbp)
	addl	$1, -100060(%rbp)
	jmp	.L22
.L23:
	movl	$0, -100064(%rbp)
	movl	$0, -100060(%rbp)
	jmp	.L24
.L22:
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100031(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L25
.L24:
	cmpl	$1, -100064(%rbp)
	jne	.L21
	movl	-100060(%rbp), %eax
	addl	%eax, -100068(%rbp)
	movl	$0, -100060(%rbp)
.L21:
	cmpl	$0, -100064(%rbp)
	je	.L32
.L5:
	movl	-100068(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L27
	jmp	.L26
.L32:
	nop
.L26:
	cmpl	$1, -100064(%rbp)
	jne	.L28
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L29
.L28:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L29:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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_reverse
	.type	string_reverse, @function
string_reverse:
.LFB0:
	.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
	movq	%rdi, -24(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movl	%eax, -4(%rbp)
	movb	$0, -13(%rbp)
	movl	$0, -12(%rbp)
	movl	-4(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L2
.L3:
	movl	-12(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movb	%al, -13(%rbp)
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	movq	-24(%rbp), %rdx
	addq	%rcx, %rdx
	movzbl	(%rax), %eax
	movb	%al, (%rdx)
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movq	-24(%rbp), %rax
	addq	%rax, %rdx
	movzbl	-13(%rbp), %eax
	movb	%al, (%rdx)
	addl	$1, -12(%rbp)
	subl	$1, -8(%rbp)
.L2:
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -12(%rbp)
	jl	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	string_reverse, .-string_reverse
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"YES"
.LC2:
	.string	"NO"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1776, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1919246701, -100043(%rbp)
	movw	$100, -100039(%rbp)
	movabsq	$28273277422888306, %rax
	movq	%rax, -100024(%rbp)
	movl	$1918989157, -100037(%rbp)
	movw	$101, -100033(%rbp)
	movl	$1634952562, -100031(%rbp)
	movw	$25970, -100027(%rbp)
	movb	$0, -100025(%rbp)
	leaq	-100016(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	strlen@PLT
	movq	%rax, -100056(%rbp)
	leaq	-100016(%rbp), %rax
	movq	%rax, %rdi
	call	string_reverse
	movl	$0, -100068(%rbp)
	movl	$0, -100064(%rbp)
	jmp	.L5
.L27:
	movl	$0, -100060(%rbp)
	movl	$0, -100064(%rbp)
	movl	-100068(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	je	.L6
	cmpl	$0, -100064(%rbp)
	jne	.L6
	jmp	.L7
.L10:
	movl	-100068(%rbp), %edx
	movl	-100060(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100043(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L8
	movl	$1, -100064(%rbp)
	addl	$1, -100060(%rbp)
	jmp	.L7
.L8:
	movl	$0, -100064(%rbp)
	movl	$0, -100060(%rbp)
	jmp	.L9
.L7:
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100043(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L10
.L9:
	cmpl	$1, -100064(%rbp)
	jne	.L6
	movl	-100060(%rbp), %eax
	addl	%eax, -100068(%rbp)
	movl	$0, -100060(%rbp)
.L6:
	movl	-100068(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	je	.L11
	cmpl	$0, -100064(%rbp)
	jne	.L11
	jmp	.L12
.L15:
	movl	-100068(%rbp), %edx
	movl	-100060(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100024(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L13
	movl	$1, -100064(%rbp)
	addl	$1, -100060(%rbp)
	jmp	.L12
.L13:
	movl	$0, -100064(%rbp)
	movl	$0, -100060(%rbp)
	jmp	.L14
.L12:
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100024(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L15
.L14:
	cmpl	$1, -100064(%rbp)
	jne	.L11
	movl	-100060(%rbp), %eax
	addl	%eax, -100068(%rbp)
	movl	$0, -100060(%rbp)
.L11:
	movl	-100068(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	je	.L16
	cmpl	$0, -100064(%rbp)
	jne	.L16
	jmp	.L17
.L20:
	movl	-100068(%rbp), %edx
	movl	-100060(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100037(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L18
	movl	$1, -100064(%rbp)
	addl	$1, -100060(%rbp)
	jmp	.L17
.L18:
	movl	$0, -100064(%rbp)
	movl	$0, -100060(%rbp)
	jmp	.L19
.L17:
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100037(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L20
.L19:
	cmpl	$1, -100064(%rbp)
	jne	.L16
	movl	-100060(%rbp), %eax
	addl	%eax, -100068(%rbp)
	movl	$0, -100060(%rbp)
.L16:
	movl	-100068(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	je	.L21
	cmpl	$0, -100064(%rbp)
	jne	.L21
	jmp	.L22
.L25:
	movl	-100068(%rbp), %edx
	movl	-100060(%rbp), %eax
	addl	%edx, %eax
	cltq
	movzbl	-100016(%rbp,%rax), %edx
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100031(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L23
	movl	$1, -100064(%rbp)
	addl	$1, -100060(%rbp)
	jmp	.L22
.L23:
	movl	$0, -100064(%rbp)
	movl	$0, -100060(%rbp)
	jmp	.L24
.L22:
	movl	-100060(%rbp), %eax
	cltq
	movzbl	-100031(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L25
.L24:
	cmpl	$1, -100064(%rbp)
	jne	.L21
	movl	-100060(%rbp), %eax
	addl	%eax, -100068(%rbp)
	movl	$0, -100060(%rbp)
.L21:
	cmpl	$0, -100064(%rbp)
	je	.L32
.L5:
	movl	-100068(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	testb	%al, %al
	jne	.L27
	jmp	.L26
.L32:
	nop
.L26:
	cmpl	$1, -100064(%rbp)
	jne	.L28
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L29
.L28:
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L29:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
