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 H, W;
	scanf("%d%d", &H, &W);
	char a[H + 2][W + 2];
	int i = 1;
	int j;
	while (i <= H)
	{
		scanf("%s", a[i]);
		i++;
	}
	i = 0;
	while (i <= H + 1)
	{
		j = -1;
		while (j <= W)
		{
			if (i == 0 || i == H + 1)
				printf("#");
			else if (j >= 0 && j < W)
				printf("%c", a[i][j]);
			else if (j == -1 || j == W)
				printf("#");
			j++;
		}
		printf("\n");
		i++;
	}
	return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -152(%rbp)
	leaq	-92(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%rbp), %eax
	leal	2(%rax), %ecx
	movl	-96(%rbp), %eax
	leal	2(%rax), %esi
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%ecx, %rbx
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -112(%rbp)
	movq	$0, -104(%rbp)
	movslq	%esi, %rax
	movq	%rax, -128(%rbp)
	movq	$0, -120(%rbp)
	movq	-112(%rbp), %r8
	movq	-104(%rbp), %r9
	movq	%r9, %rdx
	movq	-128(%rbp), %r10
	movq	-120(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%esi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rdx
	movslq	%esi, %rax
	imulq	%rdx, %rax
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movl	$1, -88(%rbp)
	jmp	.L5
.L6:
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -88(%rbp)
.L5:
	movl	-96(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jle	.L6
	movl	$0, -88(%rbp)
	jmp	.L7
.L15:
	movl	$-1, -84(%rbp)
	jmp	.L8
.L14:
	cmpl	$0, -88(%rbp)
	je	.L9
	movl	-96(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -88(%rbp)
	jne	.L10
.L9:
	movl	$35, %edi
	call	putchar@PLT
	jmp	.L11
.L10:
	cmpl	$0, -84(%rbp)
	js	.L12
	movl	-92(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jge	.L12
	movq	-64(%rbp), %rcx
	movl	-84(%rbp), %eax
	movslq	%eax, %rdx
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L11
.L12:
	cmpl	$-1, -84(%rbp)
	je	.L13
	movl	-92(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jne	.L11
.L13:
	movl	$35, %edi
	call	putchar@PLT
.L11:
	addl	$1, -84(%rbp)
.L8:
	movl	-92(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jle	.L14
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -88(%rbp)
.L7:
	movl	-96(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -88(%rbp)
	jle	.L15
	movl	$0, %eax
	movq	-152(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %ecx
	movl	-64(%rbp), %eax
	movq	%rsp, %rsi
	leal	2(%rcx), %r13d
	leal	2(%rax), %edx
	movslq	%r13d, %r13
	movslq	%edx, %rdx
	imulq	%r13, %rdx
	addq	$15, %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L37:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L37
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L38
.L4:
	movq	%rsp, %r14
	testl	%eax, %eax
	jle	.L5
	leaq	(%rsp,%r13), %r12
	movl	$1, %ebx
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r12, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %eax
	addq	%r13, %r12
	cmpl	%ebx, %eax
	jge	.L6
.L5:
	cmpl	$-1, %eax
	jl	.L7
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	-60(%rbp), %edx
	cmpl	$-1, %edx
	jl	.L18
	testl	%r12d, %r12d
	je	.L20
	movq	$-1, %rbx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	$-1, %ebx
	je	.L22
	cmpl	%ebx, %edx
	jg	.L12
	cmpl	$-1, %ebx
	je	.L22
	cmpl	%ebx, %edx
	je	.L22
.L11:
	addq	$1, %rbx
	cmpl	%ebx, %edx
	jl	.L18
.L15:
	movl	-64(%rbp), %eax
	addl	$1, %eax
	cmpl	%r12d, %eax
	jne	.L10
.L22:
	movl	$35, %edi
	addq	$1, %rbx
	call	putchar@PLT
	movl	-60(%rbp), %edx
	cmpl	%ebx, %edx
	jge	.L15
.L18:
	movl	$10, %edi
	addq	%r13, %r14
	call	putchar@PLT
	leal	1(%r12), %eax
	cmpl	%r12d, -64(%rbp)
	jl	.L7
	movl	%eax, %r12d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L12:
	movsbl	(%r14,%rbx), %edi
	call	putchar@PLT
	movl	-60(%rbp), %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$-1, %ebx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$35, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	-60(%rbp), %ebx
	jle	.L9
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L7:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L39
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L38:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L39:
	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"
.LC1:
	.string	"%s"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	-60(%rbp), %ecx
	movl	-64(%rbp), %eax
	movq	%rsp, %rsi
	leal	2(%rcx), %r13d
	leal	2(%rax), %edx
	movslq	%r13d, %r13
	movslq	%edx, %rdx
	imulq	%r13, %rdx
	addq	$15, %rdx
	movq	%rdx, %rcx
	andq	$-4096, %rdx
	subq	%rdx, %rsi
	andq	$-16, %rcx
	cmpq	%rsi, %rsp
	je	.L3
.L37:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rsi, %rsp
	jne	.L37
.L3:
	andl	$4095, %ecx
	subq	%rcx, %rsp
	testq	%rcx, %rcx
	jne	.L38
.L4:
	movq	%rsp, %r14
	testl	%eax, %eax
	jle	.L5
	leaq	(%rsp,%r13), %r12
	movl	$1, %ebx
	leaq	.LC1(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L6:
	movq	%r12, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	-64(%rbp), %eax
	addq	%r13, %r12
	cmpl	%ebx, %eax
	jge	.L6
.L5:
	cmpl	$-1, %eax
	jl	.L7
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L8:
	movl	-60(%rbp), %edx
	cmpl	$-1, %edx
	jl	.L18
	testl	%r12d, %r12d
	je	.L20
	movq	$-1, %rbx
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L10:
	cmpl	$-1, %ebx
	je	.L22
	cmpl	%ebx, %edx
	jg	.L12
	cmpl	$-1, %ebx
	je	.L22
	cmpl	%ebx, %edx
	je	.L22
.L11:
	addq	$1, %rbx
	cmpl	%ebx, %edx
	jl	.L18
.L15:
	movl	-64(%rbp), %eax
	addl	$1, %eax
	cmpl	%r12d, %eax
	jne	.L10
.L22:
	movl	$35, %edi
	addq	$1, %rbx
	call	putchar@PLT
	movl	-60(%rbp), %edx
	cmpl	%ebx, %edx
	jge	.L15
.L18:
	movl	$10, %edi
	addq	%r13, %r14
	call	putchar@PLT
	leal	1(%r12), %eax
	cmpl	%r12d, -64(%rbp)
	jl	.L7
	movl	%eax, %r12d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L12:
	movsbl	(%r14,%rbx), %edi
	call	putchar@PLT
	movl	-60(%rbp), %edx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$-1, %ebx
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$35, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	-60(%rbp), %ebx
	jle	.L9
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L7:
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L39
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L38:
	.cfi_restore_state
	orq	$0, -8(%rsp,%rcx)
	jmp	.L4
.L39:
	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 H, W;
	scanf("%d%d", &H, &W);
	char a[H + 2][W + 2];
	int i = 1;
	int j;
	while (i <= H)
	{
		scanf("%s", a[i]);
		i++;
	}
	i = 0;
	while (i <= H + 1)
	{
		j = -1;
		while (j <= W)
		{
			if (i == 0 || i == H + 1)
				printf("#");
			else if (j >= 0 && j < W)
				printf("%c", a[i][j]);
			else if (j == -1 || j == W)
				printf("#");
			j++;
		}
		printf("\n");
		i++;
	}
	return (0);
}
2 3
abc
brc
 1 1
y
 2 3
abc
bqc
 0 1
y
 2 1
abc
brc
 1 1
x
 1 2
z
 0 2
z
 -2 0
z
 -2 -1
z

#####
#abc#
#brc#
#####
 ###
#y#
###
 #####
#abc#
#bqc#
#####
 ###
###
 ###
#a#
#b#
###
 ###
#x#
###
 ####
#z#
####
 ####
####

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 H, W;
	scanf("%d%d", &H, &W);
	char a[H + 2][W + 2];
	int i = 1;
	int j;
	while (i <= H)
	{
		scanf("%s", a[i]);
		i++;
	}
	i = 0;
	while (i <= H + 1)
	{
		j = -1;
		while (j <= W)
		{
			if (i == 0 || i == H + 1)
				printf("#");
			else if (j >= 0 && j < W)
				printf("%c", a[i][j]);
			else if (j == -1 || j == W)
				printf("#");
			j++;
		}
		printf("\n");
		i++;
	}
	return (0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%s"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -152(%rbp)
	leaq	-92(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%rbp), %eax
	leal	2(%rax), %ecx
	movl	-96(%rbp), %eax
	leal	2(%rax), %esi
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%ecx, %rbx
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -112(%rbp)
	movq	$0, -104(%rbp)
	movslq	%esi, %rax
	movq	%rax, -128(%rbp)
	movq	$0, -120(%rbp)
	movq	-112(%rbp), %r8
	movq	-104(%rbp), %r9
	movq	%r9, %rdx
	movq	-128(%rbp), %r10
	movq	-120(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%esi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rdx
	movslq	%esi, %rax
	imulq	%rdx, %rax
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movl	$1, -88(%rbp)
	jmp	.L5
.L6:
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -88(%rbp)
.L5:
	movl	-96(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jle	.L6
	movl	$0, -88(%rbp)
	jmp	.L7
.L15:
	movl	$-1, -84(%rbp)
	jmp	.L8
.L14:
	cmpl	$0, -88(%rbp)
	je	.L9
	movl	-96(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -88(%rbp)
	jne	.L10
.L9:
	movl	$35, %edi
	call	putchar@PLT
	jmp	.L11
.L10:
	cmpl	$0, -84(%rbp)
	js	.L12
	movl	-92(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jge	.L12
	movq	-64(%rbp), %rcx
	movl	-84(%rbp), %eax
	movslq	%eax, %rdx
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L11
.L12:
	cmpl	$-1, -84(%rbp)
	je	.L13
	movl	-92(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jne	.L11
.L13:
	movl	$35, %edi
	call	putchar@PLT
.L11:
	addl	$1, -84(%rbp)
.L8:
	movl	-92(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jle	.L14
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -88(%rbp)
.L7:
	movl	-96(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -88(%rbp)
	jle	.L15
	movl	$0, %eax
	movq	-152(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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"
.LC1:
	.string	"%s"
	.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
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$120, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, -152(%rbp)
	leaq	-92(%rbp), %rdx
	leaq	-96(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-92(%rbp), %eax
	leal	2(%rax), %ecx
	movl	-96(%rbp), %eax
	leal	2(%rax), %esi
	movslq	%ecx, %rax
	subq	$1, %rax
	movq	%rax, -80(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -144(%rbp)
	movq	$0, -136(%rbp)
	movslq	%ecx, %rbx
	movslq	%esi, %rax
	subq	$1, %rax
	movq	%rax, -72(%rbp)
	movslq	%ecx, %rax
	movq	%rax, -112(%rbp)
	movq	$0, -104(%rbp)
	movslq	%esi, %rax
	movq	%rax, -128(%rbp)
	movq	$0, -120(%rbp)
	movq	-112(%rbp), %r8
	movq	-104(%rbp), %r9
	movq	%r9, %rdx
	movq	-128(%rbp), %r10
	movq	-120(%rbp), %r11
	imulq	%r10, %rdx
	movq	%r11, %rax
	imulq	%r8, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r8, %rax
	mulq	%r10
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%esi, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movq	%r15, %rdx
	imulq	%r12, %rdx
	movq	%r13, %rax
	imulq	%r14, %rax
	leaq	(%rdx,%rax), %rdi
	movq	%r14, %rax
	mulq	%r12
	addq	%rdx, %rdi
	movq	%rdi, %rdx
	movslq	%ecx, %rdx
	movslq	%esi, %rax
	imulq	%rdx, %rax
	movl	$16, %edx
	subq	$1, %rdx
	addq	%rdx, %rax
	movl	$16, %esi
	movl	$0, %edx
	divq	%rsi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L2:
	cmpq	%rdx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L4
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$0, %rax
	movq	%rax, -64(%rbp)
	movl	$1, -88(%rbp)
	jmp	.L5
.L6:
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	movq	%rax, %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -88(%rbp)
.L5:
	movl	-96(%rbp), %eax
	cmpl	%eax, -88(%rbp)
	jle	.L6
	movl	$0, -88(%rbp)
	jmp	.L7
.L15:
	movl	$-1, -84(%rbp)
	jmp	.L8
.L14:
	cmpl	$0, -88(%rbp)
	je	.L9
	movl	-96(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -88(%rbp)
	jne	.L10
.L9:
	movl	$35, %edi
	call	putchar@PLT
	jmp	.L11
.L10:
	cmpl	$0, -84(%rbp)
	js	.L12
	movl	-92(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jge	.L12
	movq	-64(%rbp), %rcx
	movl	-84(%rbp), %eax
	movslq	%eax, %rdx
	movl	-88(%rbp), %eax
	cltq
	imulq	%rbx, %rax
	addq	%rcx, %rdx
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar@PLT
	jmp	.L11
.L12:
	cmpl	$-1, -84(%rbp)
	je	.L13
	movl	-92(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jne	.L11
.L13:
	movl	$35, %edi
	call	putchar@PLT
.L11:
	addl	$1, -84(%rbp)
.L8:
	movl	-92(%rbp), %eax
	cmpl	%eax, -84(%rbp)
	jle	.L14
	movl	$10, %edi
	call	putchar@PLT
	addl	$1, -88(%rbp)
.L7:
	movl	-96(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -88(%rbp)
	jle	.L15
	movl	$0, %eax
	movq	-152(%rbp), %rsp
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.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:
