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

```c
unsigned long long popcnt64(unsigned long long n){
	const unsigned long long m1=0x5555555555555555ULL;
	const unsigned long long m2=0x3333333333333333ULL;
	const unsigned long long m4=0x0f0f0f0f0f0f0f0fULL;
	const unsigned long long m8=0x00ff00ff00ff00ffULL;
	const unsigned long long m16=0x0000ffff0000ffffULL;
	const unsigned long long m32=0x00000000ffffffffULL;
	n=((n>>1)&m1)+(n&m1);
	n=((n>>2)&m2)+(n&m2);
	n=((n>>4)&m4)+(n&m4);
	n=((n>>8)&m8)+(n&m8);
	n=((n>>16)&m16)+(n&m16);
	n=((n>>32)&m32)+(n&m32);
	return n;
}
unsigned long long clz64(unsigned long long n){
	n|=n>>1;
	n|=n>>2;
	n|=n>>4;
	n|=n>>8;
	n|=n>>16;
	n|=n>>32;
	return 64-popcnt64(n);
}

#include <stdio.h>
int main(){
	long long N;
	scanf("%lld",&N);
	printf("%d\n",64-clz64(N));
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	popcnt64
	.type	popcnt64, @function
popcnt64:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -56(%rbp)
	movabsq	$6148914691236517205, %rax
	movq	%rax, -48(%rbp)
	movabsq	$3689348814741910323, %rax
	movq	%rax, -40(%rbp)
	movabsq	$1085102592571150095, %rax
	movq	%rax, -32(%rbp)
	movabsq	$71777214294589695, %rax
	movq	%rax, -24(%rbp)
	movabsq	$281470681808895, %rax
	movq	%rax, -16(%rbp)
	movl	$4294967295, %eax
	movq	%rax, -8(%rbp)
	movq	-56(%rbp), %rax
	shrq	%rax
	andq	-48(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	andq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-56(%rbp), %rax
	shrq	$2, %rax
	andq	-40(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	andq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-56(%rbp), %rax
	shrq	$4, %rax
	andq	-32(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	andq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-56(%rbp), %rax
	shrq	$8, %rax
	andq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	andq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-56(%rbp), %rax
	shrq	$16, %rax
	andq	-16(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	andq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-56(%rbp), %rax
	shrq	$32, %rax
	andq	-8(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	andq	-8(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-56(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	popcnt64, .-popcnt64
	.globl	clz64
	.type	clz64, @function
clz64:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$8, %rsp
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	shrq	%rax
	orq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	shrq	$2, %rax
	orq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	shrq	$4, %rax
	orq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	shrq	$8, %rax
	orq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	shrq	$16, %rax
	orq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	shrq	$32, %rax
	orq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	popcnt64
	movq	%rax, %rdx
	movl	$64, %eax
	subq	%rdx, %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	clz64, .-clz64
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	clz64
	movq	%rax, %rdx
	movl	$64, %eax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	popcnt64
	.type	popcnt64, @function
popcnt64:
.LFB0:
	.cfi_startproc
	endbr64
	movabsq	$6148914691236517205, %rdx
	movq	%rdi, %rax
	movabsq	$1085102592571150095, %rcx
	shrq	%rax
	andq	%rdx, %rdi
	andq	%rdx, %rax
	movabsq	$3689348814741910323, %rdx
	addq	%rax, %rdi
	movq	%rdi, %rax
	andq	%rdx, %rdi
	shrq	$2, %rax
	andq	%rdx, %rax
	addq	%rdi, %rax
	movq	%rax, %rdx
	andq	%rcx, %rax
	shrq	$4, %rdx
	andq	%rcx, %rdx
	movabsq	$71777214294589695, %rcx
	addq	%rax, %rdx
	movq	%rdx, %rax
	andq	%rcx, %rdx
	shrq	$8, %rax
	andq	%rcx, %rax
	movabsq	$281470681808895, %rcx
	addq	%rdx, %rax
	movq	%rax, %rdx
	andq	%rcx, %rax
	shrq	$16, %rdx
	andq	%rcx, %rdx
	addq	%rax, %rdx
	movq	%rdx, %rax
	movl	%edx, %edx
	shrq	$32, %rax
	addq	%rdx, %rax
	ret
	.cfi_endproc
.LFE0:
	.size	popcnt64, .-popcnt64
	.p2align 4
	.globl	clz64
	.type	clz64, @function
clz64:
.LFB1:
	.cfi_startproc
	endbr64
	movabsq	$6148914691236517205, %rcx
	movq	%rdi, %rax
	shrq	%rax
	orq	%rdi, %rax
	movq	%rax, %rdx
	shrq	$2, %rdx
	orq	%rax, %rdx
	movq	%rdx, %rax
	shrq	$4, %rax
	orq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$8, %rdx
	orq	%rax, %rdx
	movq	%rdx, %rax
	shrq	$16, %rax
	orq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$32, %rdx
	orq	%rax, %rdx
	movq	%rdx, %rax
	andq	%rcx, %rdx
	shrq	%rax
	andq	%rcx, %rax
	movabsq	$3689348814741910323, %rcx
	addq	%rdx, %rax
	movq	%rax, %rdx
	andq	%rcx, %rax
	shrq	$2, %rdx
	andq	%rcx, %rdx
	movabsq	$1085102592571150095, %rcx
	addq	%rax, %rdx
	movq	%rdx, %rax
	andq	%rcx, %rdx
	shrq	$4, %rax
	andq	%rcx, %rax
	movabsq	$71777214294589695, %rcx
	addq	%rdx, %rax
	movq	%rax, %rdx
	andq	%rcx, %rax
	shrq	$8, %rdx
	andq	%rcx, %rdx
	movabsq	$281470681808895, %rcx
	addq	%rax, %rdx
	movq	%rdx, %rax
	andq	%rcx, %rdx
	shrq	$16, %rax
	andq	%rcx, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	movl	%eax, %eax
	shrq	$32, %rdx
	addq	%rax, %rdx
	movl	$64, %eax
	subq	%rdx, %rax
	ret
	.cfi_endproc
.LFE1:
	.size	clz64, .-clz64
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rdi
	leaq	.LC1(%rip), %rsi
	call	clz64
	movl	$64, %edx
	movl	$1, %edi
	subq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L7
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	popcnt64
	.type	popcnt64, @function
popcnt64:
.LFB0:
	.cfi_startproc
	endbr64
	movabsq	$6148914691236517205, %rdx
	movq	%rdi, %rax
	movabsq	$1085102592571150095, %rcx
	shrq	%rax
	andq	%rdx, %rdi
	andq	%rdx, %rax
	movabsq	$3689348814741910323, %rdx
	addq	%rax, %rdi
	movq	%rdi, %rax
	andq	%rdx, %rdi
	shrq	$2, %rax
	andq	%rdx, %rax
	addq	%rdi, %rax
	movq	%rax, %rdx
	andq	%rcx, %rax
	shrq	$4, %rdx
	andq	%rcx, %rdx
	movabsq	$71777214294589695, %rcx
	addq	%rax, %rdx
	movq	%rdx, %rax
	andq	%rcx, %rdx
	shrq	$8, %rax
	andq	%rcx, %rax
	movabsq	$281470681808895, %rcx
	addq	%rdx, %rax
	movq	%rax, %rdx
	andq	%rcx, %rax
	shrq	$16, %rdx
	andq	%rcx, %rdx
	addq	%rax, %rdx
	movq	%rdx, %rax
	movl	%edx, %edx
	shrq	$32, %rax
	addq	%rdx, %rax
	ret
	.cfi_endproc
.LFE0:
	.size	popcnt64, .-popcnt64
	.p2align 4
	.globl	clz64
	.type	clz64, @function
clz64:
.LFB1:
	.cfi_startproc
	endbr64
	movabsq	$6148914691236517205, %rcx
	movq	%rdi, %rax
	shrq	%rax
	orq	%rdi, %rax
	movq	%rax, %rdx
	shrq	$2, %rdx
	orq	%rax, %rdx
	movq	%rdx, %rax
	shrq	$4, %rax
	orq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$8, %rdx
	orq	%rax, %rdx
	movq	%rdx, %rax
	shrq	$16, %rax
	orq	%rdx, %rax
	movq	%rax, %rdx
	shrq	$32, %rdx
	orq	%rax, %rdx
	movq	%rdx, %rax
	andq	%rcx, %rdx
	shrq	%rax
	andq	%rcx, %rax
	movabsq	$3689348814741910323, %rcx
	addq	%rdx, %rax
	movq	%rax, %rdx
	andq	%rcx, %rax
	shrq	$2, %rdx
	andq	%rcx, %rdx
	movabsq	$1085102592571150095, %rcx
	addq	%rax, %rdx
	movq	%rdx, %rax
	andq	%rcx, %rdx
	shrq	$4, %rax
	andq	%rcx, %rax
	movabsq	$71777214294589695, %rcx
	addq	%rdx, %rax
	movq	%rax, %rdx
	andq	%rcx, %rax
	shrq	$8, %rdx
	andq	%rcx, %rdx
	movabsq	$281470681808895, %rcx
	addq	%rax, %rdx
	movq	%rdx, %rax
	andq	%rcx, %rdx
	shrq	$16, %rax
	andq	%rcx, %rax
	addq	%rdx, %rax
	movq	%rax, %rdx
	movl	%eax, %eax
	shrq	$32, %rdx
	addq	%rax, %rdx
	movl	$64, %eax
	subq	%rdx, %rax
	ret
	.cfi_endproc
.LFE1:
	.size	clz64, .-clz64
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	(%rsp), %rdi
	leaq	.LC1(%rip), %rsi
	call	clz64
	movl	$64, %edx
	movl	$1, %edi
	subq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L7
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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:

unsigned long long popcnt64(unsigned long long n){
	const unsigned long long m1=0x5555555555555555ULL;
	const unsigned long long m2=0x3333333333333333ULL;
	const unsigned long long m4=0x0f0f0f0f0f0f0f0fULL;
	const unsigned long long m8=0x00ff00ff00ff00ffULL;
	const unsigned long long m16=0x0000ffff0000ffffULL;
	const unsigned long long m32=0x00000000ffffffffULL;
	n=((n>>1)&m1)+(n&m1);
	n=((n>>2)&m2)+(n&m2);
	n=((n>>4)&m4)+(n&m4);
	n=((n>>8)&m8)+(n&m8);
	n=((n>>16)&m16)+(n&m16);
	n=((n>>32)&m32)+(n&m32);
	return n;
}
unsigned long long clz64(unsigned long long n){
	n|=n>>1;
	n|=n>>2;
	n|=n>>4;
	n|=n>>8;
	n|=n>>16;
	n|=n>>32;
	return 64-popcnt64(n);
}

#include <stdio.h>
int main(){
	long long N;
	scanf("%lld",&N);
	printf("%d\n",64-clz64(N));
	return 0;
}
1
 2
 4
 9
 19
 38
 83
 159
 296
 000

1
 2
 3
 4
 5
 6
 7
 8
 9
 0

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

```c
unsigned long long popcnt64(unsigned long long n){
	const unsigned long long m1=0x5555555555555555ULL;
	const unsigned long long m2=0x3333333333333333ULL;
	const unsigned long long m4=0x0f0f0f0f0f0f0f0fULL;
	const unsigned long long m8=0x00ff00ff00ff00ffULL;
	const unsigned long long m16=0x0000ffff0000ffffULL;
	const unsigned long long m32=0x00000000ffffffffULL;
	n=((n>>1)&m1)+(n&m1);
	n=((n>>2)&m2)+(n&m2);
	n=((n>>4)&m4)+(n&m4);
	n=((n>>8)&m8)+(n&m8);
	n=((n>>16)&m16)+(n&m16);
	n=((n>>32)&m32)+(n&m32);
	return n;
}
unsigned long long clz64(unsigned long long n){
	n|=n>>1;
	n|=n>>2;
	n|=n>>4;
	n|=n>>8;
	n|=n>>16;
	n|=n>>32;
	return 64-popcnt64(n);
}

#include <stdio.h>
int main(){
	long long N;
	scanf("%lld",&N);
	printf("%d\n",64-clz64(N));
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	popcnt64
	.type	popcnt64, @function
popcnt64:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -56(%rbp)
	movabsq	$6148914691236517205, %rax
	movq	%rax, -48(%rbp)
	movabsq	$3689348814741910323, %rax
	movq	%rax, -40(%rbp)
	movabsq	$1085102592571150095, %rax
	movq	%rax, -32(%rbp)
	movabsq	$71777214294589695, %rax
	movq	%rax, -24(%rbp)
	movabsq	$281470681808895, %rax
	movq	%rax, -16(%rbp)
	movl	$4294967295, %eax
	movq	%rax, -8(%rbp)
	movq	-56(%rbp), %rax
	shrq	%rax
	andq	-48(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	andq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-56(%rbp), %rax
	shrq	$2, %rax
	andq	-40(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	andq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-56(%rbp), %rax
	shrq	$4, %rax
	andq	-32(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	andq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-56(%rbp), %rax
	shrq	$8, %rax
	andq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	andq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-56(%rbp), %rax
	shrq	$16, %rax
	andq	-16(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	andq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-56(%rbp), %rax
	shrq	$32, %rax
	andq	-8(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	andq	-8(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-56(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	popcnt64, .-popcnt64
	.globl	clz64
	.type	clz64, @function
clz64:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$8, %rsp
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	shrq	%rax
	orq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	shrq	$2, %rax
	orq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	shrq	$4, %rax
	orq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	shrq	$8, %rax
	orq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	shrq	$16, %rax
	orq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	shrq	$32, %rax
	orq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	popcnt64
	movq	%rax, %rdx
	movl	$64, %eax
	subq	%rdx, %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	clz64, .-clz64
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	clz64
	movq	%rax, %rdx
	movl	$64, %eax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	popcnt64
	.type	popcnt64, @function
popcnt64:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -56(%rbp)
	movabsq	$6148914691236517205, %rax
	movq	%rax, -48(%rbp)
	movabsq	$3689348814741910323, %rax
	movq	%rax, -40(%rbp)
	movabsq	$1085102592571150095, %rax
	movq	%rax, -32(%rbp)
	movabsq	$71777214294589695, %rax
	movq	%rax, -24(%rbp)
	movabsq	$281470681808895, %rax
	movq	%rax, -16(%rbp)
	movl	$4294967295, %eax
	movq	%rax, -8(%rbp)
	movq	-56(%rbp), %rax
	shrq	%rax
	andq	-48(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	andq	-48(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-56(%rbp), %rax
	shrq	$2, %rax
	andq	-40(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	andq	-40(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-56(%rbp), %rax
	shrq	$4, %rax
	andq	-32(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	andq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-56(%rbp), %rax
	shrq	$8, %rax
	andq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	andq	-24(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-56(%rbp), %rax
	shrq	$16, %rax
	andq	-16(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	andq	-16(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-56(%rbp), %rax
	shrq	$32, %rax
	andq	-8(%rbp), %rax
	movq	%rax, %rdx
	movq	-56(%rbp), %rax
	andq	-8(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -56(%rbp)
	movq	-56(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	popcnt64, .-popcnt64
	.globl	clz64
	.type	clz64, @function
clz64:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$8, %rsp
	movq	%rdi, -8(%rbp)
	movq	-8(%rbp), %rax
	shrq	%rax
	orq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	shrq	$2, %rax
	orq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	shrq	$4, %rax
	orq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	shrq	$8, %rax
	orq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	shrq	$16, %rax
	orq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	shrq	$32, %rax
	orq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, %rdi
	call	popcnt64
	movq	%rax, %rdx
	movl	$64, %eax
	subq	%rdx, %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	clz64, .-clz64
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	clz64
	movq	%rax, %rdx
	movl	$64, %eax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
