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()
{
    int n, i, j;
    long count[5] = {0, 0, 0, 0, 0};
    long ans=0, hal1=0, hal2=0;
    scanf("%d", &n);

    char s[11];
    for(i=0; i<n; i++)
    {
        scanf("%s", s);

        switch(s[0])
        {
            case 'M':
                count[0]++;
                break;
            case 'A':
                count[1]++;
                break;
            case 'R':
                count[2]++;
                break;
            case 'C':
                count[3]++;
                break;
            case 'H':
                count[4]++;
                break;
        }
    }
    hal1 = count[0] * count[1];
    hal2 = count[2] * count[3];

    ans = hal1 * count[2]
        + hal1 * count[3]
        + hal1 * count[4]
        + count[1] * hal2
        + count[1] * count[2] * count[4]
        + hal2 * count[4]
        + hal2 * count[0]
        + count[3] * count[4] * count[0]
        + count[3] * count[4] * count[1]
        + count[0] * count[2] * count[4];

    printf("%ld\n", ans);

    return 0;

}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%ld\n"
	.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	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -92(%rbp)
	jmp	.L2
.L10:
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-19(%rbp), %eax
	movsbl	%al, %eax
	subl	$65, %eax
	cmpl	$17, %eax
	ja	.L3
	movl	%eax, %eax
	leaq	0(,%rax,4), %rdx
	leaq	.L5(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	.L5(%rip), %rdx
	addq	%rdx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L9-.L5
	.long	.L3-.L5
	.long	.L8-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L7-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L6-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L4-.L5
	.text
.L6:
	movq	-64(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -64(%rbp)
	jmp	.L3
.L9:
	movq	-56(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -56(%rbp)
	jmp	.L3
.L4:
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -48(%rbp)
	jmp	.L3
.L8:
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -40(%rbp)
	jmp	.L3
.L7:
	movq	-32(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -32(%rbp)
	nop
.L3:
	addl	$1, -92(%rbp)
.L2:
	movl	-96(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L10
	movq	-64(%rbp), %rdx
	movq	-56(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -80(%rbp)
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -72(%rbp)
	movq	-48(%rbp), %rax
	imulq	-80(%rbp), %rax
	movq	%rax, %rdx
	movq	-40(%rbp), %rax
	imulq	-80(%rbp), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	imulq	-80(%rbp), %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	imulq	-72(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rax
	imulq	%rax, %rdx
	movq	-32(%rbp), %rax
	imulq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	movq	-32(%rbp), %rax
	imulq	-72(%rbp), %rax
	addq	%rax, %rdx
	movq	-64(%rbp), %rax
	imulq	-72(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	imulq	%rax, %rdx
	movq	-64(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rax, %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	imulq	%rax, %rdx
	movq	-56(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rax, %rcx
	movq	-64(%rbp), %rdx
	movq	-48(%rbp), %rax
	imulq	%rax, %rdx
	movq	-32(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -88(%rbp)
	movq	-88(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	$0, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	movq	$0, 24(%rsp)
	movq	$0, 16(%rsp)
	movq	$0, 8(%rsp)
	testl	%eax, %eax
	jle	.L2
	xorl	%r15d, %r15d
	leaq	45(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.L5(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	45(%rsp), %eax
	subl	$65, %eax
	cmpb	$17, %al
	ja	.L3
	movzbl	%al, %eax
	movslq	(%rbx,%rax,4), %rax
	addq	%rbx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L9-.L5
	.long	.L3-.L5
	.long	.L8-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L7-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L6-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L4-.L5
	.section	.text.startup
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$1, %r15d
	cmpl	%r15d, 40(%rsp)
	jg	.L10
.L2:
	movq	8(%rsp), %rbx
	movq	16(%rsp), %rdi
	movq	24(%rsp), %rdx
	movq	%rbx, %rsi
	imulq	%rdi, %rsi
	movq	%rdx, %rax
	movq	%rdx, %rcx
	addq	%r14, %rdx
	imulq	%r14, %rax
	addq	%r13, %rdx
	imulq	%r13, %rcx
	imulq	%rsi, %rdx
	movq	%rdi, %rsi
	imulq	%rax, %rsi
	addq	%rsi, %rdx
	movq	%rdi, %rsi
	imulq	%r14, %rsi
	imulq	%r13, %rsi
	addq	%rsi, %rdx
	movq	%rax, %rsi
	imulq	%r13, %rsi
	imulq	%rbx, %rax
	addq	%rsi, %rdx
	leaq	.LC2(%rip), %rsi
	addq	%rax, %rdx
	movq	%rbx, %rax
	imulq	%rcx, %rax
	imulq	%r14, %rbx
	imulq	%rdi, %rcx
	movl	$1, %edi
	addq	%rax, %rdx
	movq	%rbx, %rax
	imulq	%r13, %rax
	addq	%rcx, %rdx
	addq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	addq	$1, %r14
	addl	$1, %r15d
	cmpl	%r15d, 40(%rsp)
	jg	.L10
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$1, %r13
	addl	$1, %r15d
	cmpl	%r15d, 40(%rsp)
	jg	.L10
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$1, 24(%rsp)
	addl	$1, %r15d
	cmpl	%r15d, 40(%rsp)
	jg	.L10
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$1, 16(%rsp)
	addl	$1, %r15d
	cmpl	%r15d, 40(%rsp)
	jg	.L10
	jmp	.L2
.L16:
	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	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movl	$0, %r14d
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xorl	%r13d, %r13d
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %eax
	movq	$0, 24(%rsp)
	movq	$0, 16(%rsp)
	movq	$0, 8(%rsp)
	testl	%eax, %eax
	jle	.L2
	xorl	%r15d, %r15d
	leaq	45(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	leaq	.L5(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movzbl	45(%rsp), %eax
	subl	$65, %eax
	cmpb	$17, %al
	ja	.L3
	movzbl	%al, %eax
	movslq	(%rbx,%rax,4), %rax
	addq	%rbx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L9-.L5
	.long	.L3-.L5
	.long	.L8-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L7-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L6-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L4-.L5
	.section	.text.startup
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, 8(%rsp)
	.p2align 4,,10
	.p2align 3
.L3:
	addl	$1, %r15d
	cmpl	%r15d, 40(%rsp)
	jg	.L10
.L2:
	movq	8(%rsp), %rbx
	movq	16(%rsp), %rdi
	movq	24(%rsp), %rdx
	movq	%rbx, %rsi
	imulq	%rdi, %rsi
	movq	%rdx, %rax
	movq	%rdx, %rcx
	addq	%r14, %rdx
	imulq	%r14, %rax
	addq	%r13, %rdx
	imulq	%r13, %rcx
	imulq	%rsi, %rdx
	movq	%rdi, %rsi
	imulq	%rax, %rsi
	addq	%rsi, %rdx
	movq	%rdi, %rsi
	imulq	%r14, %rsi
	imulq	%r13, %rsi
	addq	%rsi, %rdx
	movq	%rax, %rsi
	imulq	%r13, %rsi
	imulq	%rbx, %rax
	addq	%rsi, %rdx
	leaq	.LC2(%rip), %rsi
	addq	%rax, %rdx
	movq	%rbx, %rax
	imulq	%rcx, %rax
	imulq	%r14, %rbx
	imulq	%rdi, %rcx
	movl	$1, %edi
	addq	%rax, %rdx
	movq	%rbx, %rax
	imulq	%r13, %rax
	addq	%rcx, %rdx
	addq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L16
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	addq	$1, %r14
	addl	$1, %r15d
	cmpl	%r15d, 40(%rsp)
	jg	.L10
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$1, %r13
	addl	$1, %r15d
	cmpl	%r15d, 40(%rsp)
	jg	.L10
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$1, 24(%rsp)
	addl	$1, %r15d
	cmpl	%r15d, 40(%rsp)
	jg	.L10
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L9:
	addq	$1, 16(%rsp)
	addl	$1, %r15d
	cmpl	%r15d, 40(%rsp)
	jg	.L10
	jmp	.L2
.L16:
	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()
{
    int n, i, j;
    long count[5] = {0, 0, 0, 0, 0};
    long ans=0, hal1=0, hal2=0;
    scanf("%d", &n);

    char s[11];
    for(i=0; i<n; i++)
    {
        scanf("%s", s);

        switch(s[0])
        {
            case 'M':
                count[0]++;
                break;
            case 'A':
                count[1]++;
                break;
            case 'R':
                count[2]++;
                break;
            case 'C':
                count[3]++;
                break;
            case 'H':
                count[4]++;
                break;
        }
    }
    hal1 = count[0] * count[1];
    hal2 = count[2] * count[3];

    ans = hal1 * count[2]
        + hal1 * count[3]
        + hal1 * count[4]
        + count[1] * hal2
        + count[1] * count[2] * count[4]
        + hal2 * count[4]
        + hal2 * count[0]
        + count[3] * count[4] * count[0]
        + count[3] * count[4] * count[1]
        + count[0] * count[2] * count[4];

    printf("%ld\n", ans);

    return 0;

}
5
MASHIKE
RUMOI
OBIRA
OROBAH
HOROKANAI
 5
CHOKUD@I
RNG
MAKOTO
AOKI
RINGO
 4
ZY
ZZZ
Z
ZZZZZZZZZZ
 5
DHOKUD@I
RNG
MAKOTO
AOKI
RINGN
 5
I@DUKOGE
HNR
MTAOKP
AINK
RINGN
 5
MASHIKE
IOMUR
OBIRA
OROBAH
HOROKANAI
 5
CHOKUD@I
RNG
MAKOTO
AOKI
RINGN
 4
ZY
ZZY
Z
ZZZZZZZZZZ
 5
MASHIKE
IOMUR
ARIBO
OROBAH
HOROKANAI
 4
ZY
YZZ
Z
ZZZZZZZZZZ

1
 7
 0
 2
 4
 0
 7
 0
 1
 0

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()
{
    int n, i, j;
    long count[5] = {0, 0, 0, 0, 0};
    long ans=0, hal1=0, hal2=0;
    scanf("%d", &n);

    char s[11];
    for(i=0; i<n; i++)
    {
        scanf("%s", s);

        switch(s[0])
        {
            case 'M':
                count[0]++;
                break;
            case 'A':
                count[1]++;
                break;
            case 'R':
                count[2]++;
                break;
            case 'C':
                count[3]++;
                break;
            case 'H':
                count[4]++;
                break;
        }
    }
    hal1 = count[0] * count[1];
    hal2 = count[2] * count[3];

    ans = hal1 * count[2]
        + hal1 * count[3]
        + hal1 * count[4]
        + count[1] * hal2
        + count[1] * count[2] * count[4]
        + hal2 * count[4]
        + hal2 * count[0]
        + count[3] * count[4] * count[0]
        + count[3] * count[4] * count[1]
        + count[0] * count[2] * count[4];

    printf("%ld\n", ans);

    return 0;

}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%ld\n"
	.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	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -92(%rbp)
	jmp	.L2
.L10:
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-19(%rbp), %eax
	movsbl	%al, %eax
	subl	$65, %eax
	cmpl	$17, %eax
	ja	.L3
	movl	%eax, %eax
	leaq	0(,%rax,4), %rdx
	leaq	.L5(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	.L5(%rip), %rdx
	addq	%rdx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L9-.L5
	.long	.L3-.L5
	.long	.L8-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L7-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L6-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L4-.L5
	.text
.L6:
	movq	-64(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -64(%rbp)
	jmp	.L3
.L9:
	movq	-56(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -56(%rbp)
	jmp	.L3
.L4:
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -48(%rbp)
	jmp	.L3
.L8:
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -40(%rbp)
	jmp	.L3
.L7:
	movq	-32(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -32(%rbp)
	nop
.L3:
	addl	$1, -92(%rbp)
.L2:
	movl	-96(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L10
	movq	-64(%rbp), %rdx
	movq	-56(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -80(%rbp)
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -72(%rbp)
	movq	-48(%rbp), %rax
	imulq	-80(%rbp), %rax
	movq	%rax, %rdx
	movq	-40(%rbp), %rax
	imulq	-80(%rbp), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	imulq	-80(%rbp), %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	imulq	-72(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rax
	imulq	%rax, %rdx
	movq	-32(%rbp), %rax
	imulq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	movq	-32(%rbp), %rax
	imulq	-72(%rbp), %rax
	addq	%rax, %rdx
	movq	-64(%rbp), %rax
	imulq	-72(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	imulq	%rax, %rdx
	movq	-64(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rax, %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	imulq	%rax, %rdx
	movq	-56(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rax, %rcx
	movq	-64(%rbp), %rdx
	movq	-48(%rbp), %rax
	imulq	%rax, %rdx
	movq	-32(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -88(%rbp)
	movq	-88(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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.
val
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%ld\n"
	.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	$96, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movq	$0, -88(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -92(%rbp)
	jmp	.L2
.L10:
	leaq	-19(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movzbl	-19(%rbp), %eax
	movsbl	%al, %eax
	subl	$65, %eax
	cmpl	$17, %eax
	ja	.L3
	movl	%eax, %eax
	leaq	0(,%rax,4), %rdx
	leaq	.L5(%rip), %rax
	movl	(%rdx,%rax), %eax
	cltq
	leaq	.L5(%rip), %rdx
	addq	%rdx, %rax
	notrack jmp	*%rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L9-.L5
	.long	.L3-.L5
	.long	.L8-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L7-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L6-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L3-.L5
	.long	.L4-.L5
	.text
.L6:
	movq	-64(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -64(%rbp)
	jmp	.L3
.L9:
	movq	-56(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -56(%rbp)
	jmp	.L3
.L4:
	movq	-48(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -48(%rbp)
	jmp	.L3
.L8:
	movq	-40(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -40(%rbp)
	jmp	.L3
.L7:
	movq	-32(%rbp), %rax
	addq	$1, %rax
	movq	%rax, -32(%rbp)
	nop
.L3:
	addl	$1, -92(%rbp)
.L2:
	movl	-96(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jl	.L10
	movq	-64(%rbp), %rdx
	movq	-56(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -80(%rbp)
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %rax
	imulq	%rdx, %rax
	movq	%rax, -72(%rbp)
	movq	-48(%rbp), %rax
	imulq	-80(%rbp), %rax
	movq	%rax, %rdx
	movq	-40(%rbp), %rax
	imulq	-80(%rbp), %rax
	addq	%rax, %rdx
	movq	-32(%rbp), %rax
	imulq	-80(%rbp), %rax
	addq	%rax, %rdx
	movq	-56(%rbp), %rax
	imulq	-72(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	-56(%rbp), %rdx
	movq	-48(%rbp), %rax
	imulq	%rax, %rdx
	movq	-32(%rbp), %rax
	imulq	%rdx, %rax
	leaq	(%rcx,%rax), %rdx
	movq	-32(%rbp), %rax
	imulq	-72(%rbp), %rax
	addq	%rax, %rdx
	movq	-64(%rbp), %rax
	imulq	-72(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	imulq	%rax, %rdx
	movq	-64(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rax, %rcx
	movq	-40(%rbp), %rdx
	movq	-32(%rbp), %rax
	imulq	%rax, %rdx
	movq	-56(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rax, %rcx
	movq	-64(%rbp), %rdx
	movq	-48(%rbp), %rax
	imulq	%rax, %rdx
	movq	-32(%rbp), %rax
	imulq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, -88(%rbp)
	movq	-88(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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:
