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;

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

static inline void pl(long n){
#define L 8
    char c[L];
    long i=L-1;
    do{
        c[i]=n%10+'0';
        n/=10;
        i--;
    }while(n>0);
    for(i++;i<L;i++){
        putchar_unlocked(c[i]);
    }
}

#define N 17
long data[1<<N];

static void solve(long a, long b, const size_t sp, const size_t ep, long mask){
    if(ep-sp<=2){
        data[sp+0] = a;
        data[sp+1] = b;
        return;
    }
    const ulong d = diff(a, b);
    mask ^= (1<<d);
    const ulong ad = a&(1<<d);
    const ulong bd = b&(1<<d);
    a &= mask;
    b &= mask;
    const ulong ab = a ^ (mask&(-mask));
    const size_t mp = (sp+ep)/2;
    //printf("%ld %ld %ld\n", aa, ab, bb);
    solve(a, ab, sp, mp, mask);
    solve(ab, b, mp, ep, mask);
    for(size_t i=sp; i<mp; i++){ data[i] |= ad; }
    for(size_t i=mp; i<ep; i++){ data[i] |= bd; }
}

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(a, b, 0, 1<<n, 0xFFFFFFFFFFFFFFFF);
    const size_t m = 1<<n;
    printf("YES\n");
    for(size_t i=0; i<m-1; i++){
        pl(data[i]);
        putchar_unlocked(' ');
        //printf("%ld ", data[i]);
    }
    pl(data[m-1]);
    putchar_unlocked('\n');
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.type	diff, @function
diff:
.LFB0:
	.cfi_startproc
	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
	.type	pl, @function
pl:
.LFB1:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -40(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$7, -24(%rbp)
.L4:
	movq	-40(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	%edx, %eax
	addl	$48, %eax
	movl	%eax, %edx
	leaq	-16(%rbp), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movb	%dl, (%rax)
	movq	-40(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	subq	$1, -24(%rbp)
	cmpq	$0, -40(%rbp)
	jg	.L4
	addq	$1, -24(%rbp)
	jmp	.L5
.L6:
	leaq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	addq	$1, -24(%rbp)
.L5:
	cmpq	$7, -24(%rbp)
	jle	.L6
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	pl, .-pl
	.globl	data
	.bss
	.align 32
	.type	data, @object
	.size	data, 1048576
data:
	.zero	1048576
	.text
	.type	solve, @function
solve:
.LFB2:
	.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)
	movq	-96(%rbp), %rax
	subq	-88(%rbp), %rax
	cmpq	$2, %rax
	ja	.L9
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	leaq	data(%rip), %rdx
	movq	-72(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	movq	-88(%rbp), %rax
	addq	$1, %rax
	leaq	0(,%rax,8), %rcx
	leaq	data(%rip), %rdx
	movq	-80(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	jmp	.L8
.L9:
	movq	-80(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	diff
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	xorq	%rax, -104(%rbp)
	movq	-40(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	andq	-72(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	-40(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	andq	-80(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-104(%rbp), %rax
	andq	%rax, -72(%rbp)
	movq	-104(%rbp), %rax
	andq	%rax, -80(%rbp)
	movq	-104(%rbp), %rax
	negq	%rax
	andq	-104(%rbp), %rax
	xorq	-72(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-88(%rbp), %rdx
	movq	-96(%rbp), %rax
	addq	%rdx, %rax
	shrq	%rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rsi
	movq	-104(%rbp), %rdi
	movq	-8(%rbp), %rcx
	movq	-88(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdi, %r8
	movq	%rax, %rdi
	call	solve
	movq	-16(%rbp), %rax
	movq	-104(%rbp), %rdi
	movq	-96(%rbp), %rcx
	movq	-8(%rbp), %rdx
	movq	-80(%rbp), %rsi
	movq	%rdi, %r8
	movq	%rax, %rdi
	call	solve
	movq	-88(%rbp), %rax
	movq	%rax, -56(%rbp)
	jmp	.L11
.L12:
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	orq	-32(%rbp), %rax
	movq	%rax, %rcx
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -56(%rbp)
.L11:
	movq	-56(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jb	.L12
	movq	-8(%rbp), %rax
	movq	%rax, -48(%rbp)
	jmp	.L13
.L14:
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	orq	-24(%rbp), %rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -48(%rbp)
.L13:
	movq	-48(%rbp), %rax
	cmpq	-96(%rbp), %rax
	jb	.L14
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	solve, .-solve
	.section	.rodata
.LC0:
	.string	"%ld %ld %ld"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.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	.L16
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L20
.L16:
	movq	-48(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rsi
	movq	-40(%rbp), %rax
	movq	$-1, %r8
	movq	%rdx, %rcx
	movl	$0, %edx
	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	.L18
.L19:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rdi
	call	pl
	movl	$32, %edi
	call	putchar_unlocked@PLT
	addq	$1, -24(%rbp)
.L18:
	movq	-16(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -24(%rbp)
	jb	.L19
	movq	-16(%rbp), %rax
	subq	$1, %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rdi
	call	pl
	movl	$10, %edi
	call	putchar_unlocked@PLT
	movl	$0, %eax
.L20:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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, @function
solve:
.LFB25:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rcx, %rax
	movq	%rdi, %xmm0
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	subq	%rdx, %rax
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%rsi, (%rsp)
	movhps	(%rsp), %xmm0
	cmpq	$2, %rax
	ja	.L2
	leaq	data(%rip), %rax
	movups	%xmm0, (%rax,%rdx,8)
.L1:
	addq	$24, %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
.L2:
	.cfi_restore_state
	movq	%rcx, %r12
	movq	%rsi, %rcx
	movl	$1, %r14d
	movq	%rsi, %r9
	xorq	%rdi, %rcx
	leaq	(%r12,%rdx), %rbp
	rep bsfq	%rcx, %rcx
	shrq	%rbp
	sall	%cl, %r14d
	movq	%rbp, %rcx
	movslq	%r14d, %r14
	xorq	%r14, %r8
	movq	%r14, %r15
	andq	(%rsp), %r14
	movq	%r8, %r10
	andq	%r8, %r9
	andq	%rdi, %r15
	movq	%r8, %r13
	negq	%r10
	movq	%r9, 8(%rsp)
	xorq	%rdi, %r10
	andq	%r8, %rdi
	andq	%r8, %r10
	movq	%r10, %rsi
	movq	%r10, (%rsp)
	call	solve
	movq	8(%rsp), %rsi
	movq	%r13, %r8
	movq	%r12, %rcx
	movq	(%rsp), %rdi
	movq	%rbp, %rdx
	call	solve
	cmpq	%rbp, %rbx
	jnb	.L4
	movq	%rbp, %rsi
	leaq	data(%rip), %rax
	subq	%rbx, %rsi
	cmpq	$1, %rsi
	je	.L5
	movq	%rsi, %rcx
	leaq	data(%rip), %rax
	movq	%r15, %xmm1
	shrq	%rcx
	leaq	(%rax,%rbx,8), %rdx
	punpcklqdq	%xmm1, %xmm1
	salq	$4, %rcx
	addq	%rdx, %rcx
	.p2align 4,,10
	.p2align 3
.L6:
	movdqu	(%rdx), %xmm0
	addq	$16, %rdx
	por	%xmm1, %xmm0
	movups	%xmm0, -16(%rdx)
	cmpq	%rdx, %rcx
	jne	.L6
	movq	%rsi, %rdx
	andq	$-2, %rdx
	addq	%rdx, %rbx
	cmpq	%rdx, %rsi
	je	.L4
.L5:
	orq	%r15, (%rax,%rbx,8)
.L4:
	cmpq	%rbp, %r12
	jbe	.L1
	subq	%rbp, %r12
	leaq	data(%rip), %rax
	cmpq	$1, %r12
	je	.L9
	movq	%r12, %rcx
	leaq	data(%rip), %rax
	movq	%r14, %xmm1
	shrq	%rcx
	leaq	(%rax,%rbp,8), %rdx
	punpcklqdq	%xmm1, %xmm1
	salq	$4, %rcx
	addq	%rdx, %rcx
	.p2align 4,,10
	.p2align 3
.L10:
	movdqu	(%rdx), %xmm0
	addq	$16, %rdx
	por	%xmm1, %xmm0
	movups	%xmm0, -16(%rdx)
	cmpq	%rdx, %rcx
	jne	.L10
	movq	%r12, %rdx
	andq	$-2, %rdx
	addq	%rdx, %rbp
	cmpq	%rdx, %r12
	je	.L1
.L9:
	orq	%r14, (%rax,%rbp,8)
	addq	$24, %rsp
	.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
	.cfi_endproc
.LFE25:
	.size	solve, .-solve
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld %ld %ld"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB26:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rcx
	leaq	32(%rsp), %rdx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %rdi
	movq	40(%rsp), %rsi
	movq	%rdi, %rax
	shrq	$32, %rax
	xorl	%edi, %eax
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	xorl	%edx, %edx
	xorb	%ah, %al
	movq	%rsi, %rax
	setnp	%dl
	shrq	$32, %rax
	xorl	%esi, %eax
	movl	%eax, %ecx
	shrl	$16, %ecx
	xorl	%ecx, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %eax
	cmpl	%eax, %edx
	je	.L122
	movq	24(%rsp), %rcx
	movl	$1, %ebp
	movq	$-1, %r8
	xorl	%edx, %edx
	movl	%ebp, %eax
	leaq	data(%rip), %r15
	sall	%cl, %eax
	movslq	%eax, %rcx
	call	solve
	movq	24(%rsp), %rcx
	leaq	.LC2(%rip), %rdi
	sall	%cl, %ebp
	call	puts@PLT
	movslq	%ebp, %rbp
	subq	$1, %rbp
	je	.L25
	movabsq	$7378697629483820647, %r12
	xorl	%r14d, %r14d
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L125:
	movq	%rcx, %rax
	imulq	%r12
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rsi
	subq	%rax, %rsi
	leaq	(%rsi,%rsi,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addl	$48, %ecx
	movb	%cl, 54(%rsp)
	cmpq	$99, %rdi
	jle	.L68
	movq	%rsi, %rax
	imulq	%r12
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	leaq	(%rcx,%rcx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rsi
	addl	$48, %esi
	movb	%sil, 53(%rsp)
	cmpq	$999, %rdi
	jle	.L69
	movq	%rcx, %rax
	imulq	%r12
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rsi
	subq	%rax, %rsi
	leaq	(%rsi,%rsi,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addl	$48, %ecx
	movb	%cl, 52(%rsp)
	cmpq	$9999, %rdi
	jle	.L70
	movq	%rsi, %rax
	imulq	%r12
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	movq	%rdx, %rcx
	addq	%rax, %rax
	subq	%rax, %rsi
	addl	$48, %esi
	movb	%sil, 51(%rsp)
	cmpq	$99999, %rdi
	jle	.L71
	movq	%rdx, %rax
	imulq	%r12
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rsi
	subq	%rax, %rsi
	leaq	(%rsi,%rsi,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addl	$48, %ecx
	movb	%cl, 50(%rsp)
	cmpq	$999999, %rdi
	jle	.L72
	movq	%rsi, %rax
	imulq	%r12
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	leaq	(%rcx,%rcx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rsi
	addl	$48, %esi
	movb	%sil, 49(%rsp)
	cmpq	$9999999, %rdi
	jle	.L73
	movq	%rcx, %rax
	xorl	%ebx, %ebx
	imulq	%r12
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addl	$48, %ecx
	movb	%cl, 48(%rsp)
.L26:
	movq	stdout(%rip), %rdi
	movzbl	48(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L27
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L28:
	cmpq	$7, %rbx
	je	.L29
	movq	stdout(%rip), %rdi
	movzbl	49(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L30
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L31:
	cmpq	$6, %rbx
	je	.L29
	movq	stdout(%rip), %rdi
	movzbl	50(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L32
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L33:
	cmpq	$5, %rbx
	je	.L29
	movq	stdout(%rip), %rdi
	movzbl	51(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L34
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L35:
	cmpq	$4, %rbx
	je	.L29
	movq	stdout(%rip), %rdi
	movzbl	52(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L36
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L37:
	cmpq	$3, %rbx
	je	.L29
	movq	stdout(%rip), %rdi
	movzbl	53(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L38
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L39:
	leaq	6(%rbx), %rdx
	cmpq	$2, %rbx
	je	.L29
	movq	stdout(%rip), %rdi
	movzbl	48(%rsp,%rdx), %ecx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L40
	leaq	1(%rax), %rsi
	movq	%rsi, 40(%rdi)
	movb	%cl, (%rax)
.L41:
	cmpq	$6, %rdx
	jne	.L29
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L123
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	%r13b, (%rax)
.L29:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L124
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$32, (%rax)
.L45:
	addq	$1, %r14
	cmpq	%rbp, %r14
	je	.L25
.L46:
	movq	(%r15,%r14,8), %rdi
	movq	%rdi, %rax
	movq	%rdi, %r13
	imulq	%r12
	movq	%rdi, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	leaq	(%rcx,%rcx,4), %rax
	addq	%rax, %rax
	subq	%rax, %r13
	addl	$48, %r13d
	movb	%r13b, 55(%rsp)
	cmpq	$9, %rdi
	jg	.L125
	movl	$7, %ebx
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L25:
	movabsq	$7378697629483820647, %rcx
	movq	(%r15,%rbp,8), %rdi
	movq	%rdi, %rax
	movq	%rdi, %rbx
	imulq	%rcx
	movq	%rdi, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rsi
	subq	%rax, %rsi
	leaq	(%rsi,%rsi,4), %rax
	addq	%rax, %rax
	subq	%rax, %rbx
	addl	$48, %ebx
	movb	%bl, 55(%rsp)
	cmpq	$9, %rdi
	jle	.L74
	movq	%rsi, %rax
	imulq	%rcx
	movq	%rdx, %rax
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$2, %rax
	subq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdx, %rdx
	subq	%rdx, %rsi
	leal	48(%rsi), %edx
	movb	%dl, 54(%rsp)
	cmpq	$99, %rdi
	jle	.L75
	movl	$10, %ecx
	cqto
	idivq	%rcx
	addl	$48, %edx
	movb	%dl, 53(%rsp)
	cmpq	$999, %rdi
	jle	.L76
	cqto
	idivq	%rcx
	addl	$48, %edx
	movb	%dl, 52(%rsp)
	cmpq	$9999, %rdi
	jle	.L77
	cqto
	idivq	%rcx
	addl	$48, %edx
	movb	%dl, 51(%rsp)
	cmpq	$99999, %rdi
	jle	.L78
	cqto
	idivq	%rcx
	addl	$48, %edx
	movb	%dl, 50(%rsp)
	cmpq	$999999, %rdi
	jle	.L79
	cqto
	idivq	%rcx
	addl	$48, %edx
	movb	%dl, 49(%rsp)
	cmpq	$9999999, %rdi
	jle	.L80
	cqto
	xorl	%ebp, %ebp
	idivq	%rcx
	addl	$48, %edx
	movb	%dl, 48(%rsp)
.L47:
	movq	stdout(%rip), %rdi
	movzbl	48(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L48
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L49:
	cmpq	$7, %rbp
	je	.L50
	movq	stdout(%rip), %rdi
	movzbl	49(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L51
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L52:
	cmpq	$6, %rbp
	je	.L50
	movq	stdout(%rip), %rdi
	movzbl	50(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L53
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L54:
	cmpq	$5, %rbp
	je	.L50
	movq	stdout(%rip), %rdi
	movzbl	51(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L55
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L56:
	cmpq	$4, %rbp
	je	.L50
	movq	stdout(%rip), %rdi
	movzbl	52(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L57
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L58:
	cmpq	$3, %rbp
	je	.L50
	movq	stdout(%rip), %rdi
	movzbl	53(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L59
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L60:
	leaq	6(%rbp), %r12
	cmpq	$2, %rbp
	je	.L50
	movq	stdout(%rip), %rdi
	movzbl	48(%rsp,%r12), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L61
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L62:
	cmpq	$6, %r12
	jne	.L50
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L126
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	%bl, (%rax)
.L50:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L127
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$10, (%rax)
.L24:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L128
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	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
.L68:
	.cfi_restore_state
	movl	$6, %ebx
	jmp	.L26
.L124:
	movl	$32, %esi
	call	__overflow@PLT
	jmp	.L45
.L27:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L28
.L69:
	movl	$5, %ebx
	jmp	.L26
.L30:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L31
.L70:
	movl	$4, %ebx
	jmp	.L26
.L32:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L33
.L71:
	movl	$3, %ebx
	jmp	.L26
.L34:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L35
.L72:
	movl	$2, %ebx
	jmp	.L26
.L36:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L37
.L73:
	movl	$1, %ebx
	jmp	.L26
.L38:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L39
.L40:
	movzbl	%cl, %esi
	movq	%rdx, 8(%rsp)
	call	__overflow@PLT
	movq	8(%rsp), %rdx
	jmp	.L41
.L123:
	movzbl	%r13b, %esi
	call	__overflow@PLT
	jmp	.L29
.L122:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L24
.L77:
	movl	$4, %ebp
	jmp	.L47
.L74:
	movl	$7, %ebp
	jmp	.L47
.L75:
	movl	$6, %ebp
	jmp	.L47
.L48:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L49
.L127:
	movl	$10, %esi
	call	__overflow@PLT
	jmp	.L24
.L76:
	movl	$5, %ebp
	jmp	.L47
.L51:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L52
.L78:
	movl	$3, %ebp
	jmp	.L47
.L53:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L54
.L55:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L56
.L79:
	movl	$2, %ebp
	jmp	.L47
.L57:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L58
.L80:
	movl	$1, %ebp
	jmp	.L47
.L59:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L60
.L61:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L62
.L126:
	movzbl	%bl, %esi
	call	__overflow@PLT
	jmp	.L50
.L128:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE26:
	.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, @function
solve:
.LFB25:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rcx, %rax
	movq	%rdi, %xmm0
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	subq	%rdx, %rax
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%rsi, (%rsp)
	movhps	(%rsp), %xmm0
	cmpq	$2, %rax
	ja	.L2
	leaq	data(%rip), %rax
	movups	%xmm0, (%rax,%rdx,8)
.L1:
	addq	$24, %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
.L2:
	.cfi_restore_state
	movq	%rcx, %r12
	movq	%rsi, %rcx
	movl	$1, %r14d
	movq	%rsi, %r9
	xorq	%rdi, %rcx
	leaq	(%r12,%rdx), %rbp
	rep bsfq	%rcx, %rcx
	shrq	%rbp
	sall	%cl, %r14d
	movq	%rbp, %rcx
	movslq	%r14d, %r14
	xorq	%r14, %r8
	movq	%r14, %r15
	andq	(%rsp), %r14
	movq	%r8, %r10
	andq	%r8, %r9
	andq	%rdi, %r15
	movq	%r8, %r13
	negq	%r10
	movq	%r9, 8(%rsp)
	xorq	%rdi, %r10
	andq	%r8, %rdi
	andq	%r8, %r10
	movq	%r10, %rsi
	movq	%r10, (%rsp)
	call	solve
	movq	8(%rsp), %rsi
	movq	%r13, %r8
	movq	%r12, %rcx
	movq	(%rsp), %rdi
	movq	%rbp, %rdx
	call	solve
	cmpq	%rbp, %rbx
	jnb	.L4
	movq	%rbp, %rsi
	leaq	data(%rip), %rax
	subq	%rbx, %rsi
	cmpq	$1, %rsi
	je	.L5
	movq	%rsi, %rcx
	leaq	data(%rip), %rax
	movq	%r15, %xmm1
	shrq	%rcx
	leaq	(%rax,%rbx,8), %rdx
	punpcklqdq	%xmm1, %xmm1
	salq	$4, %rcx
	addq	%rdx, %rcx
	.p2align 4,,10
	.p2align 3
.L6:
	movdqu	(%rdx), %xmm0
	addq	$16, %rdx
	por	%xmm1, %xmm0
	movups	%xmm0, -16(%rdx)
	cmpq	%rdx, %rcx
	jne	.L6
	movq	%rsi, %rdx
	andq	$-2, %rdx
	addq	%rdx, %rbx
	cmpq	%rdx, %rsi
	je	.L4
.L5:
	orq	%r15, (%rax,%rbx,8)
.L4:
	cmpq	%rbp, %r12
	jbe	.L1
	subq	%rbp, %r12
	leaq	data(%rip), %rax
	cmpq	$1, %r12
	je	.L9
	movq	%r12, %rcx
	leaq	data(%rip), %rax
	movq	%r14, %xmm1
	shrq	%rcx
	leaq	(%rax,%rbp,8), %rdx
	punpcklqdq	%xmm1, %xmm1
	salq	$4, %rcx
	addq	%rdx, %rcx
	.p2align 4,,10
	.p2align 3
.L10:
	movdqu	(%rdx), %xmm0
	addq	$16, %rdx
	por	%xmm1, %xmm0
	movups	%xmm0, -16(%rdx)
	cmpq	%rdx, %rcx
	jne	.L10
	movq	%r12, %rdx
	andq	$-2, %rdx
	addq	%rdx, %rbp
	cmpq	%rdx, %r12
	je	.L1
.L9:
	orq	%r14, (%rax,%rbp,8)
	addq	$24, %rsp
	.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
	.cfi_endproc
.LFE25:
	.size	solve, .-solve
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld %ld %ld"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB26:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	40(%rsp), %rcx
	leaq	32(%rsp), %rdx
	leaq	24(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	32(%rsp), %rdi
	movq	40(%rsp), %rsi
	movq	%rdi, %rax
	shrq	$32, %rax
	xorl	%edi, %eax
	movl	%eax, %edx
	shrl	$16, %edx
	xorl	%edx, %eax
	xorl	%edx, %edx
	xorb	%ah, %al
	movq	%rsi, %rax
	setnp	%dl
	shrq	$32, %rax
	xorl	%esi, %eax
	movl	%eax, %ecx
	shrl	$16, %ecx
	xorl	%ecx, %eax
	xorb	%ah, %al
	setnp	%al
	movzbl	%al, %eax
	cmpl	%eax, %edx
	je	.L122
	movq	24(%rsp), %rcx
	movl	$1, %ebp
	movq	$-1, %r8
	xorl	%edx, %edx
	movl	%ebp, %eax
	leaq	data(%rip), %r15
	sall	%cl, %eax
	movslq	%eax, %rcx
	call	solve
	movq	24(%rsp), %rcx
	leaq	.LC2(%rip), %rdi
	sall	%cl, %ebp
	call	puts@PLT
	movslq	%ebp, %rbp
	subq	$1, %rbp
	je	.L25
	movabsq	$7378697629483820647, %r12
	xorl	%r14d, %r14d
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L125:
	movq	%rcx, %rax
	imulq	%r12
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rsi
	subq	%rax, %rsi
	leaq	(%rsi,%rsi,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addl	$48, %ecx
	movb	%cl, 54(%rsp)
	cmpq	$99, %rdi
	jle	.L68
	movq	%rsi, %rax
	imulq	%r12
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	leaq	(%rcx,%rcx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rsi
	addl	$48, %esi
	movb	%sil, 53(%rsp)
	cmpq	$999, %rdi
	jle	.L69
	movq	%rcx, %rax
	imulq	%r12
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rsi
	subq	%rax, %rsi
	leaq	(%rsi,%rsi,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addl	$48, %ecx
	movb	%cl, 52(%rsp)
	cmpq	$9999, %rdi
	jle	.L70
	movq	%rsi, %rax
	imulq	%r12
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	movq	%rdx, %rcx
	addq	%rax, %rax
	subq	%rax, %rsi
	addl	$48, %esi
	movb	%sil, 51(%rsp)
	cmpq	$99999, %rdi
	jle	.L71
	movq	%rdx, %rax
	imulq	%r12
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rsi
	subq	%rax, %rsi
	leaq	(%rsi,%rsi,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addl	$48, %ecx
	movb	%cl, 50(%rsp)
	cmpq	$999999, %rdi
	jle	.L72
	movq	%rsi, %rax
	imulq	%r12
	movq	%rsi, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	leaq	(%rcx,%rcx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rsi
	addl	$48, %esi
	movb	%sil, 49(%rsp)
	cmpq	$9999999, %rdi
	jle	.L73
	movq	%rcx, %rax
	xorl	%ebx, %ebx
	imulq	%r12
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%rdx,4), %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	addl	$48, %ecx
	movb	%cl, 48(%rsp)
.L26:
	movq	stdout(%rip), %rdi
	movzbl	48(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L27
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L28:
	cmpq	$7, %rbx
	je	.L29
	movq	stdout(%rip), %rdi
	movzbl	49(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L30
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L31:
	cmpq	$6, %rbx
	je	.L29
	movq	stdout(%rip), %rdi
	movzbl	50(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L32
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L33:
	cmpq	$5, %rbx
	je	.L29
	movq	stdout(%rip), %rdi
	movzbl	51(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L34
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L35:
	cmpq	$4, %rbx
	je	.L29
	movq	stdout(%rip), %rdi
	movzbl	52(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L36
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L37:
	cmpq	$3, %rbx
	je	.L29
	movq	stdout(%rip), %rdi
	movzbl	53(%rsp,%rbx), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L38
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L39:
	leaq	6(%rbx), %rdx
	cmpq	$2, %rbx
	je	.L29
	movq	stdout(%rip), %rdi
	movzbl	48(%rsp,%rdx), %ecx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L40
	leaq	1(%rax), %rsi
	movq	%rsi, 40(%rdi)
	movb	%cl, (%rax)
.L41:
	cmpq	$6, %rdx
	jne	.L29
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L123
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	%r13b, (%rax)
.L29:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L124
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$32, (%rax)
.L45:
	addq	$1, %r14
	cmpq	%rbp, %r14
	je	.L25
.L46:
	movq	(%r15,%r14,8), %rdi
	movq	%rdi, %rax
	movq	%rdi, %r13
	imulq	%r12
	movq	%rdi, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	leaq	(%rcx,%rcx,4), %rax
	addq	%rax, %rax
	subq	%rax, %r13
	addl	$48, %r13d
	movb	%r13b, 55(%rsp)
	cmpq	$9, %rdi
	jg	.L125
	movl	$7, %ebx
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L25:
	movabsq	$7378697629483820647, %rcx
	movq	(%r15,%rbp,8), %rdi
	movq	%rdi, %rax
	movq	%rdi, %rbx
	imulq	%rcx
	movq	%rdi, %rax
	sarq	$63, %rax
	sarq	$2, %rdx
	movq	%rdx, %rsi
	subq	%rax, %rsi
	leaq	(%rsi,%rsi,4), %rax
	addq	%rax, %rax
	subq	%rax, %rbx
	addl	$48, %ebx
	movb	%bl, 55(%rsp)
	cmpq	$9, %rdi
	jle	.L74
	movq	%rsi, %rax
	imulq	%rcx
	movq	%rdx, %rax
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$2, %rax
	subq	%rdx, %rax
	leaq	(%rax,%rax,4), %rdx
	addq	%rdx, %rdx
	subq	%rdx, %rsi
	leal	48(%rsi), %edx
	movb	%dl, 54(%rsp)
	cmpq	$99, %rdi
	jle	.L75
	movl	$10, %ecx
	cqto
	idivq	%rcx
	addl	$48, %edx
	movb	%dl, 53(%rsp)
	cmpq	$999, %rdi
	jle	.L76
	cqto
	idivq	%rcx
	addl	$48, %edx
	movb	%dl, 52(%rsp)
	cmpq	$9999, %rdi
	jle	.L77
	cqto
	idivq	%rcx
	addl	$48, %edx
	movb	%dl, 51(%rsp)
	cmpq	$99999, %rdi
	jle	.L78
	cqto
	idivq	%rcx
	addl	$48, %edx
	movb	%dl, 50(%rsp)
	cmpq	$999999, %rdi
	jle	.L79
	cqto
	idivq	%rcx
	addl	$48, %edx
	movb	%dl, 49(%rsp)
	cmpq	$9999999, %rdi
	jle	.L80
	cqto
	xorl	%ebp, %ebp
	idivq	%rcx
	addl	$48, %edx
	movb	%dl, 48(%rsp)
.L47:
	movq	stdout(%rip), %rdi
	movzbl	48(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L48
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L49:
	cmpq	$7, %rbp
	je	.L50
	movq	stdout(%rip), %rdi
	movzbl	49(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L51
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L52:
	cmpq	$6, %rbp
	je	.L50
	movq	stdout(%rip), %rdi
	movzbl	50(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L53
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L54:
	cmpq	$5, %rbp
	je	.L50
	movq	stdout(%rip), %rdi
	movzbl	51(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L55
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L56:
	cmpq	$4, %rbp
	je	.L50
	movq	stdout(%rip), %rdi
	movzbl	52(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	%rax, 48(%rdi)
	jbe	.L57
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L58:
	cmpq	$3, %rbp
	je	.L50
	movq	stdout(%rip), %rdi
	movzbl	53(%rsp,%rbp), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L59
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L60:
	leaq	6(%rbp), %r12
	cmpq	$2, %rbp
	je	.L50
	movq	stdout(%rip), %rdi
	movzbl	48(%rsp,%r12), %edx
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L61
	leaq	1(%rax), %rcx
	movq	%rcx, 40(%rdi)
	movb	%dl, (%rax)
.L62:
	cmpq	$6, %r12
	jne	.L50
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L126
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	%bl, (%rax)
.L50:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L127
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$10, (%rax)
.L24:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L128
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	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
.L68:
	.cfi_restore_state
	movl	$6, %ebx
	jmp	.L26
.L124:
	movl	$32, %esi
	call	__overflow@PLT
	jmp	.L45
.L27:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L28
.L69:
	movl	$5, %ebx
	jmp	.L26
.L30:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L31
.L70:
	movl	$4, %ebx
	jmp	.L26
.L32:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L33
.L71:
	movl	$3, %ebx
	jmp	.L26
.L34:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L35
.L72:
	movl	$2, %ebx
	jmp	.L26
.L36:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L37
.L73:
	movl	$1, %ebx
	jmp	.L26
.L38:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L39
.L40:
	movzbl	%cl, %esi
	movq	%rdx, 8(%rsp)
	call	__overflow@PLT
	movq	8(%rsp), %rdx
	jmp	.L41
.L123:
	movzbl	%r13b, %esi
	call	__overflow@PLT
	jmp	.L29
.L122:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L24
.L77:
	movl	$4, %ebp
	jmp	.L47
.L74:
	movl	$7, %ebp
	jmp	.L47
.L75:
	movl	$6, %ebp
	jmp	.L47
.L48:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L49
.L127:
	movl	$10, %esi
	call	__overflow@PLT
	jmp	.L24
.L76:
	movl	$5, %ebp
	jmp	.L47
.L51:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L52
.L78:
	movl	$3, %ebp
	jmp	.L47
.L53:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L54
.L55:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L56
.L79:
	movl	$2, %ebp
	jmp	.L47
.L57:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L58
.L80:
	movl	$1, %ebp
	jmp	.L47
.L59:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L60
.L61:
	movzbl	%dl, %esi
	call	__overflow@PLT
	jmp	.L62
.L126:
	movzbl	%bl, %esi
	call	__overflow@PLT
	jmp	.L50
.L128:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE26:
	.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;

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

static inline void pl(long n){
#define L 8
    char c[L];
    long i=L-1;
    do{
        c[i]=n%10+'0';
        n/=10;
        i--;
    }while(n>0);
    for(i++;i<L;i++){
        putchar_unlocked(c[i]);
    }
}

#define N 17
long data[1<<N];

static void solve(long a, long b, const size_t sp, const size_t ep, long mask){
    if(ep-sp<=2){
        data[sp+0] = a;
        data[sp+1] = b;
        return;
    }
    const ulong d = diff(a, b);
    mask ^= (1<<d);
    const ulong ad = a&(1<<d);
    const ulong bd = b&(1<<d);
    a &= mask;
    b &= mask;
    const ulong ab = a ^ (mask&(-mask));
    const size_t mp = (sp+ep)/2;
    //printf("%ld %ld %ld\n", aa, ab, bb);
    solve(a, ab, sp, mp, mask);
    solve(ab, b, mp, ep, mask);
    for(size_t i=sp; i<mp; i++){ data[i] |= ad; }
    for(size_t i=mp; i<ep; i++){ data[i] |= bd; }
}

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(a, b, 0, 1<<n, 0xFFFFFFFFFFFFFFFF);
    const size_t m = 1<<n;
    printf("YES\n");
    for(size_t i=0; i<m-1; i++){
        pl(data[i]);
        putchar_unlocked(' ');
        //printf("%ld ", data[i]);
    }
    pl(data[m-1]);
    putchar_unlocked('\n');
    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;

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

static inline void pl(long n){
#define L 8
    char c[L];
    long i=L-1;
    do{
        c[i]=n%10+'0';
        n/=10;
        i--;
    }while(n>0);
    for(i++;i<L;i++){
        putchar_unlocked(c[i]);
    }
}

#define N 17
long data[1<<N];

static void solve(long a, long b, const size_t sp, const size_t ep, long mask){
    if(ep-sp<=2){
        data[sp+0] = a;
        data[sp+1] = b;
        return;
    }
    const ulong d = diff(a, b);
    mask ^= (1<<d);
    const ulong ad = a&(1<<d);
    const ulong bd = b&(1<<d);
    a &= mask;
    b &= mask;
    const ulong ab = a ^ (mask&(-mask));
    const size_t mp = (sp+ep)/2;
    //printf("%ld %ld %ld\n", aa, ab, bb);
    solve(a, ab, sp, mp, mask);
    solve(ab, b, mp, ep, mask);
    for(size_t i=sp; i<mp; i++){ data[i] |= ad; }
    for(size_t i=mp; i<ep; i++){ data[i] |= bd; }
}

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(a, b, 0, 1<<n, 0xFFFFFFFFFFFFFFFF);
    const size_t m = 1<<n;
    printf("YES\n");
    for(size_t i=0; i<m-1; i++){
        pl(data[i]);
        putchar_unlocked(' ');
        //printf("%ld ", data[i]);
    }
    pl(data[m-1]);
    putchar_unlocked('\n');
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.type	diff, @function
diff:
.LFB0:
	.cfi_startproc
	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
	.type	pl, @function
pl:
.LFB1:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -40(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$7, -24(%rbp)
.L4:
	movq	-40(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	%edx, %eax
	addl	$48, %eax
	movl	%eax, %edx
	leaq	-16(%rbp), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movb	%dl, (%rax)
	movq	-40(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	subq	$1, -24(%rbp)
	cmpq	$0, -40(%rbp)
	jg	.L4
	addq	$1, -24(%rbp)
	jmp	.L5
.L6:
	leaq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	addq	$1, -24(%rbp)
.L5:
	cmpq	$7, -24(%rbp)
	jle	.L6
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	pl, .-pl
	.globl	data
	.bss
	.align 32
	.type	data, @object
	.size	data, 1048576
data:
	.zero	1048576
	.text
	.type	solve, @function
solve:
.LFB2:
	.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)
	movq	-96(%rbp), %rax
	subq	-88(%rbp), %rax
	cmpq	$2, %rax
	ja	.L9
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	leaq	data(%rip), %rdx
	movq	-72(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	movq	-88(%rbp), %rax
	addq	$1, %rax
	leaq	0(,%rax,8), %rcx
	leaq	data(%rip), %rdx
	movq	-80(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	jmp	.L8
.L9:
	movq	-80(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	diff
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	xorq	%rax, -104(%rbp)
	movq	-40(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	andq	-72(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	-40(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	andq	-80(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-104(%rbp), %rax
	andq	%rax, -72(%rbp)
	movq	-104(%rbp), %rax
	andq	%rax, -80(%rbp)
	movq	-104(%rbp), %rax
	negq	%rax
	andq	-104(%rbp), %rax
	xorq	-72(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-88(%rbp), %rdx
	movq	-96(%rbp), %rax
	addq	%rdx, %rax
	shrq	%rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rsi
	movq	-104(%rbp), %rdi
	movq	-8(%rbp), %rcx
	movq	-88(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdi, %r8
	movq	%rax, %rdi
	call	solve
	movq	-16(%rbp), %rax
	movq	-104(%rbp), %rdi
	movq	-96(%rbp), %rcx
	movq	-8(%rbp), %rdx
	movq	-80(%rbp), %rsi
	movq	%rdi, %r8
	movq	%rax, %rdi
	call	solve
	movq	-88(%rbp), %rax
	movq	%rax, -56(%rbp)
	jmp	.L11
.L12:
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	orq	-32(%rbp), %rax
	movq	%rax, %rcx
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -56(%rbp)
.L11:
	movq	-56(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jb	.L12
	movq	-8(%rbp), %rax
	movq	%rax, -48(%rbp)
	jmp	.L13
.L14:
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	orq	-24(%rbp), %rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -48(%rbp)
.L13:
	movq	-48(%rbp), %rax
	cmpq	-96(%rbp), %rax
	jb	.L14
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	solve, .-solve
	.section	.rodata
.LC0:
	.string	"%ld %ld %ld"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.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	.L16
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L20
.L16:
	movq	-48(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rsi
	movq	-40(%rbp), %rax
	movq	$-1, %r8
	movq	%rdx, %rcx
	movl	$0, %edx
	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	.L18
.L19:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rdi
	call	pl
	movl	$32, %edi
	call	putchar_unlocked@PLT
	addq	$1, -24(%rbp)
.L18:
	movq	-16(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -24(%rbp)
	jb	.L19
	movq	-16(%rbp), %rax
	subq	$1, %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rdi
	call	pl
	movl	$10, %edi
	call	putchar_unlocked@PLT
	movl	$0, %eax
.L20:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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
	.type	diff, @function
diff:
.LFB0:
	.cfi_startproc
	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
	.type	pl, @function
pl:
.LFB1:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%rdi, -40(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$7, -24(%rbp)
.L4:
	movq	-40(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	movq	%rcx, %rsi
	sarq	$63, %rsi
	subq	%rsi, %rax
	movq	%rax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	movl	%edx, %eax
	addl	$48, %eax
	movl	%eax, %edx
	leaq	-16(%rbp), %rcx
	movq	-24(%rbp), %rax
	addq	%rcx, %rax
	movb	%dl, (%rax)
	movq	-40(%rbp), %rcx
	movabsq	$7378697629483820647, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rdx, %rax
	sarq	$2, %rax
	sarq	$63, %rcx
	movq	%rcx, %rdx
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	subq	$1, -24(%rbp)
	cmpq	$0, -40(%rbp)
	jg	.L4
	addq	$1, -24(%rbp)
	jmp	.L5
.L6:
	leaq	-16(%rbp), %rdx
	movq	-24(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
	addq	$1, -24(%rbp)
.L5:
	cmpq	$7, -24(%rbp)
	jle	.L6
	nop
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	pl, .-pl
	.globl	data
	.bss
	.align 32
	.type	data, @object
	.size	data, 1048576
data:
	.zero	1048576
	.text
	.type	solve, @function
solve:
.LFB2:
	.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)
	movq	-96(%rbp), %rax
	subq	-88(%rbp), %rax
	cmpq	$2, %rax
	ja	.L9
	movq	-88(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	leaq	data(%rip), %rdx
	movq	-72(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	movq	-88(%rbp), %rax
	addq	$1, %rax
	leaq	0(,%rax,8), %rcx
	leaq	data(%rip), %rdx
	movq	-80(%rbp), %rax
	movq	%rax, (%rcx,%rdx)
	jmp	.L8
.L9:
	movq	-80(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	diff
	movq	%rax, -40(%rbp)
	movq	-40(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	xorq	%rax, -104(%rbp)
	movq	-40(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	andq	-72(%rbp), %rax
	movq	%rax, -32(%rbp)
	movq	-40(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	andq	-80(%rbp), %rax
	movq	%rax, -24(%rbp)
	movq	-104(%rbp), %rax
	andq	%rax, -72(%rbp)
	movq	-104(%rbp), %rax
	andq	%rax, -80(%rbp)
	movq	-104(%rbp), %rax
	negq	%rax
	andq	-104(%rbp), %rax
	xorq	-72(%rbp), %rax
	movq	%rax, -16(%rbp)
	movq	-88(%rbp), %rdx
	movq	-96(%rbp), %rax
	addq	%rdx, %rax
	shrq	%rax
	movq	%rax, -8(%rbp)
	movq	-16(%rbp), %rsi
	movq	-104(%rbp), %rdi
	movq	-8(%rbp), %rcx
	movq	-88(%rbp), %rdx
	movq	-72(%rbp), %rax
	movq	%rdi, %r8
	movq	%rax, %rdi
	call	solve
	movq	-16(%rbp), %rax
	movq	-104(%rbp), %rdi
	movq	-96(%rbp), %rcx
	movq	-8(%rbp), %rdx
	movq	-80(%rbp), %rsi
	movq	%rdi, %r8
	movq	%rax, %rdi
	call	solve
	movq	-88(%rbp), %rax
	movq	%rax, -56(%rbp)
	jmp	.L11
.L12:
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	orq	-32(%rbp), %rax
	movq	%rax, %rcx
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -56(%rbp)
.L11:
	movq	-56(%rbp), %rax
	cmpq	-8(%rbp), %rax
	jb	.L12
	movq	-8(%rbp), %rax
	movq	%rax, -48(%rbp)
	jmp	.L13
.L14:
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	orq	-24(%rbp), %rax
	movq	%rax, %rcx
	movq	-48(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	%rcx, (%rdx,%rax)
	addq	$1, -48(%rbp)
.L13:
	movq	-48(%rbp), %rax
	cmpq	-96(%rbp), %rax
	jb	.L14
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	solve, .-solve
	.section	.rodata
.LC0:
	.string	"%ld %ld %ld"
.LC1:
	.string	"NO"
.LC2:
	.string	"YES"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.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	.L16
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L20
.L16:
	movq	-48(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rsi
	movq	-40(%rbp), %rax
	movq	$-1, %r8
	movq	%rdx, %rcx
	movl	$0, %edx
	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	.L18
.L19:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rdi
	call	pl
	movl	$32, %edi
	call	putchar_unlocked@PLT
	addq	$1, -24(%rbp)
.L18:
	movq	-16(%rbp), %rax
	subq	$1, %rax
	cmpq	%rax, -24(%rbp)
	jb	.L19
	movq	-16(%rbp), %rax
	subq	$1, %rax
	leaq	0(,%rax,8), %rdx
	leaq	data(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	%rax, %rdi
	call	pl
	movl	$10, %edi
	call	putchar_unlocked@PLT
	movl	$0, %eax
.L20:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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:
