Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void){
    int c, i, l, k;
    int H[1000],W[1000];
    for(c = 1; ; c++ ){
        scanf("%d %d", &H[c], &W[c]);
        if(H[c] == 0)   break;
    }
    c--;
    for(k = 1; k <= c; k++ ){
        for(i = 1; i <= H[k]; i++ ){
            if(i % 2 == 0){
                for(l = 1; l <= W[k]; l++ ){
                    if(l % 2 == 0){
                        printf("#");
                    } else {
                        printf(".");
                    }
                }
            } else {
                for(l = 1; l <= W[k]; l++ ){
                    if(l % 2 == 0){
                        printf(".");
                    } else {
                        printf("#");
                    }
                }
            }
            printf("\n");
        }
        printf("\n");
    }
    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$3944, %rsp
	.cfi_def_cfa_offset 8096
	movl	$1, %ebx
	leaq	.LC0(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	4016(%rsp), %rax
	leaq	20(%rsp), %r13
	movq	%rax, 8(%rsp)
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rax
	movq	%rbp, %r15
	movq	%rbp, %rsi
	movq	%r14, %rdi
	movl	%ebx, %r12d
	addq	$4, %rbp
	leaq	(%rax,%rbx,4), %rdx
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movl	(%r15), %edx
	testl	%edx, %edx
	jne	.L2
	cmpl	$1, %r12d
	je	.L3
	leal	-2(%r12), %eax
	leaq	4020(%rsp), %rbp
	leaq	4024(%rsp,%rax,4), %r14
	.p2align 4,,10
	.p2align 3
.L4:
	movl	0(%r13), %eax
	movl	$1, %r12d
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movl	0(%rbp), %eax
	testb	$1, %r12b
	je	.L5
	movl	$1, %ebx
	testl	%eax, %eax
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	testb	$1, %bl
	jne	.L13
	movl	$46, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	0(%rbp), %ebx
	jle	.L6
.L9:
	movl	$10, %edi
	addl	$1, %r12d
	call	putchar@PLT
	cmpl	%r12d, 0(%r13)
	jge	.L7
.L8:
	movl	$10, %edi
	addq	$4, %rbp
	addq	$4, %r13
	call	putchar@PLT
	cmpq	%r14, %rbp
	jne	.L4
.L3:
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$8040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	movl	$35, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jge	.L6
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	testl	%eax, %eax
	jle	.L9
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L12:
	testb	$1, %bl
	jne	.L10
.L29:
	movl	$35, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jl	.L9
	testb	$1, %bl
	je	.L29
.L10:
	movl	$46, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jge	.L12
	jmp	.L9
.L28:
	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:
```

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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$3944, %rsp
	.cfi_def_cfa_offset 8096
	movl	$1, %ebx
	leaq	.LC0(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	4016(%rsp), %rax
	leaq	20(%rsp), %r13
	movq	%rax, 8(%rsp)
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rax
	movq	%rbp, %r15
	movq	%rbp, %rsi
	movq	%r14, %rdi
	movl	%ebx, %r12d
	addq	$4, %rbp
	leaq	(%rax,%rbx,4), %rdx
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movl	(%r15), %edx
	testl	%edx, %edx
	jne	.L2
	cmpl	$1, %r12d
	je	.L3
	leal	-2(%r12), %eax
	leaq	4020(%rsp), %rbp
	leaq	4024(%rsp,%rax,4), %r14
	.p2align 4,,10
	.p2align 3
.L4:
	movl	0(%r13), %eax
	movl	$1, %r12d
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movl	0(%rbp), %eax
	testb	$1, %r12b
	je	.L5
	movl	$1, %ebx
	testl	%eax, %eax
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	testb	$1, %bl
	jne	.L13
	movl	$46, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	0(%rbp), %ebx
	jle	.L6
.L9:
	movl	$10, %edi
	addl	$1, %r12d
	call	putchar@PLT
	cmpl	%r12d, 0(%r13)
	jge	.L7
.L8:
	movl	$10, %edi
	addq	$4, %rbp
	addq	$4, %r13
	call	putchar@PLT
	cmpq	%r14, %rbp
	jne	.L4
.L3:
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$8040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	movl	$35, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jge	.L6
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	testl	%eax, %eax
	jle	.L9
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L12:
	testb	$1, %bl
	jne	.L10
.L29:
	movl	$35, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jl	.L9
	testb	$1, %bl
	je	.L29
.L10:
	movl	$46, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jge	.L12
	jmp	.L9
.L28:
	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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$3944, %rsp
	.cfi_def_cfa_offset 8096
	movl	$1, %ebx
	leaq	.LC0(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	4016(%rsp), %rax
	leaq	20(%rsp), %r13
	movq	%rax, 8(%rsp)
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rax
	movq	%rbp, %r15
	movq	%rbp, %rsi
	movq	%r14, %rdi
	movl	%ebx, %r12d
	addq	$4, %rbp
	leaq	(%rax,%rbx,4), %rdx
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movl	(%r15), %edx
	testl	%edx, %edx
	jne	.L2
	cmpl	$1, %r12d
	je	.L3
	leal	-2(%r12), %eax
	leaq	4020(%rsp), %rbp
	leaq	4024(%rsp,%rax,4), %r14
	.p2align 4,,10
	.p2align 3
.L4:
	movl	0(%r13), %eax
	movl	$1, %r12d
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movl	0(%rbp), %eax
	testb	$1, %r12b
	je	.L5
	movl	$1, %ebx
	testl	%eax, %eax
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	testb	$1, %bl
	jne	.L13
	movl	$46, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	0(%rbp), %ebx
	jle	.L6
.L9:
	movl	$10, %edi
	addl	$1, %r12d
	call	putchar@PLT
	cmpl	%r12d, 0(%r13)
	jge	.L7
.L8:
	movl	$10, %edi
	addq	$4, %rbp
	addq	$4, %r13
	call	putchar@PLT
	cmpq	%r14, %rbp
	jne	.L4
.L3:
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$8040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	movl	$35, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jge	.L6
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	testl	%eax, %eax
	jle	.L9
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L12:
	testb	$1, %bl
	jne	.L10
.L29:
	movl	$35, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jl	.L9
	testb	$1, %bl
	je	.L29
.L10:
	movl	$46, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jge	.L12
	jmp	.L9
.L28:
	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:
```
```c
#include <stdio.h>

int main(void){
    int c, i, l, k;
    int H[1000],W[1000];
    for(c = 1; ; c++ ){
        scanf("%d %d", &H[c], &W[c]);
        if(H[c] == 0)   break;
    }
    c--;
    for(k = 1; k <= c; k++ ){
        for(i = 1; i <= H[k]; i++ ){
            if(i % 2 == 0){
                for(l = 1; l <= W[k]; l++ ){
                    if(l % 2 == 0){
                        printf("#");
                    } else {
                        printf(".");
                    }
                }
            } else {
                for(l = 1; l <= W[k]; l++ ){
                    if(l % 2 == 0){
                        printf(".");
                    } else {
                        printf("#");
                    }
                }
            }
            printf("\n");
        }
        printf("\n");
    }
    return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void){
    int c, i, l, k;
    int H[1000],W[1000];
    for(c = 1; ; c++ ){
        scanf("%d %d", &H[c], &W[c]);
        if(H[c] == 0)   break;
    }
    c--;
    for(k = 1; k <= c; k++ ){
        for(i = 1; i <= H[k]; i++ ){
            if(i % 2 == 0){
                for(l = 1; l <= W[k]; l++ ){
                    if(l % 2 == 0){
                        printf("#");
                    } else {
                        printf(".");
                    }
                }
            } else {
                for(l = 1; l <= W[k]; l++ ){
                    if(l % 2 == 0){
                        printf(".");
                    } else {
                        printf("#");
                    }
                }
            }
            printf("\n");
        }
        printf("\n");
    }
    return 0;
}
```

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.
Optimized Assembly Code:

3 4
5 6
3 3
2 2
1 0
0 0
 3 7
5 6
3 3
2 2
1 0
0 0
 3 7
5 6
3 0
2 2
1 0
0 0
 6 7
5 6
3 0
2 2
1 0
0 0
 6 11
5 6
3 0
2 2
1 0
0 0
 3 4
5 6
2 3
2 2
1 1
0 0
 3 4
5 6
3 3
2 4
1 0
0 0
 3 7
5 6
4 3
2 2
1 0
0 0
 3 7
5 5
3 0
2 2
1 0
0 0
 6 7
5 6
3 0
0 2
1 0
0 0

#.#.
.#.#
#.#.

#.#.#.
.#.#.#
#.#.#.
.#.#.#
#.#.#.

#.#
.#.
#.#

#.
.#



 #.#.#.#
.#.#.#.
#.#.#.#

#.#.#.
.#.#.#
#.#.#.
.#.#.#
#.#.#.

#.#
.#.
#.#

#.
.#



 #.#.#.#
.#.#.#.
#.#.#.#

#.#.#.
.#.#.#
#.#.#.
.#.#.#
#.#.#.





#.
.#



 #.#.#.#
.#.#.#.
#.#.#.#
.#.#.#.
#.#.#.#
.#.#.#.

#.#.#.
.#.#.#
#.#.#.
.#.#.#
#.#.#.





#.
.#



 #.#.#.#.#.#
.#.#.#.#.#.
#.#.#.#.#.#
.#.#.#.#.#.
#.#.#.#.#.#
.#.#.#.#.#.

#.#.#.
.#.#.#
#.#.#.
.#.#.#
#.#.#.





#.
.#



 #.#.
.#.#
#.#.

#.#.#.
.#.#.#
#.#.#.
.#.#.#
#.#.#.

#.#
.#.

#.
.#

#

 #.#.
.#.#
#.#.

#.#.#.
.#.#.#
#.#.#.
.#.#.#
#.#.#.

#.#
.#.
#.#

#.#.
.#.#



 #.#.#.#
.#.#.#.
#.#.#.#

#.#.#.
.#.#.#
#.#.#.
.#.#.#
#.#.#.

#.#
.#.
#.#
.#.

#.
.#



 #.#.#.#
.#.#.#.
#.#.#.#

#.#.#
.#.#.
#.#.#
.#.#.
#.#.#





#.
.#



 #.#.#.#
.#.#.#.
#.#.#.#
.#.#.#.
#.#.#.#
.#.#.#.

#.#.#.
.#.#.#
#.#.#.
.#.#.#
#.#.#.






Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>

int main(void){
    int c, i, l, k;
    int H[1000],W[1000];
    for(c = 1; ; c++ ){
        scanf("%d %d", &H[c], &W[c]);
        if(H[c] == 0)   break;
    }
    c--;
    for(k = 1; k <= c; k++ ){
        for(i = 1; i <= H[k]; i++ ){
            if(i % 2 == 0){
                for(l = 1; l <= W[k]; l++ ){
                    if(l % 2 == 0){
                        printf("#");
                    } else {
                        printf(".");
                    }
                }
            } else {
                for(l = 1; l <= W[k]; l++ ){
                    if(l % 2 == 0){
                        printf(".");
                    } else {
                        printf("#");
                    }
                }
            }
            printf("\n");
        }
        printf("\n");
    }
    return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$3944, %rsp
	.cfi_def_cfa_offset 8096
	movl	$1, %ebx
	leaq	.LC0(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	4016(%rsp), %rax
	leaq	20(%rsp), %r13
	movq	%rax, 8(%rsp)
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rax
	movq	%rbp, %r15
	movq	%rbp, %rsi
	movq	%r14, %rdi
	movl	%ebx, %r12d
	addq	$4, %rbp
	leaq	(%rax,%rbx,4), %rdx
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movl	(%r15), %edx
	testl	%edx, %edx
	jne	.L2
	cmpl	$1, %r12d
	je	.L3
	leal	-2(%r12), %eax
	leaq	4020(%rsp), %rbp
	leaq	4024(%rsp,%rax,4), %r14
	.p2align 4,,10
	.p2align 3
.L4:
	movl	0(%r13), %eax
	movl	$1, %r12d
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movl	0(%rbp), %eax
	testb	$1, %r12b
	je	.L5
	movl	$1, %ebx
	testl	%eax, %eax
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	testb	$1, %bl
	jne	.L13
	movl	$46, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	0(%rbp), %ebx
	jle	.L6
.L9:
	movl	$10, %edi
	addl	$1, %r12d
	call	putchar@PLT
	cmpl	%r12d, 0(%r13)
	jge	.L7
.L8:
	movl	$10, %edi
	addq	$4, %rbp
	addq	$4, %r13
	call	putchar@PLT
	cmpq	%r14, %rbp
	jne	.L4
.L3:
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$8040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	movl	$35, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jge	.L6
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	testl	%eax, %eax
	jle	.L9
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L12:
	testb	$1, %bl
	jne	.L10
.L29:
	movl	$35, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jl	.L9
	testb	$1, %bl
	je	.L29
.L10:
	movl	$46, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jge	.L12
	jmp	.L9
.L28:
	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:
```

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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$4096, %rsp
	.cfi_def_cfa_offset 4152
	orq	$0, (%rsp)
	subq	$3944, %rsp
	.cfi_def_cfa_offset 8096
	movl	$1, %ebx
	leaq	.LC0(%rip), %r14
	movq	%fs:40, %rax
	movq	%rax, 8024(%rsp)
	xorl	%eax, %eax
	leaq	4016(%rsp), %rax
	leaq	20(%rsp), %r13
	movq	%rax, 8(%rsp)
	movq	%r13, %rbp
	.p2align 4,,10
	.p2align 3
.L2:
	movq	8(%rsp), %rax
	movq	%rbp, %r15
	movq	%rbp, %rsi
	movq	%r14, %rdi
	movl	%ebx, %r12d
	addq	$4, %rbp
	leaq	(%rax,%rbx,4), %rdx
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movl	(%r15), %edx
	testl	%edx, %edx
	jne	.L2
	cmpl	$1, %r12d
	je	.L3
	leal	-2(%r12), %eax
	leaq	4020(%rsp), %rbp
	leaq	4024(%rsp,%rax,4), %r14
	.p2align 4,,10
	.p2align 3
.L4:
	movl	0(%r13), %eax
	movl	$1, %r12d
	testl	%eax, %eax
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	movl	0(%rbp), %eax
	testb	$1, %r12b
	je	.L5
	movl	$1, %ebx
	testl	%eax, %eax
	jle	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	testb	$1, %bl
	jne	.L13
	movl	$46, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	0(%rbp), %ebx
	jle	.L6
.L9:
	movl	$10, %edi
	addl	$1, %r12d
	call	putchar@PLT
	cmpl	%r12d, 0(%r13)
	jge	.L7
.L8:
	movl	$10, %edi
	addq	$4, %rbp
	addq	$4, %r13
	call	putchar@PLT
	cmpq	%r14, %rbp
	jne	.L4
.L3:
	movq	8024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L28
	addq	$8040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	movl	$35, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jge	.L6
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	testl	%eax, %eax
	jle	.L9
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L12:
	testb	$1, %bl
	jne	.L10
.L29:
	movl	$35, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jl	.L9
	testb	$1, %bl
	je	.L29
.L10:
	movl	$46, %edi
	addl	$1, %ebx
	call	putchar@PLT
	cmpl	%ebx, 0(%rbp)
	jge	.L12
	jmp	.L9
.L28:
	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:
```