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>
#include<string.h>
#define MAX(x,y) (((x)>(y))?(x):(y))

int count(int x,int y){
	int i,c=0;
	for(i=0;i<16;i++)if(((x>>i)&1)==1 && ((y>>i)&1)==1)c++;
	return c;
}
int dp[32][(1<<16)+1];
int a[33],b[33];
int main(){
	int i,j,n,c,k,f,cb;
	int ans;
	while(1){
		scanf("%d%d",&n,&c);
		if(n==0 && c==0)break;
		
		for(i=0;i<n;i++){
			a[i]=0;
			for(j=0;j<16;j++){
				scanf("%d",&f);
				a[i]|=(1<<j)*f;
			}
		}
		for(i=0;i<c;i++){
			b[i]=0;
			for(j=0;j<16;j++){
				scanf("%d",&f);
				b[i]|=(1<<j)*f;
			}
		}

		b[c]=0;c++;
		for(i=0;i<n+1;i++)for(j=0;j<(1<<16);j++)dp[i][j]=-1;
		
		dp[0][0]=0;
		for(i=0;i<n;i++){
			for(j=0;j<(1<<16);j++){
				if(dp[i][j]<0)continue;
				cb=j|a[i];
				for(k=0;k<c;k++){
                    dp[i+1][cb&(~b[k])]
						=MAX(dp[i+1][cb&(~b[k])],dp[i][j]+count(cb,b[k]));
				}
			}
		}

		ans=0;
		for(j=0;j<(1<<16);j++)ans=MAX(ans,dp[n][j]);
		printf("%d\n",ans);

	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	count
	.type	count, @function
count:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L2
.L4:
	movl	-8(%rbp), %eax
	movl	-20(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L3
	movl	-8(%rbp), %eax
	movl	-24(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L3
	addl	$1, -4(%rbp)
.L3:
	addl	$1, -8(%rbp)
.L2:
	cmpl	$15, -8(%rbp)
	jle	.L4
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	count, .-count
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 8388736
dp:
	.zero	8388736
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 132
a:
	.zero	132
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 132
b:
	.zero	132
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
.L33:
	leaq	-52(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jne	.L7
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	je	.L37
.L7:
	movl	$0, -44(%rbp)
	jmp	.L9
.L12:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	$0, -40(%rbp)
	jmp	.L10
.L11:
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-48(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	orl	%eax, %esi
	movl	%esi, %ecx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -40(%rbp)
.L10:
	cmpl	$15, -40(%rbp)
	jle	.L11
	addl	$1, -44(%rbp)
.L9:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L12
	movl	$0, -44(%rbp)
	jmp	.L13
.L16:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	$0, -40(%rbp)
	jmp	.L14
.L15:
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-48(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	orl	%eax, %esi
	movl	%esi, %ecx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -40(%rbp)
.L14:
	cmpl	$15, -40(%rbp)
	jle	.L15
	addl	$1, -44(%rbp)
.L13:
	movl	-52(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L16
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-52(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -52(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L17
.L20:
	movl	$0, -40(%rbp)
	jmp	.L18
.L19:
	movl	-40(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -40(%rbp)
.L18:
	cmpl	$65535, -40(%rbp)
	jle	.L19
	addl	$1, -44(%rbp)
.L17:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jle	.L20
	movl	$0, dp(%rip)
	movl	$0, -44(%rbp)
	jmp	.L21
.L30:
	movl	$0, -40(%rbp)
	jmp	.L22
.L29:
	movl	-40(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L38
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	orl	-40(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	$0, -36(%rbp)
	jmp	.L25
.L28:
	movl	-44(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	notl	%eax
	andl	-28(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %ebx
	movl	-40(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %r12d
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	count
	addl	%r12d, %eax
	cmpl	%eax, %ebx
	jle	.L26
	movl	-44(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	notl	%eax
	andl	-28(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %edx
	jmp	.L27
.L26:
	movl	-40(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %ebx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	count
	leal	(%rbx,%rax), %edx
.L27:
	movl	-44(%rbp), %eax
	leal	1(%rax), %esi
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rax
	movl	(%rcx,%rax), %eax
	notl	%eax
	andl	-28(%rbp), %eax
	movslq	%eax, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$16, %rax
	addq	%rcx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -36(%rbp)
.L25:
	movl	-52(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L28
	jmp	.L24
.L38:
	nop
.L24:
	addl	$1, -40(%rbp)
.L22:
	cmpl	$65535, -40(%rbp)
	jle	.L29
	addl	$1, -44(%rbp)
.L21:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L30
	movl	$0, -32(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L31
.L32:
	movl	-56(%rbp), %eax
	movl	-40(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-32(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -32(%rbp)
	addl	$1, -40(%rbp)
.L31:
	cmpl	$65535, -40(%rbp)
	jle	.L32
	movl	-32(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L33
.L37:
	nop
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.p2align 4
	.globl	count
	.type	count, @function
count:
.LFB35:
	.cfi_startproc
	endbr64
	movl	%esi, %ecx
	movl	%edi, %r8d
	movl	%edi, %eax
	movl	%esi, %edx
	andl	$1, %ecx
	andl	$1, %r8d
	cmovne	%ecx, %r8d
	testb	$2, %al
	je	.L3
	movl	%esi, %ecx
	sarl	%ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L3:
	testb	$4, %al
	je	.L4
	movl	%edx, %ecx
	sarl	$2, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L4:
	testb	$8, %al
	je	.L5
	movl	%edx, %ecx
	sarl	$3, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L5:
	testb	$16, %al
	je	.L6
	movl	%edx, %ecx
	sarl	$4, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L6:
	testb	$32, %al
	je	.L7
	movl	%edx, %ecx
	sarl	$5, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L7:
	testb	$64, %al
	je	.L8
	movl	%edx, %ecx
	sarl	$6, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L8:
	testb	$-128, %al
	je	.L9
	movl	%edx, %ecx
	sarl	$7, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L9:
	testb	$1, %ah
	je	.L10
	movl	%edx, %ecx
	sarl	$8, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L10:
	testb	$2, %ah
	je	.L11
	movl	%edx, %ecx
	sarl	$9, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L11:
	testb	$4, %ah
	je	.L12
	movl	%edx, %ecx
	sarl	$10, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L12:
	testb	$8, %ah
	je	.L13
	movl	%edx, %ecx
	sarl	$11, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L13:
	testb	$16, %ah
	je	.L14
	movl	%edx, %ecx
	sarl	$12, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L14:
	testb	$32, %ah
	je	.L15
	movl	%edx, %ecx
	sarl	$13, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L15:
	testb	$64, %ah
	je	.L16
	movl	%edx, %ecx
	sarl	$14, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L16:
	testb	$-128, %ah
	je	.L1
	sarl	$15, %edx
	andl	$1, %edx
	cmpl	$1, %edx
	sbbl	$-1, %r8d
.L1:
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE35:
	.size	count, .-count
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	dp(%rip), %r15
	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	$168, %rsp
	.cfi_def_cfa_offset 224
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	144(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	140(%rsp), %rax
	movq	%rax, 112(%rsp)
.L152:
	movq	120(%rsp), %rdx
	movq	112(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	140(%rsp), %r12d
	testl	%r12d, %r12d
	jne	.L97
	movl	144(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L317
	leaq	148(%rsp), %r14
	leaq	.LC1(%rip), %r13
	jle	.L318
.L102:
	leaq	b(%rip), %rax
	xorl	%r12d, %r12d
	movq	%rax, 72(%rsp)
	movq	%rax, %rbp
.L107:
	movl	$0, 0(%rbp)
	xorl	%ebx, %ebx
.L106:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	148(%rsp), %eax
	movl	%ebx, %ecx
	addl	$1, %ebx
	sall	%cl, %eax
	orl	%eax, 0(%rbp)
	cmpl	$16, %ebx
	jne	.L106
	movl	144(%rsp), %ebx
	addl	$1, %r12d
	addq	$4, %rbp
	cmpl	%r12d, %ebx
	jg	.L107
	movl	140(%rsp), %r12d
.L103:
	movq	72(%rsp), %rdi
	movslq	%ebx, %rax
	movl	$0, (%rdi,%rax,4)
	leal	1(%rbx), %eax
	movl	%eax, 84(%rsp)
	movl	%eax, 144(%rsp)
	testl	%r12d, %r12d
	jns	.L108
.L109:
	movl	$0, dp(%rip)
	movslq	%r12d, %rax
	movq	%rax, 96(%rsp)
.L150:
	movq	96(%rsp), %rbx
	pxor	%xmm1, %xmm1
	movq	%rbx, %rax
	salq	$16, %rax
	addq	%rbx, %rax
	leaq	(%r15,%rax,4), %rax
	leaq	262144(%rax), %rdx
.L151:
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	movdqa	%xmm0, %xmm2
	pcmpgtd	%xmm1, %xmm2
	pand	%xmm2, %xmm0
	pandn	%xmm1, %xmm2
	movdqa	%xmm2, %xmm1
	por	%xmm0, %xmm1
	cmpq	%rax, %rdx
	jne	.L151
	movdqa	%xmm1, %xmm2
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	psrldq	$8, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movd	%xmm0, %edx
	call	__printf_chk@PLT
	jmp	.L152
.L318:
	leaq	b(%rip), %rax
	movq	%rax, %rdi
	movq	%rax, 72(%rsp)
	movslq	%ebx, %rax
	movl	$0, (%rdi,%rax,4)
	leal	1(%rbx), %eax
	movl	%eax, 84(%rsp)
	movl	%eax, 144(%rsp)
.L108:
	movslq	%r12d, %rdi
	leaq	dp(%rip), %rcx
	movq	%rdi, %rax
	movq	%rdi, 96(%rsp)
	leaq	262148(%rcx), %rdx
	salq	$16, %rax
	addq	%rdi, %rax
	leaq	(%rdx,%rax,4), %rbp
.L112:
	movq	%rcx, %rdi
	movl	$262144, %edx
	movl	$255, %esi
	call	memset@PLT
	movq	%rax, %rcx
	addq	$262148, %rcx
	cmpq	%rcx, %rbp
	jne	.L112
	movl	$0, dp(%rip)
	testl	%r12d, %r12d
	jle	.L150
	leaq	dp(%rip), %rax
	movl	%ebx, %ebx
	xorl	%r10d, %r10d
	movq	$1, 64(%rsp)
	movq	%rax, 88(%rsp)
	leal	1(%r12), %eax
	movq	%rax, 104(%rsp)
	movq	72(%rsp), %rax
	leaq	(%rax,%rbx,4), %rax
	movq	88(%rsp), %rbx
	movq	%rax, 56(%rsp)
.L111:
	movslq	64(%rsp), %rax
	movl	$0, 80(%rsp)
	movq	%rax, %rdx
	salq	$16, %rdx
	leaq	(%rdx,%rax), %r11
	.p2align 4,,10
	.p2align 3
.L149:
	testl	%r10d, %r10d
	js	.L114
	movq	64(%rsp), %rdi
	leaq	-4+a(%rip), %rax
	movl	80(%rsp), %r9d
	orl	(%rax,%rdi,4), %r9d
	movl	84(%rsp), %eax
	testl	%eax, %eax
	jle	.L114
	movl	%r9d, %eax
	movl	%r9d, %r13d
	movl	%r9d, %r12d
	movl	%r9d, %ebp
	sarl	%r13d
	andl	$1, %eax
	sarl	$2, %r12d
	movq	72(%rsp), %rdi
	movl	%eax, 52(%rsp)
	movl	%r9d, %eax
	sarl	$3, %ebp
	andl	$1, %r13d
	sarl	$4, %eax
	andl	$1, %r12d
	andl	$1, %ebp
	andl	$1, %eax
	movl	%eax, 4(%rsp)
	movl	%r9d, %eax
	sarl	$5, %eax
	andl	$1, %eax
	movl	%eax, 8(%rsp)
	movl	%r9d, %eax
	sarl	$6, %eax
	andl	$1, %eax
	movl	%eax, 12(%rsp)
	movl	%r9d, %eax
	sarl	$7, %eax
	andl	$1, %eax
	movl	%eax, 16(%rsp)
	movl	%r9d, %eax
	sarl	$8, %eax
	andl	$1, %eax
	movl	%eax, 20(%rsp)
	movl	%r9d, %eax
	sarl	$9, %eax
	andl	$1, %eax
	movl	%eax, 24(%rsp)
	movl	%r9d, %eax
	sarl	$10, %eax
	andl	$1, %eax
	movl	%eax, 28(%rsp)
	movl	%r9d, %eax
	sarl	$11, %eax
	andl	$1, %eax
	movl	%eax, 32(%rsp)
	movl	%r9d, %eax
	sarl	$12, %eax
	andl	$1, %eax
	movl	%eax, 36(%rsp)
	movl	%r9d, %eax
	sarl	$13, %eax
	andl	$1, %eax
	movl	%eax, 40(%rsp)
	movl	%r9d, %eax
	sarl	$14, %eax
	andl	$1, %eax
	movl	%eax, 44(%rsp)
	movl	%r9d, %eax
	sarl	$15, %eax
	andl	$1, %eax
	movl	%eax, 48(%rsp)
	jmp	.L147
	.p2align 4,,10
	.p2align 3
.L131:
	addq	%r11, %rcx
	movl	%r8d, (%r15,%rcx,4)
	cmpq	%rdi, 56(%rsp)
	je	.L114
.L319:
	movl	(%rbx), %r10d
	addq	$4, %rdi
.L147:
	movl	(%rdi), %edx
	movl	52(%rsp), %r14d
	movl	%edx, %ecx
	movl	%edx, %esi
	notl	%ecx
	andl	$1, %esi
	andl	%r9d, %ecx
	movslq	%ecx, %rcx
	leaq	(%r11,%rcx), %rax
	movl	(%r15,%rax,4), %r8d
	xorl	%eax, %eax
	testl	%r14d, %r14d
	cmove	%eax, %esi
	movl	%esi, %eax
	testl	%r13d, %r13d
	je	.L116
	movl	%edx, %eax
	andl	$2, %eax
	cmpl	$1, %eax
	movl	%esi, %eax
	sbbl	$-1, %eax
.L116:
	testl	%r12d, %r12d
	je	.L117
	movl	%edx, %r14d
	andl	$4, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L117:
	testl	%ebp, %ebp
	je	.L118
	movl	%edx, %r14d
	andl	$8, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L118:
	movl	4(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L119
	movl	%edx, %r14d
	andl	$16, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L119:
	movl	8(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L120
	movl	%edx, %r14d
	andl	$32, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L120:
	movl	12(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L121
	movl	%edx, %r14d
	andl	$64, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L121:
	movl	16(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L122
	movl	%edx, %r14d
	andl	$128, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L122:
	movl	20(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L123
	movl	%edx, %r14d
	andl	$256, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L123:
	movl	24(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L124
	movl	%edx, %r14d
	andl	$512, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L124:
	movl	28(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L125
	movl	%edx, %r14d
	andl	$1024, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L125:
	movl	32(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L126
	movl	%edx, %r14d
	andl	$2048, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L126:
	movl	36(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L127
	movl	%edx, %r14d
	andl	$4096, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L127:
	movl	40(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L128
	movl	%edx, %r14d
	andl	$8192, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L128:
	movl	44(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L129
	movl	%edx, %r14d
	andl	$16384, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L129:
	movl	48(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L130
	movl	%edx, %r14d
	andl	$32768, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L130:
	addl	%r10d, %eax
	cmpl	%eax, %r8d
	jg	.L131
	testl	%r13d, %r13d
	je	.L132
	movl	%edx, %eax
	andl	$2, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L132:
	testl	%r12d, %r12d
	je	.L133
	movl	%edx, %eax
	andl	$4, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L133:
	testl	%ebp, %ebp
	je	.L134
	movl	%edx, %eax
	andl	$8, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L134:
	movl	4(%rsp), %eax
	testl	%eax, %eax
	je	.L135
	movl	%edx, %eax
	andl	$16, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L135:
	movl	8(%rsp), %eax
	testl	%eax, %eax
	je	.L136
	movl	%edx, %eax
	andl	$32, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L136:
	movl	12(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L137
	movl	%edx, %eax
	andl	$64, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L137:
	movl	16(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L138
	movl	%edx, %eax
	andl	$128, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L138:
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L139
	movl	%edx, %eax
	andl	$256, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L139:
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L140
	movl	%edx, %eax
	andl	$512, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L140:
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L141
	movl	%edx, %eax
	andl	$1024, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L141:
	movl	32(%rsp), %eax
	testl	%eax, %eax
	je	.L142
	movl	%edx, %eax
	andl	$2048, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L142:
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L143
	movl	%edx, %eax
	andl	$4096, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L143:
	movl	40(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L144
	movl	%edx, %eax
	andl	$8192, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L144:
	movl	44(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L145
	movl	%edx, %eax
	andl	$16384, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L145:
	movl	48(%rsp), %eax
	testl	%eax, %eax
	je	.L146
	andl	$32768, %edx
	cmpl	$1, %edx
	sbbl	$-1, %esi
.L146:
	leal	(%r10,%rsi), %r8d
	addq	%r11, %rcx
	movl	%r8d, (%r15,%rcx,4)
	cmpq	%rdi, 56(%rsp)
	jne	.L319
	.p2align 4,,10
	.p2align 3
.L114:
	addl	$1, 80(%rsp)
	movl	80(%rsp), %eax
	addq	$4, %rbx
	cmpl	$65536, %eax
	je	.L148
	movl	(%rbx), %r10d
	jmp	.L149
.L148:
	addq	$1, 64(%rsp)
	movq	64(%rsp), %rax
	addq	$262148, 88(%rsp)
	movq	88(%rsp), %rbx
	cmpq	%rax, 104(%rsp)
	je	.L150
	movl	(%rbx), %r10d
	jmp	.L111
.L317:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L320
	addq	$168, %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
.L97:
	.cfi_restore_state
	jle	.L321
	movl	$0, 4(%rsp)
	leaq	a(%rip), %rbp
	leaq	148(%rsp), %r14
	leaq	.LC1(%rip), %r13
.L101:
	movl	$0, 0(%rbp)
	xorl	%ebx, %ebx
.L100:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	148(%rsp), %eax
	movl	%ebx, %ecx
	addl	$1, %ebx
	sall	%cl, %eax
	orl	%eax, 0(%rbp)
	cmpl	$16, %ebx
	jne	.L100
	addl	$1, 4(%rsp)
	movl	140(%rsp), %r12d
	addq	$4, %rbp
	movl	4(%rsp), %eax
	cmpl	%eax, %r12d
	jg	.L101
	movl	144(%rsp), %ebx
	testl	%ebx, %ebx
	jg	.L102
	leaq	b(%rip), %rax
	movq	%rax, 72(%rsp)
	jmp	.L103
.L320:
	call	__stack_chk_fail@PLT
.L321:
	movl	144(%rsp), %eax
	testl	%eax, %eax
	jle	.L105
	leaq	148(%rsp), %r14
	leaq	.LC1(%rip), %r13
	jmp	.L102
.L105:
	movslq	%eax, %rdx
	leaq	b(%rip), %rbx
	addl	$1, %eax
	movl	$0, (%rbx,%rdx,4)
	movl	%eax, 144(%rsp)
	jmp	.L109
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 132
b:
	.zero	132
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 132
a:
	.zero	132
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 8388736
dp:
	.zero	8388736
	.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
	.p2align 4
	.globl	count
	.type	count, @function
count:
.LFB35:
	.cfi_startproc
	endbr64
	movl	%esi, %ecx
	movl	%edi, %r8d
	movl	%edi, %eax
	movl	%esi, %edx
	andl	$1, %ecx
	andl	$1, %r8d
	cmovne	%ecx, %r8d
	testb	$2, %al
	je	.L3
	movl	%esi, %ecx
	sarl	%ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L3:
	testb	$4, %al
	je	.L4
	movl	%edx, %ecx
	sarl	$2, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L4:
	testb	$8, %al
	je	.L5
	movl	%edx, %ecx
	sarl	$3, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L5:
	testb	$16, %al
	je	.L6
	movl	%edx, %ecx
	sarl	$4, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L6:
	testb	$32, %al
	je	.L7
	movl	%edx, %ecx
	sarl	$5, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L7:
	testb	$64, %al
	je	.L8
	movl	%edx, %ecx
	sarl	$6, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L8:
	testb	$-128, %al
	je	.L9
	movl	%edx, %ecx
	sarl	$7, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L9:
	testb	$1, %ah
	je	.L10
	movl	%edx, %ecx
	sarl	$8, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L10:
	testb	$2, %ah
	je	.L11
	movl	%edx, %ecx
	sarl	$9, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L11:
	testb	$4, %ah
	je	.L12
	movl	%edx, %ecx
	sarl	$10, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L12:
	testb	$8, %ah
	je	.L13
	movl	%edx, %ecx
	sarl	$11, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L13:
	testb	$16, %ah
	je	.L14
	movl	%edx, %ecx
	sarl	$12, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L14:
	testb	$32, %ah
	je	.L15
	movl	%edx, %ecx
	sarl	$13, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L15:
	testb	$64, %ah
	je	.L16
	movl	%edx, %ecx
	sarl	$14, %ecx
	andl	$1, %ecx
	cmpl	$1, %ecx
	sbbl	$-1, %r8d
.L16:
	testb	$-128, %ah
	je	.L1
	sarl	$15, %edx
	andl	$1, %edx
	cmpl	$1, %edx
	sbbl	$-1, %r8d
.L1:
	movl	%r8d, %eax
	ret
	.cfi_endproc
.LFE35:
	.size	count, .-count
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB36:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	dp(%rip), %r15
	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	$168, %rsp
	.cfi_def_cfa_offset 224
	movq	%fs:40, %rax
	movq	%rax, 152(%rsp)
	xorl	%eax, %eax
	leaq	144(%rsp), %rax
	movq	%rax, 120(%rsp)
	leaq	140(%rsp), %rax
	movq	%rax, 112(%rsp)
.L152:
	movq	120(%rsp), %rdx
	movq	112(%rsp), %rsi
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	140(%rsp), %r12d
	testl	%r12d, %r12d
	jne	.L97
	movl	144(%rsp), %ebx
	testl	%ebx, %ebx
	je	.L317
	leaq	148(%rsp), %r14
	leaq	.LC1(%rip), %r13
	jle	.L318
.L102:
	leaq	b(%rip), %rax
	xorl	%r12d, %r12d
	movq	%rax, 72(%rsp)
	movq	%rax, %rbp
.L107:
	movl	$0, 0(%rbp)
	xorl	%ebx, %ebx
.L106:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	148(%rsp), %eax
	movl	%ebx, %ecx
	addl	$1, %ebx
	sall	%cl, %eax
	orl	%eax, 0(%rbp)
	cmpl	$16, %ebx
	jne	.L106
	movl	144(%rsp), %ebx
	addl	$1, %r12d
	addq	$4, %rbp
	cmpl	%r12d, %ebx
	jg	.L107
	movl	140(%rsp), %r12d
.L103:
	movq	72(%rsp), %rdi
	movslq	%ebx, %rax
	movl	$0, (%rdi,%rax,4)
	leal	1(%rbx), %eax
	movl	%eax, 84(%rsp)
	movl	%eax, 144(%rsp)
	testl	%r12d, %r12d
	jns	.L108
.L109:
	movl	$0, dp(%rip)
	movslq	%r12d, %rax
	movq	%rax, 96(%rsp)
.L150:
	movq	96(%rsp), %rbx
	pxor	%xmm1, %xmm1
	movq	%rbx, %rax
	salq	$16, %rax
	addq	%rbx, %rax
	leaq	(%r15,%rax,4), %rax
	leaq	262144(%rax), %rdx
.L151:
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	movdqa	%xmm0, %xmm2
	pcmpgtd	%xmm1, %xmm2
	pand	%xmm2, %xmm0
	pandn	%xmm1, %xmm2
	movdqa	%xmm2, %xmm1
	por	%xmm0, %xmm1
	cmpq	%rax, %rdx
	jne	.L151
	movdqa	%xmm1, %xmm2
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	psrldq	$8, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	movdqa	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movdqa	%xmm1, %xmm2
	psrldq	$4, %xmm2
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm1, %xmm0
	pand	%xmm0, %xmm2
	pandn	%xmm1, %xmm0
	por	%xmm2, %xmm0
	movd	%xmm0, %edx
	call	__printf_chk@PLT
	jmp	.L152
.L318:
	leaq	b(%rip), %rax
	movq	%rax, %rdi
	movq	%rax, 72(%rsp)
	movslq	%ebx, %rax
	movl	$0, (%rdi,%rax,4)
	leal	1(%rbx), %eax
	movl	%eax, 84(%rsp)
	movl	%eax, 144(%rsp)
.L108:
	movslq	%r12d, %rdi
	leaq	dp(%rip), %rcx
	movq	%rdi, %rax
	movq	%rdi, 96(%rsp)
	leaq	262148(%rcx), %rdx
	salq	$16, %rax
	addq	%rdi, %rax
	leaq	(%rdx,%rax,4), %rbp
.L112:
	movq	%rcx, %rdi
	movl	$262144, %edx
	movl	$255, %esi
	call	memset@PLT
	movq	%rax, %rcx
	addq	$262148, %rcx
	cmpq	%rcx, %rbp
	jne	.L112
	movl	$0, dp(%rip)
	testl	%r12d, %r12d
	jle	.L150
	leaq	dp(%rip), %rax
	movl	%ebx, %ebx
	xorl	%r10d, %r10d
	movq	$1, 64(%rsp)
	movq	%rax, 88(%rsp)
	leal	1(%r12), %eax
	movq	%rax, 104(%rsp)
	movq	72(%rsp), %rax
	leaq	(%rax,%rbx,4), %rax
	movq	88(%rsp), %rbx
	movq	%rax, 56(%rsp)
.L111:
	movslq	64(%rsp), %rax
	movl	$0, 80(%rsp)
	movq	%rax, %rdx
	salq	$16, %rdx
	leaq	(%rdx,%rax), %r11
	.p2align 4,,10
	.p2align 3
.L149:
	testl	%r10d, %r10d
	js	.L114
	movq	64(%rsp), %rdi
	leaq	-4+a(%rip), %rax
	movl	80(%rsp), %r9d
	orl	(%rax,%rdi,4), %r9d
	movl	84(%rsp), %eax
	testl	%eax, %eax
	jle	.L114
	movl	%r9d, %eax
	movl	%r9d, %r13d
	movl	%r9d, %r12d
	movl	%r9d, %ebp
	sarl	%r13d
	andl	$1, %eax
	sarl	$2, %r12d
	movq	72(%rsp), %rdi
	movl	%eax, 52(%rsp)
	movl	%r9d, %eax
	sarl	$3, %ebp
	andl	$1, %r13d
	sarl	$4, %eax
	andl	$1, %r12d
	andl	$1, %ebp
	andl	$1, %eax
	movl	%eax, 4(%rsp)
	movl	%r9d, %eax
	sarl	$5, %eax
	andl	$1, %eax
	movl	%eax, 8(%rsp)
	movl	%r9d, %eax
	sarl	$6, %eax
	andl	$1, %eax
	movl	%eax, 12(%rsp)
	movl	%r9d, %eax
	sarl	$7, %eax
	andl	$1, %eax
	movl	%eax, 16(%rsp)
	movl	%r9d, %eax
	sarl	$8, %eax
	andl	$1, %eax
	movl	%eax, 20(%rsp)
	movl	%r9d, %eax
	sarl	$9, %eax
	andl	$1, %eax
	movl	%eax, 24(%rsp)
	movl	%r9d, %eax
	sarl	$10, %eax
	andl	$1, %eax
	movl	%eax, 28(%rsp)
	movl	%r9d, %eax
	sarl	$11, %eax
	andl	$1, %eax
	movl	%eax, 32(%rsp)
	movl	%r9d, %eax
	sarl	$12, %eax
	andl	$1, %eax
	movl	%eax, 36(%rsp)
	movl	%r9d, %eax
	sarl	$13, %eax
	andl	$1, %eax
	movl	%eax, 40(%rsp)
	movl	%r9d, %eax
	sarl	$14, %eax
	andl	$1, %eax
	movl	%eax, 44(%rsp)
	movl	%r9d, %eax
	sarl	$15, %eax
	andl	$1, %eax
	movl	%eax, 48(%rsp)
	jmp	.L147
	.p2align 4,,10
	.p2align 3
.L131:
	addq	%r11, %rcx
	movl	%r8d, (%r15,%rcx,4)
	cmpq	%rdi, 56(%rsp)
	je	.L114
.L319:
	movl	(%rbx), %r10d
	addq	$4, %rdi
.L147:
	movl	(%rdi), %edx
	movl	52(%rsp), %r14d
	movl	%edx, %ecx
	movl	%edx, %esi
	notl	%ecx
	andl	$1, %esi
	andl	%r9d, %ecx
	movslq	%ecx, %rcx
	leaq	(%r11,%rcx), %rax
	movl	(%r15,%rax,4), %r8d
	xorl	%eax, %eax
	testl	%r14d, %r14d
	cmove	%eax, %esi
	movl	%esi, %eax
	testl	%r13d, %r13d
	je	.L116
	movl	%edx, %eax
	andl	$2, %eax
	cmpl	$1, %eax
	movl	%esi, %eax
	sbbl	$-1, %eax
.L116:
	testl	%r12d, %r12d
	je	.L117
	movl	%edx, %r14d
	andl	$4, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L117:
	testl	%ebp, %ebp
	je	.L118
	movl	%edx, %r14d
	andl	$8, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L118:
	movl	4(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L119
	movl	%edx, %r14d
	andl	$16, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L119:
	movl	8(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L120
	movl	%edx, %r14d
	andl	$32, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L120:
	movl	12(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L121
	movl	%edx, %r14d
	andl	$64, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L121:
	movl	16(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L122
	movl	%edx, %r14d
	andl	$128, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L122:
	movl	20(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L123
	movl	%edx, %r14d
	andl	$256, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L123:
	movl	24(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L124
	movl	%edx, %r14d
	andl	$512, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L124:
	movl	28(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L125
	movl	%edx, %r14d
	andl	$1024, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L125:
	movl	32(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L126
	movl	%edx, %r14d
	andl	$2048, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L126:
	movl	36(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L127
	movl	%edx, %r14d
	andl	$4096, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L127:
	movl	40(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L128
	movl	%edx, %r14d
	andl	$8192, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L128:
	movl	44(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L129
	movl	%edx, %r14d
	andl	$16384, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L129:
	movl	48(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L130
	movl	%edx, %r14d
	andl	$32768, %r14d
	cmpl	$1, %r14d
	sbbl	$-1, %eax
.L130:
	addl	%r10d, %eax
	cmpl	%eax, %r8d
	jg	.L131
	testl	%r13d, %r13d
	je	.L132
	movl	%edx, %eax
	andl	$2, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L132:
	testl	%r12d, %r12d
	je	.L133
	movl	%edx, %eax
	andl	$4, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L133:
	testl	%ebp, %ebp
	je	.L134
	movl	%edx, %eax
	andl	$8, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L134:
	movl	4(%rsp), %eax
	testl	%eax, %eax
	je	.L135
	movl	%edx, %eax
	andl	$16, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L135:
	movl	8(%rsp), %eax
	testl	%eax, %eax
	je	.L136
	movl	%edx, %eax
	andl	$32, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L136:
	movl	12(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L137
	movl	%edx, %eax
	andl	$64, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L137:
	movl	16(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L138
	movl	%edx, %eax
	andl	$128, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L138:
	movl	20(%rsp), %eax
	testl	%eax, %eax
	je	.L139
	movl	%edx, %eax
	andl	$256, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L139:
	movl	24(%rsp), %eax
	testl	%eax, %eax
	je	.L140
	movl	%edx, %eax
	andl	$512, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L140:
	movl	28(%rsp), %eax
	testl	%eax, %eax
	je	.L141
	movl	%edx, %eax
	andl	$1024, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L141:
	movl	32(%rsp), %eax
	testl	%eax, %eax
	je	.L142
	movl	%edx, %eax
	andl	$2048, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L142:
	movl	36(%rsp), %eax
	testl	%eax, %eax
	je	.L143
	movl	%edx, %eax
	andl	$4096, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L143:
	movl	40(%rsp), %r14d
	testl	%r14d, %r14d
	je	.L144
	movl	%edx, %eax
	andl	$8192, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L144:
	movl	44(%rsp), %r8d
	testl	%r8d, %r8d
	je	.L145
	movl	%edx, %eax
	andl	$16384, %eax
	cmpl	$1, %eax
	sbbl	$-1, %esi
.L145:
	movl	48(%rsp), %eax
	testl	%eax, %eax
	je	.L146
	andl	$32768, %edx
	cmpl	$1, %edx
	sbbl	$-1, %esi
.L146:
	leal	(%r10,%rsi), %r8d
	addq	%r11, %rcx
	movl	%r8d, (%r15,%rcx,4)
	cmpq	%rdi, 56(%rsp)
	jne	.L319
	.p2align 4,,10
	.p2align 3
.L114:
	addl	$1, 80(%rsp)
	movl	80(%rsp), %eax
	addq	$4, %rbx
	cmpl	$65536, %eax
	je	.L148
	movl	(%rbx), %r10d
	jmp	.L149
.L148:
	addq	$1, 64(%rsp)
	movq	64(%rsp), %rax
	addq	$262148, 88(%rsp)
	movq	88(%rsp), %rbx
	cmpq	%rax, 104(%rsp)
	je	.L150
	movl	(%rbx), %r10d
	jmp	.L111
.L317:
	movq	152(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L320
	addq	$168, %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
.L97:
	.cfi_restore_state
	jle	.L321
	movl	$0, 4(%rsp)
	leaq	a(%rip), %rbp
	leaq	148(%rsp), %r14
	leaq	.LC1(%rip), %r13
.L101:
	movl	$0, 0(%rbp)
	xorl	%ebx, %ebx
.L100:
	movq	%r14, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	148(%rsp), %eax
	movl	%ebx, %ecx
	addl	$1, %ebx
	sall	%cl, %eax
	orl	%eax, 0(%rbp)
	cmpl	$16, %ebx
	jne	.L100
	addl	$1, 4(%rsp)
	movl	140(%rsp), %r12d
	addq	$4, %rbp
	movl	4(%rsp), %eax
	cmpl	%eax, %r12d
	jg	.L101
	movl	144(%rsp), %ebx
	testl	%ebx, %ebx
	jg	.L102
	leaq	b(%rip), %rax
	movq	%rax, 72(%rsp)
	jmp	.L103
.L320:
	call	__stack_chk_fail@PLT
.L321:
	movl	144(%rsp), %eax
	testl	%eax, %eax
	jle	.L105
	leaq	148(%rsp), %r14
	leaq	.LC1(%rip), %r13
	jmp	.L102
.L105:
	movslq	%eax, %rdx
	leaq	b(%rip), %rbx
	addl	$1, %eax
	movl	$0, (%rbx,%rdx,4)
	movl	%eax, 144(%rsp)
	jmp	.L109
	.cfi_endproc
.LFE36:
	.size	main, .-main
	.globl	b
	.bss
	.align 32
	.type	b, @object
	.size	b, 132
b:
	.zero	132
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 132
a:
	.zero	132
	.globl	dp
	.align 32
	.type	dp, @object
	.size	dp, 8388736
dp:
	.zero	8388736
	.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>
#include<string.h>
#define MAX(x,y) (((x)>(y))?(x):(y))

int count(int x,int y){
	int i,c=0;
	for(i=0;i<16;i++)if(((x>>i)&1)==1 && ((y>>i)&1)==1)c++;
	return c;
}
int dp[32][(1<<16)+1];
int a[33],b[33];
int main(){
	int i,j,n,c,k,f,cb;
	int ans;
	while(1){
		scanf("%d%d",&n,&c);
		if(n==0 && c==0)break;
		
		for(i=0;i<n;i++){
			a[i]=0;
			for(j=0;j<16;j++){
				scanf("%d",&f);
				a[i]|=(1<<j)*f;
			}
		}
		for(i=0;i<c;i++){
			b[i]=0;
			for(j=0;j<16;j++){
				scanf("%d",&f);
				b[i]|=(1<<j)*f;
			}
		}

		b[c]=0;c++;
		for(i=0;i<n+1;i++)for(j=0;j<(1<<16);j++)dp[i][j]=-1;
		
		dp[0][0]=0;
		for(i=0;i<n;i++){
			for(j=0;j<(1<<16);j++){
				if(dp[i][j]<0)continue;
				cb=j|a[i];
				for(k=0;k<c;k++){
                    dp[i+1][cb&(~b[k])]
						=MAX(dp[i+1][cb&(~b[k])],dp[i][j]+count(cb,b[k]));
				}
			}
		}

		ans=0;
		for(j=0;j<(1<<16);j++)ans=MAX(ans,dp[n][j]);
		printf("%d\n",ans);

	}
	return 0;
}
2 2
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
2 2
0 0 1 0 1 1 1 1 0 0 1 0 0 0 1 0
0 1 0 1 0 1 1 1 0 1 0 1 0 0 0 0
0 0 1 0 1 0 0 0 0 0 1 0 0 0 1 0
0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0
5 3
0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0
1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1
0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0
0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0
0 1 1 0 0 0 0 0 0 0 0 0 1 1 1 0
0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
0 0
 2 2
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
2 2
0 0 1 0 1 1 1 1 0 0 1 0 0 0 1 0
0 1 0 1 0 1 1 1 0 1 0 1 0 0 0 1
0 0 1 0 1 0 0 0 0 0 1 0 0 0 1 0
0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0
5 3
0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0
1 0 0 1 0 1 1 0 0 1 1 0 0 0 0 1
0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0
0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0
0 1 1 0 0 0 0 0 0 0 0 0 1 1 1 0
0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
0 0
 2 2
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
2 2
0 0 1 0 1 1 1 1 0 0 1 0 0 0 1 0
0 1 0 1 0 1 1 1 0 1 0 1 0 0 0 1
0 0 1 0 1 0 0 0 0 0 1 0 0 0 1 0
0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0
5 3
0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0
1 0 0 0 0 1 1 0 0 1 1 0 0 0 0 1
0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0
0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0
0 1 1 0 0 0 0 0 0 0 0 0 1 1 1 0
0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
0 0
 2 2
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
2 2
0 0 1 0 1 1 1 1 0 0 1 0 0 0 1 0
0 1 0 1 0 1 1 1 0 1 0 1 0 0 0 1
0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0
0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0
5 3
0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0
1 0 0 1 0 1 1 0 0 1 1 0 0 0 0 1
0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0
0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0
0 1 1 0 0 0 0 0 0 0 0 0 1 1 1 0
0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
0 0
 2 2
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
2 2
0 0 0 0 1 1 1 1 0 0 1 0 0 0 1 0
0 1 0 1 0 1 1 1 0 1 0 1 0 0 0 1
0 0 1 0 1 0 0 0 0 0 1 0 0 0 1 0
0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0
5 3
0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0
1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1
0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0
0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0
0 1 1 0 0 0 0 0 0 0 0 0 1 1 1 0
0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
0 0
 2 2
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
2 2
0 0 1 0 1 1 1 1 0 0 1 0 0 0 1 0
0 1 0 1 0 1 1 1 0 1 0 1 0 0 0 1
0 0 1 0 1 0 0 0 0 0 1 0 0 0 1 0
0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0
5 3
0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0
1 0 0 0 0 1 1 0 0 1 1 0 0 0 0 1
0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0
0 0 0 0 1 1 0 0 1 0 0 0 0 0 1 0
0 1 1 0 0 0 0 0 0 0 0 0 1 1 1 0
0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
0 0
 2 2
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
0 1 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
2 2
0 0 1 0 1 1 1 1 0 0 1 0 0 0 1 0
0 1 0 1 0 1 1 1 0 1 0 1 0 0 1 1
0 0 1 0 1 1 0 0 0 0 1 0 0 0 1 0
0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0
5 3
0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0
1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1
0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0
0 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0
0 1 1 0 0 0 0 0 0 0 0 0 1 1 1 0
0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
0 0
 2 2
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
2 2
0 0 1 0 1 1 1 1 0 0 1 0 0 0 1 0
0 1 0 1 0 1 1 1 0 1 0 1 0 1 0 1
0 0 1 0 1 0 0 0 0 0 1 0 0 0 1 0
0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0
5 3
0 0 0 0 0 1 1 0 1 1 1 0 0 0 0 0
1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1
0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0
0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0
0 1 1 0 0 0 0 0 0 0 0 0 1 1 1 0
0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
0 0 0 1 0 0 0 1 0 1 0 1 0 0 0 1
0 0
 2 2
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
2 2
0 0 1 0 1 1 1 1 0 0 1 0 0 0 1 0
0 1 0 1 0 1 1 1 0 1 0 1 0 0 0 1
0 0 1 0 1 0 0 0 0 0 1 1 0 0 1 0
0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0
5 3
0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0
1 0 0 0 0 1 1 0 0 1 1 0 0 0 0 1
0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0
0 0 0 0 1 1 0 0 1 0 0 0 0 0 1 0
0 1 1 0 0 0 0 0 0 0 0 0 1 1 1 0
0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
0 0
 2 2
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
0 1 0 1 0 0 0 1 0 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
2 2
0 0 1 0 1 1 1 1 0 0 1 0 0 0 1 0
0 1 0 1 0 1 1 1 0 1 0 1 0 0 1 1
0 0 1 0 1 1 0 0 0 0 1 1 0 0 1 0
0 0 0 0 0 1 1 1 0 0 0 0 0 0 0 0
5 3
0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0
1 0 0 1 0 1 1 0 0 1 1 0 1 0 0 1
0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0
0 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0
0 1 1 0 0 0 0 0 0 0 0 0 1 1 1 0
0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0
1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0
0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1
0 0

8
7
17
 8
7
16
 8
7
15
 8
6
16
 8
6
17
 7
7
16
 8
8
17
 8
7
18
 8
8
16
 8
9
17

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>
#include<string.h>
#define MAX(x,y) (((x)>(y))?(x):(y))

int count(int x,int y){
	int i,c=0;
	for(i=0;i<16;i++)if(((x>>i)&1)==1 && ((y>>i)&1)==1)c++;
	return c;
}
int dp[32][(1<<16)+1];
int a[33],b[33];
int main(){
	int i,j,n,c,k,f,cb;
	int ans;
	while(1){
		scanf("%d%d",&n,&c);
		if(n==0 && c==0)break;
		
		for(i=0;i<n;i++){
			a[i]=0;
			for(j=0;j<16;j++){
				scanf("%d",&f);
				a[i]|=(1<<j)*f;
			}
		}
		for(i=0;i<c;i++){
			b[i]=0;
			for(j=0;j<16;j++){
				scanf("%d",&f);
				b[i]|=(1<<j)*f;
			}
		}

		b[c]=0;c++;
		for(i=0;i<n+1;i++)for(j=0;j<(1<<16);j++)dp[i][j]=-1;
		
		dp[0][0]=0;
		for(i=0;i<n;i++){
			for(j=0;j<(1<<16);j++){
				if(dp[i][j]<0)continue;
				cb=j|a[i];
				for(k=0;k<c;k++){
                    dp[i+1][cb&(~b[k])]
						=MAX(dp[i+1][cb&(~b[k])],dp[i][j]+count(cb,b[k]));
				}
			}
		}

		ans=0;
		for(j=0;j<(1<<16);j++)ans=MAX(ans,dp[n][j]);
		printf("%d\n",ans);

	}
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	count
	.type	count, @function
count:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L2
.L4:
	movl	-8(%rbp), %eax
	movl	-20(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L3
	movl	-8(%rbp), %eax
	movl	-24(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L3
	addl	$1, -4(%rbp)
.L3:
	addl	$1, -8(%rbp)
.L2:
	cmpl	$15, -8(%rbp)
	jle	.L4
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	count, .-count
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 8388736
dp:
	.zero	8388736
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 132
a:
	.zero	132
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 132
b:
	.zero	132
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
.L33:
	leaq	-52(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jne	.L7
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	je	.L37
.L7:
	movl	$0, -44(%rbp)
	jmp	.L9
.L12:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	$0, -40(%rbp)
	jmp	.L10
.L11:
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-48(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	orl	%eax, %esi
	movl	%esi, %ecx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -40(%rbp)
.L10:
	cmpl	$15, -40(%rbp)
	jle	.L11
	addl	$1, -44(%rbp)
.L9:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L12
	movl	$0, -44(%rbp)
	jmp	.L13
.L16:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	$0, -40(%rbp)
	jmp	.L14
.L15:
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-48(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	orl	%eax, %esi
	movl	%esi, %ecx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -40(%rbp)
.L14:
	cmpl	$15, -40(%rbp)
	jle	.L15
	addl	$1, -44(%rbp)
.L13:
	movl	-52(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L16
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-52(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -52(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L17
.L20:
	movl	$0, -40(%rbp)
	jmp	.L18
.L19:
	movl	-40(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -40(%rbp)
.L18:
	cmpl	$65535, -40(%rbp)
	jle	.L19
	addl	$1, -44(%rbp)
.L17:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jle	.L20
	movl	$0, dp(%rip)
	movl	$0, -44(%rbp)
	jmp	.L21
.L30:
	movl	$0, -40(%rbp)
	jmp	.L22
.L29:
	movl	-40(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L38
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	orl	-40(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	$0, -36(%rbp)
	jmp	.L25
.L28:
	movl	-44(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	notl	%eax
	andl	-28(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %ebx
	movl	-40(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %r12d
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	count
	addl	%r12d, %eax
	cmpl	%eax, %ebx
	jle	.L26
	movl	-44(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	notl	%eax
	andl	-28(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %edx
	jmp	.L27
.L26:
	movl	-40(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %ebx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	count
	leal	(%rbx,%rax), %edx
.L27:
	movl	-44(%rbp), %eax
	leal	1(%rax), %esi
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rax
	movl	(%rcx,%rax), %eax
	notl	%eax
	andl	-28(%rbp), %eax
	movslq	%eax, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$16, %rax
	addq	%rcx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -36(%rbp)
.L25:
	movl	-52(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L28
	jmp	.L24
.L38:
	nop
.L24:
	addl	$1, -40(%rbp)
.L22:
	cmpl	$65535, -40(%rbp)
	jle	.L29
	addl	$1, -44(%rbp)
.L21:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L30
	movl	$0, -32(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L31
.L32:
	movl	-56(%rbp), %eax
	movl	-40(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-32(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -32(%rbp)
	addl	$1, -40(%rbp)
.L31:
	cmpl	$65535, -40(%rbp)
	jle	.L32
	movl	-32(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L33
.L37:
	nop
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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
	.globl	count
	.type	count, @function
count:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L2
.L4:
	movl	-8(%rbp), %eax
	movl	-20(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L3
	movl	-8(%rbp), %eax
	movl	-24(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L3
	addl	$1, -4(%rbp)
.L3:
	addl	$1, -8(%rbp)
.L2:
	cmpl	$15, -8(%rbp)
	jle	.L4
	movl	-4(%rbp), %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	count, .-count
	.globl	dp
	.bss
	.align 32
	.type	dp, @object
	.size	dp, 8388736
dp:
	.zero	8388736
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 132
a:
	.zero	132
	.globl	b
	.align 32
	.type	b, @object
	.size	b, 132
b:
	.zero	132
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
.L33:
	leaq	-52(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-56(%rbp), %eax
	testl	%eax, %eax
	jne	.L7
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	je	.L37
.L7:
	movl	$0, -44(%rbp)
	jmp	.L9
.L12:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	$0, -40(%rbp)
	jmp	.L10
.L11:
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-48(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	orl	%eax, %esi
	movl	%esi, %ecx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -40(%rbp)
.L10:
	cmpl	$15, -40(%rbp)
	jle	.L11
	addl	$1, -44(%rbp)
.L9:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L12
	movl	$0, -44(%rbp)
	jmp	.L13
.L16:
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	$0, -40(%rbp)
	jmp	.L14
.L15:
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %esi
	movl	-48(%rbp), %edx
	movl	-40(%rbp), %eax
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	orl	%eax, %esi
	movl	%esi, %ecx
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -40(%rbp)
.L14:
	cmpl	$15, -40(%rbp)
	jle	.L15
	addl	$1, -44(%rbp)
.L13:
	movl	-52(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L16
	movl	-52(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	$0, (%rdx,%rax)
	movl	-52(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -52(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L17
.L20:
	movl	$0, -40(%rbp)
	jmp	.L18
.L19:
	movl	-40(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	$-1, (%rdx,%rax)
	addl	$1, -40(%rbp)
.L18:
	cmpl	$65535, -40(%rbp)
	jle	.L19
	addl	$1, -44(%rbp)
.L17:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jle	.L20
	movl	$0, dp(%rip)
	movl	$0, -44(%rbp)
	jmp	.L21
.L30:
	movl	$0, -40(%rbp)
	jmp	.L22
.L29:
	movl	-40(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L38
	movl	-44(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	orl	-40(%rbp), %eax
	movl	%eax, -28(%rbp)
	movl	$0, -36(%rbp)
	jmp	.L25
.L28:
	movl	-44(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	notl	%eax
	andl	-28(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %ebx
	movl	-40(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %r12d
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	count
	addl	%r12d, %eax
	cmpl	%eax, %ebx
	jle	.L26
	movl	-44(%rbp), %eax
	leal	1(%rax), %ecx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %eax
	notl	%eax
	andl	-28(%rbp), %eax
	movslq	%eax, %rsi
	movslq	%ecx, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rsi, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %edx
	jmp	.L27
.L26:
	movl	-40(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %ebx
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	b(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-28(%rbp), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	count
	leal	(%rbx,%rax), %edx
.L27:
	movl	-44(%rbp), %eax
	leal	1(%rax), %esi
	movl	-36(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	b(%rip), %rax
	movl	(%rcx,%rax), %eax
	notl	%eax
	andl	-28(%rbp), %eax
	movslq	%eax, %rdi
	movslq	%esi, %rcx
	movq	%rcx, %rax
	salq	$16, %rax
	addq	%rcx, %rax
	addq	%rdi, %rax
	leaq	0(,%rax,4), %rcx
	leaq	dp(%rip), %rax
	movl	%edx, (%rcx,%rax)
	addl	$1, -36(%rbp)
.L25:
	movl	-52(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L28
	jmp	.L24
.L38:
	nop
.L24:
	addl	$1, -40(%rbp)
.L22:
	cmpl	$65535, -40(%rbp)
	jle	.L29
	addl	$1, -44(%rbp)
.L21:
	movl	-56(%rbp), %eax
	cmpl	%eax, -44(%rbp)
	jl	.L30
	movl	$0, -32(%rbp)
	movl	$0, -40(%rbp)
	jmp	.L31
.L32:
	movl	-56(%rbp), %eax
	movl	-40(%rbp), %edx
	movslq	%edx, %rcx
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$16, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	dp(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-32(%rbp), %edx
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, -32(%rbp)
	addl	$1, -40(%rbp)
.L31:
	cmpl	$65535, -40(%rbp)
	jle	.L32
	movl	-32(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L33
.L37:
	nop
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
