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 main(void)
{
	int n,m,d,i,j,l,g=0;
	char a[300][300];
	scanf("%d %d %d",&n,&m,&d);
	for(i=0;i<n;i++){
		scanf("%s",a[i]);
	}
		for(i=0;i<n;i++){
			for(j=0;j<m;j++){
				l=0;
				while(l<=d-1){
					if(a[i+l][j]=='.' && l!=d-1){
						l++;
					}
					else if(a[i+l][j]=='.' && l==d-1){
						g+=1;
						l++;
					}
					else{
						l=100;
					}
				}
				l=0;
				while(l<=d-1){
					if(a[i][j+l]=='.' && l!=d-1){
						l++;
					}
					else if(a[i][j+l]=='.' && l==d-1){
						g+=1;
						l++;
					}
					else{
						l=100;
					}
				}
			}
		}
		printf("%d\n",g);
	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
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-86016(%rsp), %r11
	.cfi_def_cfa 11, 86056
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4024, %rsp
	.cfi_def_cfa_offset 90080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 90024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rcx
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebx
	addq	$300, %r12
	cmpl	%ebp, %ebx
	jg	.L3
	testl	%ebx, %ebx
	jle	.L2
	movl	12(%rsp), %ecx
	movl	8(%rsp), %r11d
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	leal	-1(%rcx), %r10d
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%esi, %esi
	testl	%r11d, %r11d
	jle	.L12
	movslq	%r9d, %rdi
	imulq	$300, %rdi, %rdi
	leaq	90032(%rdi), %rax
	leaq	(%rsp,%rax), %rdi
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%edx, %edx
	movslq	%esi, %rbp
.L5:
	cmpl	%edx, %ecx
	jle	.L24
.L7:
	leal	(%rdx,%r9), %eax
	cltq
	imulq	$300, %rax, %rax
	addq	$90032, %rax
	addq	%rsp, %rax
	cmpb	$46, -90016(%rax,%rbp)
	je	.L25
	movl	$100, %edx
	cmpl	%edx, %ecx
	jg	.L7
.L24:
	xorl	%edx, %edx
.L9:
	cmpl	%edx, %ecx
	jle	.L26
.L11:
	leal	(%rdx,%rsi), %eax
	cltq
	cmpb	$46, -90016(%rax,%rdi)
	je	.L27
	movl	$100, %edx
	cmpl	%edx, %ecx
	jg	.L11
.L26:
	addl	$1, %esi
	cmpl	%r11d, %esi
	jne	.L15
.L12:
	addl	$1, %r9d
	cmpl	%r9d, %ebx
	jne	.L4
.L14:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	90024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$90040, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	xorl	%eax, %eax
	cmpl	%edx, %r10d
	sete	%al
	addl	$1, %edx
	addl	%eax, %r8d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	xorl	%eax, %eax
	cmpl	%edx, %r10d
	sete	%al
	addl	$1, %edx
	addl	%eax, %r8d
	jmp	.L9
.L2:
	xorl	%r8d, %r8d
	jmp	.L14
.L28:
	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:
```

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
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-86016(%rsp), %r11
	.cfi_def_cfa 11, 86056
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4024, %rsp
	.cfi_def_cfa_offset 90080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 90024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rcx
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebx
	addq	$300, %r12
	cmpl	%ebp, %ebx
	jg	.L3
	testl	%ebx, %ebx
	jle	.L2
	movl	12(%rsp), %ecx
	movl	8(%rsp), %r11d
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	leal	-1(%rcx), %r10d
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%esi, %esi
	testl	%r11d, %r11d
	jle	.L12
	movslq	%r9d, %rdi
	imulq	$300, %rdi, %rdi
	leaq	90032(%rdi), %rax
	leaq	(%rsp,%rax), %rdi
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%edx, %edx
	movslq	%esi, %rbp
.L5:
	cmpl	%edx, %ecx
	jle	.L24
.L7:
	leal	(%rdx,%r9), %eax
	cltq
	imulq	$300, %rax, %rax
	addq	$90032, %rax
	addq	%rsp, %rax
	cmpb	$46, -90016(%rax,%rbp)
	je	.L25
	movl	$100, %edx
	cmpl	%edx, %ecx
	jg	.L7
.L24:
	xorl	%edx, %edx
.L9:
	cmpl	%edx, %ecx
	jle	.L26
.L11:
	leal	(%rdx,%rsi), %eax
	cltq
	cmpb	$46, -90016(%rax,%rdi)
	je	.L27
	movl	$100, %edx
	cmpl	%edx, %ecx
	jg	.L11
.L26:
	addl	$1, %esi
	cmpl	%r11d, %esi
	jne	.L15
.L12:
	addl	$1, %r9d
	cmpl	%r9d, %ebx
	jne	.L4
.L14:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	90024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$90040, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	xorl	%eax, %eax
	cmpl	%edx, %r10d
	sete	%al
	addl	$1, %edx
	addl	%eax, %r8d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	xorl	%eax, %eax
	cmpl	%edx, %r10d
	sete	%al
	addl	$1, %edx
	addl	%eax, %r8d
	jmp	.L9
.L2:
	xorl	%r8d, %r8d
	jmp	.L14
.L28:
	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
```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
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-86016(%rsp), %r11
	.cfi_def_cfa 11, 86056
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4024, %rsp
	.cfi_def_cfa_offset 90080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 90024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rcx
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebx
	addq	$300, %r12
	cmpl	%ebp, %ebx
	jg	.L3
	testl	%ebx, %ebx
	jle	.L2
	movl	12(%rsp), %ecx
	movl	8(%rsp), %r11d
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	leal	-1(%rcx), %r10d
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%esi, %esi
	testl	%r11d, %r11d
	jle	.L12
	movslq	%r9d, %rdi
	imulq	$300, %rdi, %rdi
	leaq	90032(%rdi), %rax
	leaq	(%rsp,%rax), %rdi
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%edx, %edx
	movslq	%esi, %rbp
.L5:
	cmpl	%edx, %ecx
	jle	.L24
.L7:
	leal	(%rdx,%r9), %eax
	cltq
	imulq	$300, %rax, %rax
	addq	$90032, %rax
	addq	%rsp, %rax
	cmpb	$46, -90016(%rax,%rbp)
	je	.L25
	movl	$100, %edx
	cmpl	%edx, %ecx
	jg	.L7
.L24:
	xorl	%edx, %edx
.L9:
	cmpl	%edx, %ecx
	jle	.L26
.L11:
	leal	(%rdx,%rsi), %eax
	cltq
	cmpb	$46, -90016(%rax,%rdi)
	je	.L27
	movl	$100, %edx
	cmpl	%edx, %ecx
	jg	.L11
.L26:
	addl	$1, %esi
	cmpl	%r11d, %esi
	jne	.L15
.L12:
	addl	$1, %r9d
	cmpl	%r9d, %ebx
	jne	.L4
.L14:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	90024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$90040, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	xorl	%eax, %eax
	cmpl	%edx, %r10d
	sete	%al
	addl	$1, %edx
	addl	%eax, %r8d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	xorl	%eax, %eax
	cmpl	%edx, %r10d
	sete	%al
	addl	$1, %edx
	addl	%eax, %r8d
	jmp	.L9
.L2:
	xorl	%r8d, %r8d
	jmp	.L14
.L28:
	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:
```
```c
#include<stdio.h>
int main(void)
{
	int n,m,d,i,j,l,g=0;
	char a[300][300];
	scanf("%d %d %d",&n,&m,&d);
	for(i=0;i<n;i++){
		scanf("%s",a[i]);
	}
		for(i=0;i<n;i++){
			for(j=0;j<m;j++){
				l=0;
				while(l<=d-1){
					if(a[i+l][j]=='.' && l!=d-1){
						l++;
					}
					else if(a[i+l][j]=='.' && l==d-1){
						g+=1;
						l++;
					}
					else{
						l=100;
					}
				}
				l=0;
				while(l<=d-1){
					if(a[i][j+l]=='.' && l!=d-1){
						l++;
					}
					else if(a[i][j+l]=='.' && l==d-1){
						g+=1;
						l++;
					}
					else{
						l=100;
					}
				}
			}
		}
		printf("%d\n",g);
	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 main(void)
{
	int n,m,d,i,j,l,g=0;
	char a[300][300];
	scanf("%d %d %d",&n,&m,&d);
	for(i=0;i<n;i++){
		scanf("%s",a[i]);
	}
		for(i=0;i<n;i++){
			for(j=0;j<m;j++){
				l=0;
				while(l<=d-1){
					if(a[i+l][j]=='.' && l!=d-1){
						l++;
					}
					else if(a[i+l][j]=='.' && l==d-1){
						g+=1;
						l++;
					}
					else{
						l=100;
					}
				}
				l=0;
				while(l<=d-1){
					if(a[i][j+l]=='.' && l!=d-1){
						l++;
					}
					else if(a[i][j+l]=='.' && l==d-1){
						g+=1;
						l++;
					}
					else{
						l=100;
					}
				}
			}
		}
		printf("%d\n",g);
	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 main(void)
{
	int n,m,d,i,j,l,g=0;
	char a[300][300];
	scanf("%d %d %d",&n,&m,&d);
	for(i=0;i<n;i++){
		scanf("%s",a[i]);
	}
		for(i=0;i<n;i++){
			for(j=0;j<m;j++){
				l=0;
				while(l<=d-1){
					if(a[i+l][j]=='.' && l!=d-1){
						l++;
					}
					else if(a[i+l][j]=='.' && l==d-1){
						g+=1;
						l++;
					}
					else{
						l=100;
					}
				}
				l=0;
				while(l<=d-1){
					if(a[i][j+l]=='.' && l!=d-1){
						l++;
					}
					else if(a[i][j+l]=='.' && l==d-1){
						g+=1;
						l++;
					}
					else{
						l=100;
					}
				}
			}
		}
		printf("%d\n",g);
	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
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-86016(%rsp), %r11
	.cfi_def_cfa 11, 86056
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4024, %rsp
	.cfi_def_cfa_offset 90080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 90024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rcx
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebx
	addq	$300, %r12
	cmpl	%ebp, %ebx
	jg	.L3
	testl	%ebx, %ebx
	jle	.L2
	movl	12(%rsp), %ecx
	movl	8(%rsp), %r11d
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	leal	-1(%rcx), %r10d
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%esi, %esi
	testl	%r11d, %r11d
	jle	.L12
	movslq	%r9d, %rdi
	imulq	$300, %rdi, %rdi
	leaq	90032(%rdi), %rax
	leaq	(%rsp,%rax), %rdi
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%edx, %edx
	movslq	%esi, %rbp
.L5:
	cmpl	%edx, %ecx
	jle	.L24
.L7:
	leal	(%rdx,%r9), %eax
	cltq
	imulq	$300, %rax, %rax
	addq	$90032, %rax
	addq	%rsp, %rax
	cmpb	$46, -90016(%rax,%rbp)
	je	.L25
	movl	$100, %edx
	cmpl	%edx, %ecx
	jg	.L7
.L24:
	xorl	%edx, %edx
.L9:
	cmpl	%edx, %ecx
	jle	.L26
.L11:
	leal	(%rdx,%rsi), %eax
	cltq
	cmpb	$46, -90016(%rax,%rdi)
	je	.L27
	movl	$100, %edx
	cmpl	%edx, %ecx
	jg	.L11
.L26:
	addl	$1, %esi
	cmpl	%r11d, %esi
	jne	.L15
.L12:
	addl	$1, %r9d
	cmpl	%r9d, %ebx
	jne	.L4
.L14:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	90024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$90040, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	xorl	%eax, %eax
	cmpl	%edx, %r10d
	sete	%al
	addl	$1, %edx
	addl	%eax, %r8d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	xorl	%eax, %eax
	cmpl	%edx, %r10d
	sete	%al
	addl	$1, %edx
	addl	%eax, %r8d
	jmp	.L9
.L2:
	xorl	%r8d, %r8d
	jmp	.L14
.L28:
	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:
```

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
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-86016(%rsp), %r11
	.cfi_def_cfa 11, 86056
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4024, %rsp
	.cfi_def_cfa_offset 90080
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 90024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rcx
	leaq	8(%rsp), %rdx
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %eax
	testl	%eax, %eax
	jle	.L2
	leaq	16(%rsp), %r12
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %ebx
	addq	$300, %r12
	cmpl	%ebp, %ebx
	jg	.L3
	testl	%ebx, %ebx
	jle	.L2
	movl	12(%rsp), %ecx
	movl	8(%rsp), %r11d
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	leal	-1(%rcx), %r10d
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%esi, %esi
	testl	%r11d, %r11d
	jle	.L12
	movslq	%r9d, %rdi
	imulq	$300, %rdi, %rdi
	leaq	90032(%rdi), %rax
	leaq	(%rsp,%rax), %rdi
	.p2align 4,,10
	.p2align 3
.L15:
	xorl	%edx, %edx
	movslq	%esi, %rbp
.L5:
	cmpl	%edx, %ecx
	jle	.L24
.L7:
	leal	(%rdx,%r9), %eax
	cltq
	imulq	$300, %rax, %rax
	addq	$90032, %rax
	addq	%rsp, %rax
	cmpb	$46, -90016(%rax,%rbp)
	je	.L25
	movl	$100, %edx
	cmpl	%edx, %ecx
	jg	.L7
.L24:
	xorl	%edx, %edx
.L9:
	cmpl	%edx, %ecx
	jle	.L26
.L11:
	leal	(%rdx,%rsi), %eax
	cltq
	cmpb	$46, -90016(%rax,%rdi)
	je	.L27
	movl	$100, %edx
	cmpl	%edx, %ecx
	jg	.L11
.L26:
	addl	$1, %esi
	cmpl	%r11d, %esi
	jne	.L15
.L12:
	addl	$1, %r9d
	cmpl	%r9d, %ebx
	jne	.L4
.L14:
	xorl	%eax, %eax
	movl	%r8d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	90024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$90040, %rsp
	.cfi_remember_state
	.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
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	xorl	%eax, %eax
	cmpl	%edx, %r10d
	sete	%al
	addl	$1, %edx
	addl	%eax, %r8d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L27:
	xorl	%eax, %eax
	cmpl	%edx, %r10d
	sete	%al
	addl	$1, %edx
	addl	%eax, %r8d
	jmp	.L9
.L2:
	xorl	%r8d, %r8d
	jmp	.L14
.L28:
	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:
```