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(){
	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;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
	.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	$288, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-272(%rbp), %rdx
	movl	$0, %eax
	movl	$16, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-144(%rbp), %rdx
	movl	$0, %eax
	movl	$16, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-280(%rbp), %rdx
	leaq	-284(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -276(%rbp)
	jmp	.L2
.L3:
	movl	-284(%rbp), %eax
	andl	$1, %eax
	movl	%eax, %edx
	movl	-276(%rbp), %eax
	cltq
	movl	%edx, -272(%rbp,%rax,4)
	movl	-284(%rbp), %eax
	shrl	%eax
	movl	%eax, -284(%rbp)
	addl	$1, -276(%rbp)
.L2:
	movl	-284(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	$0, -276(%rbp)
	jmp	.L4
.L5:
	movl	-280(%rbp), %eax
	andl	$1, %eax
	movl	%eax, %edx
	movl	-276(%rbp), %eax
	cltq
	movl	%edx, -144(%rbp,%rax,4)
	movl	-280(%rbp), %eax
	shrl	%eax
	movl	%eax, -280(%rbp)
	addl	$1, -276(%rbp)
.L4:
	movl	-280(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	movl	$31, -276(%rbp)
	jmp	.L6
.L9:
	movl	-276(%rbp), %eax
	cltq
	movl	-272(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L7
	movl	-276(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L7
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L8
.L7:
	movl	$48, %edi
	call	putchar@PLT
.L8:
	subl	$1, -276(%rbp)
.L6:
	cmpl	$0, -276(%rbp)
	jns	.L9
	movl	$10, %edi
	call	putchar@PLT
	movl	$31, -276(%rbp)
	jmp	.L10
.L14:
	movl	-276(%rbp), %eax
	cltq
	movl	-272(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L11
	movl	-276(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L12
.L11:
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L13
.L12:
	movl	$48, %edi
	call	putchar@PLT
.L13:
	subl	$1, -276(%rbp)
.L10:
	cmpl	$0, -276(%rbp)
	jns	.L14
	movl	$10, %edi
	call	putchar@PLT
	movl	$31, -276(%rbp)
	jmp	.L15
.L20:
	movl	-276(%rbp), %eax
	cltq
	movl	-272(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L16
	movl	-276(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L17
.L16:
	movl	-276(%rbp), %eax
	cltq
	movl	-272(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L18
	movl	-276(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L18
.L17:
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L19
.L18:
	movl	$48, %edi
	call	putchar@PLT
.L19:
	subl	$1, -276(%rbp)
.L15:
	cmpl	$0, -276(%rbp)
	jns	.L20
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	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"
	.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
	.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:

#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;
}


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 unoptimized 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;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d %d"
	.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	$288, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-272(%rbp), %rdx
	movl	$0, %eax
	movl	$16, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-144(%rbp), %rdx
	movl	$0, %eax
	movl	$16, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-280(%rbp), %rdx
	leaq	-284(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -276(%rbp)
	jmp	.L2
.L3:
	movl	-284(%rbp), %eax
	andl	$1, %eax
	movl	%eax, %edx
	movl	-276(%rbp), %eax
	cltq
	movl	%edx, -272(%rbp,%rax,4)
	movl	-284(%rbp), %eax
	shrl	%eax
	movl	%eax, -284(%rbp)
	addl	$1, -276(%rbp)
.L2:
	movl	-284(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	$0, -276(%rbp)
	jmp	.L4
.L5:
	movl	-280(%rbp), %eax
	andl	$1, %eax
	movl	%eax, %edx
	movl	-276(%rbp), %eax
	cltq
	movl	%edx, -144(%rbp,%rax,4)
	movl	-280(%rbp), %eax
	shrl	%eax
	movl	%eax, -280(%rbp)
	addl	$1, -276(%rbp)
.L4:
	movl	-280(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	movl	$31, -276(%rbp)
	jmp	.L6
.L9:
	movl	-276(%rbp), %eax
	cltq
	movl	-272(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L7
	movl	-276(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L7
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L8
.L7:
	movl	$48, %edi
	call	putchar@PLT
.L8:
	subl	$1, -276(%rbp)
.L6:
	cmpl	$0, -276(%rbp)
	jns	.L9
	movl	$10, %edi
	call	putchar@PLT
	movl	$31, -276(%rbp)
	jmp	.L10
.L14:
	movl	-276(%rbp), %eax
	cltq
	movl	-272(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L11
	movl	-276(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L12
.L11:
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L13
.L12:
	movl	$48, %edi
	call	putchar@PLT
.L13:
	subl	$1, -276(%rbp)
.L10:
	cmpl	$0, -276(%rbp)
	jns	.L14
	movl	$10, %edi
	call	putchar@PLT
	movl	$31, -276(%rbp)
	jmp	.L15
.L20:
	movl	-276(%rbp), %eax
	cltq
	movl	-272(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L16
	movl	-276(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L17
.L16:
	movl	-276(%rbp), %eax
	cltq
	movl	-272(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L18
	movl	-276(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L18
.L17:
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L19
.L18:
	movl	$48, %edi
	call	putchar@PLT
.L19:
	subl	$1, -276(%rbp)
.L15:
	cmpl	$0, -276(%rbp)
	jns	.L20
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	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"
	.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	$288, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-272(%rbp), %rdx
	movl	$0, %eax
	movl	$16, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-144(%rbp), %rdx
	movl	$0, %eax
	movl	$16, %ecx
	movq	%rdx, %rdi
	rep stosq
	leaq	-280(%rbp), %rdx
	leaq	-284(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -276(%rbp)
	jmp	.L2
.L3:
	movl	-284(%rbp), %eax
	andl	$1, %eax
	movl	%eax, %edx
	movl	-276(%rbp), %eax
	cltq
	movl	%edx, -272(%rbp,%rax,4)
	movl	-284(%rbp), %eax
	shrl	%eax
	movl	%eax, -284(%rbp)
	addl	$1, -276(%rbp)
.L2:
	movl	-284(%rbp), %eax
	testl	%eax, %eax
	jne	.L3
	movl	$0, -276(%rbp)
	jmp	.L4
.L5:
	movl	-280(%rbp), %eax
	andl	$1, %eax
	movl	%eax, %edx
	movl	-276(%rbp), %eax
	cltq
	movl	%edx, -144(%rbp,%rax,4)
	movl	-280(%rbp), %eax
	shrl	%eax
	movl	%eax, -280(%rbp)
	addl	$1, -276(%rbp)
.L4:
	movl	-280(%rbp), %eax
	testl	%eax, %eax
	jne	.L5
	movl	$31, -276(%rbp)
	jmp	.L6
.L9:
	movl	-276(%rbp), %eax
	cltq
	movl	-272(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L7
	movl	-276(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L7
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L8
.L7:
	movl	$48, %edi
	call	putchar@PLT
.L8:
	subl	$1, -276(%rbp)
.L6:
	cmpl	$0, -276(%rbp)
	jns	.L9
	movl	$10, %edi
	call	putchar@PLT
	movl	$31, -276(%rbp)
	jmp	.L10
.L14:
	movl	-276(%rbp), %eax
	cltq
	movl	-272(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	je	.L11
	movl	-276(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L12
.L11:
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L13
.L12:
	movl	$48, %edi
	call	putchar@PLT
.L13:
	subl	$1, -276(%rbp)
.L10:
	cmpl	$0, -276(%rbp)
	jns	.L14
	movl	$10, %edi
	call	putchar@PLT
	movl	$31, -276(%rbp)
	jmp	.L15
.L20:
	movl	-276(%rbp), %eax
	cltq
	movl	-272(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L16
	movl	-276(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %eax
	testl	%eax, %eax
	je	.L17
.L16:
	movl	-276(%rbp), %eax
	cltq
	movl	-272(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L18
	movl	-276(%rbp), %eax
	cltq
	movl	-144(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L18
.L17:
	movl	$49, %edi
	call	putchar@PLT
	jmp	.L19
.L18:
	movl	$48, %edi
	call	putchar@PLT
.L19:
	subl	$1, -276(%rbp)
.L15:
	cmpl	$0, -276(%rbp)
	jns	.L20
	movl	$10, %edi
	call	putchar@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	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:
