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>

typedef unsigned long ulong;

ulong diff(ulong a, ulong b){
    return __builtin_ctzl(a^b);
}

ulong hd(ulong a, ulong b){
    return __builtin_popcountl(a^b);
}

ulong bit_remove(ulong a, ulong n){
    ulong low  = a & ((1<<n)-1);
    ulong high = (a >> (n+1)) << n;
    return high | low;
}

ulong bit_insert(ulong a, ulong n, ulong b){
    ulong low  = a & ((1<<n)-1);
    ulong high = (a >> n) << (n+1);
    return high | (b<<n) | low;
}
#define N 17
long data[1<<N];

void solve(const long n, const long a, const long b, const size_t sp, const size_t ep){
    if(n==1){
        data[sp+0] = a;
        data[sp+1] = b;
        return;
    }
    ulong d = diff(a, b);
    ulong aa = bit_remove(a, d);
    ulong ab = bit_remove(a, d) ^ 1;
    ulong bb = bit_remove(b, d);
    const size_t mp = (sp+ep)/2;
    solve(n-1, aa, ab, sp, mp);
    solve(n-1, ab, bb, mp, ep);
    for(size_t i=sp; i<mp; i++){
        data[i] = bit_insert(data[i], d, (a&(1<<d)) >> d);
    }
    for(size_t i=mp; i<ep; i++){
        data[i] = bit_insert(data[i], d, (b&(1<<d)) >> d);
    }
}

int main(void){
    long n, a, b;
    scanf("%ld %ld %ld", &n, &a, &b);
    if(__builtin_popcountl(a)%2 == __builtin_popcountl(b)%2){
        printf("NO\n");
        return 0;
    }
    solve(n, a, b, 0, 1<<n);
    const size_t m = 1<<n;
    printf("YES\n");
    for(size_t i=0; i<m-1; i++){
        printf("%ld ", data[i]);
    }
    printf("%ld\n", data[m-1]);
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	diff
	.type	diff, @function
diff:
.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, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	xorq	-16(%rbp), %rax
	rep bsfq	%rax, %rax
	cltq
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	diff, .-diff
	.globl	__popcountdi2
	.globl	hd
	.type	hd, @function
hd:
.LFB1:
	.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	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	xorq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	__popcountdi2@PLT
	cltq
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	hd, .-hd
	.globl	bit_remove
	.type	bit_remove, @function
bit_remove:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	subl	$1, %eax
	cltq
	andq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	addl	$1, %eax
	movq	-24(%rbp), %rdx
	movl	%eax, %ecx
	shrq	%cl, %rdx
	movq	-32(%rbp), %rax
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	orq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	bit_remove, .-bit_remove
	.globl	bit_insert
	.type	bit_insert, @function
bit_insert:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	subl	$1, %eax
	cltq
	andq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movl	%eax, %edx
	movq	-24(%rbp), %rax
	movl	%edx, %ecx
	shrq	%cl, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addl	$1, %eax
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-32(%rbp), %rax
	movl	%eax, %edx
	movq	-40(%rbp), %rax
	movl	%edx, %ecx
	salq	%cl, %rax
	orq	-8(%rbp), %rax
	orq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	bit_insert, .-bit_insert
	.globl	data
	.bss
	.align 32
	.type	data, @object
	.size	data, 1048576
data:
	.zero	1048576
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movq	%rdi, -72(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%rdx, -88(%rbp)
	movq	%rcx, -96(%rbp)
	movq	%r8, -104(%rbp)
	cmpq	$1, -72(%rbp)
	jne	.L10
	movq	-96(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	leaq	data(%rip), %rdx
	movq	-80(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	movq	-96(%rbp), %rax
	addq	$1, %rax
	leaq	0(,%rax,8), %rcx
	leaq	data(%rip), %rdx
	movq	-88(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	jmp	.L9
.L10:
	movq	-88(%rbp), %rdx
	movq	-80(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	diff
	movq	%rax, -40(%rbp)
	movq	-80(%rbp), %rax
	movq	-40(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	bit_remove
	movq	%rax, -32(%rbp)
	movq	-80(%rbp), %rax
	movq	-40(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	bit_remove
	xorq	$1, %rax
	movq	%rax, -24(%rbp)
	movq	-88(%rbp), %rax
	movq	-40(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	bit_remove
	movq	%rax, -16(%rbp)
	movq	-96(%rbp), %rdx
	movq	-104(%rbp), %rax
	addq	%rdx, %rax
	shrq	%rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rdx
	movq	-32(%rbp), %rax
	movq	-72(%rbp), %rcx
	leaq	-1(%rcx), %rdi
	movq	-8(%rbp), %rsi
	movq	-96(%rbp), %rcx
	movq	%rsi, %r8
	movq	%rax, %rsi
	call	solve
	movq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	movq	-72(%rbp), %rcx
	leaq	-1(%rcx), %rdi
	movq	-104(%rbp), %rsi
	movq	-8(%rbp), %rcx
	movq	%rsi, %r8
	movq	%rax, %rsi
	call	solve
	movq	-96(%rbp), %rax
	movq	%rax, -56(%rbp)
	jmp	.L12
.L13:
	movq	-40(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	andq	-80(%rbp), %rax
	movq	-40(%rbp), %rdx
	movl	%edx, %ecx
	sarq	%cl, %rax
	movq	%rax, %rsi
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movq	%rsi, %rdx
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	bit_insert
	movq	%rax, %rcx
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -56(%rbp)
.L12:
	movq	-56(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jb	.L13
	movq	-8(%rbp), %rax
	movq	%rax, -48(%rbp)
	jmp	.L14
.L15:
	movq	-40(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	andq	-88(%rbp), %rax
	movq	-40(%rbp), %rdx
	movl	%edx, %ecx
	sarq	%cl, %rax
	movq	%rax, %rsi
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movq	%rsi, %rdx
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	bit_insert
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -48(%rbp)
.L14:
	movq	-48(%rbp), %rax
	cmpq	-104(%rbp), %rax
	jb	.L15
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	solve, .-solve
	.section	.rodata
.LC0:
	.string	"%ld %ld %ld"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
.LC3:
	.string	"%ld "
.LC4:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.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
	leaq	-32(%rbp), %rcx
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-40(%rbp), %rax
	movq	%rax, %rdx
	shrq	$32, %rdx
	xorl	%edx, %eax
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %eax
	movl	%eax, %ecx
	movq	-32(%rbp), %rax
	movq	%rax, %rdx
	shrq	$32, %rdx
	xorl	%edx, %eax
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %eax
	cmpl	%eax, %ecx
	jne	.L17
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L21
.L17:
	movq	-48(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	movslq	%eax, %rcx
	movq	-32(%rbp), %rdx
	movq	-40(%rbp), %rsi
	movq	-48(%rbp), %rax
	movq	%rcx, %r8
	movl	$0, %ecx
	movq	%rax, %rdi
	call	solve
	movq	-48(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -16(%rbp)
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movq	$0, -24(%rbp)
	jmp	.L19
.L20:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -24(%rbp)
.L19:
	movq	-16(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -24(%rbp)
	jb	.L20
	movq	-16(%rbp), %rax
	subq	$1, %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L21:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.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
	.type	solve.part.0, @function
solve.part.0:
.LFB29:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdx, %r11
	movq	%rsi, %rax
	movq	%r8, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r11, %r9
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rcx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	0(%r13,%r8), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdx, %rbp
	movl	$1, %edx
	shrq	%r12
	xorq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	rep bsfq	%rbp, %rbp
	movl	%ebp, %ecx
	leal	1(%rbp), %r14d
	sall	%cl, %edx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	%r14d, %ecx
	leal	-1(%rdx), %ebx
	shrq	%cl, %rsi
	movl	%edx, (%rsp)
	movl	%ebp, %ecx
	movslq	%ebx, %rbx
	movq	%rax, %rdx
	salq	%cl, %rsi
	movl	%r14d, %ecx
	andq	%rbx, %rdx
	shrq	%cl, %r9
	movl	%ebp, %ecx
	movl	%ebp, 4(%rsp)
	orq	%rdx, %rsi
	leaq	-1(%rdi), %rdx
	salq	%cl, %r9
	movq	%rdx, 8(%rsp)
	movq	%r11, %rdx
	movq	%rsi, %r10
	andq	%rbx, %rdx
	xorq	$1, %r10
	orq	%rdx, %r9
	cmpq	$2, %rdi
	je	.L26
	movq	8(%rsp), %rdi
	movq	%r10, %rdx
	movq	%r12, %r8
	movq	%r13, %rcx
	movq	%r11, 40(%rsp)
	movq	%rax, 32(%rsp)
	movq	%r9, 24(%rsp)
	movq	%r10, 16(%rsp)
	call	solve.part.0
	movq	24(%rsp), %rdx
	movq	%r15, %r8
	movq	%r12, %rcx
	movq	16(%rsp), %rsi
	movq	8(%rsp), %rdi
	call	solve.part.0
	movq	40(%rsp), %r11
	movq	32(%rsp), %rax
.L3:
	cmpq	%r12, %r13
	jnb	.L10
	movslq	(%rsp), %rdi
	movl	%ebp, %ecx
	movq	%r12, %rsi
	leaq	data(%rip), %rdx
	subq	%r13, %rsi
	andq	%rax, %rdi
	sarq	%cl, %rdi
	salq	%cl, %rdi
	cmpq	$1, %rsi
	je	.L7
	movq	%rsi, %rcx
	movq	%rbx, %xmm5
	movq	%rdi, %xmm4
	movd	4(%rsp), %xmm3
	punpcklqdq	%xmm5, %xmm5
	shrq	%rcx
	punpcklqdq	%xmm4, %xmm4
	movd	%r14d, %xmm2
	leaq	data(%rip), %rdx
	salq	$4, %rcx
	leaq	(%rdx,%r13,8), %rax
	addq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	movdqa	%xmm0, %xmm1
	pand	%xmm5, %xmm0
	psrlq	%xmm3, %xmm1
	por	%xmm4, %xmm0
	psllq	%xmm2, %xmm1
	por	%xmm1, %xmm0
	movups	%xmm0, -16(%rax)
	cmpq	%rax, %rcx
	jne	.L8
	movq	%rsi, %rax
	andq	$-2, %rax
	addq	%rax, %r13
	cmpq	%rax, %rsi
	je	.L10
.L7:
	movq	(%rdx,%r13,8), %rax
	movl	%ebp, %ecx
	movq	%rax, %rsi
	andq	%rbx, %rax
	shrq	%cl, %rsi
	movl	%r14d, %ecx
	orq	%rdi, %rax
	salq	%cl, %rsi
	orq	%rax, %rsi
	movq	%rsi, (%rdx,%r13,8)
.L10:
	cmpq	%r12, %r15
	jbe	.L1
	movslq	(%rsp), %rax
	movl	%ebp, %ecx
	subq	%r12, %r15
	leaq	data(%rip), %rdx
	andq	%r11, %rax
	sarq	%cl, %rax
	salq	%cl, %rax
	movq	%rax, %rcx
	cmpq	$1, %r15
	je	.L12
	movq	%r15, %rsi
	movq	%rax, %xmm4
	movq	%rbx, %xmm5
	movd	4(%rsp), %xmm3
	punpcklqdq	%xmm5, %xmm5
	shrq	%rsi
	punpcklqdq	%xmm4, %xmm4
	movd	%r14d, %xmm2
	leaq	data(%rip), %rdx
	salq	$4, %rsi
	leaq	(%rdx,%r12,8), %rax
	addq	%rax, %rsi
	.p2align 4,,10
	.p2align 3
.L13:
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	pand	%xmm5, %xmm0
	movdqa	%xmm0, %xmm1
	movdqu	-16(%rax), %xmm0
	por	%xmm4, %xmm1
	psrlq	%xmm3, %xmm0
	psllq	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, -16(%rax)
	cmpq	%rax, %rsi
	jne	.L13
	movq	%r15, %rax
	andq	$-2, %rax
	addq	%rax, %r12
	cmpq	%rax, %r15
	je	.L1
.L12:
	movq	(%rdx,%r12,8), %rax
	andq	%rax, %rbx
	orq	%rcx, %rbx
	movl	%ebp, %ecx
	shrq	%cl, %rax
	movl	%r14d, %ecx
	salq	%cl, %rax
	orq	%rax, %rbx
	movq	%rbx, (%rdx,%r12,8)
.L1:
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	leaq	data(%rip), %rdx
	movq	%rsi, (%rdx,%r13,8)
	movq	%r10, 8(%rdx,%r13,8)
	movq	%r10, (%rdx,%r12,8)
	movq	%r9, 8(%rdx,%r12,8)
	jmp	.L3
	.cfi_endproc
.LFE29:
	.size	solve.part.0, .-solve.part.0
	.p2align 4
	.globl	diff
	.type	diff, @function
diff:
.LFB23:
	.cfi_startproc
	endbr64
	xorq	%rsi, %rdi
	xorl	%eax, %eax
	rep bsfq	%rdi, %rax
	cltq
	ret
	.cfi_endproc
.LFE23:
	.size	diff, .-diff
	.globl	__popcountdi2
	.p2align 4
	.globl	hd
	.type	hd, @function
hd:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	xorq	%rsi, %rdi
	call	__popcountdi2@PLT
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	cltq
	ret
	.cfi_endproc
.LFE24:
	.size	hd, .-hd
	.p2align 4
	.globl	bit_remove
	.type	bit_remove, @function
bit_remove:
.LFB25:
	.cfi_startproc
	endbr64
	movl	%esi, %ecx
	movl	$1, %eax
	sall	%cl, %eax
	leal	1(%rsi), %ecx
	subl	$1, %eax
	cltq
	andq	%rdi, %rax
	shrq	%cl, %rdi
	movl	%esi, %ecx
	salq	%cl, %rdi
	orq	%rdi, %rax
	ret
	.cfi_endproc
.LFE25:
	.size	bit_remove, .-bit_remove
	.p2align 4
	.globl	bit_insert
	.type	bit_insert, @function
bit_insert:
.LFB26:
	.cfi_startproc
	endbr64
	movl	%esi, %ecx
	movq	%rdi, %rax
	movq	%rdi, %r8
	movl	$1, %edi
	shrq	%cl, %rax
	leal	1(%rsi), %ecx
	salq	%cl, %rax
	movl	%esi, %ecx
	sall	%cl, %edi
	salq	%cl, %rdx
	subl	$1, %edi
	orq	%rdx, %rax
	movslq	%edi, %rdi
	andq	%r8, %rdi
	orq	%rdi, %rax
	ret
	.cfi_endproc
.LFE26:
	.size	bit_insert, .-bit_insert
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB27:
	.cfi_startproc
	endbr64
	movq	%rsi, %xmm0
	movq	%rdx, %xmm1
	punpcklqdq	%xmm1, %xmm0
	cmpq	$1, %rdi
	je	.L36
	jmp	solve.part.0
	.p2align 4,,10
	.p2align 3
.L36:
	leaq	data(%rip), %rax
	movups	%xmm0, (%rax,%rcx,8)
	ret
	.cfi_endproc
.LFE27:
	.size	solve, .-solve
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld %ld %ld"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
.LC3:
	.string	"%ld "
.LC4:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB28:
	.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
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rsi
	xorl	%ecx, %ecx
	movq	%rsi, %rax
	movq	%rsi, %xmm0
	shrq	$32, %rax
	xorl	%esi, %eax
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	movq	16(%rsp), %rdx
	xorb	%ah, %al
	movq	%rdx, %rax
	movq	%rdx, %xmm1
	punpcklqdq	%xmm1, %xmm0
	setnp	%cl
	shrq	$32, %rax
	xorl	%edx, %eax
	movl	%eax, %edi
	shrl	$16, %edi
	xorl	%edi, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %eax
	cmpl	%eax, %ecx
	je	.L50
	movq	(%rsp), %rdi
	movl	$1, %ebp
	movl	%ebp, %r8d
	movl	%edi, %ecx
	sall	%cl, %r8d
	movslq	%r8d, %rbx
	cmpq	$1, %rdi
	je	.L51
	movq	%rbx, %r8
	xorl	%ecx, %ecx
	leaq	data(%rip), %r12
	call	solve.part.0
	movq	(%rsp), %rcx
	leaq	.LC2(%rip), %rdi
	sall	%cl, %ebp
	call	puts@PLT
	movslq	%ebp, %rbp
	subq	$1, %rbp
	je	.L42
.L41:
	xorl	%ebx, %ebx
	leaq	data(%rip), %r12
	leaq	.LC3(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L43:
	movq	(%r12,%rbx,8), %rdx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpq	%rbp, %rbx
	jb	.L43
.L42:
	movq	(%r12,%rbp,8), %rdx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L39:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L52
	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
.L51:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	movaps	%xmm0, data(%rip)
	leaq	-1(%rbx), %rbp
	call	puts@PLT
	jmp	.L41
.L50:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L39
.L52:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE28:
	.size	main, .-main
	.globl	data
	.bss
	.align 32
	.type	data, @object
	.size	data, 1048576
data:
	.zero	1048576
	.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
	.type	solve.part.0, @function
solve.part.0:
.LFB29:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdx, %r11
	movq	%rsi, %rax
	movq	%r8, %r15
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r11, %r9
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rcx, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	leaq	0(%r13,%r8), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdx, %rbp
	movl	$1, %edx
	shrq	%r12
	xorq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	rep bsfq	%rbp, %rbp
	movl	%ebp, %ecx
	leal	1(%rbp), %r14d
	sall	%cl, %edx
	subq	$56, %rsp
	.cfi_def_cfa_offset 112
	movl	%r14d, %ecx
	leal	-1(%rdx), %ebx
	shrq	%cl, %rsi
	movl	%edx, (%rsp)
	movl	%ebp, %ecx
	movslq	%ebx, %rbx
	movq	%rax, %rdx
	salq	%cl, %rsi
	movl	%r14d, %ecx
	andq	%rbx, %rdx
	shrq	%cl, %r9
	movl	%ebp, %ecx
	movl	%ebp, 4(%rsp)
	orq	%rdx, %rsi
	leaq	-1(%rdi), %rdx
	salq	%cl, %r9
	movq	%rdx, 8(%rsp)
	movq	%r11, %rdx
	movq	%rsi, %r10
	andq	%rbx, %rdx
	xorq	$1, %r10
	orq	%rdx, %r9
	cmpq	$2, %rdi
	je	.L26
	movq	8(%rsp), %rdi
	movq	%r10, %rdx
	movq	%r12, %r8
	movq	%r13, %rcx
	movq	%r11, 40(%rsp)
	movq	%rax, 32(%rsp)
	movq	%r9, 24(%rsp)
	movq	%r10, 16(%rsp)
	call	solve.part.0
	movq	24(%rsp), %rdx
	movq	%r15, %r8
	movq	%r12, %rcx
	movq	16(%rsp), %rsi
	movq	8(%rsp), %rdi
	call	solve.part.0
	movq	40(%rsp), %r11
	movq	32(%rsp), %rax
.L3:
	cmpq	%r12, %r13
	jnb	.L10
	movslq	(%rsp), %rdi
	movl	%ebp, %ecx
	movq	%r12, %rsi
	leaq	data(%rip), %rdx
	subq	%r13, %rsi
	andq	%rax, %rdi
	sarq	%cl, %rdi
	salq	%cl, %rdi
	cmpq	$1, %rsi
	je	.L7
	movq	%rsi, %rcx
	movq	%rbx, %xmm5
	movq	%rdi, %xmm4
	movd	4(%rsp), %xmm3
	punpcklqdq	%xmm5, %xmm5
	shrq	%rcx
	punpcklqdq	%xmm4, %xmm4
	movd	%r14d, %xmm2
	leaq	data(%rip), %rdx
	salq	$4, %rcx
	leaq	(%rdx,%r13,8), %rax
	addq	%rax, %rcx
	.p2align 4,,10
	.p2align 3
.L8:
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	movdqa	%xmm0, %xmm1
	pand	%xmm5, %xmm0
	psrlq	%xmm3, %xmm1
	por	%xmm4, %xmm0
	psllq	%xmm2, %xmm1
	por	%xmm1, %xmm0
	movups	%xmm0, -16(%rax)
	cmpq	%rax, %rcx
	jne	.L8
	movq	%rsi, %rax
	andq	$-2, %rax
	addq	%rax, %r13
	cmpq	%rax, %rsi
	je	.L10
.L7:
	movq	(%rdx,%r13,8), %rax
	movl	%ebp, %ecx
	movq	%rax, %rsi
	andq	%rbx, %rax
	shrq	%cl, %rsi
	movl	%r14d, %ecx
	orq	%rdi, %rax
	salq	%cl, %rsi
	orq	%rax, %rsi
	movq	%rsi, (%rdx,%r13,8)
.L10:
	cmpq	%r12, %r15
	jbe	.L1
	movslq	(%rsp), %rax
	movl	%ebp, %ecx
	subq	%r12, %r15
	leaq	data(%rip), %rdx
	andq	%r11, %rax
	sarq	%cl, %rax
	salq	%cl, %rax
	movq	%rax, %rcx
	cmpq	$1, %r15
	je	.L12
	movq	%r15, %rsi
	movq	%rax, %xmm4
	movq	%rbx, %xmm5
	movd	4(%rsp), %xmm3
	punpcklqdq	%xmm5, %xmm5
	shrq	%rsi
	punpcklqdq	%xmm4, %xmm4
	movd	%r14d, %xmm2
	leaq	data(%rip), %rdx
	salq	$4, %rsi
	leaq	(%rdx,%r12,8), %rax
	addq	%rax, %rsi
	.p2align 4,,10
	.p2align 3
.L13:
	movdqu	(%rax), %xmm0
	addq	$16, %rax
	pand	%xmm5, %xmm0
	movdqa	%xmm0, %xmm1
	movdqu	-16(%rax), %xmm0
	por	%xmm4, %xmm1
	psrlq	%xmm3, %xmm0
	psllq	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movups	%xmm0, -16(%rax)
	cmpq	%rax, %rsi
	jne	.L13
	movq	%r15, %rax
	andq	$-2, %rax
	addq	%rax, %r12
	cmpq	%rax, %r15
	je	.L1
.L12:
	movq	(%rdx,%r12,8), %rax
	andq	%rax, %rbx
	orq	%rcx, %rbx
	movl	%ebp, %ecx
	shrq	%cl, %rax
	movl	%r14d, %ecx
	salq	%cl, %rax
	orq	%rax, %rbx
	movq	%rbx, (%rdx,%r12,8)
.L1:
	addq	$56, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	leaq	data(%rip), %rdx
	movq	%rsi, (%rdx,%r13,8)
	movq	%r10, 8(%rdx,%r13,8)
	movq	%r10, (%rdx,%r12,8)
	movq	%r9, 8(%rdx,%r12,8)
	jmp	.L3
	.cfi_endproc
.LFE29:
	.size	solve.part.0, .-solve.part.0
	.p2align 4
	.globl	diff
	.type	diff, @function
diff:
.LFB23:
	.cfi_startproc
	endbr64
	xorq	%rsi, %rdi
	xorl	%eax, %eax
	rep bsfq	%rdi, %rax
	cltq
	ret
	.cfi_endproc
.LFE23:
	.size	diff, .-diff
	.globl	__popcountdi2
	.p2align 4
	.globl	hd
	.type	hd, @function
hd:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	xorq	%rsi, %rdi
	call	__popcountdi2@PLT
	addq	$8, %rsp
	.cfi_def_cfa_offset 8
	cltq
	ret
	.cfi_endproc
.LFE24:
	.size	hd, .-hd
	.p2align 4
	.globl	bit_remove
	.type	bit_remove, @function
bit_remove:
.LFB25:
	.cfi_startproc
	endbr64
	movl	%esi, %ecx
	movl	$1, %eax
	sall	%cl, %eax
	leal	1(%rsi), %ecx
	subl	$1, %eax
	cltq
	andq	%rdi, %rax
	shrq	%cl, %rdi
	movl	%esi, %ecx
	salq	%cl, %rdi
	orq	%rdi, %rax
	ret
	.cfi_endproc
.LFE25:
	.size	bit_remove, .-bit_remove
	.p2align 4
	.globl	bit_insert
	.type	bit_insert, @function
bit_insert:
.LFB26:
	.cfi_startproc
	endbr64
	movl	%esi, %ecx
	movq	%rdi, %rax
	movq	%rdi, %r8
	movl	$1, %edi
	shrq	%cl, %rax
	leal	1(%rsi), %ecx
	salq	%cl, %rax
	movl	%esi, %ecx
	sall	%cl, %edi
	salq	%cl, %rdx
	subl	$1, %edi
	orq	%rdx, %rax
	movslq	%edi, %rdi
	andq	%r8, %rdi
	orq	%rdi, %rax
	ret
	.cfi_endproc
.LFE26:
	.size	bit_insert, .-bit_insert
	.p2align 4
	.globl	solve
	.type	solve, @function
solve:
.LFB27:
	.cfi_startproc
	endbr64
	movq	%rsi, %xmm0
	movq	%rdx, %xmm1
	punpcklqdq	%xmm1, %xmm0
	cmpq	$1, %rdi
	je	.L36
	jmp	solve.part.0
	.p2align 4,,10
	.p2align 3
.L36:
	leaq	data(%rip), %rax
	movups	%xmm0, (%rax,%rcx,8)
	ret
	.cfi_endproc
.LFE27:
	.size	solve, .-solve
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld %ld %ld"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
.LC3:
	.string	"%ld "
.LC4:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB28:
	.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
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rcx
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rsi
	xorl	%ecx, %ecx
	movq	%rsi, %rax
	movq	%rsi, %xmm0
	shrq	$32, %rax
	xorl	%esi, %eax
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	movq	16(%rsp), %rdx
	xorb	%ah, %al
	movq	%rdx, %rax
	movq	%rdx, %xmm1
	punpcklqdq	%xmm1, %xmm0
	setnp	%cl
	shrq	$32, %rax
	xorl	%edx, %eax
	movl	%eax, %edi
	shrl	$16, %edi
	xorl	%edi, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %eax
	cmpl	%eax, %ecx
	je	.L50
	movq	(%rsp), %rdi
	movl	$1, %ebp
	movl	%ebp, %r8d
	movl	%edi, %ecx
	sall	%cl, %r8d
	movslq	%r8d, %rbx
	cmpq	$1, %rdi
	je	.L51
	movq	%rbx, %r8
	xorl	%ecx, %ecx
	leaq	data(%rip), %r12
	call	solve.part.0
	movq	(%rsp), %rcx
	leaq	.LC2(%rip), %rdi
	sall	%cl, %ebp
	call	puts@PLT
	movslq	%ebp, %rbp
	subq	$1, %rbp
	je	.L42
.L41:
	xorl	%ebx, %ebx
	leaq	data(%rip), %r12
	leaq	.LC3(%rip), %r13
	.p2align 4,,10
	.p2align 3
.L43:
	movq	(%r12,%rbx,8), %rdx
	movq	%r13, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__printf_chk@PLT
	cmpq	%rbp, %rbx
	jb	.L43
.L42:
	movq	(%r12,%rbp,8), %rdx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L39:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L52
	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
.L51:
	.cfi_restore_state
	leaq	.LC2(%rip), %rdi
	movaps	%xmm0, data(%rip)
	leaq	-1(%rbx), %rbp
	call	puts@PLT
	jmp	.L41
.L50:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L39
.L52:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE28:
	.size	main, .-main
	.globl	data
	.bss
	.align 32
	.type	data, @object
	.size	data, 1048576
data:
	.zero	1048576
	.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>

typedef unsigned long ulong;

ulong diff(ulong a, ulong b){
    return __builtin_ctzl(a^b);
}

ulong hd(ulong a, ulong b){
    return __builtin_popcountl(a^b);
}

ulong bit_remove(ulong a, ulong n){
    ulong low  = a & ((1<<n)-1);
    ulong high = (a >> (n+1)) << n;
    return high | low;
}

ulong bit_insert(ulong a, ulong n, ulong b){
    ulong low  = a & ((1<<n)-1);
    ulong high = (a >> n) << (n+1);
    return high | (b<<n) | low;
}
#define N 17
long data[1<<N];

void solve(const long n, const long a, const long b, const size_t sp, const size_t ep){
    if(n==1){
        data[sp+0] = a;
        data[sp+1] = b;
        return;
    }
    ulong d = diff(a, b);
    ulong aa = bit_remove(a, d);
    ulong ab = bit_remove(a, d) ^ 1;
    ulong bb = bit_remove(b, d);
    const size_t mp = (sp+ep)/2;
    solve(n-1, aa, ab, sp, mp);
    solve(n-1, ab, bb, mp, ep);
    for(size_t i=sp; i<mp; i++){
        data[i] = bit_insert(data[i], d, (a&(1<<d)) >> d);
    }
    for(size_t i=mp; i<ep; i++){
        data[i] = bit_insert(data[i], d, (b&(1<<d)) >> d);
    }
}

int main(void){
    long n, a, b;
    scanf("%ld %ld %ld", &n, &a, &b);
    if(__builtin_popcountl(a)%2 == __builtin_popcountl(b)%2){
        printf("NO\n");
        return 0;
    }
    solve(n, a, b, 0, 1<<n);
    const size_t m = 1<<n;
    printf("YES\n");
    for(size_t i=0; i<m-1; i++){
        printf("%ld ", data[i]);
    }
    printf("%ld\n", data[m-1]);
    return 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>

typedef unsigned long ulong;

ulong diff(ulong a, ulong b){
    return __builtin_ctzl(a^b);
}

ulong hd(ulong a, ulong b){
    return __builtin_popcountl(a^b);
}

ulong bit_remove(ulong a, ulong n){
    ulong low  = a & ((1<<n)-1);
    ulong high = (a >> (n+1)) << n;
    return high | low;
}

ulong bit_insert(ulong a, ulong n, ulong b){
    ulong low  = a & ((1<<n)-1);
    ulong high = (a >> n) << (n+1);
    return high | (b<<n) | low;
}
#define N 17
long data[1<<N];

void solve(const long n, const long a, const long b, const size_t sp, const size_t ep){
    if(n==1){
        data[sp+0] = a;
        data[sp+1] = b;
        return;
    }
    ulong d = diff(a, b);
    ulong aa = bit_remove(a, d);
    ulong ab = bit_remove(a, d) ^ 1;
    ulong bb = bit_remove(b, d);
    const size_t mp = (sp+ep)/2;
    solve(n-1, aa, ab, sp, mp);
    solve(n-1, ab, bb, mp, ep);
    for(size_t i=sp; i<mp; i++){
        data[i] = bit_insert(data[i], d, (a&(1<<d)) >> d);
    }
    for(size_t i=mp; i<ep; i++){
        data[i] = bit_insert(data[i], d, (b&(1<<d)) >> d);
    }
}

int main(void){
    long n, a, b;
    scanf("%ld %ld %ld", &n, &a, &b);
    if(__builtin_popcountl(a)%2 == __builtin_popcountl(b)%2){
        printf("NO\n");
        return 0;
    }
    solve(n, a, b, 0, 1<<n);
    const size_t m = 1<<n;
    printf("YES\n");
    for(size_t i=0; i<m-1; i++){
        printf("%ld ", data[i]);
    }
    printf("%ld\n", data[m-1]);
    return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	diff
	.type	diff, @function
diff:
.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, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	xorq	-16(%rbp), %rax
	rep bsfq	%rax, %rax
	cltq
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	diff, .-diff
	.globl	__popcountdi2
	.globl	hd
	.type	hd, @function
hd:
.LFB1:
	.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	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	xorq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	__popcountdi2@PLT
	cltq
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	hd, .-hd
	.globl	bit_remove
	.type	bit_remove, @function
bit_remove:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	subl	$1, %eax
	cltq
	andq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	addl	$1, %eax
	movq	-24(%rbp), %rdx
	movl	%eax, %ecx
	shrq	%cl, %rdx
	movq	-32(%rbp), %rax
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	orq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	bit_remove, .-bit_remove
	.globl	bit_insert
	.type	bit_insert, @function
bit_insert:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	subl	$1, %eax
	cltq
	andq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movl	%eax, %edx
	movq	-24(%rbp), %rax
	movl	%edx, %ecx
	shrq	%cl, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addl	$1, %eax
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-32(%rbp), %rax
	movl	%eax, %edx
	movq	-40(%rbp), %rax
	movl	%edx, %ecx
	salq	%cl, %rax
	orq	-8(%rbp), %rax
	orq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	bit_insert, .-bit_insert
	.globl	data
	.bss
	.align 32
	.type	data, @object
	.size	data, 1048576
data:
	.zero	1048576
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movq	%rdi, -72(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%rdx, -88(%rbp)
	movq	%rcx, -96(%rbp)
	movq	%r8, -104(%rbp)
	cmpq	$1, -72(%rbp)
	jne	.L10
	movq	-96(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	leaq	data(%rip), %rdx
	movq	-80(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	movq	-96(%rbp), %rax
	addq	$1, %rax
	leaq	0(,%rax,8), %rcx
	leaq	data(%rip), %rdx
	movq	-88(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	jmp	.L9
.L10:
	movq	-88(%rbp), %rdx
	movq	-80(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	diff
	movq	%rax, -40(%rbp)
	movq	-80(%rbp), %rax
	movq	-40(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	bit_remove
	movq	%rax, -32(%rbp)
	movq	-80(%rbp), %rax
	movq	-40(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	bit_remove
	xorq	$1, %rax
	movq	%rax, -24(%rbp)
	movq	-88(%rbp), %rax
	movq	-40(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	bit_remove
	movq	%rax, -16(%rbp)
	movq	-96(%rbp), %rdx
	movq	-104(%rbp), %rax
	addq	%rdx, %rax
	shrq	%rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rdx
	movq	-32(%rbp), %rax
	movq	-72(%rbp), %rcx
	leaq	-1(%rcx), %rdi
	movq	-8(%rbp), %rsi
	movq	-96(%rbp), %rcx
	movq	%rsi, %r8
	movq	%rax, %rsi
	call	solve
	movq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	movq	-72(%rbp), %rcx
	leaq	-1(%rcx), %rdi
	movq	-104(%rbp), %rsi
	movq	-8(%rbp), %rcx
	movq	%rsi, %r8
	movq	%rax, %rsi
	call	solve
	movq	-96(%rbp), %rax
	movq	%rax, -56(%rbp)
	jmp	.L12
.L13:
	movq	-40(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	andq	-80(%rbp), %rax
	movq	-40(%rbp), %rdx
	movl	%edx, %ecx
	sarq	%cl, %rax
	movq	%rax, %rsi
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movq	%rsi, %rdx
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	bit_insert
	movq	%rax, %rcx
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -56(%rbp)
.L12:
	movq	-56(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jb	.L13
	movq	-8(%rbp), %rax
	movq	%rax, -48(%rbp)
	jmp	.L14
.L15:
	movq	-40(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	andq	-88(%rbp), %rax
	movq	-40(%rbp), %rdx
	movl	%edx, %ecx
	sarq	%cl, %rax
	movq	%rax, %rsi
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movq	%rsi, %rdx
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	bit_insert
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -48(%rbp)
.L14:
	movq	-48(%rbp), %rax
	cmpq	-104(%rbp), %rax
	jb	.L15
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	solve, .-solve
	.section	.rodata
.LC0:
	.string	"%ld %ld %ld"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
.LC3:
	.string	"%ld "
.LC4:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.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
	leaq	-32(%rbp), %rcx
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-40(%rbp), %rax
	movq	%rax, %rdx
	shrq	$32, %rdx
	xorl	%edx, %eax
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %eax
	movl	%eax, %ecx
	movq	-32(%rbp), %rax
	movq	%rax, %rdx
	shrq	$32, %rdx
	xorl	%edx, %eax
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %eax
	cmpl	%eax, %ecx
	jne	.L17
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L21
.L17:
	movq	-48(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	movslq	%eax, %rcx
	movq	-32(%rbp), %rdx
	movq	-40(%rbp), %rsi
	movq	-48(%rbp), %rax
	movq	%rcx, %r8
	movl	$0, %ecx
	movq	%rax, %rdi
	call	solve
	movq	-48(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -16(%rbp)
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movq	$0, -24(%rbp)
	jmp	.L19
.L20:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -24(%rbp)
.L19:
	movq	-16(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -24(%rbp)
	jb	.L20
	movq	-16(%rbp), %rax
	subq	$1, %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L21:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.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	diff
	.type	diff, @function
diff:
.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, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	xorq	-16(%rbp), %rax
	rep bsfq	%rax, %rax
	cltq
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	diff, .-diff
	.globl	__popcountdi2
	.globl	hd
	.type	hd, @function
hd:
.LFB1:
	.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	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	xorq	-16(%rbp), %rax
	movq	%rax, %rdi
	call	__popcountdi2@PLT
	cltq
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	hd, .-hd
	.globl	bit_remove
	.type	bit_remove, @function
bit_remove:
.LFB2:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	subl	$1, %eax
	cltq
	andq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	addl	$1, %eax
	movq	-24(%rbp), %rdx
	movl	%eax, %ecx
	shrq	%cl, %rdx
	movq	-32(%rbp), %rax
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	orq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	bit_remove, .-bit_remove
	.globl	bit_insert
	.type	bit_insert, @function
bit_insert:
.LFB3:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	%rdx, -40(%rbp)
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	subl	$1, %eax
	cltq
	andq	-24(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movl	%eax, %edx
	movq	-24(%rbp), %rax
	movl	%edx, %ecx
	shrq	%cl, %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addl	$1, %eax
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-32(%rbp), %rax
	movl	%eax, %edx
	movq	-40(%rbp), %rax
	movl	%edx, %ecx
	salq	%cl, %rax
	orq	-8(%rbp), %rax
	orq	-16(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	bit_insert, .-bit_insert
	.globl	data
	.bss
	.align 32
	.type	data, @object
	.size	data, 1048576
data:
	.zero	1048576
	.text
	.globl	solve
	.type	solve, @function
solve:
.LFB4:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$112, %rsp
	movq	%rdi, -72(%rbp)
	movq	%rsi, -80(%rbp)
	movq	%rdx, -88(%rbp)
	movq	%rcx, -96(%rbp)
	movq	%r8, -104(%rbp)
	cmpq	$1, -72(%rbp)
	jne	.L10
	movq	-96(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	leaq	data(%rip), %rdx
	movq	-80(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	movq	-96(%rbp), %rax
	addq	$1, %rax
	leaq	0(,%rax,8), %rcx
	leaq	data(%rip), %rdx
	movq	-88(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	jmp	.L9
.L10:
	movq	-88(%rbp), %rdx
	movq	-80(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	diff
	movq	%rax, -40(%rbp)
	movq	-80(%rbp), %rax
	movq	-40(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	bit_remove
	movq	%rax, -32(%rbp)
	movq	-80(%rbp), %rax
	movq	-40(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	bit_remove
	xorq	$1, %rax
	movq	%rax, -24(%rbp)
	movq	-88(%rbp), %rax
	movq	-40(%rbp), %rdx
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	bit_remove
	movq	%rax, -16(%rbp)
	movq	-96(%rbp), %rdx
	movq	-104(%rbp), %rax
	addq	%rdx, %rax
	shrq	%rax
	movq	%rax, -8(%rbp)
	movq	-24(%rbp), %rdx
	movq	-32(%rbp), %rax
	movq	-72(%rbp), %rcx
	leaq	-1(%rcx), %rdi
	movq	-8(%rbp), %rsi
	movq	-96(%rbp), %rcx
	movq	%rsi, %r8
	movq	%rax, %rsi
	call	solve
	movq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	movq	-72(%rbp), %rcx
	leaq	-1(%rcx), %rdi
	movq	-104(%rbp), %rsi
	movq	-8(%rbp), %rcx
	movq	%rsi, %r8
	movq	%rax, %rsi
	call	solve
	movq	-96(%rbp), %rax
	movq	%rax, -56(%rbp)
	jmp	.L12
.L13:
	movq	-40(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	andq	-80(%rbp), %rax
	movq	-40(%rbp), %rdx
	movl	%edx, %ecx
	sarq	%cl, %rax
	movq	%rax, %rsi
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movq	%rsi, %rdx
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	bit_insert
	movq	%rax, %rcx
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -56(%rbp)
.L12:
	movq	-56(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jb	.L13
	movq	-8(%rbp), %rax
	movq	%rax, -48(%rbp)
	jmp	.L14
.L15:
	movq	-40(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	andq	-88(%rbp), %rax
	movq	-40(%rbp), %rdx
	movl	%edx, %ecx
	sarq	%cl, %rax
	movq	%rax, %rsi
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rcx
	movq	-40(%rbp), %rax
	movq	%rsi, %rdx
	movq	%rax, %rsi
	movq	%rcx, %rdi
	call	bit_insert
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -48(%rbp)
.L14:
	movq	-48(%rbp), %rax
	cmpq	-104(%rbp), %rax
	jb	.L15
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	solve, .-solve
	.section	.rodata
.LC0:
	.string	"%ld %ld %ld"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
.LC3:
	.string	"%ld "
.LC4:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB5:
	.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
	leaq	-32(%rbp), %rcx
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-40(%rbp), %rax
	movq	%rax, %rdx
	shrq	$32, %rdx
	xorl	%edx, %eax
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %eax
	movl	%eax, %ecx
	movq	-32(%rbp), %rax
	movq	%rax, %rdx
	shrq	$32, %rdx
	xorl	%edx, %eax
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %eax
	cmpl	%eax, %ecx
	jne	.L17
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L21
.L17:
	movq	-48(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	movslq	%eax, %rcx
	movq	-32(%rbp), %rdx
	movq	-40(%rbp), %rsi
	movq	-48(%rbp), %rax
	movq	%rcx, %r8
	movl	$0, %ecx
	movq	%rax, %rdi
	call	solve
	movq	-48(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -16(%rbp)
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movq	$0, -24(%rbp)
	jmp	.L19
.L20:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rsi
	leaq	.LC3(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -24(%rbp)
.L19:
	movq	-16(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -24(%rbp)
	jb	.L20
	movq	-16(%rbp), %rax
	subq	$1, %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rsi
	leaq	.LC4(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L21:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.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:
