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 X 1000000007

long long dist(long long a,long long b){if(a>b){return a-b;}return b-a;}

int main(void){
	long long n,m,x[131072],y[131072],i,p,s=0,t=0,a;
	scanf("%lld%lld",&n,&m);
	for(i = 1;i <= n;i++){scanf("%lld",&x[i]);}
	for(i = 1;i <= m;i++){scanf("%lld",&y[i]);}
	p = 0;
	for(i = 1;i < n;i++){
		a = (p+i*dist(x[i],x[i+1]))%X;
		s+=a;s%=X;
		p = a;
	}
	p = 0;
	for(i = 1;i < m;i++){
		a = (p+i*dist(y[i],y[i+1]))%X;
		t+=a;t%=X;
		p = a;
	}
	printf("%lld\n",(s*t)%X);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	dist
	.type	dist, @function
dist:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jle	.L2
	movq	-8(%rbp), %rax
	subq	-16(%rbp), %rax
	jmp	.L3
.L2:
	movq	-16(%rbp), %rax
	subq	-8(%rbp), %rax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dist, .-dist
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.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
	leaq	-2097152(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -2097192(%rbp)
	movq	$0, -2097184(%rbp)
	leaq	-2097216(%rbp), %rdx
	leaq	-2097224(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$1, -2097208(%rbp)
	jmp	.L5
.L6:
	leaq	-2097168(%rbp), %rdx
	movq	-2097208(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -2097208(%rbp)
.L5:
	movq	-2097224(%rbp), %rax
	cmpq	%rax, -2097208(%rbp)
	jle	.L6
	movq	$1, -2097208(%rbp)
	jmp	.L7
.L8:
	leaq	-1048592(%rbp), %rdx
	movq	-2097208(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -2097208(%rbp)
.L7:
	movq	-2097216(%rbp), %rax
	cmpq	%rax, -2097208(%rbp)
	jle	.L8
	movq	$0, -2097200(%rbp)
	movq	$1, -2097208(%rbp)
	jmp	.L9
.L10:
	movq	-2097208(%rbp), %rax
	addq	$1, %rax
	movq	-2097168(%rbp,%rax,8), %rdx
	movq	-2097208(%rbp), %rax
	movq	-2097168(%rbp,%rax,8), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	dist
	imulq	-2097208(%rbp), %rax
	movq	%rax, %rdx
	movq	-2097200(%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, -2097176(%rbp)
	movq	-2097176(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -2097176(%rbp)
	movq	-2097176(%rbp), %rax
	addq	%rax, -2097192(%rbp)
	movq	-2097192(%rbp), %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, -2097192(%rbp)
	movq	-2097176(%rbp), %rax
	movq	%rax, -2097200(%rbp)
	addq	$1, -2097208(%rbp)
.L9:
	movq	-2097224(%rbp), %rax
	cmpq	%rax, -2097208(%rbp)
	jl	.L10
	movq	$0, -2097200(%rbp)
	movq	$1, -2097208(%rbp)
	jmp	.L11
.L12:
	movq	-2097208(%rbp), %rax
	addq	$1, %rax
	movq	-1048592(%rbp,%rax,8), %rdx
	movq	-2097208(%rbp), %rax
	movq	-1048592(%rbp,%rax,8), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	dist
	imulq	-2097208(%rbp), %rax
	movq	%rax, %rdx
	movq	-2097200(%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, -2097176(%rbp)
	movq	-2097176(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -2097176(%rbp)
	movq	-2097176(%rbp), %rax
	addq	%rax, -2097184(%rbp)
	movq	-2097184(%rbp), %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, -2097184(%rbp)
	movq	-2097176(%rbp), %rax
	movq	%rax, -2097200(%rbp)
	addq	$1, -2097208(%rbp)
.L11:
	movq	-2097216(%rbp), %rax
	cmpq	%rax, -2097208(%rbp)
	jl	.L12
	movq	-2097192(%rbp), %rax
	imulq	-2097184(%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	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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
	.globl	dist
	.type	dist, @function
dist:
.LFB23:
	.cfi_startproc
	endbr64
	movq	%rdi, %rdx
	movq	%rsi, %rax
	subq	%rsi, %rdx
	subq	%rdi, %rax
	cmpq	%rsi, %rdi
	cmovg	%rdx, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	dist, .-dist
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-2097152(%rsp), %r11
	.cfi_def_cfa 11, 2097200
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$32, %rsp
	.cfi_def_cfa_offset 2097232
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 2097176(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	cmpq	$0, (%rsp)
	jle	.L6
	leaq	24(%rsp), %rbp
	movl	$1, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	addq	$8, %rbp
	cmpq	%rbx, (%rsp)
	jge	.L7
.L6:
	movq	8(%rsp), %r9
	testq	%r9, %r9
	jle	.L8
	leaq	1048600(%rsp), %rbp
	movl	$1, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r9
	addq	$8, %rbp
	cmpq	%rbx, %r9
	jge	.L9
.L8:
	movq	(%rsp), %rbx
	cmpq	$1, %rbx
	jle	.L31
	cmpq	$3, %rbx
	jle	.L32
	leaq	-4(%rbx), %r8
	movq	24(%rsp), %rbp
	xorl	%edi, %edi
	xorl	%esi, %esi
	andq	$-2, %r8
	movl	$1, %ecx
	leaq	16(%rsp), %r10
	movabsq	$-8543223828751151131, %r12
	addq	$3, %r8
.L16:
	movq	8(%r10,%rcx,8), %r14
	movq	%rbp, %rax
	leaq	1(%rcx), %r13
	movq	%r14, %r11
	subq	%r14, %rax
	subq	%rbp, %r11
	cmpq	%r14, %rbp
	cmovg	%rax, %r11
	imulq	%rcx, %r11
	addq	$2, %rcx
	movq	(%r10,%rcx,8), %rbp
	addq	%rsi, %r11
	movq	%r11, %rax
	mulq	%r12
	movq	%rdx, %rsi
	shrq	$29, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%r11, %rsi
	subq	%rax, %rsi
	addq	%rsi, %rdi
	movq	%rdi, %rax
	mulq	%r12
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rdi
	movq	%rbp, %rax
	movq	%rdi, %r11
	movq	%r14, %rdi
	subq	%r14, %rax
	subq	%rbp, %rdi
	cmpq	%rbp, %r14
	cmovle	%rax, %rdi
	imulq	%r13, %rdi
	addq	%rsi, %rdi
	movq	%rdi, %rax
	mulq	%r12
	movq	%rdx, %rsi
	shrq	$29, %rsi
	imulq	$1000000007, %rsi, %rax
	subq	%rax, %rdi
	addq	%rdi, %r11
	movq	%rdi, %rsi
	movq	%r11, %rax
	mulq	%r12
	movq	%rdx, %rdi
	shrq	$29, %rdi
	imulq	$1000000007, %rdi, %rax
	movq	%r11, %rdi
	subq	%rax, %rdi
	cmpq	%r8, %rcx
	jne	.L16
.L11:
	movabsq	$-8543223828751151131, %r11
	.p2align 4,,10
	.p2align 3
.L19:
	movq	%r8, %rbp
	addq	$1, %r8
	movq	(%r10,%r8,8), %rax
	movq	-8(%r10,%r8,8), %rdx
	movq	%rax, %rcx
	movq	%rdx, %r12
	subq	%rax, %r12
	subq	%rdx, %rcx
	cmpq	%rax, %rdx
	cmovg	%r12, %rcx
	imulq	%rbp, %rcx
	addq	%rsi, %rcx
	movq	%rcx, %rax
	mulq	%r11
	movq	%rdx, %rsi
	shrq	$29, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%rcx, %rsi
	subq	%rax, %rsi
	leaq	(%rsi,%rdi), %rcx
	movq	%rcx, %rax
	mulq	%r11
	movq	%rdx, %rdi
	shrq	$29, %rdi
	imulq	$1000000007, %rdi, %rax
	movq	%rcx, %rdi
	subq	%rax, %rdi
	cmpq	%rbx, %r8
	jl	.L19
.L10:
	cmpq	$1, %r9
	jle	.L33
	cmpq	$3, %r9
	jle	.L34
	leaq	-4(%r9), %r10
	xorl	%r8d, %r8d
	xorl	%esi, %esi
	movl	$1, %ecx
	andq	$-2, %r10
	movq	1048600(%rsp), %rbp
	leaq	1048592(%rsp), %r11
	movabsq	$-8543223828751151131, %r12
	addq	$3, %r10
.L26:
	movq	8(%r11,%rcx,8), %r14
	movq	%rbp, %rax
	leaq	1(%rcx), %r13
	movq	%r14, %rbx
	subq	%r14, %rax
	subq	%rbp, %rbx
	cmpq	%r14, %rbp
	cmovg	%rax, %rbx
	imulq	%rcx, %rbx
	addq	$2, %rcx
	movq	(%r11,%rcx,8), %rbp
	addq	%rsi, %rbx
	movq	%rbx, %rax
	mulq	%r12
	movq	%rdx, %rsi
	shrq	$29, %rsi
	imulq	$1000000007, %rsi, %rax
	subq	%rax, %rbx
	addq	%rbx, %r8
	movq	%rbx, %rsi
	movq	%r8, %rax
	mulq	%r12
	movq	%rdx, %rbx
	shrq	$29, %rbx
	imulq	$1000000007, %rbx, %rax
	movq	%r8, %rbx
	movq	%r14, %r8
	subq	%rbp, %r8
	subq	%rax, %rbx
	movq	%rbp, %rax
	subq	%r14, %rax
	cmpq	%r14, %rbp
	cmovge	%rax, %r8
	imulq	%r13, %r8
	addq	%rsi, %r8
	movq	%r8, %rax
	mulq	%r12
	movq	%rdx, %rsi
	shrq	$29, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%r8, %rsi
	subq	%rax, %rsi
	addq	%rsi, %rbx
	movq	%rbx, %rax
	mulq	%r12
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rbx
	movq	%rbx, %r8
	cmpq	%r10, %rcx
	jne	.L26
.L21:
	movabsq	$-8543223828751151131, %rbx
	.p2align 4,,10
	.p2align 3
.L29:
	movq	%r10, %rbp
	addq	$1, %r10
	movq	(%r11,%r10,8), %rdx
	movq	-8(%r11,%r10,8), %rax
	movq	%rdx, %rcx
	movq	%rax, %r12
	subq	%rdx, %r12
	subq	%rax, %rcx
	cmpq	%rax, %rdx
	cmovl	%r12, %rcx
	imulq	%rbp, %rcx
	addq	%rsi, %rcx
	movq	%rcx, %rax
	movq	%rcx, %rsi
	mulq	%rbx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	leaq	(%rsi,%r8), %rcx
	movq	%rcx, %rax
	mulq	%rbx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %r8
	cmpq	%r10, %r9
	jg	.L29
.L20:
	imulq	%r8, %rdi
	leaq	.LC2(%rip), %rsi
	movabsq	$-8543223828751151131, %rdx
	movq	%rdi, %rax
	mulq	%rdx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rdi
	xorl	%eax, %eax
	movq	%rdi, %rdx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	2097176(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$2097184, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L33:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L20
.L31:
	xorl	%edi, %edi
	jmp	.L10
.L32:
	xorl	%edi, %edi
	xorl	%esi, %esi
	leaq	16(%rsp), %r10
	movl	$1, %r8d
	jmp	.L11
.L34:
	xorl	%r8d, %r8d
	xorl	%esi, %esi
	movl	$1, %r10d
	leaq	1048592(%rsp), %r11
	jmp	.L21
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	dist
	.type	dist, @function
dist:
.LFB23:
	.cfi_startproc
	endbr64
	movq	%rdi, %rdx
	movq	%rsi, %rax
	subq	%rsi, %rdx
	subq	%rdi, %rax
	cmpq	%rsi, %rdi
	cmovg	%rdx, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	dist, .-dist
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	-2097152(%rsp), %r11
	.cfi_def_cfa 11, 2097200
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$32, %rsp
	.cfi_def_cfa_offset 2097232
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 2097176(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	cmpq	$0, (%rsp)
	jle	.L6
	leaq	24(%rsp), %rbp
	movl	$1, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L7:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	addq	$8, %rbp
	cmpq	%rbx, (%rsp)
	jge	.L7
.L6:
	movq	8(%rsp), %r9
	testq	%r9, %r9
	jle	.L8
	leaq	1048600(%rsp), %rbp
	movl	$1, %ebx
	leaq	.LC1(%rip), %r12
	.p2align 4,,10
	.p2align 3
.L9:
	movq	%rbp, %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	addq	$1, %rbx
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r9
	addq	$8, %rbp
	cmpq	%rbx, %r9
	jge	.L9
.L8:
	movq	(%rsp), %rbx
	cmpq	$1, %rbx
	jle	.L31
	cmpq	$3, %rbx
	jle	.L32
	leaq	-4(%rbx), %r8
	movq	24(%rsp), %rbp
	xorl	%edi, %edi
	xorl	%esi, %esi
	andq	$-2, %r8
	movl	$1, %ecx
	leaq	16(%rsp), %r10
	movabsq	$-8543223828751151131, %r12
	addq	$3, %r8
.L16:
	movq	8(%r10,%rcx,8), %r14
	movq	%rbp, %rax
	leaq	1(%rcx), %r13
	movq	%r14, %r11
	subq	%r14, %rax
	subq	%rbp, %r11
	cmpq	%r14, %rbp
	cmovg	%rax, %r11
	imulq	%rcx, %r11
	addq	$2, %rcx
	movq	(%r10,%rcx,8), %rbp
	addq	%rsi, %r11
	movq	%r11, %rax
	mulq	%r12
	movq	%rdx, %rsi
	shrq	$29, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%r11, %rsi
	subq	%rax, %rsi
	addq	%rsi, %rdi
	movq	%rdi, %rax
	mulq	%r12
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rdi
	movq	%rbp, %rax
	movq	%rdi, %r11
	movq	%r14, %rdi
	subq	%r14, %rax
	subq	%rbp, %rdi
	cmpq	%rbp, %r14
	cmovle	%rax, %rdi
	imulq	%r13, %rdi
	addq	%rsi, %rdi
	movq	%rdi, %rax
	mulq	%r12
	movq	%rdx, %rsi
	shrq	$29, %rsi
	imulq	$1000000007, %rsi, %rax
	subq	%rax, %rdi
	addq	%rdi, %r11
	movq	%rdi, %rsi
	movq	%r11, %rax
	mulq	%r12
	movq	%rdx, %rdi
	shrq	$29, %rdi
	imulq	$1000000007, %rdi, %rax
	movq	%r11, %rdi
	subq	%rax, %rdi
	cmpq	%r8, %rcx
	jne	.L16
.L11:
	movabsq	$-8543223828751151131, %r11
	.p2align 4,,10
	.p2align 3
.L19:
	movq	%r8, %rbp
	addq	$1, %r8
	movq	(%r10,%r8,8), %rax
	movq	-8(%r10,%r8,8), %rdx
	movq	%rax, %rcx
	movq	%rdx, %r12
	subq	%rax, %r12
	subq	%rdx, %rcx
	cmpq	%rax, %rdx
	cmovg	%r12, %rcx
	imulq	%rbp, %rcx
	addq	%rsi, %rcx
	movq	%rcx, %rax
	mulq	%r11
	movq	%rdx, %rsi
	shrq	$29, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%rcx, %rsi
	subq	%rax, %rsi
	leaq	(%rsi,%rdi), %rcx
	movq	%rcx, %rax
	mulq	%r11
	movq	%rdx, %rdi
	shrq	$29, %rdi
	imulq	$1000000007, %rdi, %rax
	movq	%rcx, %rdi
	subq	%rax, %rdi
	cmpq	%rbx, %r8
	jl	.L19
.L10:
	cmpq	$1, %r9
	jle	.L33
	cmpq	$3, %r9
	jle	.L34
	leaq	-4(%r9), %r10
	xorl	%r8d, %r8d
	xorl	%esi, %esi
	movl	$1, %ecx
	andq	$-2, %r10
	movq	1048600(%rsp), %rbp
	leaq	1048592(%rsp), %r11
	movabsq	$-8543223828751151131, %r12
	addq	$3, %r10
.L26:
	movq	8(%r11,%rcx,8), %r14
	movq	%rbp, %rax
	leaq	1(%rcx), %r13
	movq	%r14, %rbx
	subq	%r14, %rax
	subq	%rbp, %rbx
	cmpq	%r14, %rbp
	cmovg	%rax, %rbx
	imulq	%rcx, %rbx
	addq	$2, %rcx
	movq	(%r11,%rcx,8), %rbp
	addq	%rsi, %rbx
	movq	%rbx, %rax
	mulq	%r12
	movq	%rdx, %rsi
	shrq	$29, %rsi
	imulq	$1000000007, %rsi, %rax
	subq	%rax, %rbx
	addq	%rbx, %r8
	movq	%rbx, %rsi
	movq	%r8, %rax
	mulq	%r12
	movq	%rdx, %rbx
	shrq	$29, %rbx
	imulq	$1000000007, %rbx, %rax
	movq	%r8, %rbx
	movq	%r14, %r8
	subq	%rbp, %r8
	subq	%rax, %rbx
	movq	%rbp, %rax
	subq	%r14, %rax
	cmpq	%r14, %rbp
	cmovge	%rax, %r8
	imulq	%r13, %r8
	addq	%rsi, %r8
	movq	%r8, %rax
	mulq	%r12
	movq	%rdx, %rsi
	shrq	$29, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%r8, %rsi
	subq	%rax, %rsi
	addq	%rsi, %rbx
	movq	%rbx, %rax
	mulq	%r12
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rbx
	movq	%rbx, %r8
	cmpq	%r10, %rcx
	jne	.L26
.L21:
	movabsq	$-8543223828751151131, %rbx
	.p2align 4,,10
	.p2align 3
.L29:
	movq	%r10, %rbp
	addq	$1, %r10
	movq	(%r11,%r10,8), %rdx
	movq	-8(%r11,%r10,8), %rax
	movq	%rdx, %rcx
	movq	%rax, %r12
	subq	%rdx, %r12
	subq	%rax, %rcx
	cmpq	%rax, %rdx
	cmovl	%r12, %rcx
	imulq	%rbp, %rcx
	addq	%rsi, %rcx
	movq	%rcx, %rax
	movq	%rcx, %rsi
	mulq	%rbx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	leaq	(%rsi,%r8), %rcx
	movq	%rcx, %rax
	mulq	%rbx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %r8
	cmpq	%r10, %r9
	jg	.L29
.L20:
	imulq	%r8, %rdi
	leaq	.LC2(%rip), %rsi
	movabsq	$-8543223828751151131, %rdx
	movq	%rdi, %rax
	mulq	%rdx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rdi
	xorl	%eax, %eax
	movq	%rdi, %rdx
	movl	$1, %edi
	call	__printf_chk@PLT
	movq	2097176(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L42
	addq	$2097184, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L33:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L20
.L31:
	xorl	%edi, %edi
	jmp	.L10
.L32:
	xorl	%edi, %edi
	xorl	%esi, %esi
	leaq	16(%rsp), %r10
	movl	$1, %r8d
	jmp	.L11
.L34:
	xorl	%r8d, %r8d
	xorl	%esi, %esi
	movl	$1, %r10d
	leaq	1048592(%rsp), %r11
	jmp	.L21
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include<stdio.h>
#define X 1000000007

long long dist(long long a,long long b){if(a>b){return a-b;}return b-a;}

int main(void){
	long long n,m,x[131072],y[131072],i,p,s=0,t=0,a;
	scanf("%lld%lld",&n,&m);
	for(i = 1;i <= n;i++){scanf("%lld",&x[i]);}
	for(i = 1;i <= m;i++){scanf("%lld",&y[i]);}
	p = 0;
	for(i = 1;i < n;i++){
		a = (p+i*dist(x[i],x[i+1]))%X;
		s+=a;s%=X;
		p = a;
	}
	p = 0;
	for(i = 1;i < m;i++){
		a = (p+i*dist(y[i],y[i+1]))%X;
		t+=a;t%=X;
		p = a;
	}
	printf("%lld\n",(s*t)%X);
	return 0;
}
3 3
1 3 4
1 3 6

60

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 X 1000000007

long long dist(long long a,long long b){if(a>b){return a-b;}return b-a;}

int main(void){
	long long n,m,x[131072],y[131072],i,p,s=0,t=0,a;
	scanf("%lld%lld",&n,&m);
	for(i = 1;i <= n;i++){scanf("%lld",&x[i]);}
	for(i = 1;i <= m;i++){scanf("%lld",&y[i]);}
	p = 0;
	for(i = 1;i < n;i++){
		a = (p+i*dist(x[i],x[i+1]))%X;
		s+=a;s%=X;
		p = a;
	}
	p = 0;
	for(i = 1;i < m;i++){
		a = (p+i*dist(y[i],y[i+1]))%X;
		t+=a;t%=X;
		p = a;
	}
	printf("%lld\n",(s*t)%X);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	dist
	.type	dist, @function
dist:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jle	.L2
	movq	-8(%rbp), %rax
	subq	-16(%rbp), %rax
	jmp	.L3
.L2:
	movq	-16(%rbp), %rax
	subq	-8(%rbp), %rax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dist, .-dist
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.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
	leaq	-2097152(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -2097192(%rbp)
	movq	$0, -2097184(%rbp)
	leaq	-2097216(%rbp), %rdx
	leaq	-2097224(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$1, -2097208(%rbp)
	jmp	.L5
.L6:
	leaq	-2097168(%rbp), %rdx
	movq	-2097208(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -2097208(%rbp)
.L5:
	movq	-2097224(%rbp), %rax
	cmpq	%rax, -2097208(%rbp)
	jle	.L6
	movq	$1, -2097208(%rbp)
	jmp	.L7
.L8:
	leaq	-1048592(%rbp), %rdx
	movq	-2097208(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -2097208(%rbp)
.L7:
	movq	-2097216(%rbp), %rax
	cmpq	%rax, -2097208(%rbp)
	jle	.L8
	movq	$0, -2097200(%rbp)
	movq	$1, -2097208(%rbp)
	jmp	.L9
.L10:
	movq	-2097208(%rbp), %rax
	addq	$1, %rax
	movq	-2097168(%rbp,%rax,8), %rdx
	movq	-2097208(%rbp), %rax
	movq	-2097168(%rbp,%rax,8), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	dist
	imulq	-2097208(%rbp), %rax
	movq	%rax, %rdx
	movq	-2097200(%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, -2097176(%rbp)
	movq	-2097176(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -2097176(%rbp)
	movq	-2097176(%rbp), %rax
	addq	%rax, -2097192(%rbp)
	movq	-2097192(%rbp), %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, -2097192(%rbp)
	movq	-2097176(%rbp), %rax
	movq	%rax, -2097200(%rbp)
	addq	$1, -2097208(%rbp)
.L9:
	movq	-2097224(%rbp), %rax
	cmpq	%rax, -2097208(%rbp)
	jl	.L10
	movq	$0, -2097200(%rbp)
	movq	$1, -2097208(%rbp)
	jmp	.L11
.L12:
	movq	-2097208(%rbp), %rax
	addq	$1, %rax
	movq	-1048592(%rbp,%rax,8), %rdx
	movq	-2097208(%rbp), %rax
	movq	-1048592(%rbp,%rax,8), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	dist
	imulq	-2097208(%rbp), %rax
	movq	%rax, %rdx
	movq	-2097200(%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, -2097176(%rbp)
	movq	-2097176(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -2097176(%rbp)
	movq	-2097176(%rbp), %rax
	addq	%rax, -2097184(%rbp)
	movq	-2097184(%rbp), %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, -2097184(%rbp)
	movq	-2097176(%rbp), %rax
	movq	%rax, -2097200(%rbp)
	addq	$1, -2097208(%rbp)
.L11:
	movq	-2097216(%rbp), %rax
	cmpq	%rax, -2097208(%rbp)
	jl	.L12
	movq	-2097192(%rbp), %rax
	imulq	-2097184(%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	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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	dist
	.type	dist, @function
dist:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	cmpq	-16(%rbp), %rax
	jle	.L2
	movq	-8(%rbp), %rax
	subq	-16(%rbp), %rax
	jmp	.L3
.L2:
	movq	-16(%rbp), %rax
	subq	-8(%rbp), %rax
.L3:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dist, .-dist
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld"
.LC2:
	.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
	leaq	-2097152(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -2097192(%rbp)
	movq	$0, -2097184(%rbp)
	leaq	-2097216(%rbp), %rdx
	leaq	-2097224(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$1, -2097208(%rbp)
	jmp	.L5
.L6:
	leaq	-2097168(%rbp), %rdx
	movq	-2097208(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -2097208(%rbp)
.L5:
	movq	-2097224(%rbp), %rax
	cmpq	%rax, -2097208(%rbp)
	jle	.L6
	movq	$1, -2097208(%rbp)
	jmp	.L7
.L8:
	leaq	-1048592(%rbp), %rdx
	movq	-2097208(%rbp), %rax
	salq	$3, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addq	$1, -2097208(%rbp)
.L7:
	movq	-2097216(%rbp), %rax
	cmpq	%rax, -2097208(%rbp)
	jle	.L8
	movq	$0, -2097200(%rbp)
	movq	$1, -2097208(%rbp)
	jmp	.L9
.L10:
	movq	-2097208(%rbp), %rax
	addq	$1, %rax
	movq	-2097168(%rbp,%rax,8), %rdx
	movq	-2097208(%rbp), %rax
	movq	-2097168(%rbp,%rax,8), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	dist
	imulq	-2097208(%rbp), %rax
	movq	%rax, %rdx
	movq	-2097200(%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, -2097176(%rbp)
	movq	-2097176(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -2097176(%rbp)
	movq	-2097176(%rbp), %rax
	addq	%rax, -2097192(%rbp)
	movq	-2097192(%rbp), %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, -2097192(%rbp)
	movq	-2097176(%rbp), %rax
	movq	%rax, -2097200(%rbp)
	addq	$1, -2097208(%rbp)
.L9:
	movq	-2097224(%rbp), %rax
	cmpq	%rax, -2097208(%rbp)
	jl	.L10
	movq	$0, -2097200(%rbp)
	movq	$1, -2097208(%rbp)
	jmp	.L11
.L12:
	movq	-2097208(%rbp), %rax
	addq	$1, %rax
	movq	-1048592(%rbp,%rax,8), %rdx
	movq	-2097208(%rbp), %rax
	movq	-1048592(%rbp,%rax,8), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	dist
	imulq	-2097208(%rbp), %rax
	movq	%rax, %rdx
	movq	-2097200(%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, -2097176(%rbp)
	movq	-2097176(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -2097176(%rbp)
	movq	-2097176(%rbp), %rax
	addq	%rax, -2097184(%rbp)
	movq	-2097184(%rbp), %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, -2097184(%rbp)
	movq	-2097176(%rbp), %rax
	movq	%rax, -2097200(%rbp)
	addq	$1, -2097208(%rbp)
.L11:
	movq	-2097216(%rbp), %rax
	cmpq	%rax, -2097208(%rbp)
	jl	.L12
	movq	-2097192(%rbp), %rax
	imulq	-2097184(%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	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	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:
