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(){
	unsigned int a,b;
	int ad,or,xr,x[32] = {0},y[32] = {0},i;
	
	scanf("%d %d",&a,&b);
	
	
	for(i = 0; a>0; i++){
		x[i] = a % 2;
		a = a / 2;
	}
	
	for(i = 0; b>0; i++){
		y[i] = b % 2;
		b = b / 2;
	}
	
	for(i=31;i>=0;i--){
		if(x[i]==1&&y[i]==1)printf("1");
		else printf("0");
	}
	printf("\n");
	
	
	for(i=31;i>=0;i--){
		if(x[i]==1||y[i]==1)printf("1");
		else printf("0");
	}
	printf("\n");
	
	
	for(i=31;i>=0;i--){
		if(x[i]==1&&y[i]==0||x[i]==0&&y[i]==1)printf("1");
		else printf("0");
	}
	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	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$16, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$288, %rsp
	.cfi_def_cfa_offset 320
	movq	%fs:40, %rax
	movq	%rax, 280(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rdx
	movq	%rbp, %rdi
	leaq	144(%rsp), %r12
	leaq	8(%rsp), %rsi
	rep stosq
	movl	$16, %ecx
	movq	%r12, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movq	%rbp, %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, %ecx
	addq	$4, %rdx
	andl	$1, %ecx
	movl	%ecx, -4(%rdx)
	shrl	%eax
	jne	.L3
	movl	$0, 8(%rsp)
.L2:
	movl	12(%rsp), %eax
	testl	%eax, %eax
	je	.L4
	movq	%r12, %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%eax, %ecx
	addq	$4, %rdx
	andl	$1, %ecx
	movl	%ecx, -4(%rdx)
	shrl	%eax
	jne	.L5
	movl	$0, 12(%rsp)
.L4:
	movl	$124, %ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$48, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	je	.L32
.L8:
	cmpl	$1, 0(%rbp,%rbx)
	jne	.L6
	cmpl	$1, (%r12,%rbx)
	jne	.L6
	movl	$49, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L32:
	movl	$10, %edi
	movl	$124, %ebx
	call	putchar@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	movl	$48, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	je	.L33
.L12:
	cmpl	$1, 0(%rbp,%rbx)
	je	.L9
	cmpl	$1, (%r12,%rbx)
	jne	.L10
.L9:
	movl	$49, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	jne	.L12
.L33:
	movl	$10, %edi
	leaq	140(%rsp), %rbx
	leaq	268(%rsp), %r12
	call	putchar@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	testl	%eax, %eax
	jne	.L15
	cmpl	$1, (%r12)
	je	.L14
.L15:
	movl	$48, %edi
	subq	$4, %r12
	call	putchar@PLT
	leaq	-4(%rbx), %rax
	cmpq	%rbp, %rbx
	je	.L34
.L19:
	movq	%rax, %rbx
.L17:
	movl	(%rbx), %eax
	cmpl	$1, %eax
	jne	.L13
	movl	(%r12), %eax
	testl	%eax, %eax
	jne	.L15
.L14:
	movl	$49, %edi
	subq	$4, %r12
	call	putchar@PLT
	leaq	-4(%rbx), %rax
	cmpq	%rbp, %rbx
	jne	.L19
.L34:
	movl	$10, %edi
	call	putchar@PLT
	movq	280(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$288, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L35:
	.cfi_restore_state
	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	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$16, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$288, %rsp
	.cfi_def_cfa_offset 320
	movq	%fs:40, %rax
	movq	%rax, 280(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rdx
	movq	%rbp, %rdi
	leaq	144(%rsp), %r12
	leaq	8(%rsp), %rsi
	rep stosq
	movl	$16, %ecx
	movq	%r12, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movq	%rbp, %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, %ecx
	addq	$4, %rdx
	andl	$1, %ecx
	movl	%ecx, -4(%rdx)
	shrl	%eax
	jne	.L3
	movl	$0, 8(%rsp)
.L2:
	movl	12(%rsp), %eax
	testl	%eax, %eax
	je	.L4
	movq	%r12, %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%eax, %ecx
	addq	$4, %rdx
	andl	$1, %ecx
	movl	%ecx, -4(%rdx)
	shrl	%eax
	jne	.L5
	movl	$0, 12(%rsp)
.L4:
	movl	$124, %ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$48, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	je	.L32
.L8:
	cmpl	$1, 0(%rbp,%rbx)
	jne	.L6
	cmpl	$1, (%r12,%rbx)
	jne	.L6
	movl	$49, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L32:
	movl	$10, %edi
	movl	$124, %ebx
	call	putchar@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	movl	$48, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	je	.L33
.L12:
	cmpl	$1, 0(%rbp,%rbx)
	je	.L9
	cmpl	$1, (%r12,%rbx)
	jne	.L10
.L9:
	movl	$49, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	jne	.L12
.L33:
	movl	$10, %edi
	leaq	140(%rsp), %rbx
	leaq	268(%rsp), %r12
	call	putchar@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	testl	%eax, %eax
	jne	.L15
	cmpl	$1, (%r12)
	je	.L14
.L15:
	movl	$48, %edi
	subq	$4, %r12
	call	putchar@PLT
	leaq	-4(%rbx), %rax
	cmpq	%rbp, %rbx
	je	.L34
.L19:
	movq	%rax, %rbx
.L17:
	movl	(%rbx), %eax
	cmpl	$1, %eax
	jne	.L13
	movl	(%r12), %eax
	testl	%eax, %eax
	jne	.L15
.L14:
	movl	$49, %edi
	subq	$4, %r12
	call	putchar@PLT
	leaq	-4(%rbx), %rax
	cmpq	%rbp, %rbx
	jne	.L19
.L34:
	movl	$10, %edi
	call	putchar@PLT
	movq	280(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$288, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L35:
	.cfi_restore_state
	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	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$16, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$288, %rsp
	.cfi_def_cfa_offset 320
	movq	%fs:40, %rax
	movq	%rax, 280(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rdx
	movq	%rbp, %rdi
	leaq	144(%rsp), %r12
	leaq	8(%rsp), %rsi
	rep stosq
	movl	$16, %ecx
	movq	%r12, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movq	%rbp, %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, %ecx
	addq	$4, %rdx
	andl	$1, %ecx
	movl	%ecx, -4(%rdx)
	shrl	%eax
	jne	.L3
	movl	$0, 8(%rsp)
.L2:
	movl	12(%rsp), %eax
	testl	%eax, %eax
	je	.L4
	movq	%r12, %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%eax, %ecx
	addq	$4, %rdx
	andl	$1, %ecx
	movl	%ecx, -4(%rdx)
	shrl	%eax
	jne	.L5
	movl	$0, 12(%rsp)
.L4:
	movl	$124, %ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$48, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	je	.L32
.L8:
	cmpl	$1, 0(%rbp,%rbx)
	jne	.L6
	cmpl	$1, (%r12,%rbx)
	jne	.L6
	movl	$49, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L32:
	movl	$10, %edi
	movl	$124, %ebx
	call	putchar@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	movl	$48, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	je	.L33
.L12:
	cmpl	$1, 0(%rbp,%rbx)
	je	.L9
	cmpl	$1, (%r12,%rbx)
	jne	.L10
.L9:
	movl	$49, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	jne	.L12
.L33:
	movl	$10, %edi
	leaq	140(%rsp), %rbx
	leaq	268(%rsp), %r12
	call	putchar@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	testl	%eax, %eax
	jne	.L15
	cmpl	$1, (%r12)
	je	.L14
.L15:
	movl	$48, %edi
	subq	$4, %r12
	call	putchar@PLT
	leaq	-4(%rbx), %rax
	cmpq	%rbp, %rbx
	je	.L34
.L19:
	movq	%rax, %rbx
.L17:
	movl	(%rbx), %eax
	cmpl	$1, %eax
	jne	.L13
	movl	(%r12), %eax
	testl	%eax, %eax
	jne	.L15
.L14:
	movl	$49, %edi
	subq	$4, %r12
	call	putchar@PLT
	leaq	-4(%rbx), %rax
	cmpq	%rbp, %rbx
	jne	.L19
.L34:
	movl	$10, %edi
	call	putchar@PLT
	movq	280(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$288, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L35:
	.cfi_restore_state
	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(){
	unsigned int a,b;
	int ad,or,xr,x[32] = {0},y[32] = {0},i;
	
	scanf("%d %d",&a,&b);
	
	
	for(i = 0; a>0; i++){
		x[i] = a % 2;
		a = a / 2;
	}
	
	for(i = 0; b>0; i++){
		y[i] = b % 2;
		b = b / 2;
	}
	
	for(i=31;i>=0;i--){
		if(x[i]==1&&y[i]==1)printf("1");
		else printf("0");
	}
	printf("\n");
	
	
	for(i=31;i>=0;i--){
		if(x[i]==1||y[i]==1)printf("1");
		else printf("0");
	}
	printf("\n");
	
	
	for(i=31;i>=0;i--){
		if(x[i]==1&&y[i]==0||x[i]==0&&y[i]==1)printf("1");
		else printf("0");
	}
	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(){
	unsigned int a,b;
	int ad,or,xr,x[32] = {0},y[32] = {0},i;
	
	scanf("%d %d",&a,&b);
	
	
	for(i = 0; a>0; i++){
		x[i] = a % 2;
		a = a / 2;
	}
	
	for(i = 0; b>0; i++){
		y[i] = b % 2;
		b = b / 2;
	}
	
	for(i=31;i>=0;i--){
		if(x[i]==1&&y[i]==1)printf("1");
		else printf("0");
	}
	printf("\n");
	
	
	for(i=31;i>=0;i--){
		if(x[i]==1||y[i]==1)printf("1");
		else printf("0");
	}
	printf("\n");
	
	
	for(i=31;i>=0;i--){
		if(x[i]==1&&y[i]==0||x[i]==0&&y[i]==1)printf("1");
		else printf("0");
	}
	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:

13 10
 20 10
 20 1
 15 1
 1 1
 2 1
 2 0
 1 0
 -1 1
 -1 2

00000000000000000000000000001000
00000000000000000000000000001111
00000000000000000000000000000111
 00000000000000000000000000000000
00000000000000000000000000011110
00000000000000000000000000011110
 00000000000000000000000000000000
00000000000000000000000000010101
00000000000000000000000000010101
 00000000000000000000000000000001
00000000000000000000000000001111
00000000000000000000000000001110
 00000000000000000000000000000001
00000000000000000000000000000001
00000000000000000000000000000000
 00000000000000000000000000000000
00000000000000000000000000000011
00000000000000000000000000000011
 00000000000000000000000000000000
00000000000000000000000000000010
00000000000000000000000000000010
 00000000000000000000000000000000
00000000000000000000000000000001
00000000000000000000000000000001
 00000000000000000000000000000001
11111111111111111111111111111111
11111111111111111111111111111110
 00000000000000000000000000000010
11111111111111111111111111111111
11111111111111111111111111111101

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(){
	unsigned int a,b;
	int ad,or,xr,x[32] = {0},y[32] = {0},i;
	
	scanf("%d %d",&a,&b);
	
	
	for(i = 0; a>0; i++){
		x[i] = a % 2;
		a = a / 2;
	}
	
	for(i = 0; b>0; i++){
		y[i] = b % 2;
		b = b / 2;
	}
	
	for(i=31;i>=0;i--){
		if(x[i]==1&&y[i]==1)printf("1");
		else printf("0");
	}
	printf("\n");
	
	
	for(i=31;i>=0;i--){
		if(x[i]==1||y[i]==1)printf("1");
		else printf("0");
	}
	printf("\n");
	
	
	for(i=31;i>=0;i--){
		if(x[i]==1&&y[i]==0||x[i]==0&&y[i]==1)printf("1");
		else printf("0");
	}
	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	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$16, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$288, %rsp
	.cfi_def_cfa_offset 320
	movq	%fs:40, %rax
	movq	%rax, 280(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rdx
	movq	%rbp, %rdi
	leaq	144(%rsp), %r12
	leaq	8(%rsp), %rsi
	rep stosq
	movl	$16, %ecx
	movq	%r12, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movq	%rbp, %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, %ecx
	addq	$4, %rdx
	andl	$1, %ecx
	movl	%ecx, -4(%rdx)
	shrl	%eax
	jne	.L3
	movl	$0, 8(%rsp)
.L2:
	movl	12(%rsp), %eax
	testl	%eax, %eax
	je	.L4
	movq	%r12, %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%eax, %ecx
	addq	$4, %rdx
	andl	$1, %ecx
	movl	%ecx, -4(%rdx)
	shrl	%eax
	jne	.L5
	movl	$0, 12(%rsp)
.L4:
	movl	$124, %ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$48, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	je	.L32
.L8:
	cmpl	$1, 0(%rbp,%rbx)
	jne	.L6
	cmpl	$1, (%r12,%rbx)
	jne	.L6
	movl	$49, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L32:
	movl	$10, %edi
	movl	$124, %ebx
	call	putchar@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	movl	$48, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	je	.L33
.L12:
	cmpl	$1, 0(%rbp,%rbx)
	je	.L9
	cmpl	$1, (%r12,%rbx)
	jne	.L10
.L9:
	movl	$49, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	jne	.L12
.L33:
	movl	$10, %edi
	leaq	140(%rsp), %rbx
	leaq	268(%rsp), %r12
	call	putchar@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	testl	%eax, %eax
	jne	.L15
	cmpl	$1, (%r12)
	je	.L14
.L15:
	movl	$48, %edi
	subq	$4, %r12
	call	putchar@PLT
	leaq	-4(%rbx), %rax
	cmpq	%rbp, %rbx
	je	.L34
.L19:
	movq	%rax, %rbx
.L17:
	movl	(%rbx), %eax
	cmpl	$1, %eax
	jne	.L13
	movl	(%r12), %eax
	testl	%eax, %eax
	jne	.L15
.L14:
	movl	$49, %edi
	subq	$4, %r12
	call	putchar@PLT
	leaq	-4(%rbx), %rax
	cmpq	%rbp, %rbx
	jne	.L19
.L34:
	movl	$10, %edi
	call	putchar@PLT
	movq	280(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$288, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L35:
	.cfi_restore_state
	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	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movl	$16, %ecx
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$288, %rsp
	.cfi_def_cfa_offset 320
	movq	%fs:40, %rax
	movq	%rax, 280(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rbp
	leaq	12(%rsp), %rdx
	movq	%rbp, %rdi
	leaq	144(%rsp), %r12
	leaq	8(%rsp), %rsi
	rep stosq
	movl	$16, %ecx
	movq	%r12, %rdi
	rep stosq
	leaq	.LC0(%rip), %rdi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	je	.L2
	movq	%rbp, %rdx
	.p2align 4,,10
	.p2align 3
.L3:
	movl	%eax, %ecx
	addq	$4, %rdx
	andl	$1, %ecx
	movl	%ecx, -4(%rdx)
	shrl	%eax
	jne	.L3
	movl	$0, 8(%rsp)
.L2:
	movl	12(%rsp), %eax
	testl	%eax, %eax
	je	.L4
	movq	%r12, %rdx
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%eax, %ecx
	addq	$4, %rdx
	andl	$1, %ecx
	movl	%ecx, -4(%rdx)
	shrl	%eax
	jne	.L5
	movl	$0, 12(%rsp)
.L4:
	movl	$124, %ebx
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	movl	$48, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	je	.L32
.L8:
	cmpl	$1, 0(%rbp,%rbx)
	jne	.L6
	cmpl	$1, (%r12,%rbx)
	jne	.L6
	movl	$49, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L32:
	movl	$10, %edi
	movl	$124, %ebx
	call	putchar@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L10:
	movl	$48, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	je	.L33
.L12:
	cmpl	$1, 0(%rbp,%rbx)
	je	.L9
	cmpl	$1, (%r12,%rbx)
	jne	.L10
.L9:
	movl	$49, %edi
	subq	$4, %rbx
	call	putchar@PLT
	cmpq	$-4, %rbx
	jne	.L12
.L33:
	movl	$10, %edi
	leaq	140(%rsp), %rbx
	leaq	268(%rsp), %r12
	call	putchar@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	testl	%eax, %eax
	jne	.L15
	cmpl	$1, (%r12)
	je	.L14
.L15:
	movl	$48, %edi
	subq	$4, %r12
	call	putchar@PLT
	leaq	-4(%rbx), %rax
	cmpq	%rbp, %rbx
	je	.L34
.L19:
	movq	%rax, %rbx
.L17:
	movl	(%rbx), %eax
	cmpl	$1, %eax
	jne	.L13
	movl	(%r12), %eax
	testl	%eax, %eax
	jne	.L15
.L14:
	movl	$49, %edi
	subq	$4, %r12
	call	putchar@PLT
	leaq	-4(%rbx), %rax
	cmpq	%rbp, %rbx
	jne	.L19
.L34:
	movl	$10, %edi
	call	putchar@PLT
	movq	280(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L35
	addq	$288, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
.L35:
	.cfi_restore_state
	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:
```