Given the following C code and 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;
}```

Assembly Code:

```assembly
	.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.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
```assembly
	.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:
```
```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;
}```
Given the following C 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;
}```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

1
 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 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;
}```

Assembly Code:

```assembly
	.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:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.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:
```