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>

#define WIDTH 64
#define HEIGHT 64

int main(void) {
	int A, B;
	char grid[128][128];
	int i, j, k;
	if (scanf("%d%d", &A, &B) != 2) return 1;
	for (i = 0; i < HEIGHT / 2; i++) {
		for (j = 0; j < WIDTH; j++) grid[i][j] = '.';
		grid[i][WIDTH] = '\0';
	}
	for (i = HEIGHT / 2; i < HEIGHT; i++) {
		for (j = 0; j < WIDTH; j++) grid[i][j] = '#';
		grid[i][WIDTH] = '\0';
	}
	for (i = HEIGHT / 2 + 1, j = 0, k = 1; k < A; k++) {
		grid[i][j] = '.';
		j += 2;
		if (j >= WIDTH) {
			i += 2;
			j = 0;
		}
	}
	for (i = 0, j = 0, k = 1; k < B; k++) {
		grid[i][j] = '#';
		j += 2;
		if (j >= WIDTH) {
			i += 2;
			j = 0;
		}
	}
	printf("%d %d\n", HEIGHT, WIDTH);
	for (i = 0; i < HEIGHT; i++) puts(grid[i]);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d %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
	leaq	-16384(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16416(%rbp), %rdx
	leaq	-16420(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L2
	movl	$1, %eax
	jmp	.L20
.L2:
	movl	$0, -16412(%rbp)
	jmp	.L4
.L7:
	movl	$0, -16408(%rbp)
	jmp	.L5
.L6:
	movl	-16408(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$16400, %rax
	movb	$46, (%rax)
	addl	$1, -16408(%rbp)
.L5:
	cmpl	$63, -16408(%rbp)
	jle	.L6
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rbp, %rax
	subq	$16336, %rax
	movb	$0, (%rax)
	addl	$1, -16412(%rbp)
.L4:
	cmpl	$31, -16412(%rbp)
	jle	.L7
	movl	$32, -16412(%rbp)
	jmp	.L8
.L11:
	movl	$0, -16408(%rbp)
	jmp	.L9
.L10:
	movl	-16408(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$16400, %rax
	movb	$35, (%rax)
	addl	$1, -16408(%rbp)
.L9:
	cmpl	$63, -16408(%rbp)
	jle	.L10
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rbp, %rax
	subq	$16336, %rax
	movb	$0, (%rax)
	addl	$1, -16412(%rbp)
.L8:
	cmpl	$63, -16412(%rbp)
	jle	.L11
	movl	$33, -16412(%rbp)
	movl	$0, -16408(%rbp)
	movl	$1, -16404(%rbp)
	jmp	.L12
.L14:
	movl	-16408(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$16400, %rax
	movb	$46, (%rax)
	addl	$2, -16408(%rbp)
	cmpl	$63, -16408(%rbp)
	jle	.L13
	addl	$2, -16412(%rbp)
	movl	$0, -16408(%rbp)
.L13:
	addl	$1, -16404(%rbp)
.L12:
	movl	-16420(%rbp), %eax
	cmpl	%eax, -16404(%rbp)
	jl	.L14
	movl	$0, -16412(%rbp)
	movl	$0, -16408(%rbp)
	movl	$1, -16404(%rbp)
	jmp	.L15
.L17:
	movl	-16408(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$16400, %rax
	movb	$35, (%rax)
	addl	$2, -16408(%rbp)
	cmpl	$63, -16408(%rbp)
	jle	.L16
	addl	$2, -16412(%rbp)
	movl	$0, -16408(%rbp)
.L16:
	addl	$1, -16404(%rbp)
.L15:
	movl	-16416(%rbp), %eax
	cmpl	%eax, -16404(%rbp)
	jl	.L17
	movl	$64, %edx
	movl	$64, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -16412(%rbp)
	jmp	.L18
.L19:
	leaq	-16400(%rbp), %rdx
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	addl	$1, -16412(%rbp)
.L18:
	cmpl	$63, -16412(%rbp)
	jle	.L19
	movl	$0, %eax
.L20:
	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"
.LC1:
	.string	"%d %d\n"
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	-16384(%rsp), %r11
	.cfi_def_cfa 11, 16408
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$40, %rsp
	.cfi_def_cfa_offset 16448
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 16408(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	%eax, %ecx
	movl	$1, %eax
	cmpl	$2, %ecx
	jne	.L1
	leaq	16(%rsp), %rbx
	leaq	4112(%rsp), %rax
	movq	%rbx, %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	movdqa	.LC2(%rip), %xmm0
	movb	$0, 64(%rdx)
	subq	$-128, %rdx
	movups	%xmm0, -128(%rdx)
	movups	%xmm0, -112(%rdx)
	movups	%xmm0, -96(%rdx)
	movups	%xmm0, -80(%rdx)
	cmpq	%rdx, %rax
	jne	.L3
	leaq	8192(%rbx), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	movdqa	.LC3(%rip), %xmm0
	movb	$0, 64(%rax)
	subq	$-128, %rax
	movups	%xmm0, -128(%rax)
	movups	%xmm0, -112(%rax)
	movups	%xmm0, -96(%rax)
	movups	%xmm0, -80(%rax)
	cmpq	%rbp, %rax
	jne	.L8
	movl	8(%rsp), %edi
	cmpl	$1, %edi
	jle	.L12
	movb	$46, 4240(%rsp)
	cmpl	$2, %edi
	je	.L12
	movl	$2, %esi
	movl	$2, %edx
	movl	$33, %r8d
.L11:
	movslq	%r8d, %rax
	movslq	%edx, %r9
	addl	$2, %edx
	salq	$7, %rax
	addq	$16416, %rax
	addq	%rsp, %rax
	movb	$46, -16400(%r9,%rax)
	cmpl	$63, %edx
	jle	.L10
	addl	$2, %r8d
	xorl	%edx, %edx
.L10:
	addl	$1, %esi
	cmpl	%esi, %edi
	jne	.L11
.L12:
	movl	12(%rsp), %esi
	cmpl	$1, %esi
	jle	.L7
	movb	$35, 16(%rsp)
	movl	$2, %edx
	xorl	%edi, %edi
	cmpl	$2, %esi
	je	.L7
.L15:
	movslq	%edi, %rax
	movslq	%ecx, %r8
	addl	$2, %ecx
	salq	$7, %rax
	addq	$16416, %rax
	addq	%rsp, %rax
	movb	$35, -16400(%r8,%rax)
	cmpl	$63, %ecx
	jle	.L14
	addl	$2, %edi
	xorl	%ecx, %ecx
.L14:
	addl	$1, %edx
	cmpl	%esi, %edx
	jne	.L15
.L7:
	movl	$64, %ecx
	movl	$64, %edx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rbx, %rdi
	subq	$-128, %rbx
	call	puts@PLT
	cmpq	%rbx, %rbp
	jne	.L13
	xorl	%eax, %eax
.L1:
	movq	16408(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L31
	addq	$16424, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L31:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	3327647950551526958
	.quad	3327647950551526958
	.align 16
.LC3:
	.quad	2531906049332683555
	.quad	2531906049332683555
	.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	"%d %d\n"
	.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
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	leaq	-16384(%rsp), %r11
	.cfi_def_cfa 11, 16408
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$40, %rsp
	.cfi_def_cfa_offset 16448
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 16408(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	%eax, %ecx
	movl	$1, %eax
	cmpl	$2, %ecx
	jne	.L1
	leaq	16(%rsp), %rbx
	leaq	4112(%rsp), %rax
	movq	%rbx, %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	movdqa	.LC2(%rip), %xmm0
	movb	$0, 64(%rdx)
	subq	$-128, %rdx
	movups	%xmm0, -128(%rdx)
	movups	%xmm0, -112(%rdx)
	movups	%xmm0, -96(%rdx)
	movups	%xmm0, -80(%rdx)
	cmpq	%rdx, %rax
	jne	.L3
	leaq	8192(%rbx), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	movdqa	.LC3(%rip), %xmm0
	movb	$0, 64(%rax)
	subq	$-128, %rax
	movups	%xmm0, -128(%rax)
	movups	%xmm0, -112(%rax)
	movups	%xmm0, -96(%rax)
	movups	%xmm0, -80(%rax)
	cmpq	%rbp, %rax
	jne	.L8
	movl	8(%rsp), %edi
	cmpl	$1, %edi
	jle	.L12
	movb	$46, 4240(%rsp)
	cmpl	$2, %edi
	je	.L12
	movl	$2, %esi
	movl	$2, %edx
	movl	$33, %r8d
.L11:
	movslq	%r8d, %rax
	movslq	%edx, %r9
	addl	$2, %edx
	salq	$7, %rax
	addq	$16416, %rax
	addq	%rsp, %rax
	movb	$46, -16400(%r9,%rax)
	cmpl	$63, %edx
	jle	.L10
	addl	$2, %r8d
	xorl	%edx, %edx
.L10:
	addl	$1, %esi
	cmpl	%esi, %edi
	jne	.L11
.L12:
	movl	12(%rsp), %esi
	cmpl	$1, %esi
	jle	.L7
	movb	$35, 16(%rsp)
	movl	$2, %edx
	xorl	%edi, %edi
	cmpl	$2, %esi
	je	.L7
.L15:
	movslq	%edi, %rax
	movslq	%ecx, %r8
	addl	$2, %ecx
	salq	$7, %rax
	addq	$16416, %rax
	addq	%rsp, %rax
	movb	$35, -16400(%r8,%rax)
	cmpl	$63, %ecx
	jle	.L14
	addl	$2, %edi
	xorl	%ecx, %ecx
.L14:
	addl	$1, %edx
	cmpl	%esi, %edx
	jne	.L15
.L7:
	movl	$64, %ecx
	movl	$64, %edx
	leaq	.LC1(%rip), %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	call	__printf_chk@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	movq	%rbx, %rdi
	subq	$-128, %rbx
	call	puts@PLT
	cmpq	%rbx, %rbp
	jne	.L13
	xorl	%eax, %eax
.L1:
	movq	16408(%rsp), %rdx
	subq	%fs:40, %rdx
	jne	.L31
	addq	$16424, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L31:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC2:
	.quad	3327647950551526958
	.quad	3327647950551526958
	.align 16
.LC3:
	.quad	2531906049332683555
	.quad	2531906049332683555
	.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>

#define WIDTH 64
#define HEIGHT 64

int main(void) {
	int A, B;
	char grid[128][128];
	int i, j, k;
	if (scanf("%d%d", &A, &B) != 2) return 1;
	for (i = 0; i < HEIGHT / 2; i++) {
		for (j = 0; j < WIDTH; j++) grid[i][j] = '.';
		grid[i][WIDTH] = '\0';
	}
	for (i = HEIGHT / 2; i < HEIGHT; i++) {
		for (j = 0; j < WIDTH; j++) grid[i][j] = '#';
		grid[i][WIDTH] = '\0';
	}
	for (i = HEIGHT / 2 + 1, j = 0, k = 1; k < A; k++) {
		grid[i][j] = '.';
		j += 2;
		if (j >= WIDTH) {
			i += 2;
			j = 0;
		}
	}
	for (i = 0, j = 0, k = 1; k < B; k++) {
		grid[i][j] = '#';
		j += 2;
		if (j >= WIDTH) {
			i += 2;
			j = 0;
		}
	}
	printf("%d %d\n", HEIGHT, WIDTH);
	for (i = 0; i < HEIGHT; i++) puts(grid[i]);
	return 0;
}

2 3

64 64
#.#.............................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
################################################################
.###############################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################
################################################################

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>

#define WIDTH 64
#define HEIGHT 64

int main(void) {
	int A, B;
	char grid[128][128];
	int i, j, k;
	if (scanf("%d%d", &A, &B) != 2) return 1;
	for (i = 0; i < HEIGHT / 2; i++) {
		for (j = 0; j < WIDTH; j++) grid[i][j] = '.';
		grid[i][WIDTH] = '\0';
	}
	for (i = HEIGHT / 2; i < HEIGHT; i++) {
		for (j = 0; j < WIDTH; j++) grid[i][j] = '#';
		grid[i][WIDTH] = '\0';
	}
	for (i = HEIGHT / 2 + 1, j = 0, k = 1; k < A; k++) {
		grid[i][j] = '.';
		j += 2;
		if (j >= WIDTH) {
			i += 2;
			j = 0;
		}
	}
	for (i = 0, j = 0, k = 1; k < B; k++) {
		grid[i][j] = '#';
		j += 2;
		if (j >= WIDTH) {
			i += 2;
			j = 0;
		}
	}
	printf("%d %d\n", HEIGHT, WIDTH);
	for (i = 0; i < HEIGHT; i++) puts(grid[i]);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d %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
	leaq	-16384(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16416(%rbp), %rdx
	leaq	-16420(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L2
	movl	$1, %eax
	jmp	.L20
.L2:
	movl	$0, -16412(%rbp)
	jmp	.L4
.L7:
	movl	$0, -16408(%rbp)
	jmp	.L5
.L6:
	movl	-16408(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$16400, %rax
	movb	$46, (%rax)
	addl	$1, -16408(%rbp)
.L5:
	cmpl	$63, -16408(%rbp)
	jle	.L6
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rbp, %rax
	subq	$16336, %rax
	movb	$0, (%rax)
	addl	$1, -16412(%rbp)
.L4:
	cmpl	$31, -16412(%rbp)
	jle	.L7
	movl	$32, -16412(%rbp)
	jmp	.L8
.L11:
	movl	$0, -16408(%rbp)
	jmp	.L9
.L10:
	movl	-16408(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$16400, %rax
	movb	$35, (%rax)
	addl	$1, -16408(%rbp)
.L9:
	cmpl	$63, -16408(%rbp)
	jle	.L10
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rbp, %rax
	subq	$16336, %rax
	movb	$0, (%rax)
	addl	$1, -16412(%rbp)
.L8:
	cmpl	$63, -16412(%rbp)
	jle	.L11
	movl	$33, -16412(%rbp)
	movl	$0, -16408(%rbp)
	movl	$1, -16404(%rbp)
	jmp	.L12
.L14:
	movl	-16408(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$16400, %rax
	movb	$46, (%rax)
	addl	$2, -16408(%rbp)
	cmpl	$63, -16408(%rbp)
	jle	.L13
	addl	$2, -16412(%rbp)
	movl	$0, -16408(%rbp)
.L13:
	addl	$1, -16404(%rbp)
.L12:
	movl	-16420(%rbp), %eax
	cmpl	%eax, -16404(%rbp)
	jl	.L14
	movl	$0, -16412(%rbp)
	movl	$0, -16408(%rbp)
	movl	$1, -16404(%rbp)
	jmp	.L15
.L17:
	movl	-16408(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$16400, %rax
	movb	$35, (%rax)
	addl	$2, -16408(%rbp)
	cmpl	$63, -16408(%rbp)
	jle	.L16
	addl	$2, -16412(%rbp)
	movl	$0, -16408(%rbp)
.L16:
	addl	$1, -16404(%rbp)
.L15:
	movl	-16416(%rbp), %eax
	cmpl	%eax, -16404(%rbp)
	jl	.L17
	movl	$64, %edx
	movl	$64, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -16412(%rbp)
	jmp	.L18
.L19:
	leaq	-16400(%rbp), %rdx
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	addl	$1, -16412(%rbp)
.L18:
	cmpl	$63, -16412(%rbp)
	jle	.L19
	movl	$0, %eax
.L20:
	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"
.LC1:
	.string	"%d %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
	leaq	-16384(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16416(%rbp), %rdx
	leaq	-16420(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L2
	movl	$1, %eax
	jmp	.L20
.L2:
	movl	$0, -16412(%rbp)
	jmp	.L4
.L7:
	movl	$0, -16408(%rbp)
	jmp	.L5
.L6:
	movl	-16408(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$16400, %rax
	movb	$46, (%rax)
	addl	$1, -16408(%rbp)
.L5:
	cmpl	$63, -16408(%rbp)
	jle	.L6
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rbp, %rax
	subq	$16336, %rax
	movb	$0, (%rax)
	addl	$1, -16412(%rbp)
.L4:
	cmpl	$31, -16412(%rbp)
	jle	.L7
	movl	$32, -16412(%rbp)
	jmp	.L8
.L11:
	movl	$0, -16408(%rbp)
	jmp	.L9
.L10:
	movl	-16408(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$16400, %rax
	movb	$35, (%rax)
	addl	$1, -16408(%rbp)
.L9:
	cmpl	$63, -16408(%rbp)
	jle	.L10
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rbp, %rax
	subq	$16336, %rax
	movb	$0, (%rax)
	addl	$1, -16412(%rbp)
.L8:
	cmpl	$63, -16412(%rbp)
	jle	.L11
	movl	$33, -16412(%rbp)
	movl	$0, -16408(%rbp)
	movl	$1, -16404(%rbp)
	jmp	.L12
.L14:
	movl	-16408(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$16400, %rax
	movb	$46, (%rax)
	addl	$2, -16408(%rbp)
	cmpl	$63, -16408(%rbp)
	jle	.L13
	addl	$2, -16412(%rbp)
	movl	$0, -16408(%rbp)
.L13:
	addl	$1, -16404(%rbp)
.L12:
	movl	-16420(%rbp), %eax
	cmpl	%eax, -16404(%rbp)
	jl	.L14
	movl	$0, -16412(%rbp)
	movl	$0, -16408(%rbp)
	movl	$1, -16404(%rbp)
	jmp	.L15
.L17:
	movl	-16408(%rbp), %eax
	movslq	%eax, %rdx
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rbp, %rax
	addq	%rdx, %rax
	subq	$16400, %rax
	movb	$35, (%rax)
	addl	$2, -16408(%rbp)
	cmpl	$63, -16408(%rbp)
	jle	.L16
	addl	$2, -16412(%rbp)
	movl	$0, -16408(%rbp)
.L16:
	addl	$1, -16404(%rbp)
.L15:
	movl	-16416(%rbp), %eax
	cmpl	%eax, -16404(%rbp)
	jl	.L17
	movl	$64, %edx
	movl	$64, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, -16412(%rbp)
	jmp	.L18
.L19:
	leaq	-16400(%rbp), %rdx
	movl	-16412(%rbp), %eax
	cltq
	salq	$7, %rax
	addq	%rdx, %rax
	movq	%rax, %rdi
	call	puts@PLT
	addl	$1, -16412(%rbp)
.L18:
	cmpl	$63, -16412(%rbp)
	jle	.L19
	movl	$0, %eax
.L20:
	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:
