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>

long long int bit_counts[61];

int main (void) {
	int n, i, j;
	long long int a, res=0;
	
	scanf("%d\n", &n);
	
	for(i=0;i<n;i++)
	{
		scanf("%lld",&a);
		for(j=0;a;j++,a>>=1)
		{
			bit_counts[j]+=a&1;
		}
	}
	
	for(i=60;i>=0;i--)
	{
		res=res*2%1000000007LL+bit_counts[i]*(n-bit_counts[i])%1000000007LL;
		res%=1000000007LL;
	}
	
	printf("%lld\n", res);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	bit_counts
	.bss
	.align 32
	.type	bit_counts, @object
	.size	bit_counts, 488
bit_counts:
	.zero	488
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -16(%rbp)
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -32(%rbp)
	jmp	.L2
.L5:
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -28(%rbp)
	jmp	.L3
.L4:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	bit_counts(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-24(%rbp), %rax
	andl	$1, %eax
	leaq	(%rdx,%rax), %rcx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	bit_counts(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addl	$1, -28(%rbp)
	movq	-24(%rbp), %rax
	sarq	%rax
	movq	%rax, -24(%rbp)
.L3:
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	jne	.L4
	addl	$1, -32(%rbp)
.L2:
	movl	-36(%rbp), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L5
	movl	$60, -32(%rbp)
	jmp	.L6
.L7:
	movq	-16(%rbp), %rax
	leaq	(%rax,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%rcx, %rsi
	subq	%rax, %rsi
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	bit_counts(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	movl	-32(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,8), %rdi
	leaq	bit_counts(%rip), %rcx
	movq	(%rdi,%rcx), %rcx
	subq	%rcx, %rdx
	imulq	%rdx, %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	subl	$1, -32(%rbp)
.L6:
	cmpl	$0, -32(%rbp)
	jns	.L7
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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\n"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	bit_counts(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %r9
	testl	%r9d, %r9d
	jle	.L2
	xorl	%r13d, %r13d
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rax
	testq	%rax, %rax
	je	.L3
	leaq	bit_counts(%rip), %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rax, %rcx
	andl	$1, %ecx
	addq	%rcx, (%rdx)
	addq	$8, %rdx
	sarq	%rax
	jne	.L4
	movq	$0, 16(%rsp)
.L3:
	movslq	12(%rsp), %r9
	addl	$1, %r13d
	cmpl	%r13d, %r9d
	jg	.L5
.L2:
	leaq	480+bit_counts(%rip), %rdi
	xorl	%ecx, %ecx
	movabsq	$-8543223828751151131, %r8
	.p2align 4,,10
	.p2align 3
.L6:
	addq	%rcx, %rcx
	movq	%r9, %rsi
	movq	%rcx, %rax
	imulq	%r8
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %r10
	sarq	$29, %r10
	subq	%rax, %r10
	imulq	$1000000007, %r10, %rax
	subq	%rax, %rcx
	movq	(%rdi), %rax
	subq	%rax, %rsi
	imulq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%r8
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	addq	%rcx, %rsi
	movq	%rsi, %rax
	imulq	%r8
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rcx
	sarq	$29, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	subq	%rax, %rsi
	movq	%rdi, %rax
	subq	$8, %rdi
	movq	%rsi, %rcx
	cmpq	%rax, %rbx
	jne	.L6
	movq	%rsi, %rdx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	bit_counts
	.bss
	.align 32
	.type	bit_counts, @object
	.size	bit_counts, 488
bit_counts:
	.zero	488
	.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\n"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	bit_counts(%rip), %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movslq	12(%rsp), %r9
	testl	%r9d, %r9d
	jle	.L2
	xorl	%r13d, %r13d
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %rax
	testq	%rax, %rax
	je	.L3
	leaq	bit_counts(%rip), %rdx
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rax, %rcx
	andl	$1, %ecx
	addq	%rcx, (%rdx)
	addq	$8, %rdx
	sarq	%rax
	jne	.L4
	movq	$0, 16(%rsp)
.L3:
	movslq	12(%rsp), %r9
	addl	$1, %r13d
	cmpl	%r13d, %r9d
	jg	.L5
.L2:
	leaq	480+bit_counts(%rip), %rdi
	xorl	%ecx, %ecx
	movabsq	$-8543223828751151131, %r8
	.p2align 4,,10
	.p2align 3
.L6:
	addq	%rcx, %rcx
	movq	%r9, %rsi
	movq	%rcx, %rax
	imulq	%r8
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %r10
	sarq	$29, %r10
	subq	%rax, %r10
	imulq	$1000000007, %r10, %rax
	subq	%rax, %rcx
	movq	(%rdi), %rax
	subq	%rax, %rsi
	imulq	%rax, %rsi
	movq	%rsi, %rax
	imulq	%r8
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	addq	%rcx, %rsi
	movq	%rsi, %rax
	imulq	%r8
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rcx
	sarq	$29, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	subq	%rax, %rsi
	movq	%rdi, %rax
	subq	$8, %rdi
	movq	%rsi, %rcx
	cmpq	%rax, %rbx
	jne	.L6
	movq	%rsi, %rdx
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	bit_counts
	.bss
	.align 32
	.type	bit_counts, @object
	.size	bit_counts, 488
bit_counts:
	.zero	488
	.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>

long long int bit_counts[61];

int main (void) {
	int n, i, j;
	long long int a, res=0;
	
	scanf("%d\n", &n);
	
	for(i=0;i<n;i++)
	{
		scanf("%lld",&a);
		for(j=0;a;j++,a>>=1)
		{
			bit_counts[j]+=a&1;
		}
	}
	
	for(i=60;i>=0;i--)
	{
		res=res*2%1000000007LL+bit_counts[i]*(n-bit_counts[i])%1000000007LL;
		res%=1000000007LL;
	}
	
	printf("%lld\n", res);
}
3
1 2 1
 10
1 14 159 2653 58979 323846 2643383 27950288 419716939 9375105820
 10
3 1 4 1 5 9 2 6 5 6
 3
1 4 1
 10
1 14 159 2653 58979 376446 2643383 27950288 419716939 9375105820
 10
3 1 4 1 5 9 2 6 5 2
 10
1 14 159 2653 58979 376446 2643383 33596518 419716939 9375105820
 10
3 1 4 1 6 9 2 6 5 2
 10
1 3 159 2653 58979 376446 2643383 33596518 419716939 9375105820
 10
1 3 159 2653 58979 376446 2643383 40072772 419716939 9375105820

6
 103715608
 244
 10
 104328928
 240
 144630974
 243
 144630991
 190239349

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>

long long int bit_counts[61];

int main (void) {
	int n, i, j;
	long long int a, res=0;
	
	scanf("%d\n", &n);
	
	for(i=0;i<n;i++)
	{
		scanf("%lld",&a);
		for(j=0;a;j++,a>>=1)
		{
			bit_counts[j]+=a&1;
		}
	}
	
	for(i=60;i>=0;i--)
	{
		res=res*2%1000000007LL+bit_counts[i]*(n-bit_counts[i])%1000000007LL;
		res%=1000000007LL;
	}
	
	printf("%lld\n", res);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	bit_counts
	.bss
	.align 32
	.type	bit_counts, @object
	.size	bit_counts, 488
bit_counts:
	.zero	488
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -16(%rbp)
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -32(%rbp)
	jmp	.L2
.L5:
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -28(%rbp)
	jmp	.L3
.L4:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	bit_counts(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-24(%rbp), %rax
	andl	$1, %eax
	leaq	(%rdx,%rax), %rcx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	bit_counts(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addl	$1, -28(%rbp)
	movq	-24(%rbp), %rax
	sarq	%rax
	movq	%rax, -24(%rbp)
.L3:
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	jne	.L4
	addl	$1, -32(%rbp)
.L2:
	movl	-36(%rbp), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L5
	movl	$60, -32(%rbp)
	jmp	.L6
.L7:
	movq	-16(%rbp), %rax
	leaq	(%rax,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%rcx, %rsi
	subq	%rax, %rsi
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	bit_counts(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	movl	-32(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,8), %rdi
	leaq	bit_counts(%rip), %rcx
	movq	(%rdi,%rcx), %rcx
	subq	%rcx, %rdx
	imulq	%rdx, %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	subl	$1, -32(%rbp)
.L6:
	cmpl	$0, -32(%rbp)
	jns	.L7
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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
	.globl	bit_counts
	.bss
	.align 32
	.type	bit_counts, @object
	.size	bit_counts, 488
bit_counts:
	.zero	488
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.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	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -16(%rbp)
	leaq	-36(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -32(%rbp)
	jmp	.L2
.L5:
	leaq	-24(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -28(%rbp)
	jmp	.L3
.L4:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	bit_counts(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-24(%rbp), %rax
	andl	$1, %eax
	leaq	(%rdx,%rax), %rcx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	bit_counts(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addl	$1, -28(%rbp)
	movq	-24(%rbp), %rax
	sarq	%rax
	movq	%rax, -24(%rbp)
.L3:
	movq	-24(%rbp), %rax
	testq	%rax, %rax
	jne	.L4
	addl	$1, -32(%rbp)
.L2:
	movl	-36(%rbp), %eax
	cmpl	%eax, -32(%rbp)
	jl	.L5
	movl	$60, -32(%rbp)
	jmp	.L6
.L7:
	movq	-16(%rbp), %rax
	leaq	(%rax,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%rcx, %rsi
	subq	%rax, %rsi
	movl	-32(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	bit_counts(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-36(%rbp), %edx
	movslq	%edx, %rdx
	movl	-32(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,8), %rdi
	leaq	bit_counts(%rip), %rcx
	movq	(%rdi,%rcx), %rcx
	subq	%rcx, %rdx
	imulq	%rdx, %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	addq	%rsi, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	subl	$1, -32(%rbp)
.L6:
	cmpl	$0, -32(%rbp)
	jns	.L7
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	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:
