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

```c
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#define P 1000000007

long f(long a){
	long s=1;
	while(a!=0) s=s*(a--)%P;
	return s;
}

int main(void){
	int n, m;
	scanf("%d%d", &n, &m);
	if(n+1<m || m+1<n){
		puts("0");
	}else{
		printf("%d\n", f(n)*f(m)*((n==m)+1)%P);
	}
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	f
	.type	f, @function
f:
.LFB51:
	.cfi_startproc
	endbr64
	movl	$1, %eax
	testq	%rdi, %rdi
	je	.L4
	movabsq	$-8543223828751151131, %rsi
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rdi, %rcx
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	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
	subq	$1, %rdi
	jne	.L3
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	ret
	.cfi_endproc
.LFE51:
	.size	f, .-f
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"0"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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), %r8d
	movl	4(%rsp), %r9d
	leal	1(%r8), %eax
	cmpl	%r9d, %eax
	jl	.L8
	leal	1(%r9), %eax
	cmpl	%eax, %r8d
	jle	.L9
.L8:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L10:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	movslq	%r8d, %r10
	movslq	%r9d, %rdi
	movl	$1, %ecx
	testq	%r10, %r10
	je	.L11
	movabsq	$-8543223828751151131, %r11
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r10, %rsi
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	imulq	%r11
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rcx
	sarq	$29, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	movq	%rsi, %rcx
	subq	%rax, %rcx
	subq	$1, %r10
	jne	.L12
	movl	$1, %eax
	testq	%rdi, %rdi
	je	.L15
.L16:
	movabsq	$-8543223828751151131, %r10
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rdi, %rsi
	imulq	%rdx, %rsi
	movq	%rsi, %rax
	imulq	%r10
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	movq	%rsi, %rdx
	subq	%rax, %rdx
	subq	$1, %rdi
	jne	.L14
	xorl	%eax, %eax
	imulq	%rdx, %rcx
	cmpl	%r9d, %r8d
	sete	%al
	addq	$1, %rax
.L15:
	imulq	%rcx, %rax
	movl	$1000000007, %ecx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	cqto
	idivq	%rcx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L10
.L11:
	movl	$2, %eax
	testq	%rdi, %rdi
	jne	.L16
	jmp	.L15
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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
	.p2align 4
	.globl	f
	.type	f, @function
f:
.LFB51:
	.cfi_startproc
	endbr64
	movl	$1, %eax
	testq	%rdi, %rdi
	je	.L4
	movabsq	$-8543223828751151131, %rsi
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rdi, %rcx
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	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
	subq	$1, %rdi
	jne	.L3
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	ret
	.cfi_endproc
.LFE51:
	.size	f, .-f
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"0"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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), %r8d
	movl	4(%rsp), %r9d
	leal	1(%r8), %eax
	cmpl	%r9d, %eax
	jl	.L8
	leal	1(%r9), %eax
	cmpl	%eax, %r8d
	jle	.L9
.L8:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L10:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	movslq	%r8d, %r10
	movslq	%r9d, %rdi
	movl	$1, %ecx
	testq	%r10, %r10
	je	.L11
	movabsq	$-8543223828751151131, %r11
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r10, %rsi
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	imulq	%r11
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rcx
	sarq	$29, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	movq	%rsi, %rcx
	subq	%rax, %rcx
	subq	$1, %r10
	jne	.L12
	movl	$1, %eax
	testq	%rdi, %rdi
	je	.L15
.L16:
	movabsq	$-8543223828751151131, %r10
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rdi, %rsi
	imulq	%rdx, %rsi
	movq	%rsi, %rax
	imulq	%r10
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	movq	%rsi, %rdx
	subq	%rax, %rdx
	subq	$1, %rdi
	jne	.L14
	xorl	%eax, %eax
	imulq	%rdx, %rcx
	cmpl	%r9d, %r8d
	sete	%al
	addq	$1, %rax
.L15:
	imulq	%rcx, %rax
	movl	$1000000007, %ecx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	cqto
	idivq	%rcx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L10
.L11:
	movl	$2, %eax
	testq	%rdi, %rdi
	jne	.L16
	jmp	.L15
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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
	.p2align 4
	.globl	f
	.type	f, @function
f:
.LFB51:
	.cfi_startproc
	endbr64
	movl	$1, %eax
	testq	%rdi, %rdi
	je	.L4
	movabsq	$-8543223828751151131, %rsi
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rdi, %rcx
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	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
	subq	$1, %rdi
	jne	.L3
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	ret
	.cfi_endproc
.LFE51:
	.size	f, .-f
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"0"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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), %r8d
	movl	4(%rsp), %r9d
	leal	1(%r8), %eax
	cmpl	%r9d, %eax
	jl	.L8
	leal	1(%r9), %eax
	cmpl	%eax, %r8d
	jle	.L9
.L8:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L10:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	movslq	%r8d, %r10
	movslq	%r9d, %rdi
	movl	$1, %ecx
	testq	%r10, %r10
	je	.L11
	movabsq	$-8543223828751151131, %r11
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r10, %rsi
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	imulq	%r11
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rcx
	sarq	$29, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	movq	%rsi, %rcx
	subq	%rax, %rcx
	subq	$1, %r10
	jne	.L12
	movl	$1, %eax
	testq	%rdi, %rdi
	je	.L15
.L16:
	movabsq	$-8543223828751151131, %r10
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rdi, %rsi
	imulq	%rdx, %rsi
	movq	%rsi, %rax
	imulq	%r10
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	movq	%rsi, %rdx
	subq	%rax, %rdx
	subq	$1, %rdi
	jne	.L14
	xorl	%eax, %eax
	imulq	%rdx, %rcx
	cmpl	%r9d, %r8d
	sete	%al
	addq	$1, %rax
.L15:
	imulq	%rcx, %rax
	movl	$1000000007, %ecx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	cqto
	idivq	%rcx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L10
.L11:
	movl	$2, %eax
	testq	%rdi, %rdi
	jne	.L16
	jmp	.L15
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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 <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#define P 1000000007

long f(long a){
	long s=1;
	while(a!=0) s=s*(a--)%P;
	return s;
}

int main(void){
	int n, m;
	scanf("%d%d", &n, &m);
	if(n+1<m || m+1<n){
		puts("0");
	}else{
		printf("%d\n", f(n)*f(m)*((n==m)+1)%P);
	}
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#define P 1000000007

long f(long a){
	long s=1;
	while(a!=0) s=s*(a--)%P;
	return s;
}

int main(void){
	int n, m;
	scanf("%d%d", &n, &m);
	if(n+1<m || m+1<n){
		puts("0");
	}else{
		printf("%d\n", f(n)*f(m)*((n==m)+1)%P);
	}
}
```

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 <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

#define P 1000000007

long f(long a){
	long s=1;
	while(a!=0) s=s*(a--)%P;
	return s;
}

int main(void){
	int n, m;
	scanf("%d%d", &n, &m);
	if(n+1<m || m+1<n){
		puts("0");
	}else{
		printf("%d\n", f(n)*f(m)*((n==m)+1)%P);
	}
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	f
	.type	f, @function
f:
.LFB51:
	.cfi_startproc
	endbr64
	movl	$1, %eax
	testq	%rdi, %rdi
	je	.L4
	movabsq	$-8543223828751151131, %rsi
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rdi, %rcx
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	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
	subq	$1, %rdi
	jne	.L3
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	ret
	.cfi_endproc
.LFE51:
	.size	f, .-f
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"0"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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), %r8d
	movl	4(%rsp), %r9d
	leal	1(%r8), %eax
	cmpl	%r9d, %eax
	jl	.L8
	leal	1(%r9), %eax
	cmpl	%eax, %r8d
	jle	.L9
.L8:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L10:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	movslq	%r8d, %r10
	movslq	%r9d, %rdi
	movl	$1, %ecx
	testq	%r10, %r10
	je	.L11
	movabsq	$-8543223828751151131, %r11
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r10, %rsi
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	imulq	%r11
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rcx
	sarq	$29, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	movq	%rsi, %rcx
	subq	%rax, %rcx
	subq	$1, %r10
	jne	.L12
	movl	$1, %eax
	testq	%rdi, %rdi
	je	.L15
.L16:
	movabsq	$-8543223828751151131, %r10
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rdi, %rsi
	imulq	%rdx, %rsi
	movq	%rsi, %rax
	imulq	%r10
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	movq	%rsi, %rdx
	subq	%rax, %rdx
	subq	$1, %rdi
	jne	.L14
	xorl	%eax, %eax
	imulq	%rdx, %rcx
	cmpl	%r9d, %r8d
	sete	%al
	addq	$1, %rax
.L15:
	imulq	%rcx, %rax
	movl	$1000000007, %ecx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	cqto
	idivq	%rcx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L10
.L11:
	movl	$2, %eax
	testq	%rdi, %rdi
	jne	.L16
	jmp	.L15
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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
	.p2align 4
	.globl	f
	.type	f, @function
f:
.LFB51:
	.cfi_startproc
	endbr64
	movl	$1, %eax
	testq	%rdi, %rdi
	je	.L4
	movabsq	$-8543223828751151131, %rsi
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rdi, %rcx
	imulq	%rax, %rcx
	movq	%rcx, %rax
	imulq	%rsi
	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
	subq	$1, %rdi
	jne	.L3
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	ret
	.cfi_endproc
.LFE51:
	.size	f, .-f
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d"
.LC1:
	.string	"0"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB52:
	.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), %r8d
	movl	4(%rsp), %r9d
	leal	1(%r8), %eax
	cmpl	%r9d, %eax
	jl	.L8
	leal	1(%r9), %eax
	cmpl	%eax, %r8d
	jle	.L9
.L8:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L10:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	xorl	%eax, %eax
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L9:
	.cfi_restore_state
	movslq	%r8d, %r10
	movslq	%r9d, %rdi
	movl	$1, %ecx
	testq	%r10, %r10
	je	.L11
	movabsq	$-8543223828751151131, %r11
	.p2align 4,,10
	.p2align 3
.L12:
	movq	%r10, %rsi
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	imulq	%r11
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rcx
	sarq	$29, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	movq	%rsi, %rcx
	subq	%rax, %rcx
	subq	$1, %r10
	jne	.L12
	movl	$1, %eax
	testq	%rdi, %rdi
	je	.L15
.L16:
	movabsq	$-8543223828751151131, %r10
	movl	$1, %edx
	.p2align 4,,10
	.p2align 3
.L14:
	movq	%rdi, %rsi
	imulq	%rdx, %rsi
	movq	%rsi, %rax
	imulq	%r10
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	movq	%rsi, %rdx
	subq	%rax, %rdx
	subq	$1, %rdi
	jne	.L14
	xorl	%eax, %eax
	imulq	%rdx, %rcx
	cmpl	%r9d, %r8d
	sete	%al
	addq	$1, %rax
.L15:
	imulq	%rcx, %rax
	movl	$1000000007, %ecx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	cqto
	idivq	%rcx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L10
.L11:
	movl	$2, %eax
	testq	%rdi, %rdi
	jne	.L16
	jmp	.L15
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE52:
	.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:
```