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 <stdlib.h>
#define bit(n,m)(((n)>>(m))&1)

void f(int a,int b,int n,int fix){
	if(__builtin_popcount(fix)==n-1){
		printf("%d %d ",a,b);
		return;
	}
	int nfix=0;//fixされていなくて、aとbが違うbitを探す
	while(bit(fix,nfix)==1||bit(a^b,nfix)==0)nfix++;
	int dif=0;//fixされていなくて、nfixでないbitを探す
	while(bit(fix,dif)==1||nfix==dif)dif++;
	
	f(a,a^(1<<dif),n,fix^(1<<nfix));
	f(a^(1<<dif)^(1<<nfix),b,n,fix^(1<<nfix));
}
int main(){
	int n,a,b;
	scanf("%d%d%d",&n,&a,&b);
	if(__builtin_popcount(a^b)%2==0)puts("NO");
	else puts("YES"),f(a,b,n,0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	__popcountdi2
	.section	.rodata
.LC0:
	.string	"%d %d "
	.text
	.globl	f
	.type	f, @function
f:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	%ecx, -32(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, %eax
	movq	%rax, %rdi
	call	__popcountdi2@PLT
	movl	%eax, %edx
	movl	-28(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, %edx
	jne	.L2
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L1
.L2:
	movl	$0, -8(%rbp)
	jmp	.L4
.L5:
	addl	$1, -8(%rbp)
.L4:
	movl	-8(%rbp), %eax
	movl	-32(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L5
	movl	-20(%rbp), %eax
	xorl	-24(%rbp), %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L5
	movl	$0, -4(%rbp)
	jmp	.L6
.L7:
	addl	$1, -4(%rbp)
.L6:
	movl	-4(%rbp), %eax
	movl	-32(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L7
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	je	.L7
	movl	-8(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	xorl	-32(%rbp), %eax
	movl	%eax, %edi
	movl	-4(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	xorl	-20(%rbp), %eax
	movl	%eax, %esi
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%edi, %ecx
	movl	%eax, %edi
	call	f
	movl	-8(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	xorl	-32(%rbp), %eax
	movl	%eax, %esi
	movl	-4(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	xorl	-20(%rbp), %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	movl	$1, %edi
	movl	%eax, %ecx
	sall	%cl, %edi
	movl	%edi, %eax
	movl	%edx, %edi
	xorl	%eax, %edi
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	movl	%esi, %ecx
	movl	%eax, %esi
	call	f
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	f, .-f
	.section	.rodata
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"NO"
.LC3:
	.string	"YES"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12(%rbp), %rcx
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %edx
	movl	-12(%rbp), %eax
	xorl	%edx, %eax
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %eax
	testl	%eax, %eax
	jne	.L9
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-20(%rbp), %edx
	movl	-12(%rbp), %esi
	movl	-16(%rbp), %eax
	movl	$0, %ecx
	movl	%eax, %edi
	call	f
.L10:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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
	.globl	__popcountdi2
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d "
	.text
	.p2align 4
	.globl	f
	.type	f, @function
f:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%edi, %r15d
	movl	%ecx, %edi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%edx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	call	__popcountdi2@PLT
	leal	-1(%rbp), %edi
	movl	%edi, 12(%rsp)
	cmpl	%edi, %eax
	je	.L2
.L8:
	movl	%r12d, %edi
	xorl	%edx, %edx
	xorl	%r15d, %edi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	addl	$1, %edx
.L3:
	movl	%r14d, %eax
	movl	%edx, %ecx
	sarl	%cl, %eax
	andl	$1, %eax
	jne	.L4
	movl	%edi, %ebx
	sarl	%cl, %ebx
	movl	%ebx, %esi
	andl	$1, %esi
	je	.L4
	testl	%edx, %edx
	je	.L13
	testb	$1, %r14b
	je	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	addl	$1, %eax
	cmpl	%eax, %edx
	je	.L13
	btl	%eax, %r14d
	jc	.L13
	movl	$1, %esi
	movl	%eax, %ecx
	sall	%cl, %esi
.L5:
	movl	%edx, %ecx
	movl	$1, %ebx
	xorl	%r15d, %esi
	movl	%r15d, %edi
	sall	%cl, %ebx
	movl	%esi, %r13d
	movl	%ebp, %edx
	xorl	%ebx, %r14d
	xorl	%r13d, %ebx
	movl	%r14d, %ecx
	movl	%ebx, %r15d
	call	f
	movl	%r14d, %edi
	call	__popcountdi2@PLT
	cmpl	12(%rsp), %eax
	jne	.L8
.L2:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	movl	%r12d, %ecx
	movl	%r15d, %edx
	movl	$1, %edi
	popq	%rbx
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rsi
	popq	%rbp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	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
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE39:
	.size	f, .-f
	.section	.rodata.str1.1
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"NO"
.LC3:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	20(%rsp), %rcx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	xorl	20(%rsp), %eax
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	xorb	%ah, %al
	jnp	.L19
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L20:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	movl	12(%rsp), %edx
	movl	20(%rsp), %esi
	xorl	%ecx, %ecx
	movl	16(%rsp), %edi
	call	f
	jmp	.L20
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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
	.globl	__popcountdi2
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d "
	.text
	.p2align 4
	.globl	f
	.type	f, @function
f:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movl	%edi, %r15d
	movl	%ecx, %edi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%rdi, %r14
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movl	%esi, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movl	%edx, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	call	__popcountdi2@PLT
	leal	-1(%rbp), %edi
	movl	%edi, 12(%rsp)
	cmpl	%edi, %eax
	je	.L2
.L8:
	movl	%r12d, %edi
	xorl	%edx, %edx
	xorl	%r15d, %edi
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	addl	$1, %edx
.L3:
	movl	%r14d, %eax
	movl	%edx, %ecx
	sarl	%cl, %eax
	andl	$1, %eax
	jne	.L4
	movl	%edi, %ebx
	sarl	%cl, %ebx
	movl	%ebx, %esi
	andl	$1, %esi
	je	.L4
	testl	%edx, %edx
	je	.L13
	testb	$1, %r14b
	je	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	addl	$1, %eax
	cmpl	%eax, %edx
	je	.L13
	btl	%eax, %r14d
	jc	.L13
	movl	$1, %esi
	movl	%eax, %ecx
	sall	%cl, %esi
.L5:
	movl	%edx, %ecx
	movl	$1, %ebx
	xorl	%r15d, %esi
	movl	%r15d, %edi
	sall	%cl, %ebx
	movl	%esi, %r13d
	movl	%ebp, %edx
	xorl	%ebx, %r14d
	xorl	%r13d, %ebx
	movl	%r14d, %ecx
	movl	%ebx, %r15d
	call	f
	movl	%r14d, %edi
	call	__popcountdi2@PLT
	cmpl	12(%rsp), %eax
	jne	.L8
.L2:
	addq	$24, %rsp
	.cfi_def_cfa_offset 56
	movl	%r12d, %ecx
	movl	%r15d, %edx
	movl	$1, %edi
	popq	%rbx
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rsi
	popq	%rbp
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	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
	jmp	__printf_chk@PLT
	.cfi_endproc
.LFE39:
	.size	f, .-f
	.section	.rodata.str1.1
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"NO"
.LC3:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB40:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC1(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	20(%rsp), %rcx
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	xorl	20(%rsp), %eax
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	xorb	%ah, %al
	jnp	.L19
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
.L20:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	leaq	.LC3(%rip), %rdi
	call	puts@PLT
	movl	12(%rsp), %edx
	movl	20(%rsp), %esi
	xorl	%ecx, %ecx
	movl	16(%rsp), %edi
	call	f
	jmp	.L20
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE40:
	.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:

#include <stdio.h>
#include <stdlib.h>
#define bit(n,m)(((n)>>(m))&1)

void f(int a,int b,int n,int fix){
	if(__builtin_popcount(fix)==n-1){
		printf("%d %d ",a,b);
		return;
	}
	int nfix=0;//fixされていなくて、aとbが違うbitを探す
	while(bit(fix,nfix)==1||bit(a^b,nfix)==0)nfix++;
	int dif=0;//fixされていなくて、nfixでないbitを探す
	while(bit(fix,dif)==1||nfix==dif)dif++;
	
	f(a,a^(1<<dif),n,fix^(1<<nfix));
	f(a^(1<<dif)^(1<<nfix),b,n,fix^(1<<nfix));
}
int main(){
	int n,a,b;
	scanf("%d%d%d",&n,&a,&b);
	if(__builtin_popcount(a^b)%2==0)puts("NO");
	else puts("YES"),f(a,b,n,0);
}
2 1 0
 2 0 0
 1 0 1
 2 2 0
 1 2 3
 1 3 2
 2 3 2
 2 0 2
 2 2 3
 2 3 1

YES
1 3 2 0  NO
 YES
0 1  YES
2 3 1 0  YES
2 3  YES
3 2  YES
3 1 0 2  YES
0 1 3 2  YES
2 0 1 3  YES
3 2 0 1 
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 <stdlib.h>
#define bit(n,m)(((n)>>(m))&1)

void f(int a,int b,int n,int fix){
	if(__builtin_popcount(fix)==n-1){
		printf("%d %d ",a,b);
		return;
	}
	int nfix=0;//fixされていなくて、aとbが違うbitを探す
	while(bit(fix,nfix)==1||bit(a^b,nfix)==0)nfix++;
	int dif=0;//fixされていなくて、nfixでないbitを探す
	while(bit(fix,dif)==1||nfix==dif)dif++;
	
	f(a,a^(1<<dif),n,fix^(1<<nfix));
	f(a^(1<<dif)^(1<<nfix),b,n,fix^(1<<nfix));
}
int main(){
	int n,a,b;
	scanf("%d%d%d",&n,&a,&b);
	if(__builtin_popcount(a^b)%2==0)puts("NO");
	else puts("YES"),f(a,b,n,0);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	__popcountdi2
	.section	.rodata
.LC0:
	.string	"%d %d "
	.text
	.globl	f
	.type	f, @function
f:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	%ecx, -32(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, %eax
	movq	%rax, %rdi
	call	__popcountdi2@PLT
	movl	%eax, %edx
	movl	-28(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, %edx
	jne	.L2
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L1
.L2:
	movl	$0, -8(%rbp)
	jmp	.L4
.L5:
	addl	$1, -8(%rbp)
.L4:
	movl	-8(%rbp), %eax
	movl	-32(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L5
	movl	-20(%rbp), %eax
	xorl	-24(%rbp), %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L5
	movl	$0, -4(%rbp)
	jmp	.L6
.L7:
	addl	$1, -4(%rbp)
.L6:
	movl	-4(%rbp), %eax
	movl	-32(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L7
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	je	.L7
	movl	-8(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	xorl	-32(%rbp), %eax
	movl	%eax, %edi
	movl	-4(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	xorl	-20(%rbp), %eax
	movl	%eax, %esi
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%edi, %ecx
	movl	%eax, %edi
	call	f
	movl	-8(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	xorl	-32(%rbp), %eax
	movl	%eax, %esi
	movl	-4(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	xorl	-20(%rbp), %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	movl	$1, %edi
	movl	%eax, %ecx
	sall	%cl, %edi
	movl	%edi, %eax
	movl	%edx, %edi
	xorl	%eax, %edi
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	movl	%esi, %ecx
	movl	%eax, %esi
	call	f
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	f, .-f
	.section	.rodata
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"NO"
.LC3:
	.string	"YES"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12(%rbp), %rcx
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %edx
	movl	-12(%rbp), %eax
	xorl	%edx, %eax
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %eax
	testl	%eax, %eax
	jne	.L9
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-20(%rbp), %edx
	movl	-12(%rbp), %esi
	movl	-16(%rbp), %eax
	movl	$0, %ecx
	movl	%eax, %edi
	call	f
.L10:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	__popcountdi2
	.section	.rodata
.LC0:
	.string	"%d %d "
	.text
	.globl	f
	.type	f, @function
f:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	%edx, -28(%rbp)
	movl	%ecx, -32(%rbp)
	movl	-32(%rbp), %eax
	movl	%eax, %eax
	movq	%rax, %rdi
	call	__popcountdi2@PLT
	movl	%eax, %edx
	movl	-28(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, %edx
	jne	.L2
	movl	-24(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L1
.L2:
	movl	$0, -8(%rbp)
	jmp	.L4
.L5:
	addl	$1, -8(%rbp)
.L4:
	movl	-8(%rbp), %eax
	movl	-32(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L5
	movl	-20(%rbp), %eax
	xorl	-24(%rbp), %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L5
	movl	$0, -4(%rbp)
	jmp	.L6
.L7:
	addl	$1, -4(%rbp)
.L6:
	movl	-4(%rbp), %eax
	movl	-32(%rbp), %edx
	movl	%eax, %ecx
	sarl	%cl, %edx
	movl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L7
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	je	.L7
	movl	-8(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	xorl	-32(%rbp), %eax
	movl	%eax, %edi
	movl	-4(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	xorl	-20(%rbp), %eax
	movl	%eax, %esi
	movl	-28(%rbp), %edx
	movl	-20(%rbp), %eax
	movl	%edi, %ecx
	movl	%eax, %edi
	call	f
	movl	-8(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	xorl	-32(%rbp), %eax
	movl	%eax, %esi
	movl	-4(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	xorl	-20(%rbp), %eax
	movl	%eax, %edx
	movl	-8(%rbp), %eax
	movl	$1, %edi
	movl	%eax, %ecx
	sall	%cl, %edi
	movl	%edi, %eax
	movl	%edx, %edi
	xorl	%eax, %edi
	movl	-28(%rbp), %edx
	movl	-24(%rbp), %eax
	movl	%esi, %ecx
	movl	%eax, %esi
	call	f
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	f, .-f
	.section	.rodata
.LC1:
	.string	"%d%d%d"
.LC2:
	.string	"NO"
.LC3:
	.string	"YES"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-12(%rbp), %rcx
	leaq	-16(%rbp), %rdx
	leaq	-20(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-16(%rbp), %edx
	movl	-12(%rbp), %eax
	xorl	%edx, %eax
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %eax
	testl	%eax, %eax
	jne	.L9
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	jmp	.L10
.L9:
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	-20(%rbp), %edx
	movl	-12(%rbp), %esi
	movl	-16(%rbp), %eax
	movl	$0, %ecx
	movl	%eax, %edi
	call	f
.L10:
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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:
