Given the following C code and 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;
}```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

user
```assembly
	.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
```assembly
	.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:
```
```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;
}```
Given the following C 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;
}```

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.
Optimized Assembly Code:

3 5 2
...#.
#...#
....#

12

Given the following C code and 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;
}```

Assembly Code:

```assembly
	.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:
```

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.
Optimized Assembly Code:

train
```assembly
	.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:
```