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>

#define MOD 1000000007

#define N_MAX 100000
#define M_MAX N_MAX

typedef long long ll;

int n, m;
ll x[N_MAX], y[M_MAX];
ll cx[N_MAX], cy[M_MAX];


int main(void)
{
	int i;
	ll w, h;

	while(scanf("%d%d", &n, &m)==2)
	{
		for(i=0;i<n;i++) scanf("%lld", &x[i]);
		for(i=0;i<m;i++) scanf("%lld", &y[i]);

		for(i=0;i+1<n;i++)
		{
			if(i==0) cx[i]=n;
			else cx[i]=cx[i-1]+n-i*2;
		}

		w=0;
		cx[0]=0;
		for(i=1;i<n;i++)
		{
			cx[i]=(cx[i-1]+n+1-i*2)%MOD;
			w=(w+(x[i]-x[i-1])*cx[i])%MOD;
		}
		h=0;
		cy[0]=0;
		for(i=1;i<m;i++)
		{
			cy[i]=(cy[i-1]+m+1-i*2)%MOD;
			h=(h+(y[i]-y[i-1])*cy[i])%MOD;
		}
		printf("%lld\n", (w*h)%MOD);
	}

	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 800000
x:
	.zero	800000
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 800000
y:
	.zero	800000
	.globl	cx
	.align 32
	.type	cx, @object
	.size	cx, 800000
cx:
	.zero	800000
	.globl	cy
	.align 32
	.type	cy, @object
	.size	cy, 800000
cy:
	.zero	800000
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\n"
.LC2:
	.string	"%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.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
	jmp	.L2
.L15:
	movl	$0, -20(%rbp)
	jmp	.L3
.L4:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -20(%rbp)
.L3:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L4
	movl	$0, -20(%rbp)
	jmp	.L5
.L6:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -20(%rbp)
.L5:
	movl	m(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L6
	movl	$0, -20(%rbp)
	jmp	.L7
.L10:
	cmpl	$0, -20(%rbp)
	jne	.L8
	movl	n(%rip), %eax
	cltq
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	cx(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	jmp	.L9
.L8:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cx(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	n(%rip), %eax
	cltq
	addq	%rax, %rdx
	movl	-20(%rbp), %eax
	addl	%eax, %eax
	cltq
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cx(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L9:
	addl	$1, -20(%rbp)
.L7:
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L10
	movq	$0, -16(%rbp)
	movq	$0, cx(%rip)
	movl	$1, -20(%rbp)
	jmp	.L11
.L12:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cx(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	n(%rip), %eax
	cltq
	addq	%rdx, %rax
	leaq	1(%rax), %rdx
	movl	-20(%rbp), %eax
	addl	%eax, %eax
	cltq
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	cx(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-20(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	x(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	subq	%rdx, %rax
	movq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cx(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	%rax, %rcx
	movq	%rcx, %rdx
	movq	-16(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	addl	$1, -20(%rbp)
.L11:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L12
	movq	$0, -8(%rbp)
	movq	$0, cy(%rip)
	movl	$1, -20(%rbp)
	jmp	.L13
.L14:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cy(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	m(%rip), %eax
	cltq
	addq	%rdx, %rax
	leaq	1(%rax), %rdx
	movl	-20(%rbp), %eax
	addl	%eax, %eax
	cltq
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	cy(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-20(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	y(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	subq	%rdx, %rax
	movq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cy(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	%rax, %rcx
	movq	%rcx, %rdx
	movq	-8(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	addl	$1, -20(%rbp)
.L13:
	movl	m(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L14
	movq	-16(%rbp), %rax
	imulq	-8(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	m(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L15
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"%lld"
.LC1:
	.string	"%lld\n"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %r15
	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	$24, %rsp
	.cfi_def_cfa_offset 80
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	leaq	m(%rip), %rdx
	leaq	n(%rip), %rsi
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L26
	movl	n(%rip), %ecx
	leaq	x(%rip), %rbp
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	jle	.L21
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	n(%rip), %ecx
	addq	$8, %rbp
	cmpl	%ebx, %ecx
	jg	.L3
.L21:
	movl	m(%rip), %edi
	testl	%edi, %edi
	jle	.L4
	leaq	y(%rip), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	m(%rip), %edi
	addq	$8, %rbp
	cmpl	%ebx, %edi
	jg	.L5
	movl	n(%rip), %ecx
.L4:
	cmpl	$1, %ecx
	jle	.L6
	movslq	%ecx, %r8
	xorl	%esi, %esi
	movl	$1, %r9d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	cx(%rip), %rax
	movq	%r8, (%rax)
	cmpl	$2, %ecx
	je	.L9
	movq	%r8, %rax
	movl	$2, %esi
	movl	$1, %edx
	movl	$3, %r9d
	movl	$2, %r10d
.L8:
	addq	%r8, %rax
	leaq	cx(%rip), %rbx
	subq	%r10, %rax
	movq	%rax, (%rbx,%rdx,8)
	cmpl	%r9d, %ecx
	jle	.L9
.L10:
	testl	%esi, %esi
	je	.L7
	leal	-1(%rsi), %eax
	leal	(%rsi,%rsi), %r10d
	movslq	%esi, %rdx
	movl	%r9d, %esi
	cltq
	leaq	cx(%rip), %rbx
	movslq	%r10d, %r10
	addl	$1, %r9d
	movq	(%rbx,%rax,8), %rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	movq	$0, cx(%rip)
	cmpl	$3, %ecx
	jle	.L41
	leal	-4(%rcx), %eax
	movq	x(%rip), %r13
	xorl	%r10d, %r10d
	xorl	%esi, %esi
	andl	$-2, %eax
	leaq	x(%rip), %r11
	movl	$2, %ebx
	movl	$1, %r12d
	movabsq	$-8543223828751151131, %rbp
	addl	$3, %eax
	movl	%eax, 12(%rsp)
.L13:
	leaq	1(%r10,%r8), %r9
	addl	$2, %r12d
	subq	%rbx, %r9
	movq	%r9, %rax
	imulq	%rbp
	movq	%r9, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r9), %r14
	sarq	$29, %r14
	subq	%rax, %r14
	imulq	$1000000007, %r14, %rax
	movq	%r9, %r14
	movq	(%r11,%rbx,4), %r9
	subq	%rax, %r14
	movq	%r9, %rax
	subq	%r13, %rax
	leaq	1(%r14,%r8), %r13
	movq	%r14, %xmm0
	imulq	%r14, %rax
	addq	%rax, %rsi
	leaq	2(%rbx), %rax
	subq	%rax, %r13
	movq	%r13, %rax
	imulq	%rbp
	movq	%r13, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r13), %r10
	sarq	$29, %r10
	subq	%rax, %r10
	imulq	$1000000007, %r10, %rax
	movq	%r13, %r10
	subq	%rax, %r10
	leaq	cx(%rip), %rax
	movq	%r10, %xmm1
	punpcklqdq	%xmm1, %xmm0
	movups	%xmm0, (%rax,%rbx,4)
	leaq	8+x(%rip), %rax
	movq	(%rax,%rbx,4), %r13
	movq	%rsi, %rax
	imulq	%rbp
	movq	%r13, %r14
	subq	%r9, %r14
	imulq	%r10, %r14
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	leaq	(%r14,%rsi), %r9
	movq	%r9, %rax
	imulq	%rbp
	movq	%r9, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r9), %rsi
	sarq	$29, %rsi
	subq	%rax, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%r9, %rsi
	subq	%rax, %rsi
	addq	$4, %rbx
	cmpl	12(%rsp), %r12d
	jne	.L13
.L14:
	movslq	12(%rsp), %r10
	leaq	-8+cx(%rip), %r12
	leaq	-8+x(%rip), %rbp
	movabsq	$-8543223828751151131, %rbx
	.p2align 4,,10
	.p2align 3
.L11:
	movq	(%r12,%r10,8), %r9
	leaq	(%r10,%r10), %rax
	addq	%r8, %r9
	addq	$1, %r9
	subq	%rax, %r9
	movq	%r9, %rax
	imulq	%rbx
	movq	%r9, %rax
	sarq	$63, %rax
	addq	%r9, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	movq	%r9, %rdx
	movq	(%r11,%r10,8), %r9
	subq	0(%rbp,%r10,8), %r9
	subq	%rax, %rdx
	leaq	cx(%rip), %rax
	imulq	%rdx, %r9
	movq	%rdx, (%rax,%r10,8)
	addq	$1, %r10
	addq	%rsi, %r9
	movq	%r9, %rax
	imulq	%rbx
	movq	%r9, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r9), %rsi
	sarq	$29, %rsi
	subq	%rax, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%r9, %rsi
	subq	%rax, %rsi
	cmpl	%r10d, %ecx
	jg	.L11
	movq	$0, cy(%rip)
	cmpl	$1, %edi
	jle	.L23
.L42:
	movslq	%edi, %r9
	cmpl	$3, %edi
	jle	.L24
	leal	-4(%rdi), %eax
	movq	y(%rip), %r13
	xorl	%r10d, %r10d
	xorl	%ecx, %ecx
	andl	$-2, %eax
	leaq	y(%rip), %rbx
	movl	$2, %ebp
	movl	$1, %r14d
	addl	$3, %eax
	leaq	cy(%rip), %r11
	movabsq	$-8543223828751151131, %r12
	movl	%eax, 12(%rsp)
.L17:
	leaq	1(%r10,%r9), %r10
	subq	%rbp, %r10
	movq	%r10, %rax
	imulq	%r12
	movq	%r10, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r10), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %r10
	movq	(%rbx,%rbp,4), %rax
	movq	%r10, %r8
	subq	%r13, %rax
	leaq	1(%r10,%r9), %r13
	movq	%r8, %xmm0
	imulq	%r10, %rax
	addq	%rax, %rcx
	leaq	2(%rbp), %rax
	subq	%rax, %r13
	movq	%r13, %rax
	imulq	%r12
	movq	%r13, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r13), %r10
	sarq	$29, %r10
	subq	%rax, %r10
	imulq	$1000000007, %r10, %rax
	movq	%r13, %r10
	subq	%rax, %r10
	leaq	8+y(%rip), %rax
	movq	(%rax,%rbp,4), %r13
	movq	%rcx, %rax
	movq	%r10, %xmm2
	imulq	%r12
	punpcklqdq	%xmm2, %xmm0
	movq	%r13, %r8
	subq	(%rbx,%rbp,4), %r8
	movups	%xmm0, (%r11,%rbp,4)
	imulq	%r10, %r8
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rcx
	addq	%rcx, %r8
	movq	%r8, %rax
	imulq	%r12
	movq	%r8, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r8), %rcx
	sarq	$29, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	movq	%r8, %rcx
	subq	%rax, %rcx
	addl	$2, %r14d
	addq	$4, %rbp
	cmpl	12(%rsp), %r14d
	jne	.L17
.L16:
	movslq	12(%rsp), %rbp
	leaq	-8+cy(%rip), %r14
	leaq	-8+y(%rip), %r13
	movabsq	$-8543223828751151131, %r12
	.p2align 4,,10
	.p2align 3
.L18:
	movq	(%r14,%rbp,8), %r8
	leaq	(%rbp,%rbp), %rax
	addq	%r9, %r8
	addq	$1, %r8
	subq	%rax, %r8
	movq	%r8, %rax
	imulq	%r12
	movq	%r8, %rax
	sarq	$63, %rax
	addq	%r8, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	movq	%r8, %rdx
	movq	(%rbx,%rbp,8), %r8
	subq	0(%r13,%rbp,8), %r8
	subq	%rax, %rdx
	imulq	%rdx, %r8
	movq	%rdx, (%r11,%rbp,8)
	addq	$1, %rbp
	addq	%rcx, %r8
	movq	%r8, %rax
	imulq	%r12
	movq	%r8, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r8), %rcx
	sarq	$29, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	movq	%r8, %rcx
	subq	%rax, %rcx
	cmpl	%ebp, %edi
	jg	.L18
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%r12
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
.L15:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L26:
	addq	$24, %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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	movq	$0, cx(%rip)
	xorl	%esi, %esi
	movq	$0, cy(%rip)
	cmpl	$1, %edi
	jg	.L42
	.p2align 4,,10
	.p2align 3
.L23:
	xorl	%edx, %edx
	jmp	.L15
.L24:
	xorl	%ecx, %ecx
	movl	$1, 12(%rsp)
	leaq	y(%rip), %rbx
	leaq	cy(%rip), %r11
	jmp	.L16
.L41:
	movl	$1, 12(%rsp)
	xorl	%esi, %esi
	leaq	x(%rip), %r11
	jmp	.L14
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	cy
	.bss
	.align 32
	.type	cy, @object
	.size	cy, 800000
cy:
	.zero	800000
	.globl	cx
	.align 32
	.type	cx, @object
	.size	cx, 800000
cx:
	.zero	800000
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 800000
y:
	.zero	800000
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 800000
x:
	.zero	800000
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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	"%lld"
.LC1:
	.string	"%lld\n"
.LC2:
	.string	"%d%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %r15
	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	$24, %rsp
	.cfi_def_cfa_offset 80
	.p2align 4,,10
	.p2align 3
.L2:
	xorl	%eax, %eax
	leaq	m(%rip), %rdx
	leaq	n(%rip), %rsi
	leaq	.LC2(%rip), %rdi
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	jne	.L26
	movl	n(%rip), %ecx
	leaq	x(%rip), %rbp
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	jle	.L21
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rbp, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	n(%rip), %ecx
	addq	$8, %rbp
	cmpl	%ebx, %ecx
	jg	.L3
.L21:
	movl	m(%rip), %edi
	testl	%edi, %edi
	jle	.L4
	leaq	y(%rip), %rbp
	xorl	%ebx, %ebx
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbp, %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	m(%rip), %edi
	addq	$8, %rbp
	cmpl	%ebx, %edi
	jg	.L5
	movl	n(%rip), %ecx
.L4:
	cmpl	$1, %ecx
	jle	.L6
	movslq	%ecx, %r8
	xorl	%esi, %esi
	movl	$1, %r9d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	leaq	cx(%rip), %rax
	movq	%r8, (%rax)
	cmpl	$2, %ecx
	je	.L9
	movq	%r8, %rax
	movl	$2, %esi
	movl	$1, %edx
	movl	$3, %r9d
	movl	$2, %r10d
.L8:
	addq	%r8, %rax
	leaq	cx(%rip), %rbx
	subq	%r10, %rax
	movq	%rax, (%rbx,%rdx,8)
	cmpl	%r9d, %ecx
	jle	.L9
.L10:
	testl	%esi, %esi
	je	.L7
	leal	-1(%rsi), %eax
	leal	(%rsi,%rsi), %r10d
	movslq	%esi, %rdx
	movl	%r9d, %esi
	cltq
	leaq	cx(%rip), %rbx
	movslq	%r10d, %r10
	addl	$1, %r9d
	movq	(%rbx,%rax,8), %rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	movq	$0, cx(%rip)
	cmpl	$3, %ecx
	jle	.L41
	leal	-4(%rcx), %eax
	movq	x(%rip), %r13
	xorl	%r10d, %r10d
	xorl	%esi, %esi
	andl	$-2, %eax
	leaq	x(%rip), %r11
	movl	$2, %ebx
	movl	$1, %r12d
	movabsq	$-8543223828751151131, %rbp
	addl	$3, %eax
	movl	%eax, 12(%rsp)
.L13:
	leaq	1(%r10,%r8), %r9
	addl	$2, %r12d
	subq	%rbx, %r9
	movq	%r9, %rax
	imulq	%rbp
	movq	%r9, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r9), %r14
	sarq	$29, %r14
	subq	%rax, %r14
	imulq	$1000000007, %r14, %rax
	movq	%r9, %r14
	movq	(%r11,%rbx,4), %r9
	subq	%rax, %r14
	movq	%r9, %rax
	subq	%r13, %rax
	leaq	1(%r14,%r8), %r13
	movq	%r14, %xmm0
	imulq	%r14, %rax
	addq	%rax, %rsi
	leaq	2(%rbx), %rax
	subq	%rax, %r13
	movq	%r13, %rax
	imulq	%rbp
	movq	%r13, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r13), %r10
	sarq	$29, %r10
	subq	%rax, %r10
	imulq	$1000000007, %r10, %rax
	movq	%r13, %r10
	subq	%rax, %r10
	leaq	cx(%rip), %rax
	movq	%r10, %xmm1
	punpcklqdq	%xmm1, %xmm0
	movups	%xmm0, (%rax,%rbx,4)
	leaq	8+x(%rip), %rax
	movq	(%rax,%rbx,4), %r13
	movq	%rsi, %rax
	imulq	%rbp
	movq	%r13, %r14
	subq	%r9, %r14
	imulq	%r10, %r14
	leaq	(%rdx,%rsi), %rax
	movq	%rsi, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rsi
	leaq	(%r14,%rsi), %r9
	movq	%r9, %rax
	imulq	%rbp
	movq	%r9, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r9), %rsi
	sarq	$29, %rsi
	subq	%rax, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%r9, %rsi
	subq	%rax, %rsi
	addq	$4, %rbx
	cmpl	12(%rsp), %r12d
	jne	.L13
.L14:
	movslq	12(%rsp), %r10
	leaq	-8+cx(%rip), %r12
	leaq	-8+x(%rip), %rbp
	movabsq	$-8543223828751151131, %rbx
	.p2align 4,,10
	.p2align 3
.L11:
	movq	(%r12,%r10,8), %r9
	leaq	(%r10,%r10), %rax
	addq	%r8, %r9
	addq	$1, %r9
	subq	%rax, %r9
	movq	%r9, %rax
	imulq	%rbx
	movq	%r9, %rax
	sarq	$63, %rax
	addq	%r9, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	movq	%r9, %rdx
	movq	(%r11,%r10,8), %r9
	subq	0(%rbp,%r10,8), %r9
	subq	%rax, %rdx
	leaq	cx(%rip), %rax
	imulq	%rdx, %r9
	movq	%rdx, (%rax,%r10,8)
	addq	$1, %r10
	addq	%rsi, %r9
	movq	%r9, %rax
	imulq	%rbx
	movq	%r9, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r9), %rsi
	sarq	$29, %rsi
	subq	%rax, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%r9, %rsi
	subq	%rax, %rsi
	cmpl	%r10d, %ecx
	jg	.L11
	movq	$0, cy(%rip)
	cmpl	$1, %edi
	jle	.L23
.L42:
	movslq	%edi, %r9
	cmpl	$3, %edi
	jle	.L24
	leal	-4(%rdi), %eax
	movq	y(%rip), %r13
	xorl	%r10d, %r10d
	xorl	%ecx, %ecx
	andl	$-2, %eax
	leaq	y(%rip), %rbx
	movl	$2, %ebp
	movl	$1, %r14d
	addl	$3, %eax
	leaq	cy(%rip), %r11
	movabsq	$-8543223828751151131, %r12
	movl	%eax, 12(%rsp)
.L17:
	leaq	1(%r10,%r9), %r10
	subq	%rbp, %r10
	movq	%r10, %rax
	imulq	%r12
	movq	%r10, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r10), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %r10
	movq	(%rbx,%rbp,4), %rax
	movq	%r10, %r8
	subq	%r13, %rax
	leaq	1(%r10,%r9), %r13
	movq	%r8, %xmm0
	imulq	%r10, %rax
	addq	%rax, %rcx
	leaq	2(%rbp), %rax
	subq	%rax, %r13
	movq	%r13, %rax
	imulq	%r12
	movq	%r13, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r13), %r10
	sarq	$29, %r10
	subq	%rax, %r10
	imulq	$1000000007, %r10, %rax
	movq	%r13, %r10
	subq	%rax, %r10
	leaq	8+y(%rip), %rax
	movq	(%rax,%rbp,4), %r13
	movq	%rcx, %rax
	movq	%r10, %xmm2
	imulq	%r12
	punpcklqdq	%xmm2, %xmm0
	movq	%r13, %r8
	subq	(%rbx,%rbp,4), %r8
	movups	%xmm0, (%r11,%rbp,4)
	imulq	%r10, %r8
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %rcx
	addq	%rcx, %r8
	movq	%r8, %rax
	imulq	%r12
	movq	%r8, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r8), %rcx
	sarq	$29, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	movq	%r8, %rcx
	subq	%rax, %rcx
	addl	$2, %r14d
	addq	$4, %rbp
	cmpl	12(%rsp), %r14d
	jne	.L17
.L16:
	movslq	12(%rsp), %rbp
	leaq	-8+cy(%rip), %r14
	leaq	-8+y(%rip), %r13
	movabsq	$-8543223828751151131, %r12
	.p2align 4,,10
	.p2align 3
.L18:
	movq	(%r14,%rbp,8), %r8
	leaq	(%rbp,%rbp), %rax
	addq	%r9, %r8
	addq	$1, %r8
	subq	%rax, %r8
	movq	%r8, %rax
	imulq	%r12
	movq	%r8, %rax
	sarq	$63, %rax
	addq	%r8, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	movq	%r8, %rdx
	movq	(%rbx,%rbp,8), %r8
	subq	0(%r13,%rbp,8), %r8
	subq	%rax, %rdx
	imulq	%rdx, %r8
	movq	%rdx, (%r11,%rbp,8)
	addq	$1, %rbp
	addq	%rcx, %r8
	movq	%r8, %rax
	imulq	%r12
	movq	%r8, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r8), %rcx
	sarq	$29, %rcx
	subq	%rax, %rcx
	imulq	$1000000007, %rcx, %rax
	movq	%r8, %rcx
	subq	%rax, %rcx
	cmpl	%ebp, %edi
	jg	.L18
	imulq	%rsi, %rcx
	movq	%rcx, %rax
	imulq	%r12
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
.L15:
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L26:
	addq	$24, %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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	movq	$0, cx(%rip)
	xorl	%esi, %esi
	movq	$0, cy(%rip)
	cmpl	$1, %edi
	jg	.L42
	.p2align 4,,10
	.p2align 3
.L23:
	xorl	%edx, %edx
	jmp	.L15
.L24:
	xorl	%ecx, %ecx
	movl	$1, 12(%rsp)
	leaq	y(%rip), %rbx
	leaq	cy(%rip), %r11
	jmp	.L16
.L41:
	movl	$1, 12(%rsp)
	xorl	%esi, %esi
	leaq	x(%rip), %r11
	jmp	.L14
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	cy
	.bss
	.align 32
	.type	cy, @object
	.size	cy, 800000
cy:
	.zero	800000
	.globl	cx
	.align 32
	.type	cx, @object
	.size	cx, 800000
cx:
	.zero	800000
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 800000
y:
	.zero	800000
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 800000
x:
	.zero	800000
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	n
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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>

#define MOD 1000000007

#define N_MAX 100000
#define M_MAX N_MAX

typedef long long ll;

int n, m;
ll x[N_MAX], y[M_MAX];
ll cx[N_MAX], cy[M_MAX];


int main(void)
{
	int i;
	ll w, h;

	while(scanf("%d%d", &n, &m)==2)
	{
		for(i=0;i<n;i++) scanf("%lld", &x[i]);
		for(i=0;i<m;i++) scanf("%lld", &y[i]);

		for(i=0;i+1<n;i++)
		{
			if(i==0) cx[i]=n;
			else cx[i]=cx[i-1]+n-i*2;
		}

		w=0;
		cx[0]=0;
		for(i=1;i<n;i++)
		{
			cx[i]=(cx[i-1]+n+1-i*2)%MOD;
			w=(w+(x[i]-x[i-1])*cx[i])%MOD;
		}
		h=0;
		cy[0]=0;
		for(i=1;i<m;i++)
		{
			cy[i]=(cy[i-1]+m+1-i*2)%MOD;
			h=(h+(y[i]-y[i-1])*cy[i])%MOD;
		}
		printf("%lld\n", (w*h)%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>

#define MOD 1000000007

#define N_MAX 100000
#define M_MAX N_MAX

typedef long long ll;

int n, m;
ll x[N_MAX], y[M_MAX];
ll cx[N_MAX], cy[M_MAX];


int main(void)
{
	int i;
	ll w, h;

	while(scanf("%d%d", &n, &m)==2)
	{
		for(i=0;i<n;i++) scanf("%lld", &x[i]);
		for(i=0;i<m;i++) scanf("%lld", &y[i]);

		for(i=0;i+1<n;i++)
		{
			if(i==0) cx[i]=n;
			else cx[i]=cx[i-1]+n-i*2;
		}

		w=0;
		cx[0]=0;
		for(i=1;i<n;i++)
		{
			cx[i]=(cx[i-1]+n+1-i*2)%MOD;
			w=(w+(x[i]-x[i-1])*cx[i])%MOD;
		}
		h=0;
		cy[0]=0;
		for(i=1;i<m;i++)
		{
			cy[i]=(cy[i-1]+m+1-i*2)%MOD;
			h=(h+(y[i]-y[i-1])*cy[i])%MOD;
		}
		printf("%lld\n", (w*h)%MOD);
	}

	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 800000
x:
	.zero	800000
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 800000
y:
	.zero	800000
	.globl	cx
	.align 32
	.type	cx, @object
	.size	cx, 800000
cx:
	.zero	800000
	.globl	cy
	.align 32
	.type	cy, @object
	.size	cy, 800000
cy:
	.zero	800000
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\n"
.LC2:
	.string	"%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.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
	jmp	.L2
.L15:
	movl	$0, -20(%rbp)
	jmp	.L3
.L4:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -20(%rbp)
.L3:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L4
	movl	$0, -20(%rbp)
	jmp	.L5
.L6:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -20(%rbp)
.L5:
	movl	m(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L6
	movl	$0, -20(%rbp)
	jmp	.L7
.L10:
	cmpl	$0, -20(%rbp)
	jne	.L8
	movl	n(%rip), %eax
	cltq
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	cx(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	jmp	.L9
.L8:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cx(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	n(%rip), %eax
	cltq
	addq	%rax, %rdx
	movl	-20(%rbp), %eax
	addl	%eax, %eax
	cltq
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cx(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L9:
	addl	$1, -20(%rbp)
.L7:
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L10
	movq	$0, -16(%rbp)
	movq	$0, cx(%rip)
	movl	$1, -20(%rbp)
	jmp	.L11
.L12:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cx(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	n(%rip), %eax
	cltq
	addq	%rdx, %rax
	leaq	1(%rax), %rdx
	movl	-20(%rbp), %eax
	addl	%eax, %eax
	cltq
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	cx(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-20(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	x(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	subq	%rdx, %rax
	movq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cx(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	%rax, %rcx
	movq	%rcx, %rdx
	movq	-16(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	addl	$1, -20(%rbp)
.L11:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L12
	movq	$0, -8(%rbp)
	movq	$0, cy(%rip)
	movl	$1, -20(%rbp)
	jmp	.L13
.L14:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cy(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	m(%rip), %eax
	cltq
	addq	%rdx, %rax
	leaq	1(%rax), %rdx
	movl	-20(%rbp), %eax
	addl	%eax, %eax
	cltq
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	cy(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-20(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	y(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	subq	%rdx, %rax
	movq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cy(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	%rax, %rcx
	movq	%rcx, %rdx
	movq	-8(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	addl	$1, -20(%rbp)
.L13:
	movl	m(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L14
	movq	-16(%rbp), %rax
	imulq	-8(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	m(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L15
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	m
	.align 4
	.type	m, @object
	.size	m, 4
m:
	.zero	4
	.globl	x
	.align 32
	.type	x, @object
	.size	x, 800000
x:
	.zero	800000
	.globl	y
	.align 32
	.type	y, @object
	.size	y, 800000
y:
	.zero	800000
	.globl	cx
	.align 32
	.type	cx, @object
	.size	cx, 800000
cx:
	.zero	800000
	.globl	cy
	.align 32
	.type	cy, @object
	.size	cy, 800000
cy:
	.zero	800000
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\n"
.LC2:
	.string	"%d%d"
	.text
	.globl	main
	.type	main, @function
main:
.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
	jmp	.L2
.L15:
	movl	$0, -20(%rbp)
	jmp	.L3
.L4:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -20(%rbp)
.L3:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L4
	movl	$0, -20(%rbp)
	jmp	.L5
.L6:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -20(%rbp)
.L5:
	movl	m(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L6
	movl	$0, -20(%rbp)
	jmp	.L7
.L10:
	cmpl	$0, -20(%rbp)
	jne	.L8
	movl	n(%rip), %eax
	cltq
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	cx(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	jmp	.L9
.L8:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cx(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	n(%rip), %eax
	cltq
	addq	%rax, %rdx
	movl	-20(%rbp), %eax
	addl	%eax, %eax
	cltq
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cx(%rip), %rax
	movq	%rcx, (%rdx,%rax)
.L9:
	addl	$1, -20(%rbp)
.L7:
	movl	-20(%rbp), %eax
	leal	1(%rax), %edx
	movl	n(%rip), %eax
	cmpl	%eax, %edx
	jl	.L10
	movq	$0, -16(%rbp)
	movq	$0, cx(%rip)
	movl	$1, -20(%rbp)
	jmp	.L11
.L12:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cx(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	n(%rip), %eax
	cltq
	addq	%rdx, %rax
	leaq	1(%rax), %rdx
	movl	-20(%rbp), %eax
	addl	%eax, %eax
	cltq
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	cx(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	x(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-20(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	x(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	subq	%rdx, %rax
	movq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cx(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	%rax, %rcx
	movq	%rcx, %rdx
	movq	-16(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	addl	$1, -20(%rbp)
.L11:
	movl	n(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L12
	movq	$0, -8(%rbp)
	movq	$0, cy(%rip)
	movl	$1, -20(%rbp)
	jmp	.L13
.L14:
	movl	-20(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cy(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movl	m(%rip), %eax
	cltq
	addq	%rdx, %rax
	leaq	1(%rax), %rdx
	movl	-20(%rbp), %eax
	addl	%eax, %eax
	cltq
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movl	-20(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	cy(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	y(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	-20(%rbp), %edx
	subl	$1, %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	y(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	subq	%rdx, %rax
	movq	%rax, %rcx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	cy(%rip), %rax
	movq	(%rdx,%rax), %rax
	imulq	%rax, %rcx
	movq	%rcx, %rdx
	movq	-8(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
	addl	$1, -20(%rbp)
.L13:
	movl	m(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L14
	movq	-16(%rbp), %rax
	imulq	-8(%rbp), %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L2:
	leaq	m(%rip), %rax
	movq	%rax, %rdx
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$2, %eax
	je	.L15
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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:
