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 h, w;
    char a[110][110]={};
    scanf("%d%d", &h, &w);
    for(int j=0; j<w+2; j++) a[0][j] = '#', a[h+1][j] = '#';
    for(int i=1; i<h+1; i++){
        scanf("%s", &a[i][1]);
        a[i][0] = '#', a[i][w+1] = '#';
    }
    for(int i=0; i<h+2; i++) printf("%s\n", a[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
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3952, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12112(%rbp), %rax
	movl	$12100, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-12128(%rbp), %rdx
	leaq	-12132(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12124(%rbp)
	jmp	.L2
.L3:
	movl	-12124(%rbp), %eax
	cltq
	movb	$35, -12112(%rbp,%rax)
	movl	-12132(%rbp), %eax
	leal	1(%rax), %edx
	movl	-12124(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$110, %rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$12112, %rax
	movb	$35, (%rax)
	addl	$1, -12124(%rbp)
.L2:
	movl	-12128(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -12124(%rbp)
	jle	.L3
	movl	$1, -12120(%rbp)
	jmp	.L4
.L5:
	leaq	-12112(%rbp), %rdx
	movl	-12120(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	$1, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12120(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rbp, %rax
	subq	$12112, %rax
	movb	$35, (%rax)
	movl	-12128(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movl	-12120(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$12112, %rax
	movb	$35, (%rax)
	addl	$1, -12120(%rbp)
.L4:
	movl	-12132(%rbp), %eax
	cmpl	%eax, -12120(%rbp)
	jle	.L5
	movl	$0, -12116(%rbp)
	jmp	.L6
.L7:
	leaq	-12112(%rbp), %rdx
	movl	-12116(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	addl	$1, -12116(%rbp)
.L6:
	movl	-12132(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -12116(%rbp)
	jle	.L7
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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"
.LC3:
	.string	"%s"
	.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	$3944, %rsp
	.cfi_def_cfa_offset 12176
	movl	$12100, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 12120(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	movq	%rbx, %rdi
	call	memset@PLT
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	movl	%r8d, %esi
	addl	$1, %esi
	js	.L2
	movslq	8(%rsp), %rdx
	movq	%rdx, %rax
	leal	1(%rdx), %r9d
	addq	$1, %rdx
	imulq	$110, %rdx, %rdx
	leaq	-1(%rdx), %rcx
	cmpq	$14, %rcx
	jbe	.L3
	cmpl	$6, %esi
	jbe	.L3
	leal	2(%r8), %r10d
	cmpl	$14, %esi
	jbe	.L18
	movdqa	.LC1(%rip), %xmm0
	movl	%r10d, %esi
	leaq	(%rbx,%rdx), %rcx
	shrl	$4, %esi
	movaps	%xmm0, 16(%rsp)
	movups	%xmm0, (%rcx)
	cmpl	$1, %esi
	je	.L5
	movaps	%xmm0, 32(%rsp)
	movups	%xmm0, 16(%rcx)
	cmpl	$2, %esi
	je	.L5
	movaps	%xmm0, 48(%rsp)
	movups	%xmm0, 32(%rcx)
	cmpl	$3, %esi
	je	.L5
	movaps	%xmm0, 64(%rsp)
	movups	%xmm0, 48(%rcx)
	cmpl	$4, %esi
	je	.L5
	movaps	%xmm0, 80(%rsp)
	movups	%xmm0, 64(%rcx)
	cmpl	$5, %esi
	je	.L5
	movaps	%xmm0, 96(%rsp)
	movups	%xmm0, 80(%rcx)
.L5:
	movl	%r10d, %ecx
	andl	$-16, %ecx
	movl	%ecx, %edi
	cmpl	%ecx, %r10d
	je	.L6
.L4:
	movl	%r8d, %esi
	subl	%ecx, %esi
	leal	2(%rsi), %r10d
	addl	$1, %esi
	cmpl	$6, %esi
	jbe	.L8
	movq	.LC2(%rip), %rsi
	addq	$12128, %rdx
	addq	%rsp, %rdx
	movq	%rsi, 16(%rsp,%rcx)
	movq	%rsi, -12112(%rcx,%rdx)
	movl	%r10d, %esi
	andl	$-8, %esi
	addl	%esi, %edi
	cmpl	%esi, %r10d
	je	.L6
.L8:
	movslq	%r9d, %rcx
	movslq	%edi, %rdx
	imulq	$110, %rcx, %rcx
	movb	$35, 16(%rsp,%rdx)
	addq	$12128, %rcx
	addq	%rsp, %rcx
	movb	$35, -12112(%rdx,%rcx)
	leal	1(%rdi), %edx
	cmpl	%edi, %r8d
	jl	.L6
	movslq	%edx, %rsi
	movb	$35, 16(%rsp,%rsi)
	movb	$35, -12112(%rcx,%rsi)
	leal	2(%rdi), %esi
	cmpl	%edx, %r8d
	jl	.L6
	movslq	%esi, %rdx
	movb	$35, 16(%rsp,%rdx)
	movb	$35, -12112(%rcx,%rdx)
	leal	3(%rdi), %edx
	cmpl	%esi, %r8d
	jl	.L6
	movslq	%edx, %rsi
	movb	$35, 16(%rsp,%rsi)
	movb	$35, -12112(%rcx,%rsi)
	leal	4(%rdi), %esi
	cmpl	%edx, %r8d
	jl	.L6
	movslq	%esi, %rdx
	leal	5(%rdi), %r9d
	movb	$35, 16(%rsp,%rdx)
	movb	$35, -12112(%rcx,%rdx)
	cmpl	%esi, %r8d
	jl	.L6
	movslq	%r9d, %rdx
	movb	$35, 16(%rsp,%rdx)
	movb	$35, -12112(%rcx,%rdx)
	leal	6(%rdi), %edx
	cmpl	%r9d, %r8d
	jl	.L6
	movslq	%edx, %rdx
	movb	$35, 16(%rsp,%rdx)
	movb	$35, -12112(%rcx,%rdx)
.L6:
	testl	%eax, %eax
	jle	.L12
	leaq	127(%rsp), %r13
	movl	$1, %r12d
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$110, %r13
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	movb	$35, -111(%r13)
	leal	1(%rax), %edx
	movslq	%r12d, %rax
	addl	$1, %r12d
	imulq	$110, %rax, %rax
	movslq	%edx, %rdx
	addq	$12128, %rax
	addq	%rsp, %rax
	movb	$35, -12112(%rdx,%rax)
	movl	8(%rsp), %eax
	cmpl	%r12d, %eax
	jge	.L13
.L12:
	xorl	%ebp, %ebp
	cmpl	$-1, %eax
	jl	.L16
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rbx, %rdi
	addq	$110, %rbx
	call	puts@PLT
	movl	%ebp, %eax
	addl	$1, %ebp
	cmpl	%eax, 8(%rsp)
	jge	.L15
.L16:
	movq	12120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L47
	addq	$12136, %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
.L3:
	.cfi_restore_state
	movl	%esi, %esi
	movq	%rbx, %rcx
	leaq	17(%rsp,%rsi), %rsi
	.p2align 4,,10
	.p2align 3
.L10:
	movb	$35, (%rcx)
	addq	$1, %rcx
	movb	$35, -1(%rcx,%rdx)
	cmpq	%rsi, %rcx
	jne	.L10
	jmp	.L6
.L2:
	movl	8(%rsp), %eax
	jmp	.L6
.L18:
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	jmp	.L4
.L47:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.set	.LC2,.LC1
	.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"
.LC3:
	.string	"%s"
	.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	$3944, %rsp
	.cfi_def_cfa_offset 12176
	movl	$12100, %edx
	xorl	%esi, %esi
	movq	%fs:40, %rax
	movq	%rax, 12120(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbx
	movq	%rbx, %rdi
	call	memset@PLT
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	xorl	%eax, %eax
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %r8d
	movl	%r8d, %esi
	addl	$1, %esi
	js	.L2
	movslq	8(%rsp), %rdx
	movq	%rdx, %rax
	leal	1(%rdx), %r9d
	addq	$1, %rdx
	imulq	$110, %rdx, %rdx
	leaq	-1(%rdx), %rcx
	cmpq	$14, %rcx
	jbe	.L3
	cmpl	$6, %esi
	jbe	.L3
	leal	2(%r8), %r10d
	cmpl	$14, %esi
	jbe	.L18
	movdqa	.LC1(%rip), %xmm0
	movl	%r10d, %esi
	leaq	(%rbx,%rdx), %rcx
	shrl	$4, %esi
	movaps	%xmm0, 16(%rsp)
	movups	%xmm0, (%rcx)
	cmpl	$1, %esi
	je	.L5
	movaps	%xmm0, 32(%rsp)
	movups	%xmm0, 16(%rcx)
	cmpl	$2, %esi
	je	.L5
	movaps	%xmm0, 48(%rsp)
	movups	%xmm0, 32(%rcx)
	cmpl	$3, %esi
	je	.L5
	movaps	%xmm0, 64(%rsp)
	movups	%xmm0, 48(%rcx)
	cmpl	$4, %esi
	je	.L5
	movaps	%xmm0, 80(%rsp)
	movups	%xmm0, 64(%rcx)
	cmpl	$5, %esi
	je	.L5
	movaps	%xmm0, 96(%rsp)
	movups	%xmm0, 80(%rcx)
.L5:
	movl	%r10d, %ecx
	andl	$-16, %ecx
	movl	%ecx, %edi
	cmpl	%ecx, %r10d
	je	.L6
.L4:
	movl	%r8d, %esi
	subl	%ecx, %esi
	leal	2(%rsi), %r10d
	addl	$1, %esi
	cmpl	$6, %esi
	jbe	.L8
	movq	.LC2(%rip), %rsi
	addq	$12128, %rdx
	addq	%rsp, %rdx
	movq	%rsi, 16(%rsp,%rcx)
	movq	%rsi, -12112(%rcx,%rdx)
	movl	%r10d, %esi
	andl	$-8, %esi
	addl	%esi, %edi
	cmpl	%esi, %r10d
	je	.L6
.L8:
	movslq	%r9d, %rcx
	movslq	%edi, %rdx
	imulq	$110, %rcx, %rcx
	movb	$35, 16(%rsp,%rdx)
	addq	$12128, %rcx
	addq	%rsp, %rcx
	movb	$35, -12112(%rdx,%rcx)
	leal	1(%rdi), %edx
	cmpl	%edi, %r8d
	jl	.L6
	movslq	%edx, %rsi
	movb	$35, 16(%rsp,%rsi)
	movb	$35, -12112(%rcx,%rsi)
	leal	2(%rdi), %esi
	cmpl	%edx, %r8d
	jl	.L6
	movslq	%esi, %rdx
	movb	$35, 16(%rsp,%rdx)
	movb	$35, -12112(%rcx,%rdx)
	leal	3(%rdi), %edx
	cmpl	%esi, %r8d
	jl	.L6
	movslq	%edx, %rsi
	movb	$35, 16(%rsp,%rsi)
	movb	$35, -12112(%rcx,%rsi)
	leal	4(%rdi), %esi
	cmpl	%edx, %r8d
	jl	.L6
	movslq	%esi, %rdx
	leal	5(%rdi), %r9d
	movb	$35, 16(%rsp,%rdx)
	movb	$35, -12112(%rcx,%rdx)
	cmpl	%esi, %r8d
	jl	.L6
	movslq	%r9d, %rdx
	movb	$35, 16(%rsp,%rdx)
	movb	$35, -12112(%rcx,%rdx)
	leal	6(%rdi), %edx
	cmpl	%r9d, %r8d
	jl	.L6
	movslq	%edx, %rdx
	movb	$35, 16(%rsp,%rdx)
	movb	$35, -12112(%rcx,%rdx)
.L6:
	testl	%eax, %eax
	jle	.L12
	leaq	127(%rsp), %r13
	movl	$1, %r12d
	leaq	.LC3(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%r13, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	addq	$110, %r13
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	movb	$35, -111(%r13)
	leal	1(%rax), %edx
	movslq	%r12d, %rax
	addl	$1, %r12d
	imulq	$110, %rax, %rax
	movslq	%edx, %rdx
	addq	$12128, %rax
	addq	%rsp, %rax
	movb	$35, -12112(%rdx,%rax)
	movl	8(%rsp), %eax
	cmpl	%r12d, %eax
	jge	.L13
.L12:
	xorl	%ebp, %ebp
	cmpl	$-1, %eax
	jl	.L16
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rbx, %rdi
	addq	$110, %rbx
	call	puts@PLT
	movl	%ebp, %eax
	addl	$1, %ebp
	cmpl	%eax, 8(%rsp)
	jge	.L15
.L16:
	movq	12120(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L47
	addq	$12136, %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
.L3:
	.cfi_restore_state
	movl	%esi, %esi
	movq	%rbx, %rcx
	leaq	17(%rsp,%rsi), %rsi
	.p2align 4,,10
	.p2align 3
.L10:
	movb	$35, (%rcx)
	addq	$1, %rcx
	movb	$35, -1(%rcx,%rdx)
	cmpq	%rsi, %rcx
	jne	.L10
	jmp	.L6
.L2:
	movl	8(%rsp), %eax
	jmp	.L6
.L18:
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	jmp	.L4
.L47:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.byte	35
	.set	.LC2,.LC1
	.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 h, w;
    char a[110][110]={};
    scanf("%d%d", &h, &w);
    for(int j=0; j<w+2; j++) a[0][j] = '#', a[h+1][j] = '#';
    for(int i=1; i<h+1; i++){
        scanf("%s", &a[i][1]);
        a[i][0] = '#', a[i][w+1] = '#';
    }
    for(int i=0; i<h+2; i++) printf("%s\n", a[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#c
#b#c
###
 ###
#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(void){
    int h, w;
    char a[110][110]={};
    scanf("%d%d", &h, &w);
    for(int j=0; j<w+2; j++) a[0][j] = '#', a[h+1][j] = '#';
    for(int i=1; i<h+1; i++){
        scanf("%s", &a[i][1]);
        a[i][0] = '#', a[i][w+1] = '#';
    }
    for(int i=0; i<h+2; i++) printf("%s\n", a[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
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3952, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12112(%rbp), %rax
	movl	$12100, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-12128(%rbp), %rdx
	leaq	-12132(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12124(%rbp)
	jmp	.L2
.L3:
	movl	-12124(%rbp), %eax
	cltq
	movb	$35, -12112(%rbp,%rax)
	movl	-12132(%rbp), %eax
	leal	1(%rax), %edx
	movl	-12124(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$110, %rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$12112, %rax
	movb	$35, (%rax)
	addl	$1, -12124(%rbp)
.L2:
	movl	-12128(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -12124(%rbp)
	jle	.L3
	movl	$1, -12120(%rbp)
	jmp	.L4
.L5:
	leaq	-12112(%rbp), %rdx
	movl	-12120(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	$1, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12120(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rbp, %rax
	subq	$12112, %rax
	movb	$35, (%rax)
	movl	-12128(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movl	-12120(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$12112, %rax
	movb	$35, (%rax)
	addl	$1, -12120(%rbp)
.L4:
	movl	-12132(%rbp), %eax
	cmpl	%eax, -12120(%rbp)
	jle	.L5
	movl	$0, -12116(%rbp)
	jmp	.L6
.L7:
	leaq	-12112(%rbp), %rdx
	movl	-12116(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	addl	$1, -12116(%rbp)
.L6:
	movl	-12132(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -12116(%rbp)
	jle	.L7
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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"
.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
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$4096, %rsp
	orq	$0, (%rsp)
	subq	$3952, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12112(%rbp), %rax
	movl	$12100, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-12128(%rbp), %rdx
	leaq	-12132(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -12124(%rbp)
	jmp	.L2
.L3:
	movl	-12124(%rbp), %eax
	cltq
	movb	$35, -12112(%rbp,%rax)
	movl	-12132(%rbp), %eax
	leal	1(%rax), %edx
	movl	-12124(%rbp), %eax
	movslq	%eax, %rcx
	movslq	%edx, %rax
	imulq	$110, %rax, %rax
	addq	%rbp, %rax
	addq	%rcx, %rax
	subq	$12112, %rax
	movb	$35, (%rax)
	addl	$1, -12124(%rbp)
.L2:
	movl	-12128(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -12124(%rbp)
	jle	.L3
	movl	$1, -12120(%rbp)
	jmp	.L4
.L5:
	leaq	-12112(%rbp), %rdx
	movl	-12120(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	$1, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12120(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rbp, %rax
	subq	$12112, %rax
	movb	$35, (%rax)
	movl	-12128(%rbp), %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movl	-12120(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$12112, %rax
	movb	$35, (%rax)
	addl	$1, -12120(%rbp)
.L4:
	movl	-12132(%rbp), %eax
	cmpl	%eax, -12120(%rbp)
	jle	.L5
	movl	$0, -12116(%rbp)
	jmp	.L6
.L7:
	leaq	-12112(%rbp), %rdx
	movl	-12116(%rbp), %eax
	cltq
	imulq	$110, %rax, %rax
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	addl	$1, -12116(%rbp)
.L6:
	movl	-12132(%rbp), %eax
	addl	$1, %eax
	cmpl	%eax, -12116(%rbp)
	jle	.L7
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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:
