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 <stdlib.h>
#include <string.h>
#define SIZE 10000
#define STRLEN 20

int main(void){
    int row, col, n=0, count, ans = 0;
    scanf("%d %d %d", &col, &row, &n);
    char a[7][7];
    for(int i=0;i < col;i++){
            scanf("%s", a[i]);
    }


    for(int h=0;h < 1<<col;h++){
        for(int w=0; w < 1<<row;w++){
            count = 0;
            for(int i=0; i < col; i++){
                if((h>>i) % 2 == 1) continue;
                for(int l=0; l < row; l++){
                    if((w>>l) % 2 == 1) continue;
                    if(a[i][l] == '#') count++;
                }
            }
            if (count == n) ans++;
        }
    }

    printf("%d\n", ans);
    return 0;

}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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
	movl	$0, -96(%rbp)
	movl	$0, -88(%rbp)
	leaq	-96(%rbp), %rcx
	leaq	-104(%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
.L16:
	movl	$0, -76(%rbp)
	jmp	.L5
.L15:
	movl	$0, -92(%rbp)
	movl	$0, -72(%rbp)
	jmp	.L6
.L13:
	movl	-72(%rbp), %eax
	movl	-80(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	je	.L19
	movl	$0, -68(%rbp)
	jmp	.L9
.L12:
	movl	-68(%rbp), %eax
	movl	-76(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	je	.L20
	movl	-68(%rbp), %eax
	movslq	%eax, %rcx
	movl	-72(%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	.L11
	addl	$1, -92(%rbp)
	jmp	.L11
.L20:
	nop
.L11:
	addl	$1, -68(%rbp)
.L9:
	movl	-104(%rbp), %eax
	cmpl	%eax, -68(%rbp)
	jl	.L12
	jmp	.L8
.L19:
	nop
.L8:
	addl	$1, -72(%rbp)
.L6:
	movl	-100(%rbp), %eax
	cmpl	%eax, -72(%rbp)
	jl	.L13
	movl	-96(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jne	.L14
	addl	$1, -88(%rbp)
.L14:
	addl	$1, -76(%rbp)
.L5:
	movl	-104(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cmpl	%eax, -76(%rbp)
	jl	.L15
	addl	$1, -80(%rbp)
.L4:
	movl	-100(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cmpl	%eax, -80(%rbp)
	jl	.L16
	movl	-88(%rbp), %eax
	movl	%eax, %esi
	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	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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 %d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.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
	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
	leaq	36(%rsp), %rdx
	movl	$0, 44(%rsp)
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %r14d
	testl	%r14d, %r14d
	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	40(%rsp), %r14d
	addq	$7, %rbp
	cmpl	%ebx, %r14d
	jg	.L3
.L2:
	movl	$1, %eax
	movl	%r14d, %ecx
	movl	%eax, %edi
	sall	%cl, %edi
	movl	%edi, 28(%rsp)
	testl	%edi, %edi
	jle	.L25
	movl	36(%rsp), %ecx
	xorl	%r15d, %r15d
	movl	$0, 20(%rsp)
	sall	%cl, %eax
	movl	%eax, 16(%rsp)
	movl	44(%rsp), %eax
	movl	%eax, 24(%rsp)
	movl	%r15d, %eax
	movl	%r14d, %r15d
	movl	%eax, %r14d
.L5:
	movl	16(%rsp), %eax
	xorl	%edi, %edi
	testl	%eax, %eax
	jle	.L20
	.p2align 4,,10
	.p2align 3
.L23:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	jle	.L22
	movl	%edi, %eax
	movl	%edi, %r9d
	movl	%edi, %r10d
	movl	%edi, %r11d
	sarl	$6, %eax
	movl	%edi, %ebx
	movl	%edi, %r12d
	movl	%edi, %ebp
	andl	$1, %eax
	sarl	%r9d
	leaq	48(%rsp), %rdx
	andl	$1, %ebp
	movl	%eax, %r13d
	movl	%edi, %eax
	sarl	$2, %r10d
	andl	$1, %r9d
	sarl	$7, %eax
	sarl	$3, %r11d
	andl	$1, %r10d
	xorl	%esi, %esi
	sarl	$4, %ebx
	andl	$1, %eax
	sarl	$5, %r12d
	andl	$1, %r11d
	movl	%eax, 8(%rsp)
	andl	$1, %ebx
	andl	$1, %r12d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L18:
	btl	%esi, %r14d
	jc	.L6
	testl	%ecx, %ecx
	jle	.L6
	testl	%ebp, %ebp
	jne	.L7
	xorl	%r8d, %r8d
	cmpb	$35, (%rdx)
	sete	%r8b
	addl	%r8d, %eax
.L7:
	cmpl	$1, %ecx
	je	.L6
	testl	%r9d, %r9d
	jne	.L9
	xorl	%r8d, %r8d
	cmpb	$35, 1(%rdx)
	sete	%r8b
	addl	%r8d, %eax
.L9:
	cmpl	$2, %ecx
	je	.L6
	testl	%r10d, %r10d
	jne	.L10
	xorl	%r8d, %r8d
	cmpb	$35, 2(%rdx)
	sete	%r8b
	addl	%r8d, %eax
.L10:
	cmpl	$3, %ecx
	je	.L6
	testl	%r11d, %r11d
	jne	.L11
	xorl	%r8d, %r8d
	cmpb	$35, 3(%rdx)
	sete	%r8b
	addl	%r8d, %eax
.L11:
	cmpl	$4, %ecx
	je	.L6
	testl	%ebx, %ebx
	jne	.L12
	xorl	%r8d, %r8d
	cmpb	$35, 4(%rdx)
	sete	%r8b
	addl	%r8d, %eax
.L12:
	cmpl	$5, %ecx
	je	.L6
	testl	%r12d, %r12d
	jne	.L13
	xorl	%r8d, %r8d
	cmpb	$35, 5(%rdx)
	sete	%r8b
	addl	%r8d, %eax
.L13:
	cmpl	$6, %ecx
	je	.L6
	testl	%r13d, %r13d
	jne	.L14
	xorl	%r8d, %r8d
	cmpb	$35, 6(%rdx)
	sete	%r8b
	addl	%r8d, %eax
.L14:
	cmpl	$7, %ecx
	je	.L6
	movl	8(%rsp), %r8d
	testl	%r8d, %r8d
	jne	.L15
	xorl	%r8d, %r8d
	cmpb	$35, 7(%rdx)
	sete	%r8b
	addl	%r8d, %eax
.L15:
	cmpl	$8, %ecx
	je	.L6
	movl	%r15d, 12(%rsp)
	movl	$8, %r8d
.L17:
	btl	%r8d, %edi
	jc	.L16
	xorl	%r15d, %r15d
	cmpb	$35, (%rdx,%r8)
	sete	%r15b
	addl	%r15d, %eax
.L16:
	addq	$1, %r8
	cmpl	%r8d, %ecx
	jg	.L17
	movl	12(%rsp), %r15d
	.p2align 4,,10
	.p2align 3
.L6:
	addl	$1, %esi
	addq	$7, %rdx
	cmpl	%r15d, %esi
	jne	.L18
.L22:
	cmpl	%eax, 24(%rsp)
	sete	%al
	addl	$1, %edi
	movzbl	%al, %eax
	addl	%eax, 20(%rsp)
	cmpl	16(%rsp), %edi
	jne	.L23
.L20:
	addl	$1, %r14d
	cmpl	%r14d, 28(%rsp)
	jne	.L5
.L4:
	movl	20(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	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
.L25:
	.cfi_restore_state
	movl	$0, 20(%rsp)
	jmp	.L4
.L59:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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 %d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB51:
	.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
	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
	leaq	36(%rsp), %rdx
	movl	$0, 44(%rsp)
	leaq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	40(%rsp), %r14d
	testl	%r14d, %r14d
	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	40(%rsp), %r14d
	addq	$7, %rbp
	cmpl	%ebx, %r14d
	jg	.L3
.L2:
	movl	$1, %eax
	movl	%r14d, %ecx
	movl	%eax, %edi
	sall	%cl, %edi
	movl	%edi, 28(%rsp)
	testl	%edi, %edi
	jle	.L25
	movl	36(%rsp), %ecx
	xorl	%r15d, %r15d
	movl	$0, 20(%rsp)
	sall	%cl, %eax
	movl	%eax, 16(%rsp)
	movl	44(%rsp), %eax
	movl	%eax, 24(%rsp)
	movl	%r15d, %eax
	movl	%r14d, %r15d
	movl	%eax, %r14d
.L5:
	movl	16(%rsp), %eax
	xorl	%edi, %edi
	testl	%eax, %eax
	jle	.L20
	.p2align 4,,10
	.p2align 3
.L23:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	jle	.L22
	movl	%edi, %eax
	movl	%edi, %r9d
	movl	%edi, %r10d
	movl	%edi, %r11d
	sarl	$6, %eax
	movl	%edi, %ebx
	movl	%edi, %r12d
	movl	%edi, %ebp
	andl	$1, %eax
	sarl	%r9d
	leaq	48(%rsp), %rdx
	andl	$1, %ebp
	movl	%eax, %r13d
	movl	%edi, %eax
	sarl	$2, %r10d
	andl	$1, %r9d
	sarl	$7, %eax
	sarl	$3, %r11d
	andl	$1, %r10d
	xorl	%esi, %esi
	sarl	$4, %ebx
	andl	$1, %eax
	sarl	$5, %r12d
	andl	$1, %r11d
	movl	%eax, 8(%rsp)
	andl	$1, %ebx
	andl	$1, %r12d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L18:
	btl	%esi, %r14d
	jc	.L6
	testl	%ecx, %ecx
	jle	.L6
	testl	%ebp, %ebp
	jne	.L7
	xorl	%r8d, %r8d
	cmpb	$35, (%rdx)
	sete	%r8b
	addl	%r8d, %eax
.L7:
	cmpl	$1, %ecx
	je	.L6
	testl	%r9d, %r9d
	jne	.L9
	xorl	%r8d, %r8d
	cmpb	$35, 1(%rdx)
	sete	%r8b
	addl	%r8d, %eax
.L9:
	cmpl	$2, %ecx
	je	.L6
	testl	%r10d, %r10d
	jne	.L10
	xorl	%r8d, %r8d
	cmpb	$35, 2(%rdx)
	sete	%r8b
	addl	%r8d, %eax
.L10:
	cmpl	$3, %ecx
	je	.L6
	testl	%r11d, %r11d
	jne	.L11
	xorl	%r8d, %r8d
	cmpb	$35, 3(%rdx)
	sete	%r8b
	addl	%r8d, %eax
.L11:
	cmpl	$4, %ecx
	je	.L6
	testl	%ebx, %ebx
	jne	.L12
	xorl	%r8d, %r8d
	cmpb	$35, 4(%rdx)
	sete	%r8b
	addl	%r8d, %eax
.L12:
	cmpl	$5, %ecx
	je	.L6
	testl	%r12d, %r12d
	jne	.L13
	xorl	%r8d, %r8d
	cmpb	$35, 5(%rdx)
	sete	%r8b
	addl	%r8d, %eax
.L13:
	cmpl	$6, %ecx
	je	.L6
	testl	%r13d, %r13d
	jne	.L14
	xorl	%r8d, %r8d
	cmpb	$35, 6(%rdx)
	sete	%r8b
	addl	%r8d, %eax
.L14:
	cmpl	$7, %ecx
	je	.L6
	movl	8(%rsp), %r8d
	testl	%r8d, %r8d
	jne	.L15
	xorl	%r8d, %r8d
	cmpb	$35, 7(%rdx)
	sete	%r8b
	addl	%r8d, %eax
.L15:
	cmpl	$8, %ecx
	je	.L6
	movl	%r15d, 12(%rsp)
	movl	$8, %r8d
.L17:
	btl	%r8d, %edi
	jc	.L16
	xorl	%r15d, %r15d
	cmpb	$35, (%rdx,%r8)
	sete	%r15b
	addl	%r15d, %eax
.L16:
	addq	$1, %r8
	cmpl	%r8d, %ecx
	jg	.L17
	movl	12(%rsp), %r15d
	.p2align 4,,10
	.p2align 3
.L6:
	addl	$1, %esi
	addq	$7, %rdx
	cmpl	%r15d, %esi
	jne	.L18
.L22:
	cmpl	%eax, 24(%rsp)
	sete	%al
	addl	$1, %edi
	movzbl	%al, %eax
	addl	%eax, 20(%rsp)
	cmpl	16(%rsp), %edi
	jne	.L23
.L20:
	addl	$1, %r14d
	cmpl	%r14d, 28(%rsp)
	jne	.L5
.L4:
	movl	20(%rsp), %edx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L59
	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
.L25:
	.cfi_restore_state
	movl	$0, 20(%rsp)
	jmp	.L4
.L59:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE51:
	.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>
#include <stdlib.h>
#include <string.h>
#define SIZE 10000
#define STRLEN 20

int main(void){
    int row, col, n=0, count, ans = 0;
    scanf("%d %d %d", &col, &row, &n);
    char a[7][7];
    for(int i=0;i < col;i++){
            scanf("%s", a[i]);
    }


    for(int h=0;h < 1<<col;h++){
        for(int w=0; w < 1<<row;w++){
            count = 0;
            for(int i=0; i < col; i++){
                if((h>>i) % 2 == 1) continue;
                for(int l=0; l < row; l++){
                    if((w>>l) % 2 == 1) continue;
                    if(a[i][l] == '#') count++;
                }
            }
            if (count == n) ans++;
        }
    }

    printf("%d\n", ans);
    return 0;

}

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>
#include <stdlib.h>
#include <string.h>
#define SIZE 10000
#define STRLEN 20

int main(void){
    int row, col, n=0, count, ans = 0;
    scanf("%d %d %d", &col, &row, &n);
    char a[7][7];
    for(int i=0;i < col;i++){
            scanf("%s", a[i]);
    }


    for(int h=0;h < 1<<col;h++){
        for(int w=0; w < 1<<row;w++){
            count = 0;
            for(int i=0; i < col; i++){
                if((h>>i) % 2 == 1) continue;
                for(int l=0; l < row; l++){
                    if((w>>l) % 2 == 1) continue;
                    if(a[i][l] == '#') count++;
                }
            }
            if (count == n) ans++;
        }
    }

    printf("%d\n", ans);
    return 0;

}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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
	movl	$0, -96(%rbp)
	movl	$0, -88(%rbp)
	leaq	-96(%rbp), %rcx
	leaq	-104(%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
.L16:
	movl	$0, -76(%rbp)
	jmp	.L5
.L15:
	movl	$0, -92(%rbp)
	movl	$0, -72(%rbp)
	jmp	.L6
.L13:
	movl	-72(%rbp), %eax
	movl	-80(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	je	.L19
	movl	$0, -68(%rbp)
	jmp	.L9
.L12:
	movl	-68(%rbp), %eax
	movl	-76(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	je	.L20
	movl	-68(%rbp), %eax
	movslq	%eax, %rcx
	movl	-72(%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	.L11
	addl	$1, -92(%rbp)
	jmp	.L11
.L20:
	nop
.L11:
	addl	$1, -68(%rbp)
.L9:
	movl	-104(%rbp), %eax
	cmpl	%eax, -68(%rbp)
	jl	.L12
	jmp	.L8
.L19:
	nop
.L8:
	addl	$1, -72(%rbp)
.L6:
	movl	-100(%rbp), %eax
	cmpl	%eax, -72(%rbp)
	jl	.L13
	movl	-96(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jne	.L14
	addl	$1, -88(%rbp)
.L14:
	addl	$1, -76(%rbp)
.L5:
	movl	-104(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cmpl	%eax, -76(%rbp)
	jl	.L15
	addl	$1, -80(%rbp)
.L4:
	movl	-100(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cmpl	%eax, -80(%rbp)
	jl	.L16
	movl	-88(%rbp), %eax
	movl	%eax, %esi
	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	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"%d %d %d"
.LC1:
	.string	"%s"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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
	movl	$0, -96(%rbp)
	movl	$0, -88(%rbp)
	leaq	-96(%rbp), %rcx
	leaq	-104(%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
.L16:
	movl	$0, -76(%rbp)
	jmp	.L5
.L15:
	movl	$0, -92(%rbp)
	movl	$0, -72(%rbp)
	jmp	.L6
.L13:
	movl	-72(%rbp), %eax
	movl	-80(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	je	.L19
	movl	$0, -68(%rbp)
	jmp	.L9
.L12:
	movl	-68(%rbp), %eax
	movl	-76(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	cmpl	$1, %eax
	je	.L20
	movl	-68(%rbp), %eax
	movslq	%eax, %rcx
	movl	-72(%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	.L11
	addl	$1, -92(%rbp)
	jmp	.L11
.L20:
	nop
.L11:
	addl	$1, -68(%rbp)
.L9:
	movl	-104(%rbp), %eax
	cmpl	%eax, -68(%rbp)
	jl	.L12
	jmp	.L8
.L19:
	nop
.L8:
	addl	$1, -72(%rbp)
.L6:
	movl	-100(%rbp), %eax
	cmpl	%eax, -72(%rbp)
	jl	.L13
	movl	-96(%rbp), %eax
	cmpl	%eax, -92(%rbp)
	jne	.L14
	addl	$1, -88(%rbp)
.L14:
	addl	$1, -76(%rbp)
.L5:
	movl	-104(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cmpl	%eax, -76(%rbp)
	jl	.L15
	addl	$1, -80(%rbp)
.L4:
	movl	-100(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cmpl	%eax, -80(%rbp)
	jl	.L16
	movl	-88(%rbp), %eax
	movl	%eax, %esi
	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	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
