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>

/* this is prime */
#define MOD_BY 100000007

int getInv(int x) {
	int nowzyou=MOD_BY-2;
	long long now=x;
	long long result=1;
	while(nowzyou>0) {
		if(nowzyou & 1)result=(result*now)%MOD_BY;
		now=(now*now)%MOD_BY;
		nowzyou>>=1;
	}
	return (int)result;
}

int nCr(int n,int r) {
	long long result=1;
	int i;
	for(i=n;i>n-r;i--)result=(result*i)%MOD_BY;
	for(i=1;i<=r;i++)result=(result*getInv(i))%MOD_BY;
	return (int)result;
}

int main(void) {
	int w,h,sx,sy,dx,dy;
	int x,y,x1,y1,x2,y2,now;
	int result;
	scanf("%d%d%d%d%d%d",&w,&h,&sx,&sy,&dx,&dy);
	x=(w-dx)+(sx-0);
	now=(w-sx)+(dx-0);if(now<x)x=now;
	x1=x;
	now=dx-sx;if(now<0)now=-now;if(now<x)x=now;
	x2=now;
	y=(h-dy)+(sy-0);
	now=(h-sy)+(dy-0);if(now<y)y=now;
	y1=y;
	now=dy-sy;if(now<0)now=-now;if(now<y)y=now;
	y2=now;
	result=nCr(x+y,x);
	if(x1==x2)result=(result*2)%MOD_BY;
	if(y1==y2)result=(result*2)%MOD_BY;
	printf("%d\n",result);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	getInv
	.type	getInv, @function
getInv:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -36(%rbp)
	movl	$100000005, -20(%rbp)
	movl	-36(%rbp), %eax
	cltq
	movq	%rax, -16(%rbp)
	movq	$1, -8(%rbp)
	jmp	.L2
.L4:
	movl	-20(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L3
	movq	-8(%rbp), %rax
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-6067344547413715707, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$26, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	$100000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
.L3:
	movq	-16(%rbp), %rax
	imulq	%rax, %rax
	movq	%rax, %rcx
	movabsq	$-6067344547413715707, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$26, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$100000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	sarl	-20(%rbp)
.L2:
	cmpl	$0, -20(%rbp)
	jg	.L4
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getInv, .-getInv
	.globl	nCr
	.type	nCr, @function
nCr:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$24, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	$1, -8(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L7
.L8:
	movl	-12(%rbp), %eax
	cltq
	imulq	-8(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-6067344547413715707, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$26, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	$100000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	subl	$1, -12(%rbp)
.L7:
	movl	-20(%rbp), %eax
	subl	-24(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jg	.L8
	movl	$1, -12(%rbp)
	jmp	.L9
.L10:
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	getInv
	cltq
	imulq	-8(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-6067344547413715707, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$26, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	$100000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	addl	$1, -12(%rbp)
.L9:
	movl	-12(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L10
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	nCr, .-nCr
	.section	.rodata
.LC0:
	.string	"%d%d%d%d%d%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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
	leaq	-48(%rbp), %r8
	leaq	-52(%rbp), %rdi
	leaq	-56(%rbp), %rcx
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rax
	subq	$8, %rsp
	leaq	-44(%rbp), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	movl	-64(%rbp), %eax
	movl	-48(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-56(%rbp), %eax
	addl	%ecx, %eax
	movl	%eax, -40(%rbp)
	movl	-64(%rbp), %eax
	movl	-56(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-48(%rbp), %eax
	addl	%ecx, %eax
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jge	.L13
	movl	-32(%rbp), %eax
	movl	%eax, -40(%rbp)
.L13:
	movl	-40(%rbp), %eax
	movl	%eax, -24(%rbp)
	movl	-48(%rbp), %eax
	movl	-56(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -32(%rbp)
	cmpl	$0, -32(%rbp)
	jns	.L14
	negl	-32(%rbp)
.L14:
	movl	-32(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jge	.L15
	movl	-32(%rbp), %eax
	movl	%eax, -40(%rbp)
.L15:
	movl	-32(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-60(%rbp), %eax
	movl	-44(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-52(%rbp), %eax
	addl	%ecx, %eax
	movl	%eax, -36(%rbp)
	movl	-60(%rbp), %eax
	movl	-52(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-44(%rbp), %eax
	addl	%ecx, %eax
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jge	.L16
	movl	-32(%rbp), %eax
	movl	%eax, -36(%rbp)
.L16:
	movl	-36(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-44(%rbp), %eax
	movl	-52(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -32(%rbp)
	cmpl	$0, -32(%rbp)
	jns	.L17
	negl	-32(%rbp)
.L17:
	movl	-32(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jge	.L18
	movl	-32(%rbp), %eax
	movl	%eax, -36(%rbp)
.L18:
	movl	-32(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%eax, %edx
	movl	-40(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	nCr
	movl	%eax, -28(%rbp)
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jne	.L19
	movl	-28(%rbp), %eax
	addl	%eax, %eax
	movslq	%eax, %rdx
	imulq	$360287945, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$23, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -28(%rbp)
	movl	-28(%rbp), %edx
	imull	$100000007, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -28(%rbp)
.L19:
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jne	.L20
	movl	-28(%rbp), %eax
	addl	%eax, %eax
	movslq	%eax, %rdx
	imulq	$360287945, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$23, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -28(%rbp)
	movl	-28(%rbp), %edx
	imull	$100000007, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -28(%rbp)
.L20:
	movl	-28(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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
	.globl	getInv
	.type	getInv, @function
getInv:
.LFB23:
	.cfi_startproc
	endbr64
	movslq	%edi, %rcx
	movl	$27, %r9d
	movl	$1, %esi
	movl	$100000005, %r8d
	movabsq	$-6067344547413715707, %r10
	.p2align 4,,10
	.p2align 3
.L3:
	testb	$1, %r8b
	je	.L2
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	movq	%rsi, %rdi
	imulq	%r10
	movq	%rdi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rsi
	sarq	$26, %rsi
	subq	%rax, %rsi
	imulq	$100000007, %rsi, %rax
	movq	%rdi, %rsi
	subq	%rax, %rsi
.L2:
	movq	%rcx, %rdi
	sarl	%r8d
	imulq	%rcx, %rdi
	movq	%rdi, %rax
	imulq	%r10
	movq	%rdi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rdi), %rcx
	sarq	$26, %rcx
	subq	%rax, %rcx
	imulq	$100000007, %rcx, %rax
	movq	%rdi, %rcx
	subq	%rax, %rcx
	subl	$1, %r9d
	jne	.L3
	movl	%esi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	getInv, .-getInv
	.p2align 4
	.globl	nCr
	.type	nCr, @function
nCr:
.LFB24:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	movl	%esi, %r9d
	subl	%esi, %eax
	cmpl	%eax, %edi
	jle	.L16
	movslq	%edi, %rcx
	subl	$1, %edi
	movl	$1, %r11d
	leaq	-1(%rcx), %rsi
	subl	%eax, %edi
	movq	%rsi, %r8
	subq	%rdi, %r8
	movabsq	$-6067344547413715707, %rdi
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	subq	$1, %rsi
.L11:
	imulq	%r11, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %r11
	sarq	$26, %r11
	subq	%rax, %r11
	imulq	$100000007, %r11, %rax
	subq	%rax, %rcx
	movq	%rcx, %r11
	movq	%rsi, %rcx
	cmpq	%rsi, %r8
	jne	.L27
	testl	%r9d, %r9d
	jle	.L24
.L28:
	movabsq	$-6067344547413715707, %r10
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leal	1(%r9), %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rbx, %rcx
	movl	$27, %r9d
	movl	$1, %esi
	movl	$100000005, %r8d
	.p2align 4,,10
	.p2align 3
.L14:
	testb	$1, %r8b
	je	.L13
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	movq	%rsi, %rdi
	imulq	%r10
	movq	%rdi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rsi
	sarq	$26, %rsi
	subq	%rax, %rsi
	imulq	$100000007, %rsi, %rax
	movq	%rdi, %rsi
	subq	%rax, %rsi
.L13:
	movq	%rcx, %rdi
	sarl	%r8d
	imulq	%rcx, %rdi
	movq	%rdi, %rax
	imulq	%r10
	movq	%rdi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rdi), %rcx
	sarq	$26, %rcx
	subq	%rax, %rcx
	imulq	$100000007, %rcx, %rax
	movq	%rdi, %rcx
	subq	%rax, %rcx
	subl	$1, %r9d
	jne	.L14
	movslq	%esi, %rsi
	addq	$1, %rbx
	imulq	%r11, %rsi
	movq	%rsi, %rax
	imulq	%r10
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %r11
	sarq	$26, %r11
	subq	%rax, %r11
	imulq	$100000007, %r11, %rax
	subq	%rax, %rsi
	movq	%rsi, %r11
	cmpq	%rbp, %rbx
	jne	.L15
	movl	%esi, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore 3
	.cfi_restore 6
	movl	$1, %r11d
	testl	%r9d, %r9d
	jg	.L28
.L24:
	movl	%r11d, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	nCr, .-nCr
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rcx
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	subq	$8, %rsp
	.cfi_def_cfa_offset 88
	leaq	28(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 96
	xorl	%eax, %eax
	leaq	32(%rsp), %r9
	leaq	28(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	movl	24(%rsp), %edx
	movl	32(%rsp), %ebp
	movl	%eax, %r13d
	subl	%edx, %eax
	subl	%ebp, %r13d
	addl	%ebp, %eax
	addl	%edx, %r13d
	cmpl	%eax, %r13d
	cmovg	%eax, %r13d
	popq	%rax
	.cfi_def_cfa_offset 88
	movl	%edx, %eax
	popq	%rcx
	.cfi_def_cfa_offset 80
	subl	%ebp, %eax
	subl	%edx, %ebp
	movl	20(%rsp), %ebx
	movl	12(%rsp), %edx
	cmovs	%eax, %ebp
	movl	4(%rsp), %eax
	cmpl	%ebp, %r13d
	movl	%eax, %r12d
	movl	%ebp, %esi
	cmovle	%r13d, %esi
	subl	%edx, %eax
	subl	%ebx, %r12d
	addl	%edx, %r12d
	addl	%ebx, %eax
	cmpl	%eax, %r12d
	cmovg	%eax, %r12d
	movl	%edx, %eax
	subl	%ebx, %eax
	subl	%edx, %ebx
	cmovs	%eax, %ebx
	cmpl	%ebx, %r12d
	movl	%ebx, %edi
	cmovle	%r12d, %edi
	addl	%esi, %edi
	call	nCr
	movl	%eax, %edx
	cmpl	%ebp, %r13d
	jne	.L32
	leal	(%rax,%rax), %eax
	movl	$100000007, %ecx
	cltd
	idivl	%ecx
.L32:
	cmpl	%ebx, %r12d
	jne	.L33
	leal	(%rdx,%rdx), %eax
	movl	$100000007, %ecx
	cltd
	idivl	%ecx
.L33:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L36:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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
	.p2align 4
	.globl	getInv
	.type	getInv, @function
getInv:
.LFB23:
	.cfi_startproc
	endbr64
	movslq	%edi, %rcx
	movl	$27, %r9d
	movl	$1, %esi
	movl	$100000005, %r8d
	movabsq	$-6067344547413715707, %r10
	.p2align 4,,10
	.p2align 3
.L3:
	testb	$1, %r8b
	je	.L2
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	movq	%rsi, %rdi
	imulq	%r10
	movq	%rdi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rsi
	sarq	$26, %rsi
	subq	%rax, %rsi
	imulq	$100000007, %rsi, %rax
	movq	%rdi, %rsi
	subq	%rax, %rsi
.L2:
	movq	%rcx, %rdi
	sarl	%r8d
	imulq	%rcx, %rdi
	movq	%rdi, %rax
	imulq	%r10
	movq	%rdi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rdi), %rcx
	sarq	$26, %rcx
	subq	%rax, %rcx
	imulq	$100000007, %rcx, %rax
	movq	%rdi, %rcx
	subq	%rax, %rcx
	subl	$1, %r9d
	jne	.L3
	movl	%esi, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	getInv, .-getInv
	.p2align 4
	.globl	nCr
	.type	nCr, @function
nCr:
.LFB24:
	.cfi_startproc
	endbr64
	movl	%edi, %eax
	movl	%esi, %r9d
	subl	%esi, %eax
	cmpl	%eax, %edi
	jle	.L16
	movslq	%edi, %rcx
	subl	$1, %edi
	movl	$1, %r11d
	leaq	-1(%rcx), %rsi
	subl	%eax, %edi
	movq	%rsi, %r8
	subq	%rdi, %r8
	movabsq	$-6067344547413715707, %rdi
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	subq	$1, %rsi
.L11:
	imulq	%r11, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %r11
	sarq	$26, %r11
	subq	%rax, %r11
	imulq	$100000007, %r11, %rax
	subq	%rax, %rcx
	movq	%rcx, %r11
	movq	%rsi, %rcx
	cmpq	%rsi, %r8
	jne	.L27
	testl	%r9d, %r9d
	jle	.L24
.L28:
	movabsq	$-6067344547413715707, %r10
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leal	1(%r9), %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	$1, %ebx
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%rbx, %rcx
	movl	$27, %r9d
	movl	$1, %esi
	movl	$100000005, %r8d
	.p2align 4,,10
	.p2align 3
.L14:
	testb	$1, %r8b
	je	.L13
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	movq	%rsi, %rdi
	imulq	%r10
	movq	%rdi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rsi
	sarq	$26, %rsi
	subq	%rax, %rsi
	imulq	$100000007, %rsi, %rax
	movq	%rdi, %rsi
	subq	%rax, %rsi
.L13:
	movq	%rcx, %rdi
	sarl	%r8d
	imulq	%rcx, %rdi
	movq	%rdi, %rax
	imulq	%r10
	movq	%rdi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rdi), %rcx
	sarq	$26, %rcx
	subq	%rax, %rcx
	imulq	$100000007, %rcx, %rax
	movq	%rdi, %rcx
	subq	%rax, %rcx
	subl	$1, %r9d
	jne	.L14
	movslq	%esi, %rsi
	addq	$1, %rbx
	imulq	%r11, %rsi
	movq	%rsi, %rax
	imulq	%r10
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %r11
	sarq	$26, %r11
	subq	%rax, %r11
	imulq	$100000007, %r11, %rax
	subq	%rax, %rsi
	movq	%rsi, %r11
	cmpq	%rbp, %rbx
	jne	.L15
	movl	%esi, %eax
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore 3
	.cfi_restore 6
	movl	$1, %r11d
	testl	%r9d, %r9d
	jg	.L28
.L24:
	movl	%r11d, %eax
	ret
	.cfi_endproc
.LFE24:
	.size	nCr, .-nCr
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d%d%d%d%d%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB25:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$40, %rsp
	.cfi_def_cfa_offset 80
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rcx
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	subq	$8, %rsp
	.cfi_def_cfa_offset 88
	leaq	28(%rsp), %rax
	pushq	%rax
	.cfi_def_cfa_offset 96
	xorl	%eax, %eax
	leaq	32(%rsp), %r9
	leaq	28(%rsp), %r8
	call	__isoc99_scanf@PLT
	movl	16(%rsp), %eax
	movl	24(%rsp), %edx
	movl	32(%rsp), %ebp
	movl	%eax, %r13d
	subl	%edx, %eax
	subl	%ebp, %r13d
	addl	%ebp, %eax
	addl	%edx, %r13d
	cmpl	%eax, %r13d
	cmovg	%eax, %r13d
	popq	%rax
	.cfi_def_cfa_offset 88
	movl	%edx, %eax
	popq	%rcx
	.cfi_def_cfa_offset 80
	subl	%ebp, %eax
	subl	%edx, %ebp
	movl	20(%rsp), %ebx
	movl	12(%rsp), %edx
	cmovs	%eax, %ebp
	movl	4(%rsp), %eax
	cmpl	%ebp, %r13d
	movl	%eax, %r12d
	movl	%ebp, %esi
	cmovle	%r13d, %esi
	subl	%edx, %eax
	subl	%ebx, %r12d
	addl	%edx, %r12d
	addl	%ebx, %eax
	cmpl	%eax, %r12d
	cmovg	%eax, %r12d
	movl	%edx, %eax
	subl	%ebx, %eax
	subl	%edx, %ebx
	cmovs	%eax, %ebx
	cmpl	%ebx, %r12d
	movl	%ebx, %edi
	cmovle	%r12d, %edi
	addl	%esi, %edi
	call	nCr
	movl	%eax, %edx
	cmpl	%ebp, %r13d
	jne	.L32
	leal	(%rax,%rax), %eax
	movl	$100000007, %ecx
	cltd
	idivl	%ecx
.L32:
	cmpl	%ebx, %r12d
	jne	.L33
	leal	(%rdx,%rdx), %eax
	movl	$100000007, %ecx
	cltd
	idivl	%ecx
.L33:
	xorl	%eax, %eax
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L36:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE25:
	.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>

/* this is prime */
#define MOD_BY 100000007

int getInv(int x) {
	int nowzyou=MOD_BY-2;
	long long now=x;
	long long result=1;
	while(nowzyou>0) {
		if(nowzyou & 1)result=(result*now)%MOD_BY;
		now=(now*now)%MOD_BY;
		nowzyou>>=1;
	}
	return (int)result;
}

int nCr(int n,int r) {
	long long result=1;
	int i;
	for(i=n;i>n-r;i--)result=(result*i)%MOD_BY;
	for(i=1;i<=r;i++)result=(result*getInv(i))%MOD_BY;
	return (int)result;
}

int main(void) {
	int w,h,sx,sy,dx,dy;
	int x,y,x1,y1,x2,y2,now;
	int result;
	scanf("%d%d%d%d%d%d",&w,&h,&sx,&sy,&dx,&dy);
	x=(w-dx)+(sx-0);
	now=(w-sx)+(dx-0);if(now<x)x=now;
	x1=x;
	now=dx-sx;if(now<0)now=-now;if(now<x)x=now;
	x2=now;
	y=(h-dy)+(sy-0);
	now=(h-sy)+(dy-0);if(now<y)y=now;
	y1=y;
	now=dy-sy;if(now<0)now=-now;if(now<y)y=now;
	y2=now;
	result=nCr(x+y,x);
	if(x1==x2)result=(result*2)%MOD_BY;
	if(y1==y2)result=(result*2)%MOD_BY;
	printf("%d\n",result);
	return 0;
}
500 500 0 0 107 200
 4 1 0 0 1 1
 4 4 1 0 3 3
 2 3 0 0 1 1
 500 500 0 0 107 239
 2 1 0 0 1 1
 678 500 0 0 107 168
 500 500 0 0 200 277
 500 500 1 0 107 239
 678 353 0 0 107 239

68949311
 1
 6
 4
 29183355
 2
 46712821
 1876138
 8735893
 48683066

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>

/* this is prime */
#define MOD_BY 100000007

int getInv(int x) {
	int nowzyou=MOD_BY-2;
	long long now=x;
	long long result=1;
	while(nowzyou>0) {
		if(nowzyou & 1)result=(result*now)%MOD_BY;
		now=(now*now)%MOD_BY;
		nowzyou>>=1;
	}
	return (int)result;
}

int nCr(int n,int r) {
	long long result=1;
	int i;
	for(i=n;i>n-r;i--)result=(result*i)%MOD_BY;
	for(i=1;i<=r;i++)result=(result*getInv(i))%MOD_BY;
	return (int)result;
}

int main(void) {
	int w,h,sx,sy,dx,dy;
	int x,y,x1,y1,x2,y2,now;
	int result;
	scanf("%d%d%d%d%d%d",&w,&h,&sx,&sy,&dx,&dy);
	x=(w-dx)+(sx-0);
	now=(w-sx)+(dx-0);if(now<x)x=now;
	x1=x;
	now=dx-sx;if(now<0)now=-now;if(now<x)x=now;
	x2=now;
	y=(h-dy)+(sy-0);
	now=(h-sy)+(dy-0);if(now<y)y=now;
	y1=y;
	now=dy-sy;if(now<0)now=-now;if(now<y)y=now;
	y2=now;
	result=nCr(x+y,x);
	if(x1==x2)result=(result*2)%MOD_BY;
	if(y1==y2)result=(result*2)%MOD_BY;
	printf("%d\n",result);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	getInv
	.type	getInv, @function
getInv:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -36(%rbp)
	movl	$100000005, -20(%rbp)
	movl	-36(%rbp), %eax
	cltq
	movq	%rax, -16(%rbp)
	movq	$1, -8(%rbp)
	jmp	.L2
.L4:
	movl	-20(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L3
	movq	-8(%rbp), %rax
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-6067344547413715707, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$26, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	$100000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
.L3:
	movq	-16(%rbp), %rax
	imulq	%rax, %rax
	movq	%rax, %rcx
	movabsq	$-6067344547413715707, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$26, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$100000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	sarl	-20(%rbp)
.L2:
	cmpl	$0, -20(%rbp)
	jg	.L4
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getInv, .-getInv
	.globl	nCr
	.type	nCr, @function
nCr:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$24, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	$1, -8(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L7
.L8:
	movl	-12(%rbp), %eax
	cltq
	imulq	-8(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-6067344547413715707, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$26, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	$100000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	subl	$1, -12(%rbp)
.L7:
	movl	-20(%rbp), %eax
	subl	-24(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jg	.L8
	movl	$1, -12(%rbp)
	jmp	.L9
.L10:
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	getInv
	cltq
	imulq	-8(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-6067344547413715707, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$26, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	$100000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	addl	$1, -12(%rbp)
.L9:
	movl	-12(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L10
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	nCr, .-nCr
	.section	.rodata
.LC0:
	.string	"%d%d%d%d%d%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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
	leaq	-48(%rbp), %r8
	leaq	-52(%rbp), %rdi
	leaq	-56(%rbp), %rcx
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rax
	subq	$8, %rsp
	leaq	-44(%rbp), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	movl	-64(%rbp), %eax
	movl	-48(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-56(%rbp), %eax
	addl	%ecx, %eax
	movl	%eax, -40(%rbp)
	movl	-64(%rbp), %eax
	movl	-56(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-48(%rbp), %eax
	addl	%ecx, %eax
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jge	.L13
	movl	-32(%rbp), %eax
	movl	%eax, -40(%rbp)
.L13:
	movl	-40(%rbp), %eax
	movl	%eax, -24(%rbp)
	movl	-48(%rbp), %eax
	movl	-56(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -32(%rbp)
	cmpl	$0, -32(%rbp)
	jns	.L14
	negl	-32(%rbp)
.L14:
	movl	-32(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jge	.L15
	movl	-32(%rbp), %eax
	movl	%eax, -40(%rbp)
.L15:
	movl	-32(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-60(%rbp), %eax
	movl	-44(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-52(%rbp), %eax
	addl	%ecx, %eax
	movl	%eax, -36(%rbp)
	movl	-60(%rbp), %eax
	movl	-52(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-44(%rbp), %eax
	addl	%ecx, %eax
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jge	.L16
	movl	-32(%rbp), %eax
	movl	%eax, -36(%rbp)
.L16:
	movl	-36(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-44(%rbp), %eax
	movl	-52(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -32(%rbp)
	cmpl	$0, -32(%rbp)
	jns	.L17
	negl	-32(%rbp)
.L17:
	movl	-32(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jge	.L18
	movl	-32(%rbp), %eax
	movl	%eax, -36(%rbp)
.L18:
	movl	-32(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%eax, %edx
	movl	-40(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	nCr
	movl	%eax, -28(%rbp)
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jne	.L19
	movl	-28(%rbp), %eax
	addl	%eax, %eax
	movslq	%eax, %rdx
	imulq	$360287945, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$23, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -28(%rbp)
	movl	-28(%rbp), %edx
	imull	$100000007, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -28(%rbp)
.L19:
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jne	.L20
	movl	-28(%rbp), %eax
	addl	%eax, %eax
	movslq	%eax, %rdx
	imulq	$360287945, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$23, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -28(%rbp)
	movl	-28(%rbp), %edx
	imull	$100000007, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -28(%rbp)
.L20:
	movl	-28(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	getInv
	.type	getInv, @function
getInv:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -36(%rbp)
	movl	$100000005, -20(%rbp)
	movl	-36(%rbp), %eax
	cltq
	movq	%rax, -16(%rbp)
	movq	$1, -8(%rbp)
	jmp	.L2
.L4:
	movl	-20(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L3
	movq	-8(%rbp), %rax
	imulq	-16(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-6067344547413715707, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$26, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	$100000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
.L3:
	movq	-16(%rbp), %rax
	imulq	%rax, %rax
	movq	%rax, %rcx
	movabsq	$-6067344547413715707, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$26, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$100000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	sarl	-20(%rbp)
.L2:
	cmpl	$0, -20(%rbp)
	jg	.L4
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	getInv, .-getInv
	.globl	nCr
	.type	nCr, @function
nCr:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$24, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movq	$1, -8(%rbp)
	movl	-20(%rbp), %eax
	movl	%eax, -12(%rbp)
	jmp	.L7
.L8:
	movl	-12(%rbp), %eax
	cltq
	imulq	-8(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-6067344547413715707, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$26, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	$100000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	subl	$1, -12(%rbp)
.L7:
	movl	-20(%rbp), %eax
	subl	-24(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jg	.L8
	movl	$1, -12(%rbp)
	jmp	.L9
.L10:
	movl	-12(%rbp), %eax
	movl	%eax, %edi
	call	getInv
	cltq
	imulq	-8(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-6067344547413715707, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$26, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	$100000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	addl	$1, -12(%rbp)
.L9:
	movl	-12(%rbp), %eax
	cmpl	-24(%rbp), %eax
	jle	.L10
	movq	-8(%rbp), %rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	nCr, .-nCr
	.section	.rodata
.LC0:
	.string	"%d%d%d%d%d%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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
	leaq	-48(%rbp), %r8
	leaq	-52(%rbp), %rdi
	leaq	-56(%rbp), %rcx
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rax
	subq	$8, %rsp
	leaq	-44(%rbp), %rsi
	pushq	%rsi
	movq	%r8, %r9
	movq	%rdi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$16, %rsp
	movl	-64(%rbp), %eax
	movl	-48(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-56(%rbp), %eax
	addl	%ecx, %eax
	movl	%eax, -40(%rbp)
	movl	-64(%rbp), %eax
	movl	-56(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-48(%rbp), %eax
	addl	%ecx, %eax
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jge	.L13
	movl	-32(%rbp), %eax
	movl	%eax, -40(%rbp)
.L13:
	movl	-40(%rbp), %eax
	movl	%eax, -24(%rbp)
	movl	-48(%rbp), %eax
	movl	-56(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -32(%rbp)
	cmpl	$0, -32(%rbp)
	jns	.L14
	negl	-32(%rbp)
.L14:
	movl	-32(%rbp), %eax
	cmpl	-40(%rbp), %eax
	jge	.L15
	movl	-32(%rbp), %eax
	movl	%eax, -40(%rbp)
.L15:
	movl	-32(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-60(%rbp), %eax
	movl	-44(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-52(%rbp), %eax
	addl	%ecx, %eax
	movl	%eax, -36(%rbp)
	movl	-60(%rbp), %eax
	movl	-52(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, %ecx
	movl	-44(%rbp), %eax
	addl	%ecx, %eax
	movl	%eax, -32(%rbp)
	movl	-32(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jge	.L16
	movl	-32(%rbp), %eax
	movl	%eax, -36(%rbp)
.L16:
	movl	-36(%rbp), %eax
	movl	%eax, -16(%rbp)
	movl	-44(%rbp), %eax
	movl	-52(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -32(%rbp)
	cmpl	$0, -32(%rbp)
	jns	.L17
	negl	-32(%rbp)
.L17:
	movl	-32(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jge	.L18
	movl	-32(%rbp), %eax
	movl	%eax, -36(%rbp)
.L18:
	movl	-32(%rbp), %eax
	movl	%eax, -12(%rbp)
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	%eax, %edx
	movl	-40(%rbp), %eax
	movl	%eax, %esi
	movl	%edx, %edi
	call	nCr
	movl	%eax, -28(%rbp)
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jne	.L19
	movl	-28(%rbp), %eax
	addl	%eax, %eax
	movslq	%eax, %rdx
	imulq	$360287945, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$23, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -28(%rbp)
	movl	-28(%rbp), %edx
	imull	$100000007, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -28(%rbp)
.L19:
	movl	-16(%rbp), %eax
	cmpl	-12(%rbp), %eax
	jne	.L20
	movl	-28(%rbp), %eax
	addl	%eax, %eax
	movslq	%eax, %rdx
	imulq	$360287945, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$23, %edx
	movl	%eax, %ecx
	sarl	$31, %ecx
	subl	%ecx, %edx
	movl	%edx, -28(%rbp)
	movl	-28(%rbp), %edx
	imull	$100000007, %edx, %edx
	subl	%edx, %eax
	movl	%eax, -28(%rbp)
.L20:
	movl	-28(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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:
