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>

const int Mod = 1000000007;

long long div_mod(long long x, long long y, long long z)
{
	if (x % y == 0) return x / y;
	else return (div_mod((1 + x / y) * y - x, (z % y), y) * z + x) / y;
}

int main()
{
	int N, A, B, C;
	scanf("%d %d %d %d", &N, &A, &B, &C);
	
	int i;
	long long fact[200001], fact_inv[200001], pow[2][100001] = {{1, div_mod(A, A + B, Mod)}, {1, div_mod(B, A + B, Mod)}};
	for (i = 1, fact[0] = 1; i <= N * 2; i++) fact[i] = fact[i-1] * i % Mod;
	for (i = N * 2 - 1, fact_inv[N*2] = div_mod(1, fact[N*2], Mod); i >= 0; i--) fact_inv[i] = fact_inv[i+1] * (i + 1) % Mod;
	for (i = 2; i <= N; i++) {
		pow[0][i] = pow[0][i-1] * pow[0][1] % Mod;
		pow[1][i] = pow[1][i-1] * pow[1][1] % Mod;
	}
	
	long long prob[2], ans = 0;
	for (i = 0; i < N; i++) {
		prob[0] = pow[0][N] * pow[1][i] % Mod * fact[N+i-1] % Mod * fact_inv[N-1] % Mod * fact_inv[i] % Mod;
		prob[1] = pow[1][N] * pow[0][i] % Mod * fact[N+i-1] % Mod * fact_inv[N-1] % Mod * fact_inv[i] % Mod;
		ans = (ans + (prob[0] + prob[1]) * (N + i)) % Mod;
	}
	printf("%lld\n", div_mod(ans * 100 % Mod, A + B, Mod));
	fflush(stdout);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	Mod
	.section	.rodata
	.align 4
	.type	Mod, @object
	.size	Mod, 4
Mod:
	.long	1000000007
	.text
	.globl	div_mod
	.type	div_mod, @function
div_mod:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-8(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L2
	movq	-8(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	jmp	.L3
.L2:
	movq	-24(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	%rdx, %rcx
	movq	-8(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	addq	$1, %rax
	imulq	-16(%rbp), %rax
	subq	-8(%rbp), %rax
	movq	-16(%rbp), %rdx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	div_mod
	imulq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	cqto
	idivq	-16(%rbp)
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	div_mod, .-div_mod
	.section	.rodata
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-4796416(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3704, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-4800112(%rbp), %rsi
	leaq	-4800116(%rbp), %rcx
	leaq	-4800120(%rbp), %rdx
	leaq	-4800124(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1600048(%rbp), %rax
	movl	$1600016, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	$1, -1600048(%rbp)
	movl	$1000000007, %eax
	movslq	%eax, %rdx
	movl	-4800120(%rbp), %ecx
	movl	-4800116(%rbp), %eax
	addl	%ecx, %eax
	movslq	%eax, %rcx
	movl	-4800120(%rbp), %eax
	cltq
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	div_mod
	movq	%rax, -1600040(%rbp)
	movq	$1, -800040(%rbp)
	movl	$1000000007, %eax
	movslq	%eax, %rdx
	movl	-4800120(%rbp), %ecx
	movl	-4800116(%rbp), %eax
	addl	%ecx, %eax
	movslq	%eax, %rcx
	movl	-4800116(%rbp), %eax
	cltq
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	div_mod
	movq	%rax, -800032(%rbp)
	movl	$1, -4800108(%rbp)
	movq	$1, -4800080(%rbp)
	jmp	.L5
.L6:
	movl	-4800108(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-4800080(%rbp,%rax,8), %rdx
	movl	-4800108(%rbp), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800108(%rbp), %eax
	cltq
	movq	%rdx, -4800080(%rbp,%rax,8)
	addl	$1, -4800108(%rbp)
.L5:
	movl	-4800124(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -4800108(%rbp)
	jle	.L6
	movl	-4800124(%rbp), %eax
	addl	%eax, %eax
	subl	$1, %eax
	movl	%eax, -4800108(%rbp)
	movl	$1000000007, %eax
	movslq	%eax, %rdx
	movl	-4800124(%rbp), %eax
	addl	%eax, %eax
	cltq
	movq	-4800080(%rbp,%rax,8), %rax
	movl	-4800124(%rbp), %ecx
	leal	(%rcx,%rcx), %ebx
	movq	%rax, %rsi
	movl	$1, %edi
	call	div_mod
	movslq	%ebx, %rdx
	movq	%rax, -3200064(%rbp,%rdx,8)
	jmp	.L7
.L8:
	movl	-4800108(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	-3200064(%rbp,%rax,8), %rdx
	movl	-4800108(%rbp), %eax
	addl	$1, %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800108(%rbp), %eax
	cltq
	movq	%rdx, -3200064(%rbp,%rax,8)
	subl	$1, -4800108(%rbp)
.L7:
	cmpl	$0, -4800108(%rbp)
	jns	.L8
	movl	$2, -4800108(%rbp)
	jmp	.L9
.L10:
	movl	-4800108(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-1600048(%rbp,%rax,8), %rdx
	movq	-1600040(%rbp), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800108(%rbp), %eax
	cltq
	movq	%rdx, -1600048(%rbp,%rax,8)
	movl	-4800108(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$100001, %rax
	movq	-1600048(%rbp,%rax,8), %rdx
	movq	-800032(%rbp), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800108(%rbp), %eax
	cltq
	addq	$100001, %rax
	movq	%rdx, -1600048(%rbp,%rax,8)
	addl	$1, -4800108(%rbp)
.L9:
	movl	-4800124(%rbp), %eax
	cmpl	%eax, -4800108(%rbp)
	jle	.L10
	movq	$0, -4800104(%rbp)
	movl	$0, -4800108(%rbp)
	jmp	.L11
.L12:
	movl	-4800124(%rbp), %eax
	cltq
	movq	-1600048(%rbp,%rax,8), %rdx
	movl	-4800108(%rbp), %eax
	cltq
	addq	$100001, %rax
	movq	-1600048(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movl	-4800124(%rbp), %edx
	movl	-4800108(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	movq	-4800080(%rbp,%rax,8), %rax
	imulq	%rcx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800124(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-3200064(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800108(%rbp), %eax
	cltq
	movq	-3200064(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movq	%rax, -4800096(%rbp)
	movl	-4800124(%rbp), %eax
	cltq
	addq	$100001, %rax
	movq	-1600048(%rbp,%rax,8), %rdx
	movl	-4800108(%rbp), %eax
	cltq
	movq	-1600048(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movl	-4800124(%rbp), %edx
	movl	-4800108(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	movq	-4800080(%rbp,%rax,8), %rax
	imulq	%rcx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800124(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-3200064(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800108(%rbp), %eax
	cltq
	movq	-3200064(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movq	%rax, -4800088(%rbp)
	movq	-4800096(%rbp), %rdx
	movq	-4800088(%rbp), %rax
	addq	%rax, %rdx
	movl	-4800124(%rbp), %ecx
	movl	-4800108(%rbp), %eax
	addl	%ecx, %eax
	cltq
	imulq	%rax, %rdx
	movq	-4800104(%rbp), %rax
	addq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -4800104(%rbp)
	addl	$1, -4800108(%rbp)
.L11:
	movl	-4800124(%rbp), %eax
	cmpl	%eax, -4800108(%rbp)
	jl	.L12
	movl	$1000000007, %eax
	movslq	%eax, %rsi
	movl	-4800120(%rbp), %edx
	movl	-4800116(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rcx
	movq	-4800104(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rdi
	cqto
	idivq	%rdi
	movq	%rdx, %rax
	movq	%rsi, %rdx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	div_mod
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	div_mod.part.0, @function
div_mod.part.0:
.LFB25:
	.cfi_startproc
	movq	%rdx, %rax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	cqto
	idivq	%rsi
	movq	%rdi, %rax
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%rdx, %r14
	cqto
	idivq	%rsi
	leaq	1(%rax), %r12
	imulq	%rsi, %r12
	subq	%rdi, %r12
	movq	%r12, %rax
	cqto
	idivq	%r14
	testq	%rdx, %rdx
	jne	.L14
.L2:
	imulq	%rax, %rbx
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	leaq	(%rbx,%r13), %rax
	popq	%rbx
	.cfi_def_cfa_offset 48
	cqto
	idivq	%rbp
	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
.L14:
	.cfi_restore_state
	movq	%rax, %rcx
	movq	%rsi, %rax
	cqto
	addq	$1, %rcx
	idivq	%r14
	imulq	%r14, %rcx
	subq	%r12, %rcx
	movq	%rcx, %rax
	movq	%rdx, %r15
	cqto
	idivq	%r15
	movq	%rax, %rdi
	testq	%rdx, %rdx
	jne	.L15
.L3:
	imulq	%rbp, %rax
	addq	%r12, %rax
	cqto
	idivq	%r14
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%r14, %rax
	addq	$1, %rdi
	cqto
	imulq	%r15, %rdi
	idivq	%r15
	subq	%rcx, %rdi
	movq	%rdi, %rax
	movq	%rdx, %r8
	cqto
	idivq	%r8
	testq	%rdx, %rdx
	jne	.L16
.L5:
	imulq	%r14, %rax
	addq	%rcx, %rax
	cqto
	idivq	%r15
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%r15, %rdx
	movq	%r8, %rsi
	movq	%rcx, 8(%rsp)
	call	div_mod.part.0
	movq	8(%rsp), %rcx
	jmp	.L5
	.cfi_endproc
.LFE25:
	.size	div_mod.part.0, .-div_mod.part.0
	.p2align 4
	.globl	div_mod
	.type	div_mod, @function
div_mod:
.LFB23:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdx, %rbx
	cqto
	idivq	%rsi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	testq	%rdx, %rdx
	jne	.L29
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	movq	%rax, %r11
	movq	%rbx, %rax
	movq	%rdi, %r10
	movq	%rsi, %r9
	cqto
	addq	$1, %r11
	idivq	%rsi
	imulq	%rsi, %r11
	subq	%rdi, %r11
	movq	%r11, %rax
	movq	%rdx, %r12
	cqto
	idivq	%r12
	movq	%rax, %rdi
	testq	%rdx, %rdx
	jne	.L30
.L19:
	imulq	%rbx, %rax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	addq	%r10, %rax
	cqto
	idivq	%r9
	ret
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	movq	%rsi, %rax
	addq	$1, %rdi
	cqto
	imulq	%r12, %rdi
	idivq	%r12
	subq	%r11, %rdi
	movq	%rdi, %rax
	movq	%rdx, %rsi
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	jne	.L31
.L21:
	imulq	%r9, %rax
	addq	%r11, %rax
	cqto
	idivq	%r12
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L31:
	movq	%r12, %rdx
	call	div_mod.part.0
	jmp	.L21
	.cfi_endproc
.LFE23:
	.size	div_mod, .-div_mod
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	leaq	-4796416(%rsp), %r11
	.cfi_def_cfa 11, 4796472
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3688, %rsp
	.cfi_def_cfa_offset 4800160
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 4800088(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rcx
	leaq	20(%rsp), %rdx
	leaq	16(%rsp), %rsi
	leaq	28(%rsp), %r8
	leaq	3200064(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movl	$1600016, %edx
	xorl	%esi, %esi
	movq	%rbx, %rdi
	call	memset@PLT
	movslq	20(%rsp), %rdi
	movl	24(%rsp), %r9d
	movq	$1, 3200064(%rsp)
	leal	(%rdi,%r9), %eax
	movslq	%eax, %rsi
	movq	%rdi, %rax
	cqto
	movq	%rsi, 8(%rsp)
	idivq	%rsi
	testq	%rdx, %rdx
	jne	.L33
.L59:
	movslq	%r9d, %rdi
	movq	%rax, %r10
	movq	%rax, 3200072(%rsp)
	movq	$1, 4000072(%rsp)
	movq	%rdi, %rax
	cqto
	idivq	8(%rsp)
	testq	%rdx, %rdx
	jne	.L35
.L60:
	movl	16(%rsp), %r13d
	movq	%rax, 4000080(%rsp)
	movq	%rax, %r9
	movq	$1, 32(%rsp)
	leal	(%r13,%r13), %ecx
	testl	%ecx, %ecx
	jle	.L37
	leal	1(%rcx), %ebp
	movl	$1, %esi
	movl	$1, %edx
	movabsq	$-8543223828751151131, %r8
	leaq	32(%rsp), %r11
	.p2align 4,,10
	.p2align 3
.L38:
	movq	%rdx, %rdi
	imulq	%rsi, %rdi
	movq	%rdi, %rax
	imulq	%r8
	movq	%rdi, %rax
	sarq	$63, %rax
	addq	%rdi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rdi
	movq	%rdi, (%r11,%rsi,8)
	addq	$1, %rsi
	movq	%rdi, %rdx
	cmpq	%rsi, %rbp
	jne	.L38
.L37:
	movslq	%ecx, %rbp
	movl	$1, %eax
	leal	-1(%rcx), %r11d
	movq	32(%rsp,%rbp,8), %rsi
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	jne	.L61
.L40:
	movq	%rax, 1600048(%rsp,%rbp,8)
	testl	%r11d, %r11d
	js	.L41
	movslq	%r13d, %rax
	leaq	-1(%rbp), %rdi
	movq	%rbp, %rcx
	movabsq	$-8543223828751151131, %r8
	salq	$4, %rax
	subq	%r11, %rdi
	leaq	1600048(%rsp), %rbp
	movq	1600048(%rsp,%rax), %rdx
	.p2align 4,,10
	.p2align 3
.L42:
	movq	%rdx, %rsi
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	imulq	%r8
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, -8(%rbp,%rcx,8)
	subq	$1, %rcx
	movq	%rsi, %rdx
	cmpq	%rcx, %rdi
	jne	.L42
.L41:
	cmpl	$1, %r13d
	jle	.L43
	leal	-2(%r13), %eax
	leaq	3200080(%rsp), %rdi
	movq	%r10, %rsi
	movq	%r9, %rcx
	leaq	3200088(%rsp,%rax,8), %rbp
	movabsq	$-8543223828751151131, %r11
	.p2align 4,,10
	.p2align 3
.L44:
	imulq	%r10, %rsi
	addq	$8, %rdi
	imulq	%r9, %rcx
	movq	%rsi, %rax
	movq	%rsi, %r8
	imulq	%r11
	movq	%r8, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rsi
	sarq	$29, %rsi
	subq	%rax, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%r8, %rsi
	movq	%rcx, %r8
	subq	%rax, %rsi
	movq	%rcx, %rax
	imulq	%r11
	movq	%rcx, %rax
	movq	%rsi, -8(%rdi)
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	movq	%r8, %rcx
	subq	%rax, %rcx
	movq	%rcx, 800000(%rdi)
	cmpq	%rdi, %rbp
	jne	.L44
.L46:
	leal	-1(%r13), %eax
	movslq	%r13d, %r14
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	cltq
	movq	3200064(%rsp,%r14,8), %r10
	movq	4000072(%rsp,%r14,8), %r11
	leaq	32(%rsp,%r14,8), %r15
	movq	1600048(%rsp,%rax,8), %r12
	leaq	1600048(%rsp), %rbp
	movabsq	$-8543223828751151131, %rdi
	.p2align 4,,10
	.p2align 3
.L45:
	movq	800008(%rbx,%r9,8), %rcx
	movq	(%rbx,%r9,8), %rsi
	imulq	%r10, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	-8(%r15,%r9,8), %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%r12, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	0(%rbp,%r9,8), %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%r11, %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	-8(%r15,%r9,8), %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	%r12, %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	0(%rbp,%r9,8), %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	leaq	(%r14,%r9), %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	addq	%rsi, %rcx
	addq	$1, %r9
	imulq	%rax, %rcx
	addq	%r8, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %rcx
	movq	%rcx, %r8
	cmpl	%r9d, %r13d
	jg	.L45
	leaq	(%rcx,%rcx,4), %rax
	leaq	(%rax,%rax,4), %rcx
	salq	$2, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %rdi
	sarq	$29, %rdi
	subq	%rax, %rdi
	imulq	$1000000007, %rdi, %rax
	movq	%rcx, %rdi
	subq	%rax, %rdi
	movq	%rdi, %rax
	cqto
	idivq	8(%rsp)
	testq	%rdx, %rdx
	jne	.L48
.L47:
	movq	%rdi, %rax
	cqto
	idivq	8(%rsp)
	movq	%rax, %r8
.L49:
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r8, %rdx
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	4800088(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L62
	addq	$4800104, %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
.L33:
	.cfi_restore_state
	movq	8(%rsp), %rsi
	movl	$1000000007, %edx
	call	div_mod.part.0
	jmp	.L59
.L48:
	movq	8(%rsp), %rsi
	movl	$1000000007, %edx
	call	div_mod.part.0
	movq	%rax, %r8
	jmp	.L49
.L61:
	movl	$1000000007, %edx
	movl	$1, %edi
	call	div_mod.part.0
	jmp	.L40
.L35:
	movq	8(%rsp), %rsi
	movl	$1000000007, %edx
	call	div_mod.part.0
	jmp	.L60
.L43:
	je	.L46
	xorl	%edi, %edi
	jmp	.L47
.L62:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	Mod
	.section	.rodata
	.align 4
	.type	Mod, @object
	.size	Mod, 4
Mod:
	.long	1000000007
	.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	div_mod.part.0, @function
div_mod.part.0:
.LFB25:
	.cfi_startproc
	movq	%rdx, %rax
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	movq	%rdi, %r13
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rsi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	cqto
	idivq	%rsi
	movq	%rdi, %rax
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%rdx, %r14
	cqto
	idivq	%rsi
	leaq	1(%rax), %r12
	imulq	%rsi, %r12
	subq	%rdi, %r12
	movq	%r12, %rax
	cqto
	idivq	%r14
	testq	%rdx, %rdx
	jne	.L14
.L2:
	imulq	%rax, %rbx
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	leaq	(%rbx,%r13), %rax
	popq	%rbx
	.cfi_def_cfa_offset 48
	cqto
	idivq	%rbp
	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
.L14:
	.cfi_restore_state
	movq	%rax, %rcx
	movq	%rsi, %rax
	cqto
	addq	$1, %rcx
	idivq	%r14
	imulq	%r14, %rcx
	subq	%r12, %rcx
	movq	%rcx, %rax
	movq	%rdx, %r15
	cqto
	idivq	%r15
	movq	%rax, %rdi
	testq	%rdx, %rdx
	jne	.L15
.L3:
	imulq	%rbp, %rax
	addq	%r12, %rax
	cqto
	idivq	%r14
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	movq	%r14, %rax
	addq	$1, %rdi
	cqto
	imulq	%r15, %rdi
	idivq	%r15
	subq	%rcx, %rdi
	movq	%rdi, %rax
	movq	%rdx, %r8
	cqto
	idivq	%r8
	testq	%rdx, %rdx
	jne	.L16
.L5:
	imulq	%r14, %rax
	addq	%rcx, %rax
	cqto
	idivq	%r15
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	movq	%r15, %rdx
	movq	%r8, %rsi
	movq	%rcx, 8(%rsp)
	call	div_mod.part.0
	movq	8(%rsp), %rcx
	jmp	.L5
	.cfi_endproc
.LFE25:
	.size	div_mod.part.0, .-div_mod.part.0
	.p2align 4
	.globl	div_mod
	.type	div_mod, @function
div_mod:
.LFB23:
	.cfi_startproc
	endbr64
	movq	%rdi, %rax
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movq	%rdx, %rbx
	cqto
	idivq	%rsi
	subq	$8, %rsp
	.cfi_def_cfa_offset 32
	testq	%rdx, %rdx
	jne	.L29
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	movq	%rax, %r11
	movq	%rbx, %rax
	movq	%rdi, %r10
	movq	%rsi, %r9
	cqto
	addq	$1, %r11
	idivq	%rsi
	imulq	%rsi, %r11
	subq	%rdi, %r11
	movq	%r11, %rax
	movq	%rdx, %r12
	cqto
	idivq	%r12
	movq	%rax, %rdi
	testq	%rdx, %rdx
	jne	.L30
.L19:
	imulq	%rbx, %rax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	addq	%r10, %rax
	cqto
	idivq	%r9
	ret
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	movq	%rsi, %rax
	addq	$1, %rdi
	cqto
	imulq	%r12, %rdi
	idivq	%r12
	subq	%r11, %rdi
	movq	%rdi, %rax
	movq	%rdx, %rsi
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	jne	.L31
.L21:
	imulq	%r9, %rax
	addq	%r11, %rax
	cqto
	idivq	%r12
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L31:
	movq	%r12, %rdx
	call	div_mod.part.0
	jmp	.L21
	.cfi_endproc
.LFE23:
	.size	div_mod, .-div_mod
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	leaq	-4796416(%rsp), %r11
	.cfi_def_cfa 11, 4796472
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$3688, %rsp
	.cfi_def_cfa_offset 4800160
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 4800088(%rsp)
	xorl	%eax, %eax
	leaq	24(%rsp), %rcx
	leaq	20(%rsp), %rdx
	leaq	16(%rsp), %rsi
	leaq	28(%rsp), %r8
	leaq	3200064(%rsp), %rbx
	call	__isoc99_scanf@PLT
	movl	$1600016, %edx
	xorl	%esi, %esi
	movq	%rbx, %rdi
	call	memset@PLT
	movslq	20(%rsp), %rdi
	movl	24(%rsp), %r9d
	movq	$1, 3200064(%rsp)
	leal	(%rdi,%r9), %eax
	movslq	%eax, %rsi
	movq	%rdi, %rax
	cqto
	movq	%rsi, 8(%rsp)
	idivq	%rsi
	testq	%rdx, %rdx
	jne	.L33
.L59:
	movslq	%r9d, %rdi
	movq	%rax, %r10
	movq	%rax, 3200072(%rsp)
	movq	$1, 4000072(%rsp)
	movq	%rdi, %rax
	cqto
	idivq	8(%rsp)
	testq	%rdx, %rdx
	jne	.L35
.L60:
	movl	16(%rsp), %r13d
	movq	%rax, 4000080(%rsp)
	movq	%rax, %r9
	movq	$1, 32(%rsp)
	leal	(%r13,%r13), %ecx
	testl	%ecx, %ecx
	jle	.L37
	leal	1(%rcx), %ebp
	movl	$1, %esi
	movl	$1, %edx
	movabsq	$-8543223828751151131, %r8
	leaq	32(%rsp), %r11
	.p2align 4,,10
	.p2align 3
.L38:
	movq	%rdx, %rdi
	imulq	%rsi, %rdi
	movq	%rdi, %rax
	imulq	%r8
	movq	%rdi, %rax
	sarq	$63, %rax
	addq	%rdi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rdi
	movq	%rdi, (%r11,%rsi,8)
	addq	$1, %rsi
	movq	%rdi, %rdx
	cmpq	%rsi, %rbp
	jne	.L38
.L37:
	movslq	%ecx, %rbp
	movl	$1, %eax
	leal	-1(%rcx), %r11d
	movq	32(%rsp,%rbp,8), %rsi
	cqto
	idivq	%rsi
	testq	%rdx, %rdx
	jne	.L61
.L40:
	movq	%rax, 1600048(%rsp,%rbp,8)
	testl	%r11d, %r11d
	js	.L41
	movslq	%r13d, %rax
	leaq	-1(%rbp), %rdi
	movq	%rbp, %rcx
	movabsq	$-8543223828751151131, %r8
	salq	$4, %rax
	subq	%r11, %rdi
	leaq	1600048(%rsp), %rbp
	movq	1600048(%rsp,%rax), %rdx
	.p2align 4,,10
	.p2align 3
.L42:
	movq	%rdx, %rsi
	imulq	%rcx, %rsi
	movq	%rsi, %rax
	imulq	%r8
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, -8(%rbp,%rcx,8)
	subq	$1, %rcx
	movq	%rsi, %rdx
	cmpq	%rcx, %rdi
	jne	.L42
.L41:
	cmpl	$1, %r13d
	jle	.L43
	leal	-2(%r13), %eax
	leaq	3200080(%rsp), %rdi
	movq	%r10, %rsi
	movq	%r9, %rcx
	leaq	3200088(%rsp,%rax,8), %rbp
	movabsq	$-8543223828751151131, %r11
	.p2align 4,,10
	.p2align 3
.L44:
	imulq	%r10, %rsi
	addq	$8, %rdi
	imulq	%r9, %rcx
	movq	%rsi, %rax
	movq	%rsi, %r8
	imulq	%r11
	movq	%r8, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rsi
	sarq	$29, %rsi
	subq	%rax, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%r8, %rsi
	movq	%rcx, %r8
	subq	%rax, %rsi
	movq	%rcx, %rax
	imulq	%r11
	movq	%rcx, %rax
	movq	%rsi, -8(%rdi)
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	movq	%rdx, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	movq	%r8, %rcx
	subq	%rax, %rcx
	movq	%rcx, 800000(%rdi)
	cmpq	%rdi, %rbp
	jne	.L44
.L46:
	leal	-1(%r13), %eax
	movslq	%r13d, %r14
	xorl	%r9d, %r9d
	xorl	%r8d, %r8d
	cltq
	movq	3200064(%rsp,%r14,8), %r10
	movq	4000072(%rsp,%r14,8), %r11
	leaq	32(%rsp,%r14,8), %r15
	movq	1600048(%rsp,%rax,8), %r12
	leaq	1600048(%rsp), %rbp
	movabsq	$-8543223828751151131, %rdi
	.p2align 4,,10
	.p2align 3
.L45:
	movq	800008(%rbx,%r9,8), %rcx
	movq	(%rbx,%r9,8), %rsi
	imulq	%r10, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	-8(%r15,%r9,8), %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%r12, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	0(%rbp,%r9,8), %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	imulq	%r11, %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	-8(%r15,%r9,8), %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	%r12, %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	0(%rbp,%r9,8), %rsi
	movq	%rsi, %rax
	imulq	%rdi
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	leaq	(%r14,%r9), %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	addq	%rsi, %rcx
	addq	$1, %r9
	imulq	%rax, %rcx
	addq	%r8, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %rcx
	movq	%rcx, %r8
	cmpl	%r9d, %r13d
	jg	.L45
	leaq	(%rcx,%rcx,4), %rax
	leaq	(%rax,%rax,4), %rcx
	salq	$2, %rcx
	movq	%rcx, %rax
	imulq	%rdi
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %rdi
	sarq	$29, %rdi
	subq	%rax, %rdi
	imulq	$1000000007, %rdi, %rax
	movq	%rcx, %rdi
	subq	%rax, %rdi
	movq	%rdi, %rax
	cqto
	idivq	8(%rsp)
	testq	%rdx, %rdx
	jne	.L48
.L47:
	movq	%rdi, %rax
	cqto
	idivq	8(%rsp)
	movq	%rax, %r8
.L49:
	movl	$1, %edi
	xorl	%eax, %eax
	movq	%r8, %rdx
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	4800088(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L62
	addq	$4800104, %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
.L33:
	.cfi_restore_state
	movq	8(%rsp), %rsi
	movl	$1000000007, %edx
	call	div_mod.part.0
	jmp	.L59
.L48:
	movq	8(%rsp), %rsi
	movl	$1000000007, %edx
	call	div_mod.part.0
	movq	%rax, %r8
	jmp	.L49
.L61:
	movl	$1000000007, %edx
	movl	$1, %edi
	call	div_mod.part.0
	jmp	.L40
.L35:
	movq	8(%rsp), %rsi
	movl	$1000000007, %edx
	call	div_mod.part.0
	jmp	.L60
.L43:
	je	.L46
	xorl	%edi, %edi
	jmp	.L47
.L62:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	Mod
	.section	.rodata
	.align 4
	.type	Mod, @object
	.size	Mod, 4
Mod:
	.long	1000000007
	.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>

const int Mod = 1000000007;

long long div_mod(long long x, long long y, long long z)
{
	if (x % y == 0) return x / y;
	else return (div_mod((1 + x / y) * y - x, (z % y), y) * z + x) / y;
}

int main()
{
	int N, A, B, C;
	scanf("%d %d %d %d", &N, &A, &B, &C);
	
	int i;
	long long fact[200001], fact_inv[200001], pow[2][100001] = {{1, div_mod(A, A + B, Mod)}, {1, div_mod(B, A + B, Mod)}};
	for (i = 1, fact[0] = 1; i <= N * 2; i++) fact[i] = fact[i-1] * i % Mod;
	for (i = N * 2 - 1, fact_inv[N*2] = div_mod(1, fact[N*2], Mod); i >= 0; i--) fact_inv[i] = fact_inv[i+1] * (i + 1) % Mod;
	for (i = 2; i <= N; i++) {
		pow[0][i] = pow[0][i-1] * pow[0][1] % Mod;
		pow[1][i] = pow[1][i-1] * pow[1][1] % Mod;
	}
	
	long long prob[2], ans = 0;
	for (i = 0; i < N; i++) {
		prob[0] = pow[0][N] * pow[1][i] % Mod * fact[N+i-1] % Mod * fact_inv[N-1] % Mod * fact_inv[i] % Mod;
		prob[1] = pow[1][N] * pow[0][i] % Mod * fact[N+i-1] % Mod * fact_inv[N-1] % Mod * fact_inv[i] % Mod;
		ans = (ans + (prob[0] + prob[1]) * (N + i)) % Mod;
	}
	printf("%lld\n", div_mod(ans * 100 % Mod, A + B, Mod));
	fflush(stdout);
	return 0;
}
8 50 50 0

127441420

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>

const int Mod = 1000000007;

long long div_mod(long long x, long long y, long long z)
{
	if (x % y == 0) return x / y;
	else return (div_mod((1 + x / y) * y - x, (z % y), y) * z + x) / y;
}

int main()
{
	int N, A, B, C;
	scanf("%d %d %d %d", &N, &A, &B, &C);
	
	int i;
	long long fact[200001], fact_inv[200001], pow[2][100001] = {{1, div_mod(A, A + B, Mod)}, {1, div_mod(B, A + B, Mod)}};
	for (i = 1, fact[0] = 1; i <= N * 2; i++) fact[i] = fact[i-1] * i % Mod;
	for (i = N * 2 - 1, fact_inv[N*2] = div_mod(1, fact[N*2], Mod); i >= 0; i--) fact_inv[i] = fact_inv[i+1] * (i + 1) % Mod;
	for (i = 2; i <= N; i++) {
		pow[0][i] = pow[0][i-1] * pow[0][1] % Mod;
		pow[1][i] = pow[1][i-1] * pow[1][1] % Mod;
	}
	
	long long prob[2], ans = 0;
	for (i = 0; i < N; i++) {
		prob[0] = pow[0][N] * pow[1][i] % Mod * fact[N+i-1] % Mod * fact_inv[N-1] % Mod * fact_inv[i] % Mod;
		prob[1] = pow[1][N] * pow[0][i] % Mod * fact[N+i-1] % Mod * fact_inv[N-1] % Mod * fact_inv[i] % Mod;
		ans = (ans + (prob[0] + prob[1]) * (N + i)) % Mod;
	}
	printf("%lld\n", div_mod(ans * 100 % Mod, A + B, Mod));
	fflush(stdout);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	Mod
	.section	.rodata
	.align 4
	.type	Mod, @object
	.size	Mod, 4
Mod:
	.long	1000000007
	.text
	.globl	div_mod
	.type	div_mod, @function
div_mod:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-8(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L2
	movq	-8(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	jmp	.L3
.L2:
	movq	-24(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	%rdx, %rcx
	movq	-8(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	addq	$1, %rax
	imulq	-16(%rbp), %rax
	subq	-8(%rbp), %rax
	movq	-16(%rbp), %rdx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	div_mod
	imulq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	cqto
	idivq	-16(%rbp)
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	div_mod, .-div_mod
	.section	.rodata
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-4796416(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3704, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-4800112(%rbp), %rsi
	leaq	-4800116(%rbp), %rcx
	leaq	-4800120(%rbp), %rdx
	leaq	-4800124(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1600048(%rbp), %rax
	movl	$1600016, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	$1, -1600048(%rbp)
	movl	$1000000007, %eax
	movslq	%eax, %rdx
	movl	-4800120(%rbp), %ecx
	movl	-4800116(%rbp), %eax
	addl	%ecx, %eax
	movslq	%eax, %rcx
	movl	-4800120(%rbp), %eax
	cltq
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	div_mod
	movq	%rax, -1600040(%rbp)
	movq	$1, -800040(%rbp)
	movl	$1000000007, %eax
	movslq	%eax, %rdx
	movl	-4800120(%rbp), %ecx
	movl	-4800116(%rbp), %eax
	addl	%ecx, %eax
	movslq	%eax, %rcx
	movl	-4800116(%rbp), %eax
	cltq
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	div_mod
	movq	%rax, -800032(%rbp)
	movl	$1, -4800108(%rbp)
	movq	$1, -4800080(%rbp)
	jmp	.L5
.L6:
	movl	-4800108(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-4800080(%rbp,%rax,8), %rdx
	movl	-4800108(%rbp), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800108(%rbp), %eax
	cltq
	movq	%rdx, -4800080(%rbp,%rax,8)
	addl	$1, -4800108(%rbp)
.L5:
	movl	-4800124(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -4800108(%rbp)
	jle	.L6
	movl	-4800124(%rbp), %eax
	addl	%eax, %eax
	subl	$1, %eax
	movl	%eax, -4800108(%rbp)
	movl	$1000000007, %eax
	movslq	%eax, %rdx
	movl	-4800124(%rbp), %eax
	addl	%eax, %eax
	cltq
	movq	-4800080(%rbp,%rax,8), %rax
	movl	-4800124(%rbp), %ecx
	leal	(%rcx,%rcx), %ebx
	movq	%rax, %rsi
	movl	$1, %edi
	call	div_mod
	movslq	%ebx, %rdx
	movq	%rax, -3200064(%rbp,%rdx,8)
	jmp	.L7
.L8:
	movl	-4800108(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	-3200064(%rbp,%rax,8), %rdx
	movl	-4800108(%rbp), %eax
	addl	$1, %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800108(%rbp), %eax
	cltq
	movq	%rdx, -3200064(%rbp,%rax,8)
	subl	$1, -4800108(%rbp)
.L7:
	cmpl	$0, -4800108(%rbp)
	jns	.L8
	movl	$2, -4800108(%rbp)
	jmp	.L9
.L10:
	movl	-4800108(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-1600048(%rbp,%rax,8), %rdx
	movq	-1600040(%rbp), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800108(%rbp), %eax
	cltq
	movq	%rdx, -1600048(%rbp,%rax,8)
	movl	-4800108(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$100001, %rax
	movq	-1600048(%rbp,%rax,8), %rdx
	movq	-800032(%rbp), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800108(%rbp), %eax
	cltq
	addq	$100001, %rax
	movq	%rdx, -1600048(%rbp,%rax,8)
	addl	$1, -4800108(%rbp)
.L9:
	movl	-4800124(%rbp), %eax
	cmpl	%eax, -4800108(%rbp)
	jle	.L10
	movq	$0, -4800104(%rbp)
	movl	$0, -4800108(%rbp)
	jmp	.L11
.L12:
	movl	-4800124(%rbp), %eax
	cltq
	movq	-1600048(%rbp,%rax,8), %rdx
	movl	-4800108(%rbp), %eax
	cltq
	addq	$100001, %rax
	movq	-1600048(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movl	-4800124(%rbp), %edx
	movl	-4800108(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	movq	-4800080(%rbp,%rax,8), %rax
	imulq	%rcx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800124(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-3200064(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800108(%rbp), %eax
	cltq
	movq	-3200064(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movq	%rax, -4800096(%rbp)
	movl	-4800124(%rbp), %eax
	cltq
	addq	$100001, %rax
	movq	-1600048(%rbp,%rax,8), %rdx
	movl	-4800108(%rbp), %eax
	cltq
	movq	-1600048(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movl	-4800124(%rbp), %edx
	movl	-4800108(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	movq	-4800080(%rbp,%rax,8), %rax
	imulq	%rcx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800124(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-3200064(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800108(%rbp), %eax
	cltq
	movq	-3200064(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movq	%rax, -4800088(%rbp)
	movq	-4800096(%rbp), %rdx
	movq	-4800088(%rbp), %rax
	addq	%rax, %rdx
	movl	-4800124(%rbp), %ecx
	movl	-4800108(%rbp), %eax
	addl	%ecx, %eax
	cltq
	imulq	%rax, %rdx
	movq	-4800104(%rbp), %rax
	addq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -4800104(%rbp)
	addl	$1, -4800108(%rbp)
.L11:
	movl	-4800124(%rbp), %eax
	cmpl	%eax, -4800108(%rbp)
	jl	.L12
	movl	$1000000007, %eax
	movslq	%eax, %rsi
	movl	-4800120(%rbp), %edx
	movl	-4800116(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rcx
	movq	-4800104(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rdi
	cqto
	idivq	%rdi
	movq	%rdx, %rax
	movq	%rsi, %rdx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	div_mod
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	Mod
	.section	.rodata
	.align 4
	.type	Mod, @object
	.size	Mod, 4
Mod:
	.long	1000000007
	.text
	.globl	div_mod
	.type	div_mod, @function
div_mod:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	%rdx, -24(%rbp)
	movq	-8(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	%rdx, %rax
	testq	%rax, %rax
	jne	.L2
	movq	-8(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	jmp	.L3
.L2:
	movq	-24(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	movq	%rdx, %rcx
	movq	-8(%rbp), %rax
	cqto
	idivq	-16(%rbp)
	addq	$1, %rax
	imulq	-16(%rbp), %rax
	subq	-8(%rbp), %rax
	movq	-16(%rbp), %rdx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	div_mod
	imulq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-8(%rbp), %rax
	addq	%rdx, %rax
	cqto
	idivq	-16(%rbp)
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	div_mod, .-div_mod
	.section	.rodata
.LC0:
	.string	"%d %d %d %d"
.LC1:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	leaq	-4796416(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$3704, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-4800112(%rbp), %rsi
	leaq	-4800116(%rbp), %rcx
	leaq	-4800120(%rbp), %rdx
	leaq	-4800124(%rbp), %rax
	movq	%rsi, %r8
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	leaq	-1600048(%rbp), %rax
	movl	$1600016, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movq	$1, -1600048(%rbp)
	movl	$1000000007, %eax
	movslq	%eax, %rdx
	movl	-4800120(%rbp), %ecx
	movl	-4800116(%rbp), %eax
	addl	%ecx, %eax
	movslq	%eax, %rcx
	movl	-4800120(%rbp), %eax
	cltq
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	div_mod
	movq	%rax, -1600040(%rbp)
	movq	$1, -800040(%rbp)
	movl	$1000000007, %eax
	movslq	%eax, %rdx
	movl	-4800120(%rbp), %ecx
	movl	-4800116(%rbp), %eax
	addl	%ecx, %eax
	movslq	%eax, %rcx
	movl	-4800116(%rbp), %eax
	cltq
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	div_mod
	movq	%rax, -800032(%rbp)
	movl	$1, -4800108(%rbp)
	movq	$1, -4800080(%rbp)
	jmp	.L5
.L6:
	movl	-4800108(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-4800080(%rbp,%rax,8), %rdx
	movl	-4800108(%rbp), %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800108(%rbp), %eax
	cltq
	movq	%rdx, -4800080(%rbp,%rax,8)
	addl	$1, -4800108(%rbp)
.L5:
	movl	-4800124(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -4800108(%rbp)
	jle	.L6
	movl	-4800124(%rbp), %eax
	addl	%eax, %eax
	subl	$1, %eax
	movl	%eax, -4800108(%rbp)
	movl	$1000000007, %eax
	movslq	%eax, %rdx
	movl	-4800124(%rbp), %eax
	addl	%eax, %eax
	cltq
	movq	-4800080(%rbp,%rax,8), %rax
	movl	-4800124(%rbp), %ecx
	leal	(%rcx,%rcx), %ebx
	movq	%rax, %rsi
	movl	$1, %edi
	call	div_mod
	movslq	%ebx, %rdx
	movq	%rax, -3200064(%rbp,%rdx,8)
	jmp	.L7
.L8:
	movl	-4800108(%rbp), %eax
	addl	$1, %eax
	cltq
	movq	-3200064(%rbp,%rax,8), %rdx
	movl	-4800108(%rbp), %eax
	addl	$1, %eax
	cltq
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800108(%rbp), %eax
	cltq
	movq	%rdx, -3200064(%rbp,%rax,8)
	subl	$1, -4800108(%rbp)
.L7:
	cmpl	$0, -4800108(%rbp)
	jns	.L8
	movl	$2, -4800108(%rbp)
	jmp	.L9
.L10:
	movl	-4800108(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-1600048(%rbp,%rax,8), %rdx
	movq	-1600040(%rbp), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800108(%rbp), %eax
	cltq
	movq	%rdx, -1600048(%rbp,%rax,8)
	movl	-4800108(%rbp), %eax
	subl	$1, %eax
	cltq
	addq	$100001, %rax
	movq	-1600048(%rbp,%rax,8), %rdx
	movq	-800032(%rbp), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800108(%rbp), %eax
	cltq
	addq	$100001, %rax
	movq	%rdx, -1600048(%rbp,%rax,8)
	addl	$1, -4800108(%rbp)
.L9:
	movl	-4800124(%rbp), %eax
	cmpl	%eax, -4800108(%rbp)
	jle	.L10
	movq	$0, -4800104(%rbp)
	movl	$0, -4800108(%rbp)
	jmp	.L11
.L12:
	movl	-4800124(%rbp), %eax
	cltq
	movq	-1600048(%rbp,%rax,8), %rdx
	movl	-4800108(%rbp), %eax
	cltq
	addq	$100001, %rax
	movq	-1600048(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movl	-4800124(%rbp), %edx
	movl	-4800108(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	movq	-4800080(%rbp,%rax,8), %rax
	imulq	%rcx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800124(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-3200064(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800108(%rbp), %eax
	cltq
	movq	-3200064(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movq	%rax, -4800096(%rbp)
	movl	-4800124(%rbp), %eax
	cltq
	addq	$100001, %rax
	movq	-1600048(%rbp,%rax,8), %rdx
	movl	-4800108(%rbp), %eax
	cltq
	movq	-1600048(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rcx
	movl	-4800124(%rbp), %edx
	movl	-4800108(%rbp), %eax
	addl	%edx, %eax
	subl	$1, %eax
	cltq
	movq	-4800080(%rbp,%rax,8), %rax
	imulq	%rcx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800124(%rbp), %eax
	subl	$1, %eax
	cltq
	movq	-3200064(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movl	-4800108(%rbp), %eax
	cltq
	movq	-3200064(%rbp,%rax,8), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movq	%rax, -4800088(%rbp)
	movq	-4800096(%rbp), %rdx
	movq	-4800088(%rbp), %rax
	addq	%rax, %rdx
	movl	-4800124(%rbp), %ecx
	movl	-4800108(%rbp), %eax
	addl	%ecx, %eax
	cltq
	imulq	%rax, %rdx
	movq	-4800104(%rbp), %rax
	addq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, -4800104(%rbp)
	addl	$1, -4800108(%rbp)
.L11:
	movl	-4800124(%rbp), %eax
	cmpl	%eax, -4800108(%rbp)
	jl	.L12
	movl	$1000000007, %eax
	movslq	%eax, %rsi
	movl	-4800120(%rbp), %edx
	movl	-4800116(%rbp), %eax
	addl	%edx, %eax
	movslq	%eax, %rcx
	movq	-4800104(%rbp), %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rdx
	addq	%rdx, %rax
	salq	$2, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rdi
	cqto
	idivq	%rdi
	movq	%rdx, %rax
	movq	%rsi, %rdx
	movq	%rcx, %rsi
	movq	%rax, %rdi
	call	div_mod
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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:
