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 <ctype.h>
 
unsigned int data[8][2] = {
    1826015432,2468951863,
    4148788223,146179072,
    2147300159,2147667136,
    1813301512,332083959,
    1577336967,555301496,
    1359814671,771756592,
    268509233,17306118,
    16846885,268968466,
};
 
unsigned int count(unsigned int n){
    n = (n & 0x55555555) + ((n & 0xAAAAAAAA) >> 1);
    n = (n & 0x33333333) + ((n & 0xCCCCCCCC) >> 2);
    n = (n & 0x0F0F0F0F) + ((n & 0xF0F0F0F0) >> 4);
    n = (n & 0x00FF00FF) + ((n & 0xFF00FF00) >> 8);
    n = (n & 0x0000FFFF) + ((n & 0xFFFF0000) >> 16);
     
    return n;
}
 
int main(void) {
    int tmp,num,i,j,p;
    unsigned check;
    char c,kigo[7] = " .,-'?",kigo2[7] = " ',-.?";
     
    p = 0;
    check = 0xFFFFFFFF;
     
    while((c = getchar()) != EOF){
        if(isalpha(c)){
            num = c-'A';
        }else if(c == '\n'){
            putchar('\n');
            p = 0;
            check = 0xFFFFFFFF;
            continue;
        }else{
            for(num = 0;num < 6;num++){
                if(c == kigo[num]){
                    num += 26;
                    break;
                }
            }
        }
        for(i = 4;i >= 0;i--){
            tmp = (num&(1<<i))>>i;
            check &= data[p++][tmp];
            if(count(check) == 1){
                for(j = 0;j < 32;j++){
                    if(check&(1<<(31-j))){
                    	putchar(j < 6 ? kigo2[j] : j-6+'A');
                        break;
                    }
                }
                check = 0xFFFFFFFF;
                p = 0;
            }
        }
    }
    
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	data
	.data
	.align 32
	.type	data, @object
	.size	data, 64
data:
	.long	1826015432
	.long	-1826015433
	.long	-146179073
	.long	146179072
	.long	2147300159
	.long	-2147300160
	.long	1813301512
	.long	332083959
	.long	1577336967
	.long	555301496
	.long	1359814671
	.long	771756592
	.long	268509233
	.long	17306118
	.long	16846885
	.long	268968466
	.text
	.globl	count
	.type	count, @function
count:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	-4(%rbp), %eax
	andl	$1431655765, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	shrl	%eax
	andl	$1431655765, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	andl	$858993459, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	shrl	$2, %eax
	andl	$858993459, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	andl	$252645135, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	shrl	$4, %eax
	andl	$252645135, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	andl	$16711935, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	shrl	$8, %eax
	andl	$16711935, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	movzwl	%ax, %edx
	movl	-4(%rbp), %eax
	shrl	$16, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	count, .-count
	.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
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$757870112, -22(%rbp)
	movw	$16167, -18(%rbp)
	movb	$0, -16(%rbp)
	movl	$757868320, -15(%rbp)
	movw	$16174, -11(%rbp)
	movb	$0, -9(%rbp)
	movl	$0, -36(%rbp)
	movl	$-1, -32(%rbp)
	jmp	.L4
.L20:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movsbq	-49(%rbp), %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$1024, %eax
	testl	%eax, %eax
	je	.L5
	movsbl	-49(%rbp), %eax
	subl	$65, %eax
	movl	%eax, -48(%rbp)
	jmp	.L6
.L5:
	cmpb	$10, -49(%rbp)
	jne	.L7
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, -36(%rbp)
	movl	$-1, -32(%rbp)
	jmp	.L4
.L7:
	movl	$0, -48(%rbp)
	jmp	.L8
.L10:
	movl	-48(%rbp), %eax
	cltq
	movzbl	-22(%rbp,%rax), %eax
	cmpb	%al, -49(%rbp)
	jne	.L9
	addl	$26, -48(%rbp)
	jmp	.L6
.L9:
	addl	$1, -48(%rbp)
.L8:
	cmpl	$5, -48(%rbp)
	jle	.L10
.L6:
	movl	$4, -44(%rbp)
	jmp	.L11
.L19:
	movl	-44(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	andl	-48(%rbp), %eax
	movl	%eax, %edx
	movl	-44(%rbp), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	movl	%eax, -28(%rbp)
	movl	-36(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	data(%rip), %rax
	movl	(%rdx,%rax), %eax
	andl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, %edi
	call	count
	cmpl	$1, %eax
	jne	.L12
	movl	$0, -40(%rbp)
	jmp	.L13
.L18:
	movl	-40(%rbp), %eax
	movl	$-2147483648, %edx
	movl	%eax, %ecx
	shrl	%cl, %edx
	movl	%edx, %eax
	andl	-32(%rbp), %eax
	testl	%eax, %eax
	je	.L14
	cmpl	$5, -40(%rbp)
	jg	.L15
	movl	-40(%rbp), %eax
	cltq
	movzbl	-15(%rbp,%rax), %eax
	movsbl	%al, %eax
	jmp	.L16
.L15:
	movl	-40(%rbp), %eax
	addl	$59, %eax
.L16:
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L17
.L14:
	addl	$1, -40(%rbp)
.L13:
	cmpl	$31, -40(%rbp)
	jle	.L18
.L17:
	movl	$-1, -32(%rbp)
	movl	$0, -36(%rbp)
.L12:
	subl	$1, -44(%rbp)
.L11:
	cmpl	$0, -44(%rbp)
	jns	.L19
.L4:
	call	getchar@PLT
	movb	%al, -49(%rbp)
	cmpb	$-1, -49(%rbp)
	jne	.L20
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	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	count
	.type	count, @function
count:
.LFB25:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	shrl	%edi
	andl	$1431655765, %eax
	andl	$1431655765, %edi
	addl	%edi, %eax
	movl	%eax, %edx
	shrl	$2, %eax
	andl	$858993459, %eax
	andl	$858993459, %edx
	addl	%eax, %edx
	movl	%edx, %eax
	shrl	$4, %edx
	andl	$252645135, %edx
	andl	$252645135, %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$8, %eax
	andl	$16711935, %eax
	andl	$16711935, %edx
	addl	%eax, %edx
	movzwl	%dx, %eax
	shrl	$16, %edx
	addl	%edx, %eax
	ret
	.cfi_endproc
.LFE25:
	.size	count, .-count
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB26:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%r15d, %r15d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	$-1, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	data(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movl	$16174, %eax
	movl	$757868320, 1(%rsp)
	movw	%ax, 5(%rsp)
	movb	$0, 7(%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movl	%eax, %r13d
	cmpb	$-1, %al
	je	.L27
	call	__ctype_b_loc@PLT
	movq	%rax, %r8
	movsbq	%r13b, %rax
	movq	(%r8), %rdx
	testb	$4, 1(%rdx,%rax,2)
	jne	.L28
	cmpb	$10, %r13b
	je	.L7
	cmpb	$32, %r13b
	je	.L18
	cmpb	$46, %r13b
	je	.L19
	cmpb	$44, %r13b
	je	.L20
	cmpb	$45, %r13b
	je	.L21
	cmpb	$39, %r13b
	je	.L22
	cmpb	$63, %r13b
	je	.L23
	movl	$6, %r13d
.L6:
	movslq	%r15d, %rdx
	movl	$4, %r12d
	movl	$1, %r14d
.L15:
	movl	%r12d, %ecx
	movl	%r14d, %eax
	addl	$1, %r15d
	sall	%cl, %eax
	andl	%r13d, %eax
	sarl	%cl, %eax
	cltq
	leaq	(%rax,%rdx,2), %rax
	andl	(%rbx,%rax,4), %ebp
	movl	%ebp, %eax
	movl	%ebp, %edx
	shrl	%eax
	andl	$1431655765, %edx
	andl	$1431655765, %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$2, %eax
	andl	$858993459, %eax
	andl	$858993459, %edx
	addl	%eax, %edx
	movl	%edx, %eax
	shrl	$4, %edx
	andl	$252645135, %edx
	andl	$252645135, %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$8, %eax
	andl	$16711935, %edx
	andl	$16711935, %eax
	addl	%edx, %eax
	movzwl	%ax, %edx
	shrl	$16, %eax
	addl	%edx, %eax
	cmpl	$1, %eax
	je	.L29
.L10:
	subl	$1, %r12d
	jb	.L4
	movslq	%r15d, %rdx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L29:
	xorl	%ecx, %ecx
	movl	$-2147483648, %edx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L11:
	addl	$1, %ecx
	cmpl	$32, %ecx
	je	.L30
.L14:
	movl	%edx, %eax
	shrl	%cl, %eax
	testl	%ebp, %eax
	je	.L11
	leal	59(%rcx), %edi
	cmpl	$5, %ecx
	jg	.L13
	movslq	%ecx, %rcx
	movsbl	1(%rsp,%rcx), %edi
.L13:
	movq	stdout(%rip), %rsi
	movl	$-1, %ebp
	xorl	%r15d, %r15d
	call	putc@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L28:
	movsbl	%r13b, %r13d
	subl	$65, %r13d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L30:
	movl	$-1, %ebp
	xorl	%r15d, %r15d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	movl	$-1, %ebp
	xorl	%r15d, %r15d
	call	putc@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$24, %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
.L18:
	.cfi_restore_state
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$26, %r13d
	jmp	.L6
.L19:
	movl	$1, %r13d
	jmp	.L8
.L20:
	movl	$2, %r13d
	jmp	.L8
.L21:
	movl	$3, %r13d
	jmp	.L8
.L22:
	movl	$4, %r13d
	jmp	.L8
.L23:
	movl	$5, %r13d
	jmp	.L8
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE26:
	.size	main, .-main
	.globl	data
	.data
	.align 32
	.type	data, @object
	.size	data, 64
data:
	.long	1826015432
	.long	-1826015433
	.long	-146179073
	.long	146179072
	.long	2147300159
	.long	-2147300160
	.long	1813301512
	.long	332083959
	.long	1577336967
	.long	555301496
	.long	1359814671
	.long	771756592
	.long	268509233
	.long	17306118
	.long	16846885
	.long	268968466
	.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	count
	.type	count, @function
count:
.LFB25:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	shrl	%edi
	andl	$1431655765, %eax
	andl	$1431655765, %edi
	addl	%edi, %eax
	movl	%eax, %edx
	shrl	$2, %eax
	andl	$858993459, %eax
	andl	$858993459, %edx
	addl	%eax, %edx
	movl	%edx, %eax
	shrl	$4, %edx
	andl	$252645135, %edx
	andl	$252645135, %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$8, %eax
	andl	$16711935, %eax
	andl	$16711935, %edx
	addl	%eax, %edx
	movzwl	%dx, %eax
	shrl	$16, %edx
	addl	%edx, %eax
	ret
	.cfi_endproc
.LFE25:
	.size	count, .-count
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB26:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%r15d, %r15d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	$-1, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	data(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movl	$16174, %eax
	movl	$757868320, 1(%rsp)
	movw	%ax, 5(%rsp)
	movb	$0, 7(%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	movq	stdin(%rip), %rdi
	call	getc@PLT
	movl	%eax, %r13d
	cmpb	$-1, %al
	je	.L27
	call	__ctype_b_loc@PLT
	movq	%rax, %r8
	movsbq	%r13b, %rax
	movq	(%r8), %rdx
	testb	$4, 1(%rdx,%rax,2)
	jne	.L28
	cmpb	$10, %r13b
	je	.L7
	cmpb	$32, %r13b
	je	.L18
	cmpb	$46, %r13b
	je	.L19
	cmpb	$44, %r13b
	je	.L20
	cmpb	$45, %r13b
	je	.L21
	cmpb	$39, %r13b
	je	.L22
	cmpb	$63, %r13b
	je	.L23
	movl	$6, %r13d
.L6:
	movslq	%r15d, %rdx
	movl	$4, %r12d
	movl	$1, %r14d
.L15:
	movl	%r12d, %ecx
	movl	%r14d, %eax
	addl	$1, %r15d
	sall	%cl, %eax
	andl	%r13d, %eax
	sarl	%cl, %eax
	cltq
	leaq	(%rax,%rdx,2), %rax
	andl	(%rbx,%rax,4), %ebp
	movl	%ebp, %eax
	movl	%ebp, %edx
	shrl	%eax
	andl	$1431655765, %edx
	andl	$1431655765, %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$2, %eax
	andl	$858993459, %eax
	andl	$858993459, %edx
	addl	%eax, %edx
	movl	%edx, %eax
	shrl	$4, %edx
	andl	$252645135, %edx
	andl	$252645135, %eax
	addl	%edx, %eax
	movl	%eax, %edx
	shrl	$8, %eax
	andl	$16711935, %edx
	andl	$16711935, %eax
	addl	%edx, %eax
	movzwl	%ax, %edx
	shrl	$16, %eax
	addl	%edx, %eax
	cmpl	$1, %eax
	je	.L29
.L10:
	subl	$1, %r12d
	jb	.L4
	movslq	%r15d, %rdx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L29:
	xorl	%ecx, %ecx
	movl	$-2147483648, %edx
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L11:
	addl	$1, %ecx
	cmpl	$32, %ecx
	je	.L30
.L14:
	movl	%edx, %eax
	shrl	%cl, %eax
	testl	%ebp, %eax
	je	.L11
	leal	59(%rcx), %edi
	cmpl	$5, %ecx
	jg	.L13
	movslq	%ecx, %rcx
	movsbl	1(%rsp,%rcx), %edi
.L13:
	movq	stdout(%rip), %rsi
	movl	$-1, %ebp
	xorl	%r15d, %r15d
	call	putc@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L28:
	movsbl	%r13b, %r13d
	subl	$65, %r13d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L30:
	movl	$-1, %ebp
	xorl	%r15d, %r15d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	movq	stdout(%rip), %rsi
	movl	$10, %edi
	movl	$-1, %ebp
	xorl	%r15d, %r15d
	call	putc@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L27:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$24, %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
.L18:
	.cfi_restore_state
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L8:
	addl	$26, %r13d
	jmp	.L6
.L19:
	movl	$1, %r13d
	jmp	.L8
.L20:
	movl	$2, %r13d
	jmp	.L8
.L21:
	movl	$3, %r13d
	jmp	.L8
.L22:
	movl	$4, %r13d
	jmp	.L8
.L23:
	movl	$5, %r13d
	jmp	.L8
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE26:
	.size	main, .-main
	.globl	data
	.data
	.align 32
	.type	data, @object
	.size	data, 64
data:
	.long	1826015432
	.long	-1826015433
	.long	-146179073
	.long	146179072
	.long	2147300159
	.long	-2147300160
	.long	1813301512
	.long	332083959
	.long	1577336967
	.long	555301496
	.long	1359814671
	.long	771756592
	.long	268509233
	.long	17306118
	.long	16846885
	.long	268968466
	.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 <ctype.h>
 
unsigned int data[8][2] = {
    1826015432,2468951863,
    4148788223,146179072,
    2147300159,2147667136,
    1813301512,332083959,
    1577336967,555301496,
    1359814671,771756592,
    268509233,17306118,
    16846885,268968466,
};
 
unsigned int count(unsigned int n){
    n = (n & 0x55555555) + ((n & 0xAAAAAAAA) >> 1);
    n = (n & 0x33333333) + ((n & 0xCCCCCCCC) >> 2);
    n = (n & 0x0F0F0F0F) + ((n & 0xF0F0F0F0) >> 4);
    n = (n & 0x00FF00FF) + ((n & 0xFF00FF00) >> 8);
    n = (n & 0x0000FFFF) + ((n & 0xFFFF0000) >> 16);
     
    return n;
}
 
int main(void) {
    int tmp,num,i,j,p;
    unsigned check;
    char c,kigo[7] = " .,-'?",kigo2[7] = " ',-.?";
     
    p = 0;
    check = 0xFFFFFFFF;
     
    while((c = getchar()) != EOF){
        if(isalpha(c)){
            num = c-'A';
        }else if(c == '\n'){
            putchar('\n');
            p = 0;
            check = 0xFFFFFFFF;
            continue;
        }else{
            for(num = 0;num < 6;num++){
                if(c == kigo[num]){
                    num += 26;
                    break;
                }
            }
        }
        for(i = 4;i >= 0;i--){
            tmp = (num&(1<<i))>>i;
            check &= data[p++][tmp];
            if(count(check) == 1){
                for(j = 0;j < 32;j++){
                    if(check&(1<<(31-j))){
                    	putchar(j < 6 ? kigo2[j] : j-6+'A');
                        break;
                    }
                }
                check = 0xFFFFFFFF;
                p = 0;
            }
        }
    }
    
    return 0;
}
?D-C'KOQUA
 ?D-B'KOQUA
 AUQOK'B-D?
 -UQOK'BAD?
 -UQOK'BBD?
 -UQNK'BBD?
 ?DBB'KNQU-
 .UQNK'BBD?
 .UPNK'BBD?
 .UPNK'BCD?

PETER POTH '
 PETERIECTH '
 ?F?ECIRT DPP
 PKZIOIRL'PP
 PKZIOIRLLIP
 PKZK CP?WTP
 PESD,POSEDFE
 EPF? CIRLLIP
 EP.PK CP?WTP
 EP.PK CP?D,P

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 <ctype.h>
 
unsigned int data[8][2] = {
    1826015432,2468951863,
    4148788223,146179072,
    2147300159,2147667136,
    1813301512,332083959,
    1577336967,555301496,
    1359814671,771756592,
    268509233,17306118,
    16846885,268968466,
};
 
unsigned int count(unsigned int n){
    n = (n & 0x55555555) + ((n & 0xAAAAAAAA) >> 1);
    n = (n & 0x33333333) + ((n & 0xCCCCCCCC) >> 2);
    n = (n & 0x0F0F0F0F) + ((n & 0xF0F0F0F0) >> 4);
    n = (n & 0x00FF00FF) + ((n & 0xFF00FF00) >> 8);
    n = (n & 0x0000FFFF) + ((n & 0xFFFF0000) >> 16);
     
    return n;
}
 
int main(void) {
    int tmp,num,i,j,p;
    unsigned check;
    char c,kigo[7] = " .,-'?",kigo2[7] = " ',-.?";
     
    p = 0;
    check = 0xFFFFFFFF;
     
    while((c = getchar()) != EOF){
        if(isalpha(c)){
            num = c-'A';
        }else if(c == '\n'){
            putchar('\n');
            p = 0;
            check = 0xFFFFFFFF;
            continue;
        }else{
            for(num = 0;num < 6;num++){
                if(c == kigo[num]){
                    num += 26;
                    break;
                }
            }
        }
        for(i = 4;i >= 0;i--){
            tmp = (num&(1<<i))>>i;
            check &= data[p++][tmp];
            if(count(check) == 1){
                for(j = 0;j < 32;j++){
                    if(check&(1<<(31-j))){
                    	putchar(j < 6 ? kigo2[j] : j-6+'A');
                        break;
                    }
                }
                check = 0xFFFFFFFF;
                p = 0;
            }
        }
    }
    
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	data
	.data
	.align 32
	.type	data, @object
	.size	data, 64
data:
	.long	1826015432
	.long	-1826015433
	.long	-146179073
	.long	146179072
	.long	2147300159
	.long	-2147300160
	.long	1813301512
	.long	332083959
	.long	1577336967
	.long	555301496
	.long	1359814671
	.long	771756592
	.long	268509233
	.long	17306118
	.long	16846885
	.long	268968466
	.text
	.globl	count
	.type	count, @function
count:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	-4(%rbp), %eax
	andl	$1431655765, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	shrl	%eax
	andl	$1431655765, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	andl	$858993459, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	shrl	$2, %eax
	andl	$858993459, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	andl	$252645135, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	shrl	$4, %eax
	andl	$252645135, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	andl	$16711935, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	shrl	$8, %eax
	andl	$16711935, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	movzwl	%ax, %edx
	movl	-4(%rbp), %eax
	shrl	$16, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	count, .-count
	.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
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$757870112, -22(%rbp)
	movw	$16167, -18(%rbp)
	movb	$0, -16(%rbp)
	movl	$757868320, -15(%rbp)
	movw	$16174, -11(%rbp)
	movb	$0, -9(%rbp)
	movl	$0, -36(%rbp)
	movl	$-1, -32(%rbp)
	jmp	.L4
.L20:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movsbq	-49(%rbp), %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$1024, %eax
	testl	%eax, %eax
	je	.L5
	movsbl	-49(%rbp), %eax
	subl	$65, %eax
	movl	%eax, -48(%rbp)
	jmp	.L6
.L5:
	cmpb	$10, -49(%rbp)
	jne	.L7
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, -36(%rbp)
	movl	$-1, -32(%rbp)
	jmp	.L4
.L7:
	movl	$0, -48(%rbp)
	jmp	.L8
.L10:
	movl	-48(%rbp), %eax
	cltq
	movzbl	-22(%rbp,%rax), %eax
	cmpb	%al, -49(%rbp)
	jne	.L9
	addl	$26, -48(%rbp)
	jmp	.L6
.L9:
	addl	$1, -48(%rbp)
.L8:
	cmpl	$5, -48(%rbp)
	jle	.L10
.L6:
	movl	$4, -44(%rbp)
	jmp	.L11
.L19:
	movl	-44(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	andl	-48(%rbp), %eax
	movl	%eax, %edx
	movl	-44(%rbp), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	movl	%eax, -28(%rbp)
	movl	-36(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	data(%rip), %rax
	movl	(%rdx,%rax), %eax
	andl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, %edi
	call	count
	cmpl	$1, %eax
	jne	.L12
	movl	$0, -40(%rbp)
	jmp	.L13
.L18:
	movl	-40(%rbp), %eax
	movl	$-2147483648, %edx
	movl	%eax, %ecx
	shrl	%cl, %edx
	movl	%edx, %eax
	andl	-32(%rbp), %eax
	testl	%eax, %eax
	je	.L14
	cmpl	$5, -40(%rbp)
	jg	.L15
	movl	-40(%rbp), %eax
	cltq
	movzbl	-15(%rbp,%rax), %eax
	movsbl	%al, %eax
	jmp	.L16
.L15:
	movl	-40(%rbp), %eax
	addl	$59, %eax
.L16:
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L17
.L14:
	addl	$1, -40(%rbp)
.L13:
	cmpl	$31, -40(%rbp)
	jle	.L18
.L17:
	movl	$-1, -32(%rbp)
	movl	$0, -36(%rbp)
.L12:
	subl	$1, -44(%rbp)
.L11:
	cmpl	$0, -44(%rbp)
	jns	.L19
.L4:
	call	getchar@PLT
	movb	%al, -49(%rbp)
	cmpb	$-1, -49(%rbp)
	jne	.L20
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	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	data
	.data
	.align 32
	.type	data, @object
	.size	data, 64
data:
	.long	1826015432
	.long	-1826015433
	.long	-146179073
	.long	146179072
	.long	2147300159
	.long	-2147300160
	.long	1813301512
	.long	332083959
	.long	1577336967
	.long	555301496
	.long	1359814671
	.long	771756592
	.long	268509233
	.long	17306118
	.long	16846885
	.long	268968466
	.text
	.globl	count
	.type	count, @function
count:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -4(%rbp)
	movl	-4(%rbp), %eax
	andl	$1431655765, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	shrl	%eax
	andl	$1431655765, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	andl	$858993459, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	shrl	$2, %eax
	andl	$858993459, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	andl	$252645135, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	shrl	$4, %eax
	andl	$252645135, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	andl	$16711935, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	shrl	$8, %eax
	andl	$16711935, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	movzwl	%ax, %edx
	movl	-4(%rbp), %eax
	shrl	$16, %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	count, .-count
	.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
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$757870112, -22(%rbp)
	movw	$16167, -18(%rbp)
	movb	$0, -16(%rbp)
	movl	$757868320, -15(%rbp)
	movw	$16174, -11(%rbp)
	movb	$0, -9(%rbp)
	movl	$0, -36(%rbp)
	movl	$-1, -32(%rbp)
	jmp	.L4
.L20:
	call	__ctype_b_loc@PLT
	movq	(%rax), %rdx
	movsbq	-49(%rbp), %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movzwl	(%rax), %eax
	movzwl	%ax, %eax
	andl	$1024, %eax
	testl	%eax, %eax
	je	.L5
	movsbl	-49(%rbp), %eax
	subl	$65, %eax
	movl	%eax, -48(%rbp)
	jmp	.L6
.L5:
	cmpb	$10, -49(%rbp)
	jne	.L7
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, -36(%rbp)
	movl	$-1, -32(%rbp)
	jmp	.L4
.L7:
	movl	$0, -48(%rbp)
	jmp	.L8
.L10:
	movl	-48(%rbp), %eax
	cltq
	movzbl	-22(%rbp,%rax), %eax
	cmpb	%al, -49(%rbp)
	jne	.L9
	addl	$26, -48(%rbp)
	jmp	.L6
.L9:
	addl	$1, -48(%rbp)
.L8:
	cmpl	$5, -48(%rbp)
	jle	.L10
.L6:
	movl	$4, -44(%rbp)
	jmp	.L11
.L19:
	movl	-44(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	andl	-48(%rbp), %eax
	movl	%eax, %edx
	movl	-44(%rbp), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	movl	%eax, -28(%rbp)
	movl	-36(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	-28(%rbp), %edx
	movslq	%edx, %rdx
	cltq
	addq	%rax, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	data(%rip), %rax
	movl	(%rdx,%rax), %eax
	andl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, %edi
	call	count
	cmpl	$1, %eax
	jne	.L12
	movl	$0, -40(%rbp)
	jmp	.L13
.L18:
	movl	-40(%rbp), %eax
	movl	$-2147483648, %edx
	movl	%eax, %ecx
	shrl	%cl, %edx
	movl	%edx, %eax
	andl	-32(%rbp), %eax
	testl	%eax, %eax
	je	.L14
	cmpl	$5, -40(%rbp)
	jg	.L15
	movl	-40(%rbp), %eax
	cltq
	movzbl	-15(%rbp,%rax), %eax
	movsbl	%al, %eax
	jmp	.L16
.L15:
	movl	-40(%rbp), %eax
	addl	$59, %eax
.L16:
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L17
.L14:
	addl	$1, -40(%rbp)
.L13:
	cmpl	$31, -40(%rbp)
	jle	.L18
.L17:
	movl	$-1, -32(%rbp)
	movl	$0, -36(%rbp)
.L12:
	subl	$1, -44(%rbp)
.L11:
	cmpl	$0, -44(%rbp)
	jns	.L19
.L4:
	call	getchar@PLT
	movb	%al, -49(%rbp)
	cmpb	$-1, -49(%rbp)
	jne	.L20
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	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:
