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>
char a[]={'A','B','C','D','E','F'};
char b[2];
int main()
{
    int i=0,j=0;
    scanf("%c %c",&b[0],&b[1]);
    getchar();
    while(a[i]!='\0')
    {
        if(b[0]==a[i])
        {
            break;
        }
        i++;
    }
    i=i+1;
    while(a[j]!='\0')
    {
        if(b[1]==a[j])
        {
            break;
        }
        j++;
    }
    j=j+1;
    if(i>j)
    {
        printf(">\n");
    }
    else if(i==j)
    {
        printf("=\n");
    }
    else
    {
        printf("<\n");
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.data
	.type	a, @object
	.size	a, 6
a:
	.ascii	"ABCDEF"
	.globl	b
	.bss
	.type	b, @object
	.size	b, 2
b:
	.zero	2
	.section	.rodata
.LC0:
	.string	"%c %c"
.LC1:
	.string	">"
.LC2:
	.string	"="
.LC3:
	.string	"<"
	.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
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	leaq	1+b(%rip), %rax
	movq	%rax, %rdx
	leaq	b(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	jmp	.L2
.L5:
	movzbl	b(%rip), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	a(%rip), %rcx
	movzbl	(%rax,%rcx), %eax
	cmpb	%al, %dl
	je	.L14
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L5
	jmp	.L4
.L14:
	nop
.L4:
	addl	$1, -8(%rbp)
	jmp	.L6
.L9:
	movzbl	1+b(%rip), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	a(%rip), %rcx
	movzbl	(%rax,%rcx), %eax
	cmpb	%al, %dl
	je	.L15
	addl	$1, -4(%rbp)
.L6:
	movl	-4(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L9
	jmp	.L8
.L15:
	nop
.L8:
	addl	$1, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L10
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L11
.L10:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jne	.L12
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L11
.L12:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L11:
	movl	$0, %eax
	leave
	.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	"%c %c"
.LC1:
	.string	">"
.LC2:
	.string	"="
.LC3:
	.string	"<"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	leaq	1+b(%rip), %rdx
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	leaq	-1(%rdx), %rsi
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movzbl	a(%rip), %ecx
	testb	%cl, %cl
	je	.L2
	movzbl	b(%rip), %eax
	cmpb	%cl, %al
	je	.L12
	movzbl	1+a(%rip), %edx
	testb	%dl, %dl
	je	.L14
	cmpb	%dl, %al
	je	.L14
	movzbl	2+a(%rip), %edx
	testb	%dl, %dl
	je	.L16
	cmpb	%dl, %al
	je	.L16
	movzbl	3+a(%rip), %edx
	testb	%dl, %dl
	je	.L18
	cmpb	%dl, %al
	je	.L18
	movzbl	4+a(%rip), %edx
	testb	%dl, %dl
	je	.L19
	cmpb	%dl, %al
	setne	%al
	movzbl	%al, %eax
	addl	$4, %eax
.L5:
	movzbl	1+b(%rip), %edx
	cmpb	%cl, %dl
	je	.L22
	movzbl	1+a(%rip), %ecx
	testb	%cl, %cl
	je	.L23
	cmpb	%cl, %dl
	je	.L23
	movzbl	2+a(%rip), %ecx
	testb	%cl, %cl
	je	.L25
	cmpb	%cl, %dl
	je	.L25
	movzbl	3+a(%rip), %ecx
	testb	%cl, %cl
	je	.L27
	cmpb	%cl, %dl
	je	.L27
	movzbl	4+a(%rip), %ecx
	testb	%cl, %cl
	je	.L29
	cmpb	%cl, %dl
	je	.L29
	movl	$5, %edx
.L7:
	cmpl	%edx, %eax
	je	.L2
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L34:
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L34
.L14:
	movl	$1, %eax
	jmp	.L5
.L23:
	movl	$1, %edx
.L6:
	cmpl	%eax, %edx
	jge	.L7
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L34
.L16:
	movl	$2, %eax
	jmp	.L5
.L25:
	movl	$2, %edx
	jmp	.L6
.L18:
	movl	$3, %eax
	jmp	.L5
.L27:
	movl	$3, %edx
	jmp	.L6
.L29:
	movl	$4, %edx
	jmp	.L6
.L22:
	xorl	%edx, %edx
	jmp	.L6
.L12:
	xorl	%eax, %eax
	jmp	.L5
.L19:
	movl	$4, %eax
	jmp	.L5
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	b
	.bss
	.type	b, @object
	.size	b, 2
b:
	.zero	2
	.globl	a
	.data
	.type	a, @object
	.size	a, 6
a:
	.ascii	"ABCDEF"
	.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	"%c %c"
.LC1:
	.string	">"
.LC2:
	.string	"="
.LC3:
	.string	"<"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	leaq	1+b(%rip), %rdx
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	leaq	-1(%rdx), %rsi
	call	__isoc99_scanf@PLT
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movzbl	a(%rip), %ecx
	testb	%cl, %cl
	je	.L2
	movzbl	b(%rip), %eax
	cmpb	%cl, %al
	je	.L12
	movzbl	1+a(%rip), %edx
	testb	%dl, %dl
	je	.L14
	cmpb	%dl, %al
	je	.L14
	movzbl	2+a(%rip), %edx
	testb	%dl, %dl
	je	.L16
	cmpb	%dl, %al
	je	.L16
	movzbl	3+a(%rip), %edx
	testb	%dl, %dl
	je	.L18
	cmpb	%dl, %al
	je	.L18
	movzbl	4+a(%rip), %edx
	testb	%dl, %dl
	je	.L19
	cmpb	%dl, %al
	setne	%al
	movzbl	%al, %eax
	addl	$4, %eax
.L5:
	movzbl	1+b(%rip), %edx
	cmpb	%cl, %dl
	je	.L22
	movzbl	1+a(%rip), %ecx
	testb	%cl, %cl
	je	.L23
	cmpb	%cl, %dl
	je	.L23
	movzbl	2+a(%rip), %ecx
	testb	%cl, %cl
	je	.L25
	cmpb	%cl, %dl
	je	.L25
	movzbl	3+a(%rip), %ecx
	testb	%cl, %cl
	je	.L27
	cmpb	%cl, %dl
	je	.L27
	movzbl	4+a(%rip), %ecx
	testb	%cl, %cl
	je	.L29
	cmpb	%cl, %dl
	je	.L29
	movl	$5, %edx
.L7:
	cmpl	%edx, %eax
	je	.L2
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
.L34:
	xorl	%eax, %eax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L34
.L14:
	movl	$1, %eax
	jmp	.L5
.L23:
	movl	$1, %edx
.L6:
	cmpl	%eax, %edx
	jge	.L7
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L34
.L16:
	movl	$2, %eax
	jmp	.L5
.L25:
	movl	$2, %edx
	jmp	.L6
.L18:
	movl	$3, %eax
	jmp	.L5
.L27:
	movl	$3, %edx
	jmp	.L6
.L29:
	movl	$4, %edx
	jmp	.L6
.L22:
	xorl	%edx, %edx
	jmp	.L6
.L12:
	xorl	%eax, %eax
	jmp	.L5
.L19:
	movl	$4, %eax
	jmp	.L5
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	b
	.bss
	.type	b, @object
	.size	b, 2
b:
	.zero	2
	.globl	a
	.data
	.type	a, @object
	.size	a, 6
a:
	.ascii	"ABCDEF"
	.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>
char a[]={'A','B','C','D','E','F'};
char b[2];
int main()
{
    int i=0,j=0;
    scanf("%c %c",&b[0],&b[1]);
    getchar();
    while(a[i]!='\0')
    {
        if(b[0]==a[i])
        {
            break;
        }
        i++;
    }
    i=i+1;
    while(a[j]!='\0')
    {
        if(b[1]==a[j])
        {
            break;
        }
        j++;
    }
    j=j+1;
    if(i>j)
    {
        printf(">\n");
    }
    else if(i==j)
    {
        printf("=\n");
    }
    else
    {
        printf("<\n");
    }
    return 0;
}
E F
 A A
 E B
 D F
 A C
 E A
 E E
 A D
 D B
 F E

<
 =
 >
 <
 <
 >
 =
 <
 >
 >

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>
char a[]={'A','B','C','D','E','F'};
char b[2];
int main()
{
    int i=0,j=0;
    scanf("%c %c",&b[0],&b[1]);
    getchar();
    while(a[i]!='\0')
    {
        if(b[0]==a[i])
        {
            break;
        }
        i++;
    }
    i=i+1;
    while(a[j]!='\0')
    {
        if(b[1]==a[j])
        {
            break;
        }
        j++;
    }
    j=j+1;
    if(i>j)
    {
        printf(">\n");
    }
    else if(i==j)
    {
        printf("=\n");
    }
    else
    {
        printf("<\n");
    }
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.data
	.type	a, @object
	.size	a, 6
a:
	.ascii	"ABCDEF"
	.globl	b
	.bss
	.type	b, @object
	.size	b, 2
b:
	.zero	2
	.section	.rodata
.LC0:
	.string	"%c %c"
.LC1:
	.string	">"
.LC2:
	.string	"="
.LC3:
	.string	"<"
	.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
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	leaq	1+b(%rip), %rax
	movq	%rax, %rdx
	leaq	b(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	jmp	.L2
.L5:
	movzbl	b(%rip), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	a(%rip), %rcx
	movzbl	(%rax,%rcx), %eax
	cmpb	%al, %dl
	je	.L14
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L5
	jmp	.L4
.L14:
	nop
.L4:
	addl	$1, -8(%rbp)
	jmp	.L6
.L9:
	movzbl	1+b(%rip), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	a(%rip), %rcx
	movzbl	(%rax,%rcx), %eax
	cmpb	%al, %dl
	je	.L15
	addl	$1, -4(%rbp)
.L6:
	movl	-4(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L9
	jmp	.L8
.L15:
	nop
.L8:
	addl	$1, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L10
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L11
.L10:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jne	.L12
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L11
.L12:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L11:
	movl	$0, %eax
	leave
	.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
	.globl	a
	.data
	.type	a, @object
	.size	a, 6
a:
	.ascii	"ABCDEF"
	.globl	b
	.bss
	.type	b, @object
	.size	b, 2
b:
	.zero	2
	.section	.rodata
.LC0:
	.string	"%c %c"
.LC1:
	.string	">"
.LC2:
	.string	"="
.LC3:
	.string	"<"
	.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
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	leaq	1+b(%rip), %rax
	movq	%rax, %rdx
	leaq	b(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	jmp	.L2
.L5:
	movzbl	b(%rip), %edx
	movl	-8(%rbp), %eax
	cltq
	leaq	a(%rip), %rcx
	movzbl	(%rax,%rcx), %eax
	cmpb	%al, %dl
	je	.L14
	addl	$1, -8(%rbp)
.L2:
	movl	-8(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L5
	jmp	.L4
.L14:
	nop
.L4:
	addl	$1, -8(%rbp)
	jmp	.L6
.L9:
	movzbl	1+b(%rip), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	a(%rip), %rcx
	movzbl	(%rax,%rcx), %eax
	cmpb	%al, %dl
	je	.L15
	addl	$1, -4(%rbp)
.L6:
	movl	-4(%rbp), %eax
	cltq
	leaq	a(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L9
	jmp	.L8
.L15:
	nop
.L8:
	addl	$1, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jle	.L10
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L11
.L10:
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jne	.L12
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L11
.L12:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L11:
	movl	$0, %eax
	leave
	.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:
