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()
{
	int n,m,d,i,j,k,area=0;
	char square[101][101];
	scanf("%d%d%d",&n,&m,&d);
	for(i=0;i<n;i++){
		scanf("%s",square[i]);
	}
	//横
	for(i=0;i<n;i++){
		for(j=0;j<m;j++){
			k=1;
			if(square[i][j]=='.'){
				while(square[i][j+k]=='.'){
					if(d-1==k){
						area++;
						break;
					}
					k++;
				}
			}
		}
	}
	//縦
	for(j=0;j<m;j++){
		for(i=0;i<n;i++){
			k=1;
			if(square[i][j]=='.'){
				while(square[i+k][j]=='.'){
					if(d-1==k){
						area++;
						break;
					}
					k++;
				}
			}
		}
	}
	printf("%d\n",area);
	
	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
	movl	$0, -10228(%rbp)
	leaq	-10244(%rbp), %rcx
	leaq	-10248(%rbp), %rdx
	leaq	-10252(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -10240(%rbp)
	jmp	.L2
.L3:
	leaq	-10224(%rbp), %rcx
	movl	-10240(%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, -10240(%rbp)
.L2:
	movl	-10252(%rbp), %eax
	cmpl	%eax, -10240(%rbp)
	jl	.L3
	movl	$0, -10240(%rbp)
	jmp	.L4
.L11:
	movl	$0, -10236(%rbp)
	jmp	.L5
.L10:
	movl	$1, -10232(%rbp)
	movl	-10236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10240(%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
	jmp	.L7
.L9:
	movl	-10244(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -10232(%rbp)
	jne	.L8
	addl	$1, -10228(%rbp)
	jmp	.L6
.L8:
	addl	$1, -10232(%rbp)
.L7:
	movl	-10236(%rbp), %edx
	movl	-10232(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rcx
	movl	-10240(%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
	je	.L9
.L6:
	addl	$1, -10236(%rbp)
.L5:
	movl	-10248(%rbp), %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L10
	addl	$1, -10240(%rbp)
.L4:
	movl	-10252(%rbp), %eax
	cmpl	%eax, -10240(%rbp)
	jl	.L11
	movl	$0, -10236(%rbp)
	jmp	.L12
.L19:
	movl	$0, -10240(%rbp)
	jmp	.L13
.L18:
	movl	$1, -10232(%rbp)
	movl	-10236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10240(%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	.L14
	jmp	.L15
.L17:
	movl	-10244(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -10232(%rbp)
	jne	.L16
	addl	$1, -10228(%rbp)
	jmp	.L14
.L16:
	addl	$1, -10232(%rbp)
.L15:
	movl	-10240(%rbp), %edx
	movl	-10232(%rbp), %eax
	addl	%eax, %edx
	movl	-10236(%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
	je	.L17
.L14:
	addl	$1, -10240(%rbp)
.L13:
	movl	-10252(%rbp), %eax
	cmpl	%eax, -10240(%rbp)
	jl	.L18
	addl	$1, -10236(%rbp)
.L12:
	movl	-10248(%rbp), %eax
	cmpl	%eax, -10236(%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	%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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4136
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8232
	orq	$0, (%rsp)
	subq	$2056, %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), %edi
	testl	%edi, %edi
	jle	.L2
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%rbx, %r12
	.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), %edi
	addq	$101, %r12
	cmpl	%ebp, %edi
	jg	.L3
	movslq	8(%rsp), %rbp
	testl	%edi, %edi
	jle	.L20
	movl	12(%rsp), %eax
	xorl	%r9d, %r9d
	xorl	%r11d, %r11d
	movslq	%ebp, %r8
	leal	-2(%rax), %r10d
	movslq	%edi, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rbx, %r10
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	(%r9,%rbx), %rdx
	xorl	%ecx, %ecx
	testl	%ebp, %ebp
	jg	.L9
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rcx
	addq	$1, %rdx
	cmpq	%r8, %rcx
	je	.L11
.L9:
	cmpb	$46, (%rdx)
	jne	.L6
	cmpb	$46, 1(%rdx)
	jne	.L6
	movq	%rdx, %rax
	leaq	(%rcx,%r10), %rsi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$1, %rax
	cmpb	$46, 1(%rax)
	jne	.L6
.L8:
	cmpq	%rsi, %rax
	jne	.L7
	addq	$1, %rcx
	addl	$1, %r11d
	addq	$1, %rdx
	cmpq	%r8, %rcx
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$101, %r9
	addq	$101, %r10
	cmpq	%r12, %r9
	jne	.L5
.L4:
	testl	%ebp, %ebp
	jle	.L12
	movl	12(%rsp), %eax
	leaq	16(%rsp), %r9
	xorl	%r8d, %r8d
	subl	$2, %eax
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %r10
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r9, %rdx
	xorl	%ecx, %ecx
	testl	%edi, %edi
	jg	.L17
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$101, %rdx
	cmpl	%ecx, %edi
	je	.L18
.L17:
	addl	$1, %ecx
	cmpb	$46, (%rdx)
	jne	.L14
	cmpb	$46, 101(%rdx)
	jne	.L14
	leaq	(%rdx,%r10), %rsi
	movq	%rdx, %rax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L15:
	addq	$101, %rax
	cmpb	$46, 101(%rax)
	jne	.L14
.L16:
	cmpq	%rsi, %rax
	jne	.L15
	addl	$1, %r11d
	addq	$101, %rdx
	cmpl	%ecx, %edi
	jne	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	addq	$1, %r8
	addq	$1, %r9
	cmpq	%rbp, %r8
	jne	.L13
.L12:
	xorl	%eax, %eax
	movl	%r11d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	10232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$10248, %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
.L2:
	.cfi_restore_state
	movslq	8(%rsp), %rbp
	xorl	%r11d, %r11d
	jmp	.L4
.L20:
	xorl	%r11d, %r11d
	jmp	.L4
.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	%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
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4136
	orq	$0, (%rsp)
	subq	$4096, %rsp
	.cfi_def_cfa_offset 8232
	orq	$0, (%rsp)
	subq	$2056, %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), %edi
	testl	%edi, %edi
	jle	.L2
	leaq	16(%rsp), %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r13
	movq	%rbx, %r12
	.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), %edi
	addq	$101, %r12
	cmpl	%ebp, %edi
	jg	.L3
	movslq	8(%rsp), %rbp
	testl	%edi, %edi
	jle	.L20
	movl	12(%rsp), %eax
	xorl	%r9d, %r9d
	xorl	%r11d, %r11d
	movslq	%ebp, %r8
	leal	-2(%rax), %r10d
	movslq	%edi, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rbx, %r10
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %r12
	.p2align 4,,10
	.p2align 3
.L5:
	leaq	(%r9,%rbx), %rdx
	xorl	%ecx, %ecx
	testl	%ebp, %ebp
	jg	.L9
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L6:
	addq	$1, %rcx
	addq	$1, %rdx
	cmpq	%r8, %rcx
	je	.L11
.L9:
	cmpb	$46, (%rdx)
	jne	.L6
	cmpb	$46, 1(%rdx)
	jne	.L6
	movq	%rdx, %rax
	leaq	(%rcx,%r10), %rsi
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	addq	$1, %rax
	cmpb	$46, 1(%rax)
	jne	.L6
.L8:
	cmpq	%rsi, %rax
	jne	.L7
	addq	$1, %rcx
	addl	$1, %r11d
	addq	$1, %rdx
	cmpq	%r8, %rcx
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	addq	$101, %r9
	addq	$101, %r10
	cmpq	%r12, %r9
	jne	.L5
.L4:
	testl	%ebp, %ebp
	jle	.L12
	movl	12(%rsp), %eax
	leaq	16(%rsp), %r9
	xorl	%r8d, %r8d
	subl	$2, %eax
	leaq	(%rax,%rax,4), %rdx
	leaq	(%rdx,%rdx,4), %rdx
	leaq	(%rax,%rdx,4), %r10
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r9, %rdx
	xorl	%ecx, %ecx
	testl	%edi, %edi
	jg	.L17
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$101, %rdx
	cmpl	%ecx, %edi
	je	.L18
.L17:
	addl	$1, %ecx
	cmpb	$46, (%rdx)
	jne	.L14
	cmpb	$46, 101(%rdx)
	jne	.L14
	leaq	(%rdx,%r10), %rsi
	movq	%rdx, %rax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L15:
	addq	$101, %rax
	cmpb	$46, 101(%rax)
	jne	.L14
.L16:
	cmpq	%rsi, %rax
	jne	.L15
	addl	$1, %r11d
	addq	$101, %rdx
	cmpl	%ecx, %edi
	jne	.L17
	.p2align 4,,10
	.p2align 3
.L18:
	addq	$1, %r8
	addq	$1, %r9
	cmpq	%rbp, %r8
	jne	.L13
.L12:
	xorl	%eax, %eax
	movl	%r11d, %edx
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	10232(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L31
	addq	$10248, %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
.L2:
	.cfi_restore_state
	movslq	8(%rsp), %rbp
	xorl	%r11d, %r11d
	jmp	.L4
.L20:
	xorl	%r11d, %r11d
	jmp	.L4
.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()
{
	int n,m,d,i,j,k,area=0;
	char square[101][101];
	scanf("%d%d%d",&n,&m,&d);
	for(i=0;i<n;i++){
		scanf("%s",square[i]);
	}
	//横
	for(i=0;i<n;i++){
		for(j=0;j<m;j++){
			k=1;
			if(square[i][j]=='.'){
				while(square[i][j+k]=='.'){
					if(d-1==k){
						area++;
						break;
					}
					k++;
				}
			}
		}
	}
	//縦
	for(j=0;j<m;j++){
		for(i=0;i<n;i++){
			k=1;
			if(square[i][j]=='.'){
				while(square[i+k][j]=='.'){
					if(d-1==k){
						area++;
						break;
					}
					k++;
				}
			}
		}
	}
	printf("%d\n",area);
	
	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()
{
	int n,m,d,i,j,k,area=0;
	char square[101][101];
	scanf("%d%d%d",&n,&m,&d);
	for(i=0;i<n;i++){
		scanf("%s",square[i]);
	}
	//横
	for(i=0;i<n;i++){
		for(j=0;j<m;j++){
			k=1;
			if(square[i][j]=='.'){
				while(square[i][j+k]=='.'){
					if(d-1==k){
						area++;
						break;
					}
					k++;
				}
			}
		}
	}
	//縦
	for(j=0;j<m;j++){
		for(i=0;i<n;i++){
			k=1;
			if(square[i][j]=='.'){
				while(square[i+k][j]=='.'){
					if(d-1==k){
						area++;
						break;
					}
					k++;
				}
			}
		}
	}
	printf("%d\n",area);
	
	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
	movl	$0, -10228(%rbp)
	leaq	-10244(%rbp), %rcx
	leaq	-10248(%rbp), %rdx
	leaq	-10252(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -10240(%rbp)
	jmp	.L2
.L3:
	leaq	-10224(%rbp), %rcx
	movl	-10240(%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, -10240(%rbp)
.L2:
	movl	-10252(%rbp), %eax
	cmpl	%eax, -10240(%rbp)
	jl	.L3
	movl	$0, -10240(%rbp)
	jmp	.L4
.L11:
	movl	$0, -10236(%rbp)
	jmp	.L5
.L10:
	movl	$1, -10232(%rbp)
	movl	-10236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10240(%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
	jmp	.L7
.L9:
	movl	-10244(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -10232(%rbp)
	jne	.L8
	addl	$1, -10228(%rbp)
	jmp	.L6
.L8:
	addl	$1, -10232(%rbp)
.L7:
	movl	-10236(%rbp), %edx
	movl	-10232(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rcx
	movl	-10240(%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
	je	.L9
.L6:
	addl	$1, -10236(%rbp)
.L5:
	movl	-10248(%rbp), %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L10
	addl	$1, -10240(%rbp)
.L4:
	movl	-10252(%rbp), %eax
	cmpl	%eax, -10240(%rbp)
	jl	.L11
	movl	$0, -10236(%rbp)
	jmp	.L12
.L19:
	movl	$0, -10240(%rbp)
	jmp	.L13
.L18:
	movl	$1, -10232(%rbp)
	movl	-10236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10240(%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	.L14
	jmp	.L15
.L17:
	movl	-10244(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -10232(%rbp)
	jne	.L16
	addl	$1, -10228(%rbp)
	jmp	.L14
.L16:
	addl	$1, -10232(%rbp)
.L15:
	movl	-10240(%rbp), %edx
	movl	-10232(%rbp), %eax
	addl	%eax, %edx
	movl	-10236(%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
	je	.L17
.L14:
	addl	$1, -10240(%rbp)
.L13:
	movl	-10252(%rbp), %eax
	cmpl	%eax, -10240(%rbp)
	jl	.L18
	addl	$1, -10236(%rbp)
.L12:
	movl	-10248(%rbp), %eax
	cmpl	%eax, -10236(%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
	movl	$0, -10228(%rbp)
	leaq	-10244(%rbp), %rcx
	leaq	-10248(%rbp), %rdx
	leaq	-10252(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -10240(%rbp)
	jmp	.L2
.L3:
	leaq	-10224(%rbp), %rcx
	movl	-10240(%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, -10240(%rbp)
.L2:
	movl	-10252(%rbp), %eax
	cmpl	%eax, -10240(%rbp)
	jl	.L3
	movl	$0, -10240(%rbp)
	jmp	.L4
.L11:
	movl	$0, -10236(%rbp)
	jmp	.L5
.L10:
	movl	$1, -10232(%rbp)
	movl	-10236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10240(%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
	jmp	.L7
.L9:
	movl	-10244(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -10232(%rbp)
	jne	.L8
	addl	$1, -10228(%rbp)
	jmp	.L6
.L8:
	addl	$1, -10232(%rbp)
.L7:
	movl	-10236(%rbp), %edx
	movl	-10232(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rcx
	movl	-10240(%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
	je	.L9
.L6:
	addl	$1, -10236(%rbp)
.L5:
	movl	-10248(%rbp), %eax
	cmpl	%eax, -10236(%rbp)
	jl	.L10
	addl	$1, -10240(%rbp)
.L4:
	movl	-10252(%rbp), %eax
	cmpl	%eax, -10240(%rbp)
	jl	.L11
	movl	$0, -10236(%rbp)
	jmp	.L12
.L19:
	movl	$0, -10240(%rbp)
	jmp	.L13
.L18:
	movl	$1, -10232(%rbp)
	movl	-10236(%rbp), %eax
	movslq	%eax, %rcx
	movl	-10240(%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	.L14
	jmp	.L15
.L17:
	movl	-10244(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -10232(%rbp)
	jne	.L16
	addl	$1, -10228(%rbp)
	jmp	.L14
.L16:
	addl	$1, -10232(%rbp)
.L15:
	movl	-10240(%rbp), %edx
	movl	-10232(%rbp), %eax
	addl	%eax, %edx
	movl	-10236(%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
	je	.L17
.L14:
	addl	$1, -10240(%rbp)
.L13:
	movl	-10252(%rbp), %eax
	cmpl	%eax, -10240(%rbp)
	jl	.L18
	addl	$1, -10236(%rbp)
.L12:
	movl	-10248(%rbp), %eax
	cmpl	%eax, -10236(%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:
