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 N, M, D;
char d[101][101];

int main() {
	int i, j, k, o=0;
	scanf("%d%d%d", &N, &M, &D);
	for (i=0; i<N ;i++) {
		scanf("%s", d[i]);
		for (j=0; j<M ;j++) {
			for (k = 0; k < D && j-k >= 0 && d[i][j-k] != '#';k++);
			if (k == D) o++;

			for (k = 0; k < D && i-k >= 0 && d[i-k][j] != '#';k++);
			if (k == D) o++;
		}
	}
	printf("%d\n", o);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	D
	.align 4
	.type	D, @object
	.size	D, 4
D:
	.zero	4
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 10201
d:
	.zero	10201
	.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	$16, %rsp
	movl	$0, -4(%rbp)
	leaq	D(%rip), %rax
	movq	%rax, %rcx
	leaq	M(%rip), %rax
	movq	%rax, %rdx
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16(%rbp)
	jmp	.L2
.L13:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	d(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L3
.L12:
	movl	$0, -8(%rbp)
	jmp	.L4
.L6:
	addl	$1, -8(%rbp)
.L4:
	movl	D(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jge	.L5
	movl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	testl	%eax, %eax
	js	.L5
	movl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%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
	leaq	(%rax,%rcx), %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L6
.L5:
	movl	D(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jne	.L7
	addl	$1, -4(%rbp)
.L7:
	movl	$0, -8(%rbp)
	jmp	.L8
.L10:
	addl	$1, -8(%rbp)
.L8:
	movl	D(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jge	.L9
	movl	-16(%rbp), %eax
	subl	-8(%rbp), %eax
	testl	%eax, %eax
	js	.L9
	movl	-16(%rbp), %eax
	subl	-8(%rbp), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	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
	leaq	(%rax,%rcx), %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L10
.L9:
	movl	D(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jne	.L11
	addl	$1, -4(%rbp)
.L11:
	addl	$1, -12(%rbp)
.L3:
	movl	M(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L12
	addl	$1, -16(%rbp)
.L2:
	movl	N(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L13
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	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	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	D(%rip), %rcx
	xorl	%eax, %eax
	leaq	M(%rip), %rdx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	N(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	movl	N(%rip), %eax
	testl	%eax, %eax
	jle	.L16
	leaq	d(%rip), %r13
	movl	$1, %ebp
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	M(%rip), %r8d
	testl	%r8d, %r8d
	jle	.L3
	movl	D(%rip), %ecx
	movq	%r13, %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	movq	%rdi, %rdx
	testl	%ecx, %ecx
	jg	.L12
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L7:
	addl	$1, %eax
	cmpl	%ecx, %eax
	je	.L5
	subq	$1, %rdx
	cmpl	%esi, %eax
	je	.L6
.L12:
	cmpb	$35, (%rdx)
	jne	.L7
.L6:
	movq	%rdi, %rdx
	xorl	%eax, %eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L11:
	addl	$1, %eax
	cmpl	%ecx, %eax
	jge	.L9
	subq	$101, %rdx
	cmpl	%ebp, %eax
	je	.L10
.L8:
	cmpb	$35, (%rdx)
	jne	.L11
.L10:
	leal	1(%rsi), %eax
	addq	$1, %rdi
	cmpl	%r8d, %esi
	je	.L3
.L25:
	movl	%eax, %esi
	movq	%rdi, %rdx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jg	.L12
.L24:
	jne	.L10
	addl	$1, %r12d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	%ecx, %eax
	jne	.L10
	addl	$1, %r12d
	leal	1(%rsi), %eax
	addq	$1, %rdi
	cmpl	%r8d, %esi
	jne	.L25
.L3:
	addq	$101, %r13
	cmpl	%ebp, N(%rip)
	leal	1(%rbp), %eax
	jle	.L2
	movl	%eax, %ebp
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L5:
	addl	$1, %r12d
	jmp	.L6
.L16:
	xorl	%r12d, %r12d
.L2:
	movl	%r12d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 10201
d:
	.zero	10201
	.globl	D
	.align 4
	.type	D, @object
	.size	D, 4
D:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	D(%rip), %rcx
	xorl	%eax, %eax
	leaq	M(%rip), %rdx
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	leaq	N(%rip), %rsi
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	movl	N(%rip), %eax
	testl	%eax, %eax
	jle	.L16
	leaq	d(%rip), %r13
	movl	$1, %ebp
	xorl	%r12d, %r12d
	leaq	.LC1(%rip), %rbx
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%r13, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	M(%rip), %r8d
	testl	%r8d, %r8d
	jle	.L3
	movl	D(%rip), %ecx
	movq	%r13, %rdi
	movl	$1, %esi
	xorl	%eax, %eax
	movq	%rdi, %rdx
	testl	%ecx, %ecx
	jg	.L12
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L7:
	addl	$1, %eax
	cmpl	%ecx, %eax
	je	.L5
	subq	$1, %rdx
	cmpl	%esi, %eax
	je	.L6
.L12:
	cmpb	$35, (%rdx)
	jne	.L7
.L6:
	movq	%rdi, %rdx
	xorl	%eax, %eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L11:
	addl	$1, %eax
	cmpl	%ecx, %eax
	jge	.L9
	subq	$101, %rdx
	cmpl	%ebp, %eax
	je	.L10
.L8:
	cmpb	$35, (%rdx)
	jne	.L11
.L10:
	leal	1(%rsi), %eax
	addq	$1, %rdi
	cmpl	%r8d, %esi
	je	.L3
.L25:
	movl	%eax, %esi
	movq	%rdi, %rdx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jg	.L12
.L24:
	jne	.L10
	addl	$1, %r12d
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L9:
	cmpl	%ecx, %eax
	jne	.L10
	addl	$1, %r12d
	leal	1(%rsi), %eax
	addq	$1, %rdi
	cmpl	%r8d, %esi
	jne	.L25
.L3:
	addq	$101, %r13
	cmpl	%ebp, N(%rip)
	leal	1(%rbp), %eax
	jle	.L2
	movl	%eax, %ebp
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L5:
	addl	$1, %r12d
	jmp	.L6
.L16:
	xorl	%r12d, %r12d
.L2:
	movl	%r12d, %edx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %rsp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	d
	.bss
	.align 32
	.type	d, @object
	.size	d, 10201
d:
	.zero	10201
	.globl	D
	.align 4
	.type	D, @object
	.size	D, 4
D:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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 N, M, D;
char d[101][101];

int main() {
	int i, j, k, o=0;
	scanf("%d%d%d", &N, &M, &D);
	for (i=0; i<N ;i++) {
		scanf("%s", d[i]);
		for (j=0; j<M ;j++) {
			for (k = 0; k < D && j-k >= 0 && d[i][j-k] != '#';k++);
			if (k == D) o++;

			for (k = 0; k < D && i-k >= 0 && d[i-k][j] != '#';k++);
			if (k == D) o++;
		}
	}
	printf("%d\n", o);
	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 N, M, D;
char d[101][101];

int main() {
	int i, j, k, o=0;
	scanf("%d%d%d", &N, &M, &D);
	for (i=0; i<N ;i++) {
		scanf("%s", d[i]);
		for (j=0; j<M ;j++) {
			for (k = 0; k < D && j-k >= 0 && d[i][j-k] != '#';k++);
			if (k == D) o++;

			for (k = 0; k < D && i-k >= 0 && d[i-k][j] != '#';k++);
			if (k == D) o++;
		}
	}
	printf("%d\n", o);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	D
	.align 4
	.type	D, @object
	.size	D, 4
D:
	.zero	4
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 10201
d:
	.zero	10201
	.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	$16, %rsp
	movl	$0, -4(%rbp)
	leaq	D(%rip), %rax
	movq	%rax, %rcx
	leaq	M(%rip), %rax
	movq	%rax, %rdx
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16(%rbp)
	jmp	.L2
.L13:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	d(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L3
.L12:
	movl	$0, -8(%rbp)
	jmp	.L4
.L6:
	addl	$1, -8(%rbp)
.L4:
	movl	D(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jge	.L5
	movl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	testl	%eax, %eax
	js	.L5
	movl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%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
	leaq	(%rax,%rcx), %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L6
.L5:
	movl	D(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jne	.L7
	addl	$1, -4(%rbp)
.L7:
	movl	$0, -8(%rbp)
	jmp	.L8
.L10:
	addl	$1, -8(%rbp)
.L8:
	movl	D(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jge	.L9
	movl	-16(%rbp), %eax
	subl	-8(%rbp), %eax
	testl	%eax, %eax
	js	.L9
	movl	-16(%rbp), %eax
	subl	-8(%rbp), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	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
	leaq	(%rax,%rcx), %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L10
.L9:
	movl	D(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jne	.L11
	addl	$1, -4(%rbp)
.L11:
	addl	$1, -12(%rbp)
.L3:
	movl	M(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L12
	addl	$1, -16(%rbp)
.L2:
	movl	N(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L13
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	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
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	M
	.align 4
	.type	M, @object
	.size	M, 4
M:
	.zero	4
	.globl	D
	.align 4
	.type	D, @object
	.size	D, 4
D:
	.zero	4
	.globl	d
	.align 32
	.type	d, @object
	.size	d, 10201
d:
	.zero	10201
	.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	$16, %rsp
	movl	$0, -4(%rbp)
	leaq	D(%rip), %rax
	movq	%rax, %rcx
	leaq	M(%rip), %rax
	movq	%rax, %rdx
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -16(%rbp)
	jmp	.L2
.L13:
	movl	-16(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rcx
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	d(%rip), %rdx
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12(%rbp)
	jmp	.L3
.L12:
	movl	$0, -8(%rbp)
	jmp	.L4
.L6:
	addl	$1, -8(%rbp)
.L4:
	movl	D(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jge	.L5
	movl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	testl	%eax, %eax
	js	.L5
	movl	-12(%rbp), %eax
	subl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-16(%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
	leaq	(%rax,%rcx), %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L6
.L5:
	movl	D(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jne	.L7
	addl	$1, -4(%rbp)
.L7:
	movl	$0, -8(%rbp)
	jmp	.L8
.L10:
	addl	$1, -8(%rbp)
.L8:
	movl	D(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jge	.L9
	movl	-16(%rbp), %eax
	subl	-8(%rbp), %eax
	testl	%eax, %eax
	js	.L9
	movl	-16(%rbp), %eax
	subl	-8(%rbp), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rcx
	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
	leaq	(%rax,%rcx), %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	cmpb	$35, %al
	jne	.L10
.L9:
	movl	D(%rip), %eax
	cmpl	%eax, -8(%rbp)
	jne	.L11
	addl	$1, -4(%rbp)
.L11:
	addl	$1, -12(%rbp)
.L3:
	movl	M(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L12
	addl	$1, -16(%rbp)
.L2:
	movl	N(%rip), %eax
	cmpl	%eax, -16(%rbp)
	jl	.L13
	movl	-4(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	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:
