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,cnt,sum;
	char s[101][101];
	scanf("%d %d %d",&n,&m,&d);
	for(i=0;i<n;i++)	scanf("%s",s[i]);
	sum=0;
	for(i=0;i<n;i++){
		for(j=0;j<m;j++){
			cnt=1;
			if(s[i][j]=='.'){
				for(k=1;k<d;k++){
					if(s[i][j+k]=='.')	cnt++;
					else{
						cnt=1;
						break;
					}
				}
				if(cnt==d){
					sum++;
					cnt=1;
				}
				for(k=1;k<d;k++){
					if(s[i+k][j]=='.')	cnt++;
					else{
						cnt=1;
						break;
					}
				}
				if(cnt==d){
					sum++;
					cnt=1;
				}
			}
		}
	}
	printf("%d\n",sum);
	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	-10240(%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	$46, %al
	jne	.L6
	movl	$1, -10236(%rbp)
	jmp	.L7
.L11:
	movl	-10240(%rbp), %edx
	movl	-10236(%rbp), %eax
	addl	%edx, %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	$46, %al
	jne	.L8
	addl	$1, -10232(%rbp)
	jmp	.L22
.L8:
	movl	$1, -10232(%rbp)
	jmp	.L10
.L22:
	addl	$1, -10236(%rbp)
.L7:
	movl	-10248(%rbp), %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L11
.L10:
	movl	-10248(%rbp), %eax
	cmpl	%eax, -10232(%rbp)
	jne	.L12
	addl	$1, -10228(%rbp)
	movl	$1, -10232(%rbp)
.L12:
	movl	$1, -10236(%rbp)
	jmp	.L13
.L17:
	movl	-10244(%rbp), %edx
	movl	-10236(%rbp), %eax
	addl	%eax, %edx
	movl	-10240(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %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	$46, %al
	jne	.L14
	addl	$1, -10232(%rbp)
	jmp	.L23
.L14:
	movl	$1, -10232(%rbp)
	jmp	.L16
.L23:
	addl	$1, -10236(%rbp)
.L13:
	movl	-10248(%rbp), %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L17
.L16:
	movl	-10248(%rbp), %eax
	cmpl	%eax, -10232(%rbp)
	jne	.L6
	addl	$1, -10228(%rbp)
	movl	$1, -10232(%rbp)
.L6:
	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	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8240
	orq	$0, (%rsp)
	subq	$2048, %rsp
	.cfi_def_cfa_offset 10288
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 10232(%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), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r14
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r13d
	addq	$101, %r12
	cmpl	%ebp, %r13d
	jg	.L3
	testl	%r13d, %r13d
	jle	.L2
	movl	12(%rsp), %r8d
	movl	8(%rsp), %r11d
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	xorl	%ebp, %ebp
	leal	1(%r8), %r10d
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	(%r12,%rbx), %rdx
	xorl	%esi, %esi
	testl	%r11d, %r11d
	jg	.L11
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L5:
	addl	$1, %esi
	addq	$1, %rdx
	cmpl	%esi, %r11d
	je	.L14
.L11:
	cmpb	$46, (%rdx)
	jne	.L5
	cmpl	$1, %r8d
	jle	.L6
	movl	$2, %eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L30:
	movl	%eax, %edi
	addq	$1, %rax
	cmpq	%r10, %rax
	je	.L29
.L8:
	cmpb	$46, -1(%rdx,%rax)
	je	.L30
	movl	$1, %edi
.L7:
	movq	%rdx, %rcx
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	cmpb	$46, 101(%rcx)
	jne	.L5
	leal	(%rax,%rdi), %r9d
	addl	$1, %eax
	addq	$101, %rcx
	cmpl	%r8d, %eax
	jl	.L10
.L17:
	xorl	%eax, %eax
	cmpl	%r8d, %r9d
	sete	%al
	addl	$1, %esi
	addq	$1, %rdx
	addl	%eax, %r14d
	cmpl	%esi, %r11d
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L14:
	addl	$1, %ebp
	addq	$101, %r12
	cmpl	%ebp, %r13d
	jne	.L4
.L12:
	xorl	%eax, %eax
	movl	%r14d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	10232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$10240, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	cmpl	%r8d, %edi
	jne	.L7
	addl	$1, %r14d
	movl	$1, %edi
	jmp	.L7
.L6:
	jne	.L5
	addl	$1, %r14d
	movl	$1, %r9d
	jmp	.L17
.L2:
	xorl	%r14d, %r14d
	jmp	.L12
.L31:
	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	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4144
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8240
	orq	$0, (%rsp)
	subq	$2048, %rsp
	.cfi_def_cfa_offset 10288
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 10232(%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), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r14
	movq	%rbx, %r12
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addl	$1, %ebp
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %r13d
	addq	$101, %r12
	cmpl	%ebp, %r13d
	jg	.L3
	testl	%r13d, %r13d
	jle	.L2
	movl	12(%rsp), %r8d
	movl	8(%rsp), %r11d
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	xorl	%ebp, %ebp
	leal	1(%r8), %r10d
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	(%r12,%rbx), %rdx
	xorl	%esi, %esi
	testl	%r11d, %r11d
	jg	.L11
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L5:
	addl	$1, %esi
	addq	$1, %rdx
	cmpl	%esi, %r11d
	je	.L14
.L11:
	cmpb	$46, (%rdx)
	jne	.L5
	cmpl	$1, %r8d
	jle	.L6
	movl	$2, %eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L30:
	movl	%eax, %edi
	addq	$1, %rax
	cmpq	%r10, %rax
	je	.L29
.L8:
	cmpb	$46, -1(%rdx,%rax)
	je	.L30
	movl	$1, %edi
.L7:
	movq	%rdx, %rcx
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L10:
	cmpb	$46, 101(%rcx)
	jne	.L5
	leal	(%rax,%rdi), %r9d
	addl	$1, %eax
	addq	$101, %rcx
	cmpl	%r8d, %eax
	jl	.L10
.L17:
	xorl	%eax, %eax
	cmpl	%r8d, %r9d
	sete	%al
	addl	$1, %esi
	addq	$1, %rdx
	addl	%eax, %r14d
	cmpl	%esi, %r11d
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L14:
	addl	$1, %ebp
	addq	$101, %r12
	cmpl	%ebp, %r13d
	jne	.L4
.L12:
	xorl	%eax, %eax
	movl	%r14d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	10232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$10240, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	cmpl	%r8d, %edi
	jne	.L7
	addl	$1, %r14d
	movl	$1, %edi
	jmp	.L7
.L6:
	jne	.L5
	addl	$1, %r14d
	movl	$1, %r9d
	jmp	.L17
.L2:
	xorl	%r14d, %r14d
	jmp	.L12
.L31:
	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,cnt,sum;
	char s[101][101];
	scanf("%d %d %d",&n,&m,&d);
	for(i=0;i<n;i++)	scanf("%s",s[i]);
	sum=0;
	for(i=0;i<n;i++){
		for(j=0;j<m;j++){
			cnt=1;
			if(s[i][j]=='.'){
				for(k=1;k<d;k++){
					if(s[i][j+k]=='.')	cnt++;
					else{
						cnt=1;
						break;
					}
				}
				if(cnt==d){
					sum++;
					cnt=1;
				}
				for(k=1;k<d;k++){
					if(s[i+k][j]=='.')	cnt++;
					else{
						cnt=1;
						break;
					}
				}
				if(cnt==d){
					sum++;
					cnt=1;
				}
			}
		}
	}
	printf("%d\n",sum);
	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,cnt,sum;
	char s[101][101];
	scanf("%d %d %d",&n,&m,&d);
	for(i=0;i<n;i++)	scanf("%s",s[i]);
	sum=0;
	for(i=0;i<n;i++){
		for(j=0;j<m;j++){
			cnt=1;
			if(s[i][j]=='.'){
				for(k=1;k<d;k++){
					if(s[i][j+k]=='.')	cnt++;
					else{
						cnt=1;
						break;
					}
				}
				if(cnt==d){
					sum++;
					cnt=1;
				}
				for(k=1;k<d;k++){
					if(s[i+k][j]=='.')	cnt++;
					else{
						cnt=1;
						break;
					}
				}
				if(cnt==d){
					sum++;
					cnt=1;
				}
			}
		}
	}
	printf("%d\n",sum);
	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	-10240(%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	$46, %al
	jne	.L6
	movl	$1, -10236(%rbp)
	jmp	.L7
.L11:
	movl	-10240(%rbp), %edx
	movl	-10236(%rbp), %eax
	addl	%edx, %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	$46, %al
	jne	.L8
	addl	$1, -10232(%rbp)
	jmp	.L22
.L8:
	movl	$1, -10232(%rbp)
	jmp	.L10
.L22:
	addl	$1, -10236(%rbp)
.L7:
	movl	-10248(%rbp), %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L11
.L10:
	movl	-10248(%rbp), %eax
	cmpl	%eax, -10232(%rbp)
	jne	.L12
	addl	$1, -10228(%rbp)
	movl	$1, -10232(%rbp)
.L12:
	movl	$1, -10236(%rbp)
	jmp	.L13
.L17:
	movl	-10244(%rbp), %edx
	movl	-10236(%rbp), %eax
	addl	%eax, %edx
	movl	-10240(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %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	$46, %al
	jne	.L14
	addl	$1, -10232(%rbp)
	jmp	.L23
.L14:
	movl	$1, -10232(%rbp)
	jmp	.L16
.L23:
	addl	$1, -10236(%rbp)
.L13:
	movl	-10248(%rbp), %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L17
.L16:
	movl	-10248(%rbp), %eax
	cmpl	%eax, -10232(%rbp)
	jne	.L6
	addl	$1, -10228(%rbp)
	movl	$1, -10232(%rbp)
.L6:
	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	-10240(%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	$46, %al
	jne	.L6
	movl	$1, -10236(%rbp)
	jmp	.L7
.L11:
	movl	-10240(%rbp), %edx
	movl	-10236(%rbp), %eax
	addl	%edx, %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	$46, %al
	jne	.L8
	addl	$1, -10232(%rbp)
	jmp	.L22
.L8:
	movl	$1, -10232(%rbp)
	jmp	.L10
.L22:
	addl	$1, -10236(%rbp)
.L7:
	movl	-10248(%rbp), %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L11
.L10:
	movl	-10248(%rbp), %eax
	cmpl	%eax, -10232(%rbp)
	jne	.L12
	addl	$1, -10228(%rbp)
	movl	$1, -10232(%rbp)
.L12:
	movl	$1, -10236(%rbp)
	jmp	.L13
.L17:
	movl	-10244(%rbp), %edx
	movl	-10236(%rbp), %eax
	addl	%eax, %edx
	movl	-10240(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %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	$46, %al
	jne	.L14
	addl	$1, -10232(%rbp)
	jmp	.L23
.L14:
	movl	$1, -10232(%rbp)
	jmp	.L16
.L23:
	addl	$1, -10236(%rbp)
.L13:
	movl	-10248(%rbp), %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L17
.L16:
	movl	-10248(%rbp), %eax
	cmpl	%eax, -10232(%rbp)
	jne	.L6
	addl	$1, -10228(%rbp)
	movl	$1, -10232(%rbp)
.L6:
	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:
