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)
{
    // Your code here!
    int H,W,K;
    char map[6][7] = {};
    int ans = 0,i,Hb,Wb,j;
    
    scanf("%d%d%d",&H,&W,&K);
    
    for(i = 0; i < H; i++)
    {
        scanf("%6s",map[i]);
        //printf("%s\n",map[i]);
    }
    
    for(Hb = 0; Hb < (int)pow(2,H); Hb++ )
    {
        for( Wb = 0; Wb < (int)pow(2,W); Wb++)
        {
            int brack = 0;
            for( i = 0; i < H; i++)
            {
                for(j = 0; j < W; j++)
                {
                    if((Hb>>i & 1) == 0 && (Wb>>j & 1) == 0 && map[i][j] == '#')
                    {
                        brack++;
                    }
                }
            }
            if(brack == K)
            {
                ans++;
            }
        }
    }
    
    printf("%d\n",ans);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%6s"
.LC3:
	.string	"%d\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	$112, %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)
	movw	$0, -24(%rbp)
	movl	$0, -88(%rbp)
	leaq	-92(%rbp), %rcx
	leaq	-96(%rbp), %rdx
	leaq	-100(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -84(%rbp)
	jmp	.L2
.L3:
	leaq	-64(%rbp), %rcx
	movl	-84(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -84(%rbp)
.L2:
	movl	-100(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L3
	movl	$0, -80(%rbp)
	jmp	.L4
.L13:
	movl	$0, -76(%rbp)
	jmp	.L5
.L12:
	movl	$0, -68(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L6
.L10:
	movl	$0, -72(%rbp)
	jmp	.L7
.L9:
	movl	-84(%rbp), %eax
	movl	-80(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L8
	movl	-72(%rbp), %eax
	movl	-76(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L8
	movl	-72(%rbp), %eax
	movslq	%eax, %rcx
	movl	-84(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$64, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L8
	addl	$1, -68(%rbp)
.L8:
	addl	$1, -72(%rbp)
.L7:
	movl	-96(%rbp), %eax
	cmpl	%eax, -72(%rbp)
	jl	.L9
	addl	$1, -84(%rbp)
.L6:
	movl	-100(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L10
	movl	-92(%rbp), %eax
	cmpl	%eax, -68(%rbp)
	jne	.L11
	addl	$1, -88(%rbp)
.L11:
	addl	$1, -76(%rbp)
.L5:
	movl	-96(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movq	.LC2(%rip), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	cvttsd2sil	%xmm0, %eax
	cmpl	%eax, -76(%rbp)
	jl	.L12
	addl	$1, -80(%rbp)
.L4:
	movl	-100(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movq	.LC2(%rip), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	cvttsd2sil	%xmm0, %eax
	cmpl	%eax, -80(%rbp)
	jl	.L13
	movl	-88(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.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%d%d"
.LC1:
	.string	"%6s"
.LC3:
	.string	"%d\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
	xorl	%edx, %edx
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rcx
	movw	%dx, 88(%rsp)
	leaq	36(%rsp), %rsi
	leaq	40(%rsp), %rdx
	movaps	%xmm0, 48(%rsp)
	movq	$0, 80(%rsp)
	movaps	%xmm0, 64(%rsp)
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %r13d
	testl	%r13d, %r13d
	jle	.L2
	leaq	48(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %r13d
	addq	$7, %rbp
	cmpl	%ebx, %r13d
	jg	.L3
.L2:
	pxor	%xmm2, %xmm2
	xorl	%r14d, %r14d
	movl	$0, 20(%rsp)
	cvtsi2sdl	%r13d, %xmm2
	movl	%r14d, %eax
	movl	%r13d, %r14d
	movl	%eax, %r13d
	movsd	%xmm2, 24(%rsp)
.L4:
	movq	.LC2(%rip), %rax
	movsd	24(%rsp), %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	cvttsd2sil	%xmm0, %eax
	cmpl	%r13d, %eax
	jle	.L22
	movl	40(%rsp), %ebx
	pxor	%xmm1, %xmm1
	xorl	%ebp, %ebp
	cvtsi2sdl	%ebx, %xmm1
	.p2align 4,,10
	.p2align 3
.L23:
	movq	.LC2(%rip), %rax
	movsd	%xmm1, 8(%rsp)
	movq	%rax, %xmm0
	call	pow@PLT
	cvttsd2sil	%xmm0, %eax
	cmpl	%ebp, %eax
	jle	.L20
	testl	%r14d, %r14d
	movsd	8(%rsp), %xmm1
	jle	.L25
	movl	%ebp, %eax
	movl	%ebp, %r8d
	movl	%ebp, %r9d
	movl	%ebp, %r10d
	sarl	$6, %eax
	movl	%ebp, %r11d
	movl	%ebp, %r12d
	sarl	%r8d
	movl	%eax, 8(%rsp)
	movl	%ebp, %eax
	leaq	48(%rsp), %rsi
	sarl	$2, %r9d
	sarl	$7, %eax
	sarl	$3, %r10d
	xorl	%edi, %edi
	xorl	%edx, %edx
	movl	%eax, 16(%rsp)
	sarl	$4, %r11d
	sarl	$5, %r12d
	.p2align 4,,10
	.p2align 3
.L21:
	testl	%ebx, %ebx
	jle	.L18
	movl	%edx, %ecx
	movl	%r13d, %eax
	sarl	%cl, %eax
	movl	%eax, %ecx
	orl	%ebp, %ecx
	andl	$1, %ecx
	je	.L55
.L5:
	cmpl	$1, %ebx
	je	.L18
	movl	%eax, %ecx
	orl	%r8d, %ecx
	andl	$1, %ecx
	je	.L56
.L7:
	cmpl	$2, %ebx
	je	.L18
	movl	%eax, %ecx
	orl	%r9d, %ecx
	andl	$1, %ecx
	je	.L57
.L8:
	cmpl	$3, %ebx
	je	.L18
	movl	%eax, %ecx
	orl	%r10d, %ecx
	andl	$1, %ecx
	je	.L58
.L9:
	cmpl	$4, %ebx
	je	.L18
	movl	%eax, %ecx
	orl	%r11d, %ecx
	andl	$1, %ecx
	je	.L59
.L10:
	cmpl	$5, %ebx
	je	.L18
	movl	%eax, %ecx
	orl	%r12d, %ecx
	andl	$1, %ecx
	je	.L60
.L11:
	cmpl	$6, %ebx
	je	.L18
	movl	8(%rsp), %ecx
	orl	%eax, %ecx
	andl	$1, %ecx
	je	.L61
.L12:
	cmpl	$7, %ebx
	je	.L18
	movl	16(%rsp), %ecx
	orl	%eax, %ecx
	andl	$1, %ecx
	je	.L62
.L13:
	cmpl	$8, %ebx
	je	.L18
	movl	$8, %ecx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$1, %rcx
	cmpl	%ecx, %ebx
	jle	.L18
.L15:
	movl	%ebp, %r15d
	sarl	%cl, %r15d
	orl	%eax, %r15d
	andl	$1, %r15d
	jne	.L14
	xorl	%r15d, %r15d
	cmpb	$35, (%rsi,%rcx)
	sete	%r15b
	addq	$1, %rcx
	addl	%r15d, %edi
	cmpl	%ecx, %ebx
	jg	.L15
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %edx
	addq	$7, %rsi
	cmpl	%r14d, %edx
	jne	.L21
	xorl	%eax, %eax
	cmpl	%edi, 44(%rsp)
	sete	%al
	addl	$1, %ebp
	addl	%eax, 20(%rsp)
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L55:
	xorl	%ecx, %ecx
	cmpb	$35, (%rsi)
	sete	%cl
	addl	%ecx, %edi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L56:
	xorl	%ecx, %ecx
	cmpb	$35, 1(%rsi)
	sete	%cl
	addl	%ecx, %edi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L57:
	xorl	%ecx, %ecx
	cmpb	$35, 2(%rsi)
	sete	%cl
	addl	%ecx, %edi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L58:
	xorl	%ecx, %ecx
	cmpb	$35, 3(%rsi)
	sete	%cl
	addl	%ecx, %edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L59:
	xorl	%ecx, %ecx
	cmpb	$35, 4(%rsi)
	sete	%cl
	addl	%ecx, %edi
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L60:
	xorl	%ecx, %ecx
	cmpb	$35, 5(%rsi)
	sete	%cl
	addl	%ecx, %edi
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L61:
	xorl	%ecx, %ecx
	cmpb	$35, 6(%rsi)
	sete	%cl
	addl	%ecx, %edi
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L62:
	xorl	%ecx, %ecx
	cmpb	$35, 7(%rsi)
	sete	%cl
	addl	%ecx, %edi
	jmp	.L13
.L25:
	xorl	%eax, %eax
	xorl	%edi, %edi
	cmpl	%edi, 44(%rsp)
	sete	%al
	addl	$1, %ebp
	addl	%eax, 20(%rsp)
	jmp	.L23
.L20:
	addl	$1, %r13d
	jmp	.L4
.L22:
	movl	20(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L63
	addq	$120, %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
.L63:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.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%d%d"
.LC1:
	.string	"%6s"
.LC3:
	.string	"%d\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
	xorl	%edx, %edx
	pxor	%xmm0, %xmm0
	leaq	.LC0(%rip), %rdi
	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
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	44(%rsp), %rcx
	movw	%dx, 88(%rsp)
	leaq	36(%rsp), %rsi
	leaq	40(%rsp), %rdx
	movaps	%xmm0, 48(%rsp)
	movq	$0, 80(%rsp)
	movaps	%xmm0, 64(%rsp)
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %r13d
	testl	%r13d, %r13d
	jle	.L2
	leaq	48(%rsp), %rbp
	xorl	%ebx, %ebx
	leaq	.LC1(%rip), %r12
.L3:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	36(%rsp), %r13d
	addq	$7, %rbp
	cmpl	%ebx, %r13d
	jg	.L3
.L2:
	pxor	%xmm2, %xmm2
	xorl	%r14d, %r14d
	movl	$0, 20(%rsp)
	cvtsi2sdl	%r13d, %xmm2
	movl	%r14d, %eax
	movl	%r13d, %r14d
	movl	%eax, %r13d
	movsd	%xmm2, 24(%rsp)
.L4:
	movq	.LC2(%rip), %rax
	movsd	24(%rsp), %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	cvttsd2sil	%xmm0, %eax
	cmpl	%r13d, %eax
	jle	.L22
	movl	40(%rsp), %ebx
	pxor	%xmm1, %xmm1
	xorl	%ebp, %ebp
	cvtsi2sdl	%ebx, %xmm1
	.p2align 4,,10
	.p2align 3
.L23:
	movq	.LC2(%rip), %rax
	movsd	%xmm1, 8(%rsp)
	movq	%rax, %xmm0
	call	pow@PLT
	cvttsd2sil	%xmm0, %eax
	cmpl	%ebp, %eax
	jle	.L20
	testl	%r14d, %r14d
	movsd	8(%rsp), %xmm1
	jle	.L25
	movl	%ebp, %eax
	movl	%ebp, %r8d
	movl	%ebp, %r9d
	movl	%ebp, %r10d
	sarl	$6, %eax
	movl	%ebp, %r11d
	movl	%ebp, %r12d
	sarl	%r8d
	movl	%eax, 8(%rsp)
	movl	%ebp, %eax
	leaq	48(%rsp), %rsi
	sarl	$2, %r9d
	sarl	$7, %eax
	sarl	$3, %r10d
	xorl	%edi, %edi
	xorl	%edx, %edx
	movl	%eax, 16(%rsp)
	sarl	$4, %r11d
	sarl	$5, %r12d
	.p2align 4,,10
	.p2align 3
.L21:
	testl	%ebx, %ebx
	jle	.L18
	movl	%edx, %ecx
	movl	%r13d, %eax
	sarl	%cl, %eax
	movl	%eax, %ecx
	orl	%ebp, %ecx
	andl	$1, %ecx
	je	.L55
.L5:
	cmpl	$1, %ebx
	je	.L18
	movl	%eax, %ecx
	orl	%r8d, %ecx
	andl	$1, %ecx
	je	.L56
.L7:
	cmpl	$2, %ebx
	je	.L18
	movl	%eax, %ecx
	orl	%r9d, %ecx
	andl	$1, %ecx
	je	.L57
.L8:
	cmpl	$3, %ebx
	je	.L18
	movl	%eax, %ecx
	orl	%r10d, %ecx
	andl	$1, %ecx
	je	.L58
.L9:
	cmpl	$4, %ebx
	je	.L18
	movl	%eax, %ecx
	orl	%r11d, %ecx
	andl	$1, %ecx
	je	.L59
.L10:
	cmpl	$5, %ebx
	je	.L18
	movl	%eax, %ecx
	orl	%r12d, %ecx
	andl	$1, %ecx
	je	.L60
.L11:
	cmpl	$6, %ebx
	je	.L18
	movl	8(%rsp), %ecx
	orl	%eax, %ecx
	andl	$1, %ecx
	je	.L61
.L12:
	cmpl	$7, %ebx
	je	.L18
	movl	16(%rsp), %ecx
	orl	%eax, %ecx
	andl	$1, %ecx
	je	.L62
.L13:
	cmpl	$8, %ebx
	je	.L18
	movl	$8, %ecx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$1, %rcx
	cmpl	%ecx, %ebx
	jle	.L18
.L15:
	movl	%ebp, %r15d
	sarl	%cl, %r15d
	orl	%eax, %r15d
	andl	$1, %r15d
	jne	.L14
	xorl	%r15d, %r15d
	cmpb	$35, (%rsi,%rcx)
	sete	%r15b
	addq	$1, %rcx
	addl	%r15d, %edi
	cmpl	%ecx, %ebx
	jg	.L15
	.p2align 4,,10
	.p2align 3
.L18:
	addl	$1, %edx
	addq	$7, %rsi
	cmpl	%r14d, %edx
	jne	.L21
	xorl	%eax, %eax
	cmpl	%edi, 44(%rsp)
	sete	%al
	addl	$1, %ebp
	addl	%eax, 20(%rsp)
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L55:
	xorl	%ecx, %ecx
	cmpb	$35, (%rsi)
	sete	%cl
	addl	%ecx, %edi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L56:
	xorl	%ecx, %ecx
	cmpb	$35, 1(%rsi)
	sete	%cl
	addl	%ecx, %edi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L57:
	xorl	%ecx, %ecx
	cmpb	$35, 2(%rsi)
	sete	%cl
	addl	%ecx, %edi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L58:
	xorl	%ecx, %ecx
	cmpb	$35, 3(%rsi)
	sete	%cl
	addl	%ecx, %edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L59:
	xorl	%ecx, %ecx
	cmpb	$35, 4(%rsi)
	sete	%cl
	addl	%ecx, %edi
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L60:
	xorl	%ecx, %ecx
	cmpb	$35, 5(%rsi)
	sete	%cl
	addl	%ecx, %edi
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L61:
	xorl	%ecx, %ecx
	cmpb	$35, 6(%rsi)
	sete	%cl
	addl	%ecx, %edi
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L62:
	xorl	%ecx, %ecx
	cmpb	$35, 7(%rsi)
	sete	%cl
	addl	%ecx, %edi
	jmp	.L13
.L25:
	xorl	%eax, %eax
	xorl	%edi, %edi
	cmpl	%edi, 44(%rsp)
	sete	%al
	addl	$1, %ebp
	addl	%eax, 20(%rsp)
	jmp	.L23
.L20:
	addl	$1, %r13d
	jmp	.L4
.L22:
	movl	20(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L63
	addq	$120, %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
.L63:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.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)
{
    // Your code here!
    int H,W,K;
    char map[6][7] = {};
    int ans = 0,i,Hb,Wb,j;
    
    scanf("%d%d%d",&H,&W,&K);
    
    for(i = 0; i < H; i++)
    {
        scanf("%6s",map[i]);
        //printf("%s\n",map[i]);
    }
    
    for(Hb = 0; Hb < (int)pow(2,H); Hb++ )
    {
        for( Wb = 0; Wb < (int)pow(2,W); Wb++)
        {
            int brack = 0;
            for( i = 0; i < H; i++)
            {
                for(j = 0; j < W; j++)
                {
                    if((Hb>>i & 1) == 0 && (Wb>>j & 1) == 0 && map[i][j] == '#')
                    {
                        brack++;
                    }
                }
            }
            if(brack == K)
            {
                ans++;
            }
        }
    }
    
    printf("%d\n",ans);
}
2 2 4
..#
 4 3 2
..#
###
 4 3 2
..#
$##
 2 3 0
.-#
 3 3 0
/,#
 6 3 0
/,#
 6 3 1
/,#
 6 3 0
/,$
 6 2 0
/,$
 1 4 0

0
 20
 16
 24
 48
 384
 128
 512
 256
 32

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)
{
    // Your code here!
    int H,W,K;
    char map[6][7] = {};
    int ans = 0,i,Hb,Wb,j;
    
    scanf("%d%d%d",&H,&W,&K);
    
    for(i = 0; i < H; i++)
    {
        scanf("%6s",map[i]);
        //printf("%s\n",map[i]);
    }
    
    for(Hb = 0; Hb < (int)pow(2,H); Hb++ )
    {
        for( Wb = 0; Wb < (int)pow(2,W); Wb++)
        {
            int brack = 0;
            for( i = 0; i < H; i++)
            {
                for(j = 0; j < W; j++)
                {
                    if((Hb>>i & 1) == 0 && (Wb>>j & 1) == 0 && map[i][j] == '#')
                    {
                        brack++;
                    }
                }
            }
            if(brack == K)
            {
                ans++;
            }
        }
    }
    
    printf("%d\n",ans);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d%d"
.LC1:
	.string	"%6s"
.LC3:
	.string	"%d\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	$112, %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)
	movw	$0, -24(%rbp)
	movl	$0, -88(%rbp)
	leaq	-92(%rbp), %rcx
	leaq	-96(%rbp), %rdx
	leaq	-100(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -84(%rbp)
	jmp	.L2
.L3:
	leaq	-64(%rbp), %rcx
	movl	-84(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -84(%rbp)
.L2:
	movl	-100(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L3
	movl	$0, -80(%rbp)
	jmp	.L4
.L13:
	movl	$0, -76(%rbp)
	jmp	.L5
.L12:
	movl	$0, -68(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L6
.L10:
	movl	$0, -72(%rbp)
	jmp	.L7
.L9:
	movl	-84(%rbp), %eax
	movl	-80(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L8
	movl	-72(%rbp), %eax
	movl	-76(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L8
	movl	-72(%rbp), %eax
	movslq	%eax, %rcx
	movl	-84(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$64, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L8
	addl	$1, -68(%rbp)
.L8:
	addl	$1, -72(%rbp)
.L7:
	movl	-96(%rbp), %eax
	cmpl	%eax, -72(%rbp)
	jl	.L9
	addl	$1, -84(%rbp)
.L6:
	movl	-100(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L10
	movl	-92(%rbp), %eax
	cmpl	%eax, -68(%rbp)
	jne	.L11
	addl	$1, -88(%rbp)
.L11:
	addl	$1, -76(%rbp)
.L5:
	movl	-96(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movq	.LC2(%rip), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	cvttsd2sil	%xmm0, %eax
	cmpl	%eax, -76(%rbp)
	jl	.L12
	addl	$1, -80(%rbp)
.L4:
	movl	-100(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movq	.LC2(%rip), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	cvttsd2sil	%xmm0, %eax
	cmpl	%eax, -80(%rbp)
	jl	.L13
	movl	-88(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.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	"%d%d%d"
.LC1:
	.string	"%6s"
.LC3:
	.string	"%d\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	$112, %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)
	movw	$0, -24(%rbp)
	movl	$0, -88(%rbp)
	leaq	-92(%rbp), %rcx
	leaq	-96(%rbp), %rdx
	leaq	-100(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -84(%rbp)
	jmp	.L2
.L3:
	leaq	-64(%rbp), %rcx
	movl	-84(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -84(%rbp)
.L2:
	movl	-100(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L3
	movl	$0, -80(%rbp)
	jmp	.L4
.L13:
	movl	$0, -76(%rbp)
	jmp	.L5
.L12:
	movl	$0, -68(%rbp)
	movl	$0, -84(%rbp)
	jmp	.L6
.L10:
	movl	$0, -72(%rbp)
	jmp	.L7
.L9:
	movl	-84(%rbp), %eax
	movl	-80(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L8
	movl	-72(%rbp), %eax
	movl	-76(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L8
	movl	-72(%rbp), %eax
	movslq	%eax, %rcx
	movl	-84(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$3, %rax
	subq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$64, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L8
	addl	$1, -68(%rbp)
.L8:
	addl	$1, -72(%rbp)
.L7:
	movl	-96(%rbp), %eax
	cmpl	%eax, -72(%rbp)
	jl	.L9
	addl	$1, -84(%rbp)
.L6:
	movl	-100(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jl	.L10
	movl	-92(%rbp), %eax
	cmpl	%eax, -68(%rbp)
	jne	.L11
	addl	$1, -88(%rbp)
.L11:
	addl	$1, -76(%rbp)
.L5:
	movl	-96(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movq	.LC2(%rip), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	cvttsd2sil	%xmm0, %eax
	cmpl	%eax, -76(%rbp)
	jl	.L12
	addl	$1, -80(%rbp)
.L4:
	movl	-100(%rbp), %eax
	pxor	%xmm0, %xmm0
	cvtsi2sdl	%eax, %xmm0
	movq	.LC2(%rip), %rax
	movapd	%xmm0, %xmm1
	movq	%rax, %xmm0
	call	pow@PLT
	cvttsd2sil	%xmm0, %eax
	cmpl	%eax, -80(%rbp)
	jl	.L13
	movl	-88(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.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:
