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>

int main(){
  long long a,b,c,i,r=0,p,ff,ss;
  scanf("%lld%lld",&a,&b);
  if(a==b){
    printf("1\n");
    return 0;
  }
  for(i=61;i>=0;i--){
    if((a&(1ll<<i))!=(b&(1ll<<i))){p=i;break;}
    if((a&(1ll<<i))!=0){
      a^=(1ll<<i);
      b^=(1ll<<i);
    }
  }
  r+=((1ll<<p)-a);
  ff=(1ll<<p);
  for(i=p-1;i>=0;i--){
    if((b&(1ll<<i))!=0){
      ff+=(1ll<<(i+1));
      ff--;break;
    }
  }
  ss=(1ll<<p)+a;
  if(ff<ss){
    r+=(ff-(1ll<<p)+1);
    r+=((1ll<<(p+1))-ss);
  }
  else{
    r+=(1ll<<p);
  }
  printf("%lld\n",r);
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"1"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -40(%rbp)
	leaq	-56(%rbp), %rdx
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rdx
	movq	-56(%rbp), %rax
	cmpq	%rax, %rdx
	jne	.L2
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L15
.L2:
	movq	$61, -48(%rbp)
	jmp	.L4
.L8:
	movq	-64(%rbp), %rdx
	movq	-56(%rbp), %rax
	xorq	%rax, %rdx
	movq	-48(%rbp), %rax
	movl	%eax, %ecx
	sarq	%cl, %rdx
	movq	%rdx, %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L5
	movq	-48(%rbp), %rax
	movq	%rax, -32(%rbp)
	jmp	.L6
.L5:
	movq	-64(%rbp), %rax
	movq	-48(%rbp), %rdx
	movl	%edx, %ecx
	sarq	%cl, %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L7
	movq	-48(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	-64(%rbp), %rax
	xorq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-48(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	-56(%rbp), %rax
	xorq	%rdx, %rax
	movq	%rax, -56(%rbp)
.L7:
	subq	$1, -48(%rbp)
.L4:
	cmpq	$0, -48(%rbp)
	jns	.L8
.L6:
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	movq	-64(%rbp), %rdx
	subq	%rdx, %rax
	addq	%rax, -40(%rbp)
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	movq	%rax, -24(%rbp)
	movq	-32(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -48(%rbp)
	jmp	.L9
.L12:
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rdx
	movl	%edx, %ecx
	sarq	%cl, %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L10
	movq	-48(%rbp), %rax
	addl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	addq	%rax, -24(%rbp)
	subq	$1, -24(%rbp)
	jmp	.L11
.L10:
	subq	$1, -48(%rbp)
.L9:
	cmpq	$0, -48(%rbp)
	jns	.L12
.L11:
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-24(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jge	.L13
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	-24(%rbp), %rax
	subq	%rdx, %rax
	addq	$1, %rax
	addq	%rax, -40(%rbp)
	movq	-32(%rbp), %rax
	addl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	subq	-16(%rbp), %rax
	addq	%rax, -40(%rbp)
	jmp	.L14
.L13:
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	addq	%rax, -40(%rbp)
.L14:
	movq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L15:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"1"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r9
	movq	16(%rsp), %rsi
	cmpq	%rsi, %r9
	je	.L34
	movq	%r9, %rdx
	xorl	%ecx, %ecx
	movl	$61, %eax
	movl	$1, %r10d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	btq	%rax, %rdx
	jnc	.L7
	movl	%eax, %ecx
	movq	%r10, %rdi
	salq	%cl, %rdi
	movl	$1, %ecx
	xorq	%rdi, %rdx
	xorq	%rdi, %rsi
.L7:
	subq	$1, %rax
	jb	.L35
.L2:
	movq	%rdx, %rdi
	movl	%eax, %r8d
	xorq	%rsi, %rdi
	btq	%rax, %rdi
	jnc	.L4
	testb	%cl, %cl
	je	.L6
	movq	%rsi, 16(%rsp)
	movq	%rdx, %r9
	movq	%rdx, 8(%rsp)
.L6:
	movl	$1, %esi
	movl	%r8d, %ecx
	leaq	-1(%rax), %rdx
	salq	%cl, %rsi
	movq	%rsi, %rdi
	subq	%r9, %rdi
	testq	%rax, %rax
	je	.L17
	movq	16(%rsp), %rax
	movl	%edx, %ecx
	btq	%rdx, %rax
	jnc	.L11
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	btq	%rdx, %rax
	movl	%edx, %ecx
	jc	.L10
.L11:
	subq	$1, %rdx
	jnb	.L12
.L17:
	movq	%rsi, %rax
.L9:
	addq	%rsi, %r9
	leaq	(%rsi,%rdi), %rdx
	cmpq	%r9, %rax
	jge	.L14
	leal	1(%r8), %ecx
	movl	$1, %edx
	subq	%rsi, %rax
	salq	%cl, %rdx
	leaq	1(%rdi,%rax), %rax
	subq	%r9, %rdx
	addq	%rax, %rdx
.L14:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	addl	$1, %ecx
	movl	$1, %eax
	salq	%cl, %rax
	leaq	-1(%rsi,%rax), %rax
	jmp	.L9
.L35:
	testb	%cl, %cl
	je	.L8
	movq	%rsi, 16(%rsp)
	movq	%rdx, %r9
	movq	%rdx, 8(%rsp)
.L8:
	orl	$-1, %r8d
	jmp	.L6
.L34:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"1"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r9
	movq	16(%rsp), %rsi
	cmpq	%rsi, %r9
	je	.L34
	movq	%r9, %rdx
	xorl	%ecx, %ecx
	movl	$61, %eax
	movl	$1, %r10d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	btq	%rax, %rdx
	jnc	.L7
	movl	%eax, %ecx
	movq	%r10, %rdi
	salq	%cl, %rdi
	movl	$1, %ecx
	xorq	%rdi, %rdx
	xorq	%rdi, %rsi
.L7:
	subq	$1, %rax
	jb	.L35
.L2:
	movq	%rdx, %rdi
	movl	%eax, %r8d
	xorq	%rsi, %rdi
	btq	%rax, %rdi
	jnc	.L4
	testb	%cl, %cl
	je	.L6
	movq	%rsi, 16(%rsp)
	movq	%rdx, %r9
	movq	%rdx, 8(%rsp)
.L6:
	movl	$1, %esi
	movl	%r8d, %ecx
	leaq	-1(%rax), %rdx
	salq	%cl, %rsi
	movq	%rsi, %rdi
	subq	%r9, %rdi
	testq	%rax, %rax
	je	.L17
	movq	16(%rsp), %rax
	movl	%edx, %ecx
	btq	%rdx, %rax
	jnc	.L11
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	btq	%rdx, %rax
	movl	%edx, %ecx
	jc	.L10
.L11:
	subq	$1, %rdx
	jnb	.L12
.L17:
	movq	%rsi, %rax
.L9:
	addq	%rsi, %r9
	leaq	(%rsi,%rdi), %rdx
	cmpq	%r9, %rax
	jge	.L14
	leal	1(%r8), %ecx
	movl	$1, %edx
	subq	%rsi, %rax
	salq	%cl, %rdx
	leaq	1(%rdi,%rax), %rax
	subq	%r9, %rdx
	addq	%rax, %rdx
.L14:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	addl	$1, %ecx
	movl	$1, %eax
	salq	%cl, %rax
	leaq	-1(%rsi,%rax), %rax
	jmp	.L9
.L35:
	testb	%cl, %cl
	je	.L8
	movq	%rsi, 16(%rsp)
	movq	%rdx, %r9
	movq	%rdx, 8(%rsp)
.L8:
	orl	$-1, %r8d
	jmp	.L6
.L34:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	jmp	.L3
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include<stdio.h>

int main(){
  long long a,b,c,i,r=0,p,ff,ss;
  scanf("%lld%lld",&a,&b);
  if(a==b){
    printf("1\n");
    return 0;
  }
  for(i=61;i>=0;i--){
    if((a&(1ll<<i))!=(b&(1ll<<i))){p=i;break;}
    if((a&(1ll<<i))!=0){
      a^=(1ll<<i);
      b^=(1ll<<i);
    }
  }
  r+=((1ll<<p)-a);
  ff=(1ll<<p);
  for(i=p-1;i>=0;i--){
    if((b&(1ll<<i))!=0){
      ff+=(1ll<<(i+1));
      ff--;break;
    }
  }
  ss=(1ll<<p)+a;
  if(ff<ss){
    r+=(ff-(1ll<<p)+1);
    r+=((1ll<<(p+1))-ss);
  }
  else{
    r+=(1ll<<p);
  }
  printf("%lld\n",r);
  return 0;
}

65
110
 271828182845904523
328419650112448238
 271828182845904523
491516385100905315
 65
158
 7
8
 65
181
 271828182845904523
636593337042278053
 271828182845904523
1128816364578546661
 7
15
 271828182845904523
294375876077939712

63
 104861980649542378
 304632569457518965
 158
 3
 190
 681322732952965866
 881093321760942453
 9
 41811585866355434

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>

int main(){
  long long a,b,c,i,r=0,p,ff,ss;
  scanf("%lld%lld",&a,&b);
  if(a==b){
    printf("1\n");
    return 0;
  }
  for(i=61;i>=0;i--){
    if((a&(1ll<<i))!=(b&(1ll<<i))){p=i;break;}
    if((a&(1ll<<i))!=0){
      a^=(1ll<<i);
      b^=(1ll<<i);
    }
  }
  r+=((1ll<<p)-a);
  ff=(1ll<<p);
  for(i=p-1;i>=0;i--){
    if((b&(1ll<<i))!=0){
      ff+=(1ll<<(i+1));
      ff--;break;
    }
  }
  ss=(1ll<<p)+a;
  if(ff<ss){
    r+=(ff-(1ll<<p)+1);
    r+=((1ll<<(p+1))-ss);
  }
  else{
    r+=(1ll<<p);
  }
  printf("%lld\n",r);
  return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"1"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -40(%rbp)
	leaq	-56(%rbp), %rdx
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rdx
	movq	-56(%rbp), %rax
	cmpq	%rax, %rdx
	jne	.L2
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L15
.L2:
	movq	$61, -48(%rbp)
	jmp	.L4
.L8:
	movq	-64(%rbp), %rdx
	movq	-56(%rbp), %rax
	xorq	%rax, %rdx
	movq	-48(%rbp), %rax
	movl	%eax, %ecx
	sarq	%cl, %rdx
	movq	%rdx, %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L5
	movq	-48(%rbp), %rax
	movq	%rax, -32(%rbp)
	jmp	.L6
.L5:
	movq	-64(%rbp), %rax
	movq	-48(%rbp), %rdx
	movl	%edx, %ecx
	sarq	%cl, %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L7
	movq	-48(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	-64(%rbp), %rax
	xorq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-48(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	-56(%rbp), %rax
	xorq	%rdx, %rax
	movq	%rax, -56(%rbp)
.L7:
	subq	$1, -48(%rbp)
.L4:
	cmpq	$0, -48(%rbp)
	jns	.L8
.L6:
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	movq	-64(%rbp), %rdx
	subq	%rdx, %rax
	addq	%rax, -40(%rbp)
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	movq	%rax, -24(%rbp)
	movq	-32(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -48(%rbp)
	jmp	.L9
.L12:
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rdx
	movl	%edx, %ecx
	sarq	%cl, %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L10
	movq	-48(%rbp), %rax
	addl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	addq	%rax, -24(%rbp)
	subq	$1, -24(%rbp)
	jmp	.L11
.L10:
	subq	$1, -48(%rbp)
.L9:
	cmpq	$0, -48(%rbp)
	jns	.L12
.L11:
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-24(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jge	.L13
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	-24(%rbp), %rax
	subq	%rdx, %rax
	addq	$1, %rax
	addq	%rax, -40(%rbp)
	movq	-32(%rbp), %rax
	addl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	subq	-16(%rbp), %rax
	addq	%rax, -40(%rbp)
	jmp	.L14
.L13:
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	addq	%rax, -40(%rbp)
.L14:
	movq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L15:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"1"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -40(%rbp)
	leaq	-56(%rbp), %rdx
	leaq	-64(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rdx
	movq	-56(%rbp), %rax
	cmpq	%rax, %rdx
	jne	.L2
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L15
.L2:
	movq	$61, -48(%rbp)
	jmp	.L4
.L8:
	movq	-64(%rbp), %rdx
	movq	-56(%rbp), %rax
	xorq	%rax, %rdx
	movq	-48(%rbp), %rax
	movl	%eax, %ecx
	sarq	%cl, %rdx
	movq	%rdx, %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L5
	movq	-48(%rbp), %rax
	movq	%rax, -32(%rbp)
	jmp	.L6
.L5:
	movq	-64(%rbp), %rax
	movq	-48(%rbp), %rdx
	movl	%edx, %ecx
	sarq	%cl, %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L7
	movq	-48(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	-64(%rbp), %rax
	xorq	%rdx, %rax
	movq	%rax, -64(%rbp)
	movq	-48(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	-56(%rbp), %rax
	xorq	%rdx, %rax
	movq	%rax, -56(%rbp)
.L7:
	subq	$1, -48(%rbp)
.L4:
	cmpq	$0, -48(%rbp)
	jns	.L8
.L6:
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	movq	-64(%rbp), %rdx
	subq	%rdx, %rax
	addq	%rax, -40(%rbp)
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	movq	%rax, -24(%rbp)
	movq	-32(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -48(%rbp)
	jmp	.L9
.L12:
	movq	-56(%rbp), %rax
	movq	-48(%rbp), %rdx
	movl	%edx, %ecx
	sarq	%cl, %rax
	andl	$1, %eax
	testq	%rax, %rax
	je	.L10
	movq	-48(%rbp), %rax
	addl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	addq	%rax, -24(%rbp)
	subq	$1, -24(%rbp)
	jmp	.L11
.L10:
	subq	$1, -48(%rbp)
.L9:
	cmpq	$0, -48(%rbp)
	jns	.L12
.L11:
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	-64(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-24(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jge	.L13
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	-24(%rbp), %rax
	subq	%rdx, %rax
	addq	$1, %rax
	addq	%rax, -40(%rbp)
	movq	-32(%rbp), %rax
	addl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	subq	-16(%rbp), %rax
	addq	%rax, -40(%rbp)
	jmp	.L14
.L13:
	movq	-32(%rbp), %rax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rax
	addq	%rax, -40(%rbp)
.L14:
	movq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L15:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
