Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
int main(){
  int n,m,i;
  long result=1;
  
  scanf("%d %d",&n,&m);
  if(abs(n-m)>1){
    printf("0");
    return 0;
  }
  
  if(n!=m){
    for(i=1;i<=n;i++){
      result=result*i%1000000007;
    }
    for(i=1;i<=m;i++){
      result=result*i%1000000007;
    }
  } else {
    for(i=1;i<=n;i++){
      result=result*i%1000000007;
    }
    for(i=1;i<=m;i++){
      result=result*i%1000000007;
    }
    result=(result*2)%1000000007;
  }
  
  printf("%ld",result);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%ld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %ecx
	movl	4(%rsp), %edi
	movl	%ecx, %edx
	subl	%edi, %edx
	movl	%edx, %eax
	negl	%eax
	cmovs	%edx, %eax
	cmpl	$1, %eax
	jg	.L22
	cmpl	%edi, %ecx
	je	.L23
	testl	%ecx, %ecx
	jle	.L15
	leal	1(%rcx), %r9d
	movl	$1, %esi
	movl	$1, %edx
	movabsq	$-8543223828751151131, %r8
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rdx, %rcx
	imulq	%rsi, %rcx
	addq	$1, %rsi
	movq	%rcx, %rax
	imulq	%r8
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	cmpq	%rsi, %r9
	jne	.L8
.L7:
	testl	%edi, %edi
	jle	.L9
	leal	1(%rdi), %r8d
	movl	$1, %esi
	movabsq	$-8543223828751151131, %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rdx, %rcx
	imulq	%rsi, %rcx
	addq	$1, %rsi
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	cmpq	%rsi, %r8
	jne	.L10
.L9:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L23:
	.cfi_restore_state
	movl	$1, %eax
	testl	%edi, %edi
	jle	.L6
	leal	1(%rdi), %r9d
	movl	$1, %esi
	movl	$1, %eax
	movabsq	$-8543223828751151131, %r8
	.p2align 4,,10
	.p2align 3
.L11:
	imulq	%rsi, %rax
	addq	$1, %rsi
	movq	%rax, %rcx
	imulq	%r8
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	cmpq	%rsi, %r9
	jne	.L11
.L6:
	testl	%edi, %edi
	jle	.L12
	leal	1(%rdi), %r8d
	movl	$1, %esi
	movabsq	$-8543223828751151131, %rdi
	.p2align 4,,10
	.p2align 3
.L13:
	imulq	%rsi, %rax
	addq	$1, %rsi
	movq	%rax, %rcx
	imulq	%rdi
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	cmpq	%rsi, %r8
	jne	.L13
.L12:
	addq	%rax, %rax
	movl	$1000000007, %ecx
	cqto
	idivq	%rcx
	jmp	.L9
.L22:
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L3
.L15:
	movl	$1, %edx
	jmp	.L7
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

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

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%ld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %ecx
	movl	4(%rsp), %edi
	movl	%ecx, %edx
	subl	%edi, %edx
	movl	%edx, %eax
	negl	%eax
	cmovs	%edx, %eax
	cmpl	$1, %eax
	jg	.L22
	cmpl	%edi, %ecx
	je	.L23
	testl	%ecx, %ecx
	jle	.L15
	leal	1(%rcx), %r9d
	movl	$1, %esi
	movl	$1, %edx
	movabsq	$-8543223828751151131, %r8
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rdx, %rcx
	imulq	%rsi, %rcx
	addq	$1, %rsi
	movq	%rcx, %rax
	imulq	%r8
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	cmpq	%rsi, %r9
	jne	.L8
.L7:
	testl	%edi, %edi
	jle	.L9
	leal	1(%rdi), %r8d
	movl	$1, %esi
	movabsq	$-8543223828751151131, %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rdx, %rcx
	imulq	%rsi, %rcx
	addq	$1, %rsi
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	cmpq	%rsi, %r8
	jne	.L10
.L9:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L23:
	.cfi_restore_state
	movl	$1, %eax
	testl	%edi, %edi
	jle	.L6
	leal	1(%rdi), %r9d
	movl	$1, %esi
	movl	$1, %eax
	movabsq	$-8543223828751151131, %r8
	.p2align 4,,10
	.p2align 3
.L11:
	imulq	%rsi, %rax
	addq	$1, %rsi
	movq	%rax, %rcx
	imulq	%r8
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	cmpq	%rsi, %r9
	jne	.L11
.L6:
	testl	%edi, %edi
	jle	.L12
	leal	1(%rdi), %r8d
	movl	$1, %esi
	movabsq	$-8543223828751151131, %rdi
	.p2align 4,,10
	.p2align 3
.L13:
	imulq	%rsi, %rax
	addq	$1, %rsi
	movq	%rax, %rcx
	imulq	%rdi
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	cmpq	%rsi, %r8
	jne	.L13
.L12:
	addq	%rax, %rax
	movl	$1000000007, %ecx
	cqto
	idivq	%rcx
	jmp	.L9
.L22:
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L3
.L15:
	movl	$1, %edx
	jmp	.L7
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
rule
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%ld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %ecx
	movl	4(%rsp), %edi
	movl	%ecx, %edx
	subl	%edi, %edx
	movl	%edx, %eax
	negl	%eax
	cmovs	%edx, %eax
	cmpl	$1, %eax
	jg	.L22
	cmpl	%edi, %ecx
	je	.L23
	testl	%ecx, %ecx
	jle	.L15
	leal	1(%rcx), %r9d
	movl	$1, %esi
	movl	$1, %edx
	movabsq	$-8543223828751151131, %r8
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rdx, %rcx
	imulq	%rsi, %rcx
	addq	$1, %rsi
	movq	%rcx, %rax
	imulq	%r8
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	cmpq	%rsi, %r9
	jne	.L8
.L7:
	testl	%edi, %edi
	jle	.L9
	leal	1(%rdi), %r8d
	movl	$1, %esi
	movabsq	$-8543223828751151131, %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rdx, %rcx
	imulq	%rsi, %rcx
	addq	$1, %rsi
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	cmpq	%rsi, %r8
	jne	.L10
.L9:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L23:
	.cfi_restore_state
	movl	$1, %eax
	testl	%edi, %edi
	jle	.L6
	leal	1(%rdi), %r9d
	movl	$1, %esi
	movl	$1, %eax
	movabsq	$-8543223828751151131, %r8
	.p2align 4,,10
	.p2align 3
.L11:
	imulq	%rsi, %rax
	addq	$1, %rsi
	movq	%rax, %rcx
	imulq	%r8
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	cmpq	%rsi, %r9
	jne	.L11
.L6:
	testl	%edi, %edi
	jle	.L12
	leal	1(%rdi), %r8d
	movl	$1, %esi
	movabsq	$-8543223828751151131, %rdi
	.p2align 4,,10
	.p2align 3
.L13:
	imulq	%rsi, %rax
	addq	$1, %rsi
	movq	%rax, %rcx
	imulq	%rdi
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	cmpq	%rsi, %r8
	jne	.L13
.L12:
	addq	%rax, %rax
	movl	$1000000007, %ecx
	cqto
	idivq	%rcx
	jmp	.L9
.L22:
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L3
.L15:
	movl	$1, %edx
	jmp	.L7
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```
```c
#include <stdio.h>
#include <stdlib.h>
int main(){
  int n,m,i;
  long result=1;
  
  scanf("%d %d",&n,&m);
  if(abs(n-m)>1){
    printf("0");
    return 0;
  }
  
  if(n!=m){
    for(i=1;i<=n;i++){
      result=result*i%1000000007;
    }
    for(i=1;i<=m;i++){
      result=result*i%1000000007;
    }
  } else {
    for(i=1;i<=n;i++){
      result=result*i%1000000007;
    }
    for(i=1;i<=m;i++){
      result=result*i%1000000007;
    }
    result=(result*2)%1000000007;
  }
  
  printf("%ld",result);
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
int main(){
  int n,m,i;
  long result=1;
  
  scanf("%d %d",&n,&m);
  if(abs(n-m)>1){
    printf("0");
    return 0;
  }
  
  if(n!=m){
    for(i=1;i<=n;i++){
      result=result*i%1000000007;
    }
    for(i=1;i<=m;i++){
      result=result*i%1000000007;
    }
  } else {
    for(i=1;i<=n;i++){
      result=result*i%1000000007;
    }
    for(i=1;i<=m;i++){
      result=result*i%1000000007;
    }
    result=(result*2)%1000000007;
  }
  
  printf("%ld",result);
}```

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

2 2

8
Given the following C code and assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <stdio.h>
#include <stdlib.h>
int main(){
  int n,m,i;
  long result=1;
  
  scanf("%d %d",&n,&m);
  if(abs(n-m)>1){
    printf("0");
    return 0;
  }
  
  if(n!=m){
    for(i=1;i<=n;i++){
      result=result*i%1000000007;
    }
    for(i=1;i<=m;i++){
      result=result*i%1000000007;
    }
  } else {
    for(i=1;i<=n;i++){
      result=result*i%1000000007;
    }
    for(i=1;i<=m;i++){
      result=result*i%1000000007;
    }
    result=(result*2)%1000000007;
  }
  
  printf("%ld",result);
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%ld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %ecx
	movl	4(%rsp), %edi
	movl	%ecx, %edx
	subl	%edi, %edx
	movl	%edx, %eax
	negl	%eax
	cmovs	%edx, %eax
	cmpl	$1, %eax
	jg	.L22
	cmpl	%edi, %ecx
	je	.L23
	testl	%ecx, %ecx
	jle	.L15
	leal	1(%rcx), %r9d
	movl	$1, %esi
	movl	$1, %edx
	movabsq	$-8543223828751151131, %r8
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rdx, %rcx
	imulq	%rsi, %rcx
	addq	$1, %rsi
	movq	%rcx, %rax
	imulq	%r8
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	cmpq	%rsi, %r9
	jne	.L8
.L7:
	testl	%edi, %edi
	jle	.L9
	leal	1(%rdi), %r8d
	movl	$1, %esi
	movabsq	$-8543223828751151131, %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rdx, %rcx
	imulq	%rsi, %rcx
	addq	$1, %rsi
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	cmpq	%rsi, %r8
	jne	.L10
.L9:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L23:
	.cfi_restore_state
	movl	$1, %eax
	testl	%edi, %edi
	jle	.L6
	leal	1(%rdi), %r9d
	movl	$1, %esi
	movl	$1, %eax
	movabsq	$-8543223828751151131, %r8
	.p2align 4,,10
	.p2align 3
.L11:
	imulq	%rsi, %rax
	addq	$1, %rsi
	movq	%rax, %rcx
	imulq	%r8
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	cmpq	%rsi, %r9
	jne	.L11
.L6:
	testl	%edi, %edi
	jle	.L12
	leal	1(%rdi), %r8d
	movl	$1, %esi
	movabsq	$-8543223828751151131, %rdi
	.p2align 4,,10
	.p2align 3
.L13:
	imulq	%rsi, %rax
	addq	$1, %rsi
	movq	%rax, %rcx
	imulq	%rdi
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	cmpq	%rsi, %r8
	jne	.L13
.L12:
	addq	%rax, %rax
	movl	$1000000007, %ecx
	cqto
	idivq	%rcx
	jmp	.L9
.L22:
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L3
.L15:
	movl	$1, %edx
	jmp	.L7
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

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

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%ld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	subq	$24, %rsp
	.cfi_def_cfa_offset 32
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movl	(%rsp), %ecx
	movl	4(%rsp), %edi
	movl	%ecx, %edx
	subl	%edi, %edx
	movl	%edx, %eax
	negl	%eax
	cmovs	%edx, %eax
	cmpl	$1, %eax
	jg	.L22
	cmpl	%edi, %ecx
	je	.L23
	testl	%ecx, %ecx
	jle	.L15
	leal	1(%rcx), %r9d
	movl	$1, %esi
	movl	$1, %edx
	movabsq	$-8543223828751151131, %r8
	.p2align 4,,10
	.p2align 3
.L8:
	movq	%rdx, %rcx
	imulq	%rsi, %rcx
	addq	$1, %rsi
	movq	%rcx, %rax
	imulq	%r8
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	cmpq	%rsi, %r9
	jne	.L8
.L7:
	testl	%edi, %edi
	jle	.L9
	leal	1(%rdi), %r8d
	movl	$1, %esi
	movabsq	$-8543223828751151131, %rdi
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%rdx, %rcx
	imulq	%rsi, %rcx
	addq	$1, %rsi
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	cmpq	%rsi, %r8
	jne	.L10
.L9:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L3:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L24
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L23:
	.cfi_restore_state
	movl	$1, %eax
	testl	%edi, %edi
	jle	.L6
	leal	1(%rdi), %r9d
	movl	$1, %esi
	movl	$1, %eax
	movabsq	$-8543223828751151131, %r8
	.p2align 4,,10
	.p2align 3
.L11:
	imulq	%rsi, %rax
	addq	$1, %rsi
	movq	%rax, %rcx
	imulq	%r8
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	cmpq	%rsi, %r9
	jne	.L11
.L6:
	testl	%edi, %edi
	jle	.L12
	leal	1(%rdi), %r8d
	movl	$1, %esi
	movabsq	$-8543223828751151131, %rdi
	.p2align 4,,10
	.p2align 3
.L13:
	imulq	%rsi, %rax
	addq	$1, %rsi
	movq	%rax, %rcx
	imulq	%rdi
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	cmpq	%rsi, %r8
	jne	.L13
.L12:
	addq	%rax, %rax
	movl	$1000000007, %ecx
	cqto
	idivq	%rcx
	jmp	.L9
.L22:
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L3
.L15:
	movl	$1, %edx
	jmp	.L7
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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:
```