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>

int main(void)
{
    char ch[6] = "ABCDEF";
    char a, b;
    int n, m;

    scanf("%c %c", &a, &b);
    for (int i = 0; i < 6; i++){
        if (a == ch[i])
        n = i;
        if (b == ch[i])
        m = i;
    }

    if (n > m)
        printf(">");
    else if (n < m)
        printf("<");
    else if (n == m)
        printf("=");

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%c %c"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1145258561, -14(%rbp)
	movw	$17989, -10(%rbp)
	leaq	-29(%rbp), %rdx
	leaq	-30(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -20(%rbp)
	jmp	.L2
.L5:
	movl	-20(%rbp), %eax
	cltq
	movzbl	-14(%rbp,%rax), %edx
	movzbl	-30(%rbp), %eax
	cmpb	%al, %dl
	jne	.L3
	movl	-20(%rbp), %eax
	movl	%eax, -28(%rbp)
.L3:
	movl	-20(%rbp), %eax
	cltq
	movzbl	-14(%rbp,%rax), %edx
	movzbl	-29(%rbp), %eax
	cmpb	%al, %dl
	jne	.L4
	movl	-20(%rbp), %eax
	movl	%eax, -24(%rbp)
.L4:
	addl	$1, -20(%rbp)
.L2:
	cmpl	$5, -20(%rbp)
	jle	.L5
	movl	-28(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L6
	movl	$62, %edi
	call	putchar@PLT
	jmp	.L7
.L6:
	movl	-28(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jge	.L8
	movl	$60, %edi
	call	putchar@PLT
	jmp	.L7
.L8:
	movl	-28(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jne	.L7
	movl	$61, %edi
	call	putchar@PLT
.L7:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	7(%rsp), %rdx
	leaq	6(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movzbl	6(%rsp), %edx
	movzbl	7(%rsp), %eax
	cmpb	$66, %dl
	je	.L2
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	cmpb	$66, %al
	je	.L21
.L3:
	cmpb	$67, %dl
	je	.L4
.L22:
	cmpb	$67, %al
	je	.L19
.L5:
	cmpb	$68, %dl
	je	.L6
.L20:
	cmpb	$68, %al
	je	.L17
.L7:
	cmpb	$69, %dl
	je	.L8
.L18:
	cmpb	$69, %al
	je	.L41
	cmpb	$70, %dl
	jne	.L13
	movl	$5, %ecx
	cmpb	$70, %al
	jne	.L23
	movl	$5, %esi
	jmp	.L16
.L8:
	cmpb	$69, %al
	je	.L27
	movl	$4, %ecx
.L13:
	cmpb	$70, %al
	je	.L24
.L23:
	cmpl	%ecx, %esi
	jl	.L10
	jg	.L24
.L16:
	cmpl	%ecx, %esi
	je	.L42
.L15:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	movl	$2, %ecx
	cmpb	$67, %al
	jne	.L20
.L19:
	movl	$2, %esi
	jmp	.L5
.L6:
	movl	$3, %ecx
	cmpb	$68, %al
	jne	.L18
.L17:
	movl	$3, %esi
	jmp	.L7
.L30:
	movl	$1, %ecx
.L21:
	movl	$1, %esi
	jmp	.L3
.L41:
	movl	$4, %esi
	cmpb	$70, %dl
	jne	.L23
.L10:
	movl	$62, %edi
	call	putchar@PLT
	jmp	.L15
.L2:
	cmpb	$66, %al
	je	.L30
	xorl	%esi, %esi
	movl	$1, %ecx
	jmp	.L22
.L24:
	movl	$60, %edi
	call	putchar@PLT
	jmp	.L15
.L27:
	movl	$4, %esi
	movl	$4, %ecx
	jmp	.L23
.L42:
	movl	$61, %edi
	call	putchar@PLT
	jmp	.L15
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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	"%c %c"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	7(%rsp), %rdx
	leaq	6(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movzbl	6(%rsp), %edx
	movzbl	7(%rsp), %eax
	cmpb	$66, %dl
	je	.L2
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	cmpb	$66, %al
	je	.L21
.L3:
	cmpb	$67, %dl
	je	.L4
.L22:
	cmpb	$67, %al
	je	.L19
.L5:
	cmpb	$68, %dl
	je	.L6
.L20:
	cmpb	$68, %al
	je	.L17
.L7:
	cmpb	$69, %dl
	je	.L8
.L18:
	cmpb	$69, %al
	je	.L41
	cmpb	$70, %dl
	jne	.L13
	movl	$5, %ecx
	cmpb	$70, %al
	jne	.L23
	movl	$5, %esi
	jmp	.L16
.L8:
	cmpb	$69, %al
	je	.L27
	movl	$4, %ecx
.L13:
	cmpb	$70, %al
	je	.L24
.L23:
	cmpl	%ecx, %esi
	jl	.L10
	jg	.L24
.L16:
	cmpl	%ecx, %esi
	je	.L42
.L15:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L43
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L4:
	.cfi_restore_state
	movl	$2, %ecx
	cmpb	$67, %al
	jne	.L20
.L19:
	movl	$2, %esi
	jmp	.L5
.L6:
	movl	$3, %ecx
	cmpb	$68, %al
	jne	.L18
.L17:
	movl	$3, %esi
	jmp	.L7
.L30:
	movl	$1, %ecx
.L21:
	movl	$1, %esi
	jmp	.L3
.L41:
	movl	$4, %esi
	cmpb	$70, %dl
	jne	.L23
.L10:
	movl	$62, %edi
	call	putchar@PLT
	jmp	.L15
.L2:
	cmpb	$66, %al
	je	.L30
	xorl	%esi, %esi
	movl	$1, %ecx
	jmp	.L22
.L24:
	movl	$60, %edi
	call	putchar@PLT
	jmp	.L15
.L27:
	movl	$4, %esi
	movl	$4, %ecx
	jmp	.L23
.L42:
	movl	$61, %edi
	call	putchar@PLT
	jmp	.L15
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>

int main(void)
{
    char ch[6] = "ABCDEF";
    char a, b;
    int n, m;

    scanf("%c %c", &a, &b);
    for (int i = 0; i < 6; i++){
        if (a == ch[i])
        n = i;
        if (b == ch[i])
        m = i;
    }

    if (n > m)
        printf(">");
    else if (n < m)
        printf("<");
    else if (n == m)
        printf("=");

    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>

int main(void)
{
    char ch[6] = "ABCDEF";
    char a, b;
    int n, m;

    scanf("%c %c", &a, &b);
    for (int i = 0; i < 6; i++){
        if (a == ch[i])
        n = i;
        if (b == ch[i])
        m = i;
    }

    if (n > m)
        printf(">");
    else if (n < m)
        printf("<");
    else if (n == m)
        printf("=");

    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%c %c"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1145258561, -14(%rbp)
	movw	$17989, -10(%rbp)
	leaq	-29(%rbp), %rdx
	leaq	-30(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -20(%rbp)
	jmp	.L2
.L5:
	movl	-20(%rbp), %eax
	cltq
	movzbl	-14(%rbp,%rax), %edx
	movzbl	-30(%rbp), %eax
	cmpb	%al, %dl
	jne	.L3
	movl	-20(%rbp), %eax
	movl	%eax, -28(%rbp)
.L3:
	movl	-20(%rbp), %eax
	cltq
	movzbl	-14(%rbp,%rax), %edx
	movzbl	-29(%rbp), %eax
	cmpb	%al, %dl
	jne	.L4
	movl	-20(%rbp), %eax
	movl	%eax, -24(%rbp)
.L4:
	addl	$1, -20(%rbp)
.L2:
	cmpl	$5, -20(%rbp)
	jle	.L5
	movl	-28(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L6
	movl	$62, %edi
	call	putchar@PLT
	jmp	.L7
.L6:
	movl	-28(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jge	.L8
	movl	$60, %edi
	call	putchar@PLT
	jmp	.L7
.L8:
	movl	-28(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jne	.L7
	movl	$61, %edi
	call	putchar@PLT
.L7:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.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	"%c %c"
	.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	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$1145258561, -14(%rbp)
	movw	$17989, -10(%rbp)
	leaq	-29(%rbp), %rdx
	leaq	-30(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -20(%rbp)
	jmp	.L2
.L5:
	movl	-20(%rbp), %eax
	cltq
	movzbl	-14(%rbp,%rax), %edx
	movzbl	-30(%rbp), %eax
	cmpb	%al, %dl
	jne	.L3
	movl	-20(%rbp), %eax
	movl	%eax, -28(%rbp)
.L3:
	movl	-20(%rbp), %eax
	cltq
	movzbl	-14(%rbp,%rax), %edx
	movzbl	-29(%rbp), %eax
	cmpb	%al, %dl
	jne	.L4
	movl	-20(%rbp), %eax
	movl	%eax, -24(%rbp)
.L4:
	addl	$1, -20(%rbp)
.L2:
	cmpl	$5, -20(%rbp)
	jle	.L5
	movl	-28(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L6
	movl	$62, %edi
	call	putchar@PLT
	jmp	.L7
.L6:
	movl	-28(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jge	.L8
	movl	$60, %edi
	call	putchar@PLT
	jmp	.L7
.L8:
	movl	-28(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jne	.L7
	movl	$61, %edi
	call	putchar@PLT
.L7:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.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:
