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){
	int n,m,d,i,j,k,flg,cnt;
	char nm[101][101];
	scanf("%d %d %d",&n,&m,&d);
	for(i=0;i<n;i++) scanf("%s",nm[i]);
	cnt=0;
	for(i=0;i<n;i++){
		for(j=0;j<m;j++){
			flg=1;
			for(k=i;k<i+d;k++){
				if(k>=n){
					flg=0;
					break;
				}
				if(nm[k][j]=='#'){
					flg=0;
					break;
				}
			}
			if(flg==1) cnt++;
			flg=1;
			for(k=j;k<j+d;k++){
				if(k>=m){
					flg=0;
					break;
				}
				if(nm[i][k]=='#'){
					flg=0;
					break;
				}
			}
			if(flg==1) cnt++;
		}
	}
	printf("%d\n",cnt);
	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:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-10248(%rbp), %rcx
	leaq	-10252(%rbp), %rdx
	leaq	-10256(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -10244(%rbp)
	jmp	.L2
.L3:
	leaq	-10224(%rbp), %rcx
	movl	-10244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -10244(%rbp)
.L2:
	movl	-10256(%rbp), %eax
	cmpl	%eax, -10244(%rbp)
	jl	.L3
	movl	$0, -10228(%rbp)
	movl	$0, -10244(%rbp)
	jmp	.L4
.L19:
	movl	$0, -10240(%rbp)
	jmp	.L5
.L18:
	movl	$1, -10232(%rbp)
	movl	-10244(%rbp), %eax
	movl	%eax, -10236(%rbp)
	jmp	.L6
.L10:
	movl	-10256(%rbp), %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L7
	movl	$0, -10232(%rbp)
	jmp	.L8
.L7:
	movl	-10240(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10224, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L9
	movl	$0, -10232(%rbp)
	jmp	.L8
.L9:
	addl	$1, -10236(%rbp)
.L6:
	movl	-10248(%rbp), %edx
	movl	-10244(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L10
.L8:
	cmpl	$1, -10232(%rbp)
	jne	.L11
	addl	$1, -10228(%rbp)
.L11:
	movl	$1, -10232(%rbp)
	movl	-10240(%rbp), %eax
	movl	%eax, -10236(%rbp)
	jmp	.L12
.L16:
	movl	-10252(%rbp), %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L13
	movl	$0, -10232(%rbp)
	jmp	.L14
.L13:
	movl	-10236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10224, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L15
	movl	$0, -10232(%rbp)
	jmp	.L14
.L15:
	addl	$1, -10236(%rbp)
.L12:
	movl	-10248(%rbp), %edx
	movl	-10240(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L16
.L14:
	cmpl	$1, -10232(%rbp)
	jne	.L17
	addl	$1, -10228(%rbp)
.L17:
	addl	$1, -10240(%rbp)
.L5:
	movl	-10252(%rbp), %eax
	cmpl	%eax, -10240(%rbp)
	jl	.L18
	addl	$1, -10244(%rbp)
.L4:
	movl	-10256(%rbp), %eax
	cmpl	%eax, -10244(%rbp)
	jl	.L19
	movl	-10228(%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	.L21
	call	__stack_chk_fail@PLT
.L21:
	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 %d %d"
.LC1:
	.string	"%s"
.LC2:
	.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
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$2072, %rsp
	.cfi_def_cfa_offset 10320
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 10248(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rcx
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	32(%rsp), %rax
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%rax, 8(%rsp)
	movq	%rax, %r12
	movq	%rax, %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %esi
	addq	$101, %r12
	cmpl	%ebp, %esi
	jg	.L3
	testl	%esi, %esi
	jle	.L2
	movl	28(%rsp), %r13d
	movslq	24(%rsp), %r14
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%r11d, %r11d
	leal	-1(%r13), %eax
	movq	%r14, %r8
	movl	%r13d, %ecx
	movl	%eax, 4(%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	movl	4(%rsp), %edi
	movl	%r13d, %ebp
	xorl	%r10d, %r10d
	testl	%r8d, %r8d
	jle	.L24
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%r10d, %edx
	cmpl	%ecx, %r11d
	jge	.L7
	cmpl	%r11d, %esi
	jle	.L5
	leaq	(%r10,%rbx), %r9
	movl	%r11d, %eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L41:
	addl	$1, %eax
	cmpl	%ecx, %eax
	je	.L7
	addq	$101, %r9
	cmpl	%eax, %esi
	je	.L5
.L20:
	cmpb	$35, (%r9)
	jne	.L41
.L5:
	movq	%r10, %rax
	cmpl	%r10d, %ebp
	jg	.L8
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L42:
	cmpq	%rdi, %rax
	je	.L9
	addq	$1, %rax
	cmpl	%eax, %r8d
	jle	.L10
.L8:
	cmpb	$35, (%rbx,%rax)
	jne	.L42
.L10:
	addq	$1, %r10
	addl	$1, %edx
	addl	$1, %ebp
	addq	$1, %rdi
	cmpq	%r14, %r10
	jne	.L13
	movl	%edx, %r9d
	cmpl	%edx, %r8d
	jle	.L24
	movslq	%r9d, %rdi
	addq	%r15, %rdi
	addq	8(%rsp), %rdi
	.p2align 4,,10
	.p2align 3
.L18:
	cmpl	%ecx, %r11d
	jge	.L14
	cmpl	%r11d, %esi
	jle	.L15
	movq	%rdi, %rdx
	movl	%r11d, %eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L43:
	addl	$1, %eax
	cmpl	%ecx, %eax
	je	.L14
	addq	$101, %rdx
	cmpl	%eax, %esi
	je	.L15
.L16:
	cmpb	$35, (%rdx)
	jne	.L43
.L15:
	leal	(%r9,%r13), %eax
	cmpl	%eax, %r9d
	setge	%al
	addl	$1, %r9d
	addq	$1, %rdi
	movzbl	%al, %eax
	addl	%eax, %r12d
	cmpl	%r8d, %r9d
	jl	.L18
.L24:
	addl	$1, %r11d
	addl	$1, %ecx
	addq	$101, %r15
	addq	$101, %rbx
	cmpl	%r11d, %esi
	jne	.L4
.L22:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	10248(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L44
	addq	$10264, %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
.L14:
	.cfi_restore_state
	addl	$1, %r12d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L7:
	addl	$1, %r12d
	movq	%r10, %rax
	cmpl	%r10d, %ebp
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	addl	$1, %r12d
	jmp	.L10
.L2:
	xorl	%r12d, %r12d
	jmp	.L22
.L44:
	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 %d %d"
.LC1:
	.string	"%s"
.LC2:
	.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
	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	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8248
	orq	$0, (%rsp)
	subq	$2072, %rsp
	.cfi_def_cfa_offset 10320
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 10248(%rsp)
	xorl	%eax, %eax
	leaq	28(%rsp), %rcx
	leaq	24(%rsp), %rdx
	leaq	20(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	32(%rsp), %rax
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%rax, 8(%rsp)
	movq	%rax, %r12
	movq	%rax, %rbx
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	20(%rsp), %esi
	addq	$101, %r12
	cmpl	%ebp, %esi
	jg	.L3
	testl	%esi, %esi
	jle	.L2
	movl	28(%rsp), %r13d
	movslq	24(%rsp), %r14
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%r11d, %r11d
	leal	-1(%r13), %eax
	movq	%r14, %r8
	movl	%r13d, %ecx
	movl	%eax, 4(%rsp)
	.p2align 4,,10
	.p2align 3
.L4:
	movl	4(%rsp), %edi
	movl	%r13d, %ebp
	xorl	%r10d, %r10d
	testl	%r8d, %r8d
	jle	.L24
	.p2align 4,,10
	.p2align 3
.L13:
	movl	%r10d, %edx
	cmpl	%ecx, %r11d
	jge	.L7
	cmpl	%r11d, %esi
	jle	.L5
	leaq	(%r10,%rbx), %r9
	movl	%r11d, %eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L41:
	addl	$1, %eax
	cmpl	%ecx, %eax
	je	.L7
	addq	$101, %r9
	cmpl	%eax, %esi
	je	.L5
.L20:
	cmpb	$35, (%r9)
	jne	.L41
.L5:
	movq	%r10, %rax
	cmpl	%r10d, %ebp
	jg	.L8
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L42:
	cmpq	%rdi, %rax
	je	.L9
	addq	$1, %rax
	cmpl	%eax, %r8d
	jle	.L10
.L8:
	cmpb	$35, (%rbx,%rax)
	jne	.L42
.L10:
	addq	$1, %r10
	addl	$1, %edx
	addl	$1, %ebp
	addq	$1, %rdi
	cmpq	%r14, %r10
	jne	.L13
	movl	%edx, %r9d
	cmpl	%edx, %r8d
	jle	.L24
	movslq	%r9d, %rdi
	addq	%r15, %rdi
	addq	8(%rsp), %rdi
	.p2align 4,,10
	.p2align 3
.L18:
	cmpl	%ecx, %r11d
	jge	.L14
	cmpl	%r11d, %esi
	jle	.L15
	movq	%rdi, %rdx
	movl	%r11d, %eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L43:
	addl	$1, %eax
	cmpl	%ecx, %eax
	je	.L14
	addq	$101, %rdx
	cmpl	%eax, %esi
	je	.L15
.L16:
	cmpb	$35, (%rdx)
	jne	.L43
.L15:
	leal	(%r9,%r13), %eax
	cmpl	%eax, %r9d
	setge	%al
	addl	$1, %r9d
	addq	$1, %rdi
	movzbl	%al, %eax
	addl	%eax, %r12d
	cmpl	%r8d, %r9d
	jl	.L18
.L24:
	addl	$1, %r11d
	addl	$1, %ecx
	addq	$101, %r15
	addq	$101, %rbx
	cmpl	%r11d, %esi
	jne	.L4
.L22:
	xorl	%eax, %eax
	movl	%r12d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	10248(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L44
	addq	$10264, %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
.L14:
	.cfi_restore_state
	addl	$1, %r12d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L7:
	addl	$1, %r12d
	movq	%r10, %rax
	cmpl	%r10d, %ebp
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	addl	$1, %r12d
	jmp	.L10
.L2:
	xorl	%r12d, %r12d
	jmp	.L22
.L44:
	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){
	int n,m,d,i,j,k,flg,cnt;
	char nm[101][101];
	scanf("%d %d %d",&n,&m,&d);
	for(i=0;i<n;i++) scanf("%s",nm[i]);
	cnt=0;
	for(i=0;i<n;i++){
		for(j=0;j<m;j++){
			flg=1;
			for(k=i;k<i+d;k++){
				if(k>=n){
					flg=0;
					break;
				}
				if(nm[k][j]=='#'){
					flg=0;
					break;
				}
			}
			if(flg==1) cnt++;
			flg=1;
			for(k=j;k<j+d;k++){
				if(k>=m){
					flg=0;
					break;
				}
				if(nm[i][k]=='#'){
					flg=0;
					break;
				}
			}
			if(flg==1) cnt++;
		}
	}
	printf("%d\n",cnt);
	return 0;
}
3 5 2
...#.
#...#
....#

12

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){
	int n,m,d,i,j,k,flg,cnt;
	char nm[101][101];
	scanf("%d %d %d",&n,&m,&d);
	for(i=0;i<n;i++) scanf("%s",nm[i]);
	cnt=0;
	for(i=0;i<n;i++){
		for(j=0;j<m;j++){
			flg=1;
			for(k=i;k<i+d;k++){
				if(k>=n){
					flg=0;
					break;
				}
				if(nm[k][j]=='#'){
					flg=0;
					break;
				}
			}
			if(flg==1) cnt++;
			flg=1;
			for(k=j;k<j+d;k++){
				if(k>=m){
					flg=0;
					break;
				}
				if(nm[i][k]=='#'){
					flg=0;
					break;
				}
			}
			if(flg==1) cnt++;
		}
	}
	printf("%d\n",cnt);
	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:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-10248(%rbp), %rcx
	leaq	-10252(%rbp), %rdx
	leaq	-10256(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -10244(%rbp)
	jmp	.L2
.L3:
	leaq	-10224(%rbp), %rcx
	movl	-10244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -10244(%rbp)
.L2:
	movl	-10256(%rbp), %eax
	cmpl	%eax, -10244(%rbp)
	jl	.L3
	movl	$0, -10228(%rbp)
	movl	$0, -10244(%rbp)
	jmp	.L4
.L19:
	movl	$0, -10240(%rbp)
	jmp	.L5
.L18:
	movl	$1, -10232(%rbp)
	movl	-10244(%rbp), %eax
	movl	%eax, -10236(%rbp)
	jmp	.L6
.L10:
	movl	-10256(%rbp), %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L7
	movl	$0, -10232(%rbp)
	jmp	.L8
.L7:
	movl	-10240(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10224, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L9
	movl	$0, -10232(%rbp)
	jmp	.L8
.L9:
	addl	$1, -10236(%rbp)
.L6:
	movl	-10248(%rbp), %edx
	movl	-10244(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L10
.L8:
	cmpl	$1, -10232(%rbp)
	jne	.L11
	addl	$1, -10228(%rbp)
.L11:
	movl	$1, -10232(%rbp)
	movl	-10240(%rbp), %eax
	movl	%eax, -10236(%rbp)
	jmp	.L12
.L16:
	movl	-10252(%rbp), %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L13
	movl	$0, -10232(%rbp)
	jmp	.L14
.L13:
	movl	-10236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10224, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L15
	movl	$0, -10232(%rbp)
	jmp	.L14
.L15:
	addl	$1, -10236(%rbp)
.L12:
	movl	-10248(%rbp), %edx
	movl	-10240(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L16
.L14:
	cmpl	$1, -10232(%rbp)
	jne	.L17
	addl	$1, -10228(%rbp)
.L17:
	addl	$1, -10240(%rbp)
.L5:
	movl	-10252(%rbp), %eax
	cmpl	%eax, -10240(%rbp)
	jl	.L18
	addl	$1, -10244(%rbp)
.L4:
	movl	-10256(%rbp), %eax
	cmpl	%eax, -10244(%rbp)
	jl	.L19
	movl	-10228(%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	.L21
	call	__stack_chk_fail@PLT
.L21:
	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	"%d %d %d"
.LC1:
	.string	"%s"
.LC2:
	.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	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$2064, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-10248(%rbp), %rcx
	leaq	-10252(%rbp), %rdx
	leaq	-10256(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -10244(%rbp)
	jmp	.L2
.L3:
	leaq	-10224(%rbp), %rcx
	movl	-10244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -10244(%rbp)
.L2:
	movl	-10256(%rbp), %eax
	cmpl	%eax, -10244(%rbp)
	jl	.L3
	movl	$0, -10228(%rbp)
	movl	$0, -10244(%rbp)
	jmp	.L4
.L19:
	movl	$0, -10240(%rbp)
	jmp	.L5
.L18:
	movl	$1, -10232(%rbp)
	movl	-10244(%rbp), %eax
	movl	%eax, -10236(%rbp)
	jmp	.L6
.L10:
	movl	-10256(%rbp), %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L7
	movl	$0, -10232(%rbp)
	jmp	.L8
.L7:
	movl	-10240(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10236(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10224, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L9
	movl	$0, -10232(%rbp)
	jmp	.L8
.L9:
	addl	$1, -10236(%rbp)
.L6:
	movl	-10248(%rbp), %edx
	movl	-10244(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L10
.L8:
	cmpl	$1, -10232(%rbp)
	jne	.L11
	addl	$1, -10228(%rbp)
.L11:
	movl	$1, -10232(%rbp)
	movl	-10240(%rbp), %eax
	movl	%eax, -10236(%rbp)
	jmp	.L12
.L16:
	movl	-10252(%rbp), %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L13
	movl	$0, -10232(%rbp)
	jmp	.L14
.L13:
	movl	-10236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10244(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$10224, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L15
	movl	$0, -10232(%rbp)
	jmp	.L14
.L15:
	addl	$1, -10236(%rbp)
.L12:
	movl	-10248(%rbp), %edx
	movl	-10240(%rbp), %eax
	addl	%edx, %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L16
.L14:
	cmpl	$1, -10232(%rbp)
	jne	.L17
	addl	$1, -10228(%rbp)
.L17:
	addl	$1, -10240(%rbp)
.L5:
	movl	-10252(%rbp), %eax
	cmpl	%eax, -10240(%rbp)
	jl	.L18
	addl	$1, -10244(%rbp)
.L4:
	movl	-10256(%rbp), %eax
	cmpl	%eax, -10244(%rbp)
	jl	.L19
	movl	-10228(%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	.L21
	call	__stack_chk_fail@PLT
.L21:
	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:
