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

```c
char out[1<<20];outsz;
char ffs[]="0101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110111011101010111011101110101011101010111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111010101110101011101110111010101110111011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101";
main(N,M){
	scanf("%d%d",&N,&M);
	for(int i=1;i<1<<N;i++)
	{
		for(int j=1;j<1<<M;j++)
		{
			out[outsz++]=ffs[i|j];
		}
		out[outsz++]='\n';
	}
	write(1,out,outsz);
}```

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:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xorl	%eax, %eax
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %rdx
	leaq	.LC0(%rip), %rdi
	movl	%esi, 8(%rsp)
	leaq	12(%rsp), %rsi
	call	scanf@PLT
	movl	12(%rsp), %ecx
	movl	$1, %edi
	movl	outsz(%rip), %r9d
	movl	%edi, %r10d
	leaq	out(%rip), %r11
	sall	%cl, %r10d
	cmpl	$1, %r10d
	jle	.L3
	movl	8(%rsp), %ecx
	movl	outsz(%rip), %r9d
	movl	$1, %esi
	leaq	out(%rip), %r11
	leaq	ffs(%rip), %r8
	sall	%cl, %edi
	leal	-1(%rdi), %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	%r9d, %rcx
	movl	$1, %eax
	addq	%r11, %rcx
	cmpl	$1, %edi
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%esi, %edx
	addq	$1, %rcx
	orl	%eax, %edx
	addl	$1, %eax
	movslq	%edx, %rdx
	movzbl	(%r8,%rdx), %edx
	movb	%dl, -1(%rcx)
	cmpl	%edi, %eax
	jne	.L5
	leal	(%rbx,%r9), %eax
.L8:
	leal	1(%rax), %r9d
	addl	$1, %esi
	cltq
	movb	$10, (%r11,%rax)
	cmpl	%r10d, %esi
	jne	.L4
	movl	%r9d, outsz(%rip)
.L3:
	movl	%r9d, %edx
	movq	%r11, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	write@PLT
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movl	%r9d, %eax
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	ffs
	.data
	.align 32
	.type	ffs, @object
	.size	ffs, 1025
ffs:
	.ascii	"010111010101110111011101010111010101110101011101110111010101"
	.ascii	"110111011101010111011101110101011101010111010101110111011101"
	.ascii	"010111010101110101011101110111010101110101011101010111011101"
	.ascii	"110101011101110111010101110111011101010111010101110101011101"
	.ascii	"110111010101110111011101010111011101110101011101010111010101"
	.ascii	"110111011101010111011101110101011101110111010101110101011101"
	.ascii	"010111011101110101011101010111010101110111011101010111010101"
	.ascii	"110101011101110111010101110111011101010111011101110101011101"
	.ascii	"010111010101110111011101010111010101110101011101110111010101"
	.ascii	"110101011101010111011101110101011101110111010101110111011101"
	.ascii	"010111010101110101011101110111010101110101011101010111011101"
	.ascii	"110101011101010111010101110111011101010111011101110101011101"
	.ascii	"110111010101110101011101010111011101110101011101"
	.string	"1101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101"
	.globl	outsz
	.bss
	.align 4
	.type	outsz, @object
	.size	outsz, 4
outsz:
	.zero	4
	.globl	out
	.align 32
	.type	out, @object
	.size	out, 1048576
out:
	.zero	1048576
	.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:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xorl	%eax, %eax
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %rdx
	leaq	.LC0(%rip), %rdi
	movl	%esi, 8(%rsp)
	leaq	12(%rsp), %rsi
	call	scanf@PLT
	movl	12(%rsp), %ecx
	movl	$1, %edi
	movl	outsz(%rip), %r9d
	movl	%edi, %r10d
	leaq	out(%rip), %r11
	sall	%cl, %r10d
	cmpl	$1, %r10d
	jle	.L3
	movl	8(%rsp), %ecx
	movl	outsz(%rip), %r9d
	movl	$1, %esi
	leaq	out(%rip), %r11
	leaq	ffs(%rip), %r8
	sall	%cl, %edi
	leal	-1(%rdi), %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	%r9d, %rcx
	movl	$1, %eax
	addq	%r11, %rcx
	cmpl	$1, %edi
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%esi, %edx
	addq	$1, %rcx
	orl	%eax, %edx
	addl	$1, %eax
	movslq	%edx, %rdx
	movzbl	(%r8,%rdx), %edx
	movb	%dl, -1(%rcx)
	cmpl	%edi, %eax
	jne	.L5
	leal	(%rbx,%r9), %eax
.L8:
	leal	1(%rax), %r9d
	addl	$1, %esi
	cltq
	movb	$10, (%r11,%rax)
	cmpl	%r10d, %esi
	jne	.L4
	movl	%r9d, outsz(%rip)
.L3:
	movl	%r9d, %edx
	movq	%r11, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	write@PLT
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movl	%r9d, %eax
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	ffs
	.data
	.align 32
	.type	ffs, @object
	.size	ffs, 1025
ffs:
	.ascii	"010111010101110111011101010111010101110101011101110111010101"
	.ascii	"110111011101010111011101110101011101010111010101110111011101"
	.ascii	"010111010101110101011101110111010101110101011101010111011101"
	.ascii	"110101011101110111010101110111011101010111010101110101011101"
	.ascii	"110111010101110111011101010111011101110101011101010111010101"
	.ascii	"110111011101010111011101110101011101110111010101110101011101"
	.ascii	"010111011101110101011101010111010101110111011101010111010101"
	.ascii	"110101011101110111010101110111011101010111011101110101011101"
	.ascii	"010111010101110111011101010111010101110101011101110111010101"
	.ascii	"110101011101010111011101110101011101110111010101110111011101"
	.ascii	"010111010101110101011101110111010101110101011101010111011101"
	.ascii	"110101011101010111010101110111011101010111011101110101011101"
	.ascii	"110111010101110101011101010111011101110101011101"
	.string	"1101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101"
	.globl	outsz
	.bss
	.align 4
	.type	outsz, @object
	.size	outsz, 4
outsz:
	.zero	4
	.globl	out
	.align 32
	.type	out, @object
	.size	out, 1048576
out:
	.zero	1048576
	.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:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xorl	%eax, %eax
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %rdx
	leaq	.LC0(%rip), %rdi
	movl	%esi, 8(%rsp)
	leaq	12(%rsp), %rsi
	call	scanf@PLT
	movl	12(%rsp), %ecx
	movl	$1, %edi
	movl	outsz(%rip), %r9d
	movl	%edi, %r10d
	leaq	out(%rip), %r11
	sall	%cl, %r10d
	cmpl	$1, %r10d
	jle	.L3
	movl	8(%rsp), %ecx
	movl	outsz(%rip), %r9d
	movl	$1, %esi
	leaq	out(%rip), %r11
	leaq	ffs(%rip), %r8
	sall	%cl, %edi
	leal	-1(%rdi), %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	%r9d, %rcx
	movl	$1, %eax
	addq	%r11, %rcx
	cmpl	$1, %edi
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%esi, %edx
	addq	$1, %rcx
	orl	%eax, %edx
	addl	$1, %eax
	movslq	%edx, %rdx
	movzbl	(%r8,%rdx), %edx
	movb	%dl, -1(%rcx)
	cmpl	%edi, %eax
	jne	.L5
	leal	(%rbx,%r9), %eax
.L8:
	leal	1(%rax), %r9d
	addl	$1, %esi
	cltq
	movb	$10, (%r11,%rax)
	cmpl	%r10d, %esi
	jne	.L4
	movl	%r9d, outsz(%rip)
.L3:
	movl	%r9d, %edx
	movq	%r11, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	write@PLT
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movl	%r9d, %eax
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	ffs
	.data
	.align 32
	.type	ffs, @object
	.size	ffs, 1025
ffs:
	.ascii	"010111010101110111011101010111010101110101011101110111010101"
	.ascii	"110111011101010111011101110101011101010111010101110111011101"
	.ascii	"010111010101110101011101110111010101110101011101010111011101"
	.ascii	"110101011101110111010101110111011101010111010101110101011101"
	.ascii	"110111010101110111011101010111011101110101011101010111010101"
	.ascii	"110111011101010111011101110101011101110111010101110101011101"
	.ascii	"010111011101110101011101010111010101110111011101010111010101"
	.ascii	"110101011101110111010101110111011101010111011101110101011101"
	.ascii	"010111010101110111011101010111010101110101011101110111010101"
	.ascii	"110101011101010111011101110101011101110111010101110111011101"
	.ascii	"010111010101110101011101110111010101110101011101010111011101"
	.ascii	"110101011101010111010101110111011101010111011101110101011101"
	.ascii	"110111010101110101011101010111011101110101011101"
	.string	"1101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101"
	.globl	outsz
	.bss
	.align 4
	.type	outsz, @object
	.size	outsz, 4
outsz:
	.zero	4
	.globl	out
	.align 32
	.type	out, @object
	.size	out, 1048576
out:
	.zero	1048576
	.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
char out[1<<20];outsz;
char ffs[]="0101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110111011101010111011101110101011101010111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111010101110101011101110111010101110111011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101";
main(N,M){
	scanf("%d%d",&N,&M);
	for(int i=1;i<1<<N;i++)
	{
		for(int j=1;j<1<<M;j++)
		{
			out[outsz++]=ffs[i|j];
		}
		out[outsz++]='\n';
	}
	write(1,out,outsz);
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
char out[1<<20];outsz;
char ffs[]="0101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110111011101010111011101110101011101010111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111010101110101011101110111010101110111011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101";
main(N,M){
	scanf("%d%d",&N,&M);
	for(int i=1;i<1<<N;i++)
	{
		for(int j=1;j<1<<M;j++)
		{
			out[outsz++]=ffs[i|j];
		}
		out[outsz++]='\n';
	}
	write(1,out,outsz);
}```

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:

1 1
 2 2
 2 1
 3 2
 4 1
 3 3
 5 1
 1 3
 3 1
 2 3

1
 111
101
111
 1
1
1
 111
101
111
101
111
101
111
 1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
 1111111
1010101
1111111
1011101
1111111
1010101
1111111
 1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
 1111111
 1
1
1
1
1
1
1
 1111111
1010101
1111111

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

```c
char out[1<<20];outsz;
char ffs[]="0101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110111011101010111011101110101011101010111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111010101110101011101110111010101110111011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101";
main(N,M){
	scanf("%d%d",&N,&M);
	for(int i=1;i<1<<N;i++)
	{
		for(int j=1;j<1<<M;j++)
		{
			out[outsz++]=ffs[i|j];
		}
		out[outsz++]='\n';
	}
	write(1,out,outsz);
}```

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:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xorl	%eax, %eax
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %rdx
	leaq	.LC0(%rip), %rdi
	movl	%esi, 8(%rsp)
	leaq	12(%rsp), %rsi
	call	scanf@PLT
	movl	12(%rsp), %ecx
	movl	$1, %edi
	movl	outsz(%rip), %r9d
	movl	%edi, %r10d
	leaq	out(%rip), %r11
	sall	%cl, %r10d
	cmpl	$1, %r10d
	jle	.L3
	movl	8(%rsp), %ecx
	movl	outsz(%rip), %r9d
	movl	$1, %esi
	leaq	out(%rip), %r11
	leaq	ffs(%rip), %r8
	sall	%cl, %edi
	leal	-1(%rdi), %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	%r9d, %rcx
	movl	$1, %eax
	addq	%r11, %rcx
	cmpl	$1, %edi
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%esi, %edx
	addq	$1, %rcx
	orl	%eax, %edx
	addl	$1, %eax
	movslq	%edx, %rdx
	movzbl	(%r8,%rdx), %edx
	movb	%dl, -1(%rcx)
	cmpl	%edi, %eax
	jne	.L5
	leal	(%rbx,%r9), %eax
.L8:
	leal	1(%rax), %r9d
	addl	$1, %esi
	cltq
	movb	$10, (%r11,%rax)
	cmpl	%r10d, %esi
	jne	.L4
	movl	%r9d, outsz(%rip)
.L3:
	movl	%r9d, %edx
	movq	%r11, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	write@PLT
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movl	%r9d, %eax
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	ffs
	.data
	.align 32
	.type	ffs, @object
	.size	ffs, 1025
ffs:
	.ascii	"010111010101110111011101010111010101110101011101110111010101"
	.ascii	"110111011101010111011101110101011101010111010101110111011101"
	.ascii	"010111010101110101011101110111010101110101011101010111011101"
	.ascii	"110101011101110111010101110111011101010111010101110101011101"
	.ascii	"110111010101110111011101010111011101110101011101010111010101"
	.ascii	"110111011101010111011101110101011101110111010101110101011101"
	.ascii	"010111011101110101011101010111010101110111011101010111010101"
	.ascii	"110101011101110111010101110111011101010111011101110101011101"
	.ascii	"010111010101110111011101010111010101110101011101110111010101"
	.ascii	"110101011101010111011101110101011101110111010101110111011101"
	.ascii	"010111010101110101011101110111010101110101011101010111011101"
	.ascii	"110101011101010111010101110111011101010111011101110101011101"
	.ascii	"110111010101110101011101010111011101110101011101"
	.string	"1101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101"
	.globl	outsz
	.bss
	.align 4
	.type	outsz, @object
	.size	outsz, 4
outsz:
	.zero	4
	.globl	out
	.align 32
	.type	out, @object
	.size	out, 1048576
out:
	.zero	1048576
	.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:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xorl	%eax, %eax
	subq	$16, %rsp
	.cfi_def_cfa_offset 32
	movl	%edi, 12(%rsp)
	leaq	8(%rsp), %rdx
	leaq	.LC0(%rip), %rdi
	movl	%esi, 8(%rsp)
	leaq	12(%rsp), %rsi
	call	scanf@PLT
	movl	12(%rsp), %ecx
	movl	$1, %edi
	movl	outsz(%rip), %r9d
	movl	%edi, %r10d
	leaq	out(%rip), %r11
	sall	%cl, %r10d
	cmpl	$1, %r10d
	jle	.L3
	movl	8(%rsp), %ecx
	movl	outsz(%rip), %r9d
	movl	$1, %esi
	leaq	out(%rip), %r11
	leaq	ffs(%rip), %r8
	sall	%cl, %edi
	leal	-1(%rdi), %ebx
	.p2align 4,,10
	.p2align 3
.L4:
	movslq	%r9d, %rcx
	movl	$1, %eax
	addq	%r11, %rcx
	cmpl	$1, %edi
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L5:
	movl	%esi, %edx
	addq	$1, %rcx
	orl	%eax, %edx
	addl	$1, %eax
	movslq	%edx, %rdx
	movzbl	(%r8,%rdx), %edx
	movb	%dl, -1(%rcx)
	cmpl	%edi, %eax
	jne	.L5
	leal	(%rbx,%r9), %eax
.L8:
	leal	1(%rax), %r9d
	addl	$1, %esi
	cltq
	movb	$10, (%r11,%rax)
	cmpl	%r10d, %esi
	jne	.L4
	movl	%r9d, outsz(%rip)
.L3:
	movl	%r9d, %edx
	movq	%r11, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	write@PLT
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	movl	%r9d, %eax
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	ffs
	.data
	.align 32
	.type	ffs, @object
	.size	ffs, 1025
ffs:
	.ascii	"010111010101110111011101010111010101110101011101110111010101"
	.ascii	"110111011101010111011101110101011101010111010101110111011101"
	.ascii	"010111010101110101011101110111010101110101011101010111011101"
	.ascii	"110101011101110111010101110111011101010111010101110101011101"
	.ascii	"110111010101110111011101010111011101110101011101010111010101"
	.ascii	"110111011101010111011101110101011101110111010101110101011101"
	.ascii	"010111011101110101011101010111010101110111011101010111010101"
	.ascii	"110101011101110111010101110111011101010111011101110101011101"
	.ascii	"010111010101110111011101010111010101110101011101110111010101"
	.ascii	"110101011101010111011101110101011101110111010101110111011101"
	.ascii	"010111010101110101011101110111010101110101011101010111011101"
	.ascii	"110101011101010111010101110111011101010111011101110101011101"
	.ascii	"110111010101110101011101010111011101110101011101"
	.string	"1101110101011101110111010101110101011101010111011101110101011101110111010101110111011101010111010101110101011101110111010101110101011101010111011101110101011101010111010101110111011101010111011101110101011101110111010101110101011101010111011101110101011101"
	.globl	outsz
	.bss
	.align 4
	.type	outsz, @object
	.size	outsz, 4
outsz:
	.zero	4
	.globl	out
	.align 32
	.type	out, @object
	.size	out, 1048576
out:
	.zero	1048576
	.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:
```