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>
#include <stdlib.h>

const int MOD = 1000000007;

int main () {
	int n, m;
	long long tmp;
	long long dxs=0, dys=0;
	scanf ("%d %d", &n, &m);
	for (int i=0; i<n; i++) {
		scanf ("%lld", &tmp);
		dxs += (2*i - n + 1)*tmp % MOD;
		dxs %= MOD;
	}
	for (int i=0; i<m; i++){
		scanf ("%lld", &tmp);
		dys += (2*i - m + 1)*tmp % MOD;
		dys %= MOD;
	}

	printf ("%lld\n", dxs*dys%MOD);
	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
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -24(%rbp)
	movq	$0, -16(%rbp)
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40(%rbp)
	jmp	.L2
.L3:
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	addl	%eax, %eax
	movl	-48(%rbp), %edx
	subl	%edx, %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	addq	%rax, -24(%rbp)
	movl	$1000000007, %eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	addl	$1, -40(%rbp)
.L2:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L3
	movl	$0, -36(%rbp)
	jmp	.L4
.L5:
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %eax
	addl	%eax, %eax
	movl	-44(%rbp), %edx
	subl	%edx, %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	addq	%rax, -16(%rbp)
	movl	$1000000007, %eax
	movslq	%eax, %rcx
	movq	-16(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, -16(%rbp)
	addl	$1, -36(%rbp)
.L4:
	movl	-44(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L5
	movq	-24(%rbp), %rax
	imulq	-16(%rbp), %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L7
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	leaq	16(%rsp), %r12
	movabsq	$-8543223828751151131, %r13
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %esi
	leal	(%r14,%r14), %ecx
	addl	$1, %r14d
	subl	%esi, %ecx
	addl	$1, %ecx
	movslq	%ecx, %rcx
	imulq	16(%rsp), %rcx
	movq	%rcx, %rax
	imulq	%r13
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	addq	%rbx, %rcx
	movq	%rcx, %rax
	imulq	%r13
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %rbx
	sarq	$29, %rbx
	subq	%rax, %rbx
	imulq	$1000000007, %rbx, %rax
	movq	%rcx, %rbx
	subq	%rax, %rbx
	cmpl	%r14d, %esi
	jg	.L3
.L2:
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	leaq	16(%rsp), %r12
	movabsq	$-8543223828751151131, %r14
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	leal	(%r15,%r15), %eax
	addl	$1, %r15d
	subl	%ecx, %eax
	addl	$1, %eax
	cltq
	imulq	16(%rsp), %rax
	movq	%rax, %rsi
	imulq	%r14
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	addq	%r13, %rsi
	movq	%rsi, %rax
	imulq	%r14
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %r13
	sarq	$29, %r13
	subq	%rax, %r13
	imulq	$1000000007, %r13, %rax
	subq	%rax, %rsi
	movq	%rsi, %r13
	cmpl	%r15d, %ecx
	jg	.L5
.L4:
	imulq	%r13, %rbx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movabsq	$-8543223828751151131, %rdx
	movq	%rbx, %rax
	imulq	%rdx
	leaq	(%rdx,%rbx), %rax
	movq	%rbx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rbx
	xorl	%eax, %eax
	movq	%rbx, %rdx
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$40, %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
.L7:
	.cfi_restore_state
	xorl	%ebx, %ebx
	jmp	.L2
.L8:
	xorl	%r13d, %r13d
	jmp	.L4
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	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
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %edx
	testl	%edx, %edx
	jle	.L7
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	leaq	16(%rsp), %r12
	movabsq	$-8543223828751151131, %r13
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %esi
	leal	(%r14,%r14), %ecx
	addl	$1, %r14d
	subl	%esi, %ecx
	addl	$1, %ecx
	movslq	%ecx, %rcx
	imulq	16(%rsp), %rcx
	movq	%rcx, %rax
	imulq	%r13
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rcx
	addq	%rbx, %rcx
	movq	%rcx, %rax
	imulq	%r13
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %rbx
	sarq	$29, %rbx
	subq	%rax, %rbx
	imulq	$1000000007, %rbx, %rax
	movq	%rcx, %rbx
	subq	%rax, %rbx
	cmpl	%r14d, %esi
	jg	.L3
.L2:
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L8
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	leaq	16(%rsp), %r12
	movabsq	$-8543223828751151131, %r14
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%r12, %rsi
	movq	%rbp, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %ecx
	leal	(%r15,%r15), %eax
	addl	$1, %r15d
	subl	%ecx, %eax
	addl	$1, %eax
	cltq
	imulq	16(%rsp), %rax
	movq	%rax, %rsi
	imulq	%r14
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	addq	%r13, %rsi
	movq	%rsi, %rax
	imulq	%r14
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %r13
	sarq	$29, %r13
	subq	%rax, %r13
	imulq	$1000000007, %r13, %rax
	subq	%rax, %rsi
	movq	%rsi, %r13
	cmpl	%r15d, %ecx
	jg	.L5
.L4:
	imulq	%r13, %rbx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movabsq	$-8543223828751151131, %rdx
	movq	%rbx, %rax
	imulq	%rdx
	leaq	(%rdx,%rbx), %rax
	movq	%rbx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rbx
	xorl	%eax, %eax
	movq	%rbx, %rdx
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L13
	addq	$40, %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
.L7:
	.cfi_restore_state
	xorl	%ebx, %ebx
	jmp	.L2
.L8:
	xorl	%r13d, %r13d
	jmp	.L4
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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>
#include <stdlib.h>

const int MOD = 1000000007;

int main () {
	int n, m;
	long long tmp;
	long long dxs=0, dys=0;
	scanf ("%d %d", &n, &m);
	for (int i=0; i<n; i++) {
		scanf ("%lld", &tmp);
		dxs += (2*i - n + 1)*tmp % MOD;
		dxs %= MOD;
	}
	for (int i=0; i<m; i++){
		scanf ("%lld", &tmp);
		dys += (2*i - m + 1)*tmp % MOD;
		dys %= MOD;
	}

	printf ("%lld\n", dxs*dys%MOD);
	return 0;
}
6 5
-983443749 -192321079 95834122 418379342 586260100 802780784
-253230108 193944314 363756450 712662868 735867677
 6 5
-983443749 -192321079 95834122 418379342 586260100 802780784
-253230108 193944314 363756450 712662868 1151847131
 6 5
-244028396 -192321079 95834122 418379342 586260100 802780784
-253230108 193944314 363756450 712662868 1151847131
 3 3
1 3 4
1 3 9
 6 5
-983443749 -192321079 124644017 418379342 586260100 802780784
-253230108 193944314 363756450 712662868 1151847131
 3 3
1 3 4
0 3 9
 6 5
-983443749 -293179180 95834122 418379342 586260100 802780784
-253230108 193944314 556319375 712662868 735867677
 6 5
-983443749 -192321079 7026056 418379342 586260100 802780784
-253230108 193944314 363756450 712662868 1151847131
 6 5
-983443749 -228848563 95834122 418379342 586260100 802780784
-253230108 193944314 556319375 712662868 735867677
 3 3
1 3 4
1 3 7

748740539
 781638842
 596422638
 96
 83798303
 108
 612023046
 505760230
 200793048
 72

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>
#include <stdlib.h>

const int MOD = 1000000007;

int main () {
	int n, m;
	long long tmp;
	long long dxs=0, dys=0;
	scanf ("%d %d", &n, &m);
	for (int i=0; i<n; i++) {
		scanf ("%lld", &tmp);
		dxs += (2*i - n + 1)*tmp % MOD;
		dxs %= MOD;
	}
	for (int i=0; i<m; i++){
		scanf ("%lld", &tmp);
		dys += (2*i - m + 1)*tmp % MOD;
		dys %= MOD;
	}

	printf ("%lld\n", dxs*dys%MOD);
	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
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -24(%rbp)
	movq	$0, -16(%rbp)
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40(%rbp)
	jmp	.L2
.L3:
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	addl	%eax, %eax
	movl	-48(%rbp), %edx
	subl	%edx, %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	addq	%rax, -24(%rbp)
	movl	$1000000007, %eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	addl	$1, -40(%rbp)
.L2:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L3
	movl	$0, -36(%rbp)
	jmp	.L4
.L5:
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %eax
	addl	%eax, %eax
	movl	-44(%rbp), %edx
	subl	%edx, %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	addq	%rax, -16(%rbp)
	movl	$1000000007, %eax
	movslq	%eax, %rcx
	movq	-16(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, -16(%rbp)
	addl	$1, -36(%rbp)
.L4:
	movl	-44(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L5
	movq	-24(%rbp), %rax
	imulq	-16(%rbp), %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$48, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -24(%rbp)
	movq	$0, -16(%rbp)
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -40(%rbp)
	jmp	.L2
.L3:
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-40(%rbp), %eax
	addl	%eax, %eax
	movl	-48(%rbp), %edx
	subl	%edx, %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	addq	%rax, -24(%rbp)
	movl	$1000000007, %eax
	movslq	%eax, %rcx
	movq	-24(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, -24(%rbp)
	addl	$1, -40(%rbp)
.L2:
	movl	-48(%rbp), %eax
	cmpl	%eax, -40(%rbp)
	jl	.L3
	movl	$0, -36(%rbp)
	jmp	.L4
.L5:
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-36(%rbp), %eax
	addl	%eax, %eax
	movl	-44(%rbp), %edx
	subl	%edx, %eax
	addl	$1, %eax
	movslq	%eax, %rdx
	movq	-32(%rbp), %rax
	imulq	%rdx, %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	addq	%rax, -16(%rbp)
	movl	$1000000007, %eax
	movslq	%eax, %rcx
	movq	-16(%rbp), %rax
	cqto
	idivq	%rcx
	movq	%rdx, -16(%rbp)
	addl	$1, -36(%rbp)
.L4:
	movl	-44(%rbp), %eax
	cmpl	%eax, -36(%rbp)
	jl	.L5
	movq	-24(%rbp), %rax
	imulq	-16(%rbp), %rax
	movl	$1000000007, %edx
	movslq	%edx, %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
