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 <stdint.h>

#define MOD_VAL ((uint64_t)1000000007)

uint64_t hoge(uint64_t cnt) {
    uint64_t tmp = 0;
    int32_t pp; /* prev p */
    uint64_t pinc = 0; /* prev inc */
    for (int i = 0; i < cnt; i++) {
        int32_t p;
        uint64_t w;
        uint64_t inc;
        scanf("%d", &p);
        if (i == 0) {
            pp = p;
            continue;
        }
        w = (uint64_t)(p - pp);
        inc = pinc + (uint64_t)i * w;
        inc %= MOD_VAL;
        tmp += inc;
        tmp %= MOD_VAL;
        /* save as previous value */
        pp = p;
        pinc = inc;
    }
    return (uint64_t)tmp;
}

int main(void)
{
    uint64_t n, m;
    scanf("%lu %lu", &n, &m);
    printf("%lu\n", (hoge(n) * hoge(m)) % MOD_VAL);
    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	hoge
	.type	hoge, @function
hoge:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%rdi, -72(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L2
.L5:
	leaq	-52(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$0, -44(%rbp)
	jne	.L3
	movl	-52(%rbp), %eax
	movl	%eax, -48(%rbp)
	jmp	.L4
.L3:
	movl	-52(%rbp), %eax
	subl	-48(%rbp), %eax
	cltq
	movq	%rax, -24(%rbp)
	movl	-44(%rbp), %eax
	cltq
	imulq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	addq	%rax, -40(%rbp)
	movq	-40(%rbp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movl	-52(%rbp), %eax
	movl	%eax, -48(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, -32(%rbp)
.L4:
	addl	$1, -44(%rbp)
.L2:
	movl	-44(%rbp), %eax
	cltq
	cmpq	%rax, -72(%rbp)
	ja	.L5
	movq	-40(%rbp), %rax
	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
.LFE0:
	.size	hoge, .-hoge
	.section	.rodata
.LC1:
	.string	"%lu %lu"
.LC2:
	.string	"%lu\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
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	hoge
	movq	%rax, %rbx
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	hoge
	imulq	%rax, %rbx
	movq	%rbx, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %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	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.text
	.p2align 4
	.globl	hoge
	.type	hoge, @function
hoge:
.LFB23:
	.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
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rdi, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	.L7
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r13
	xorl	%ebp, %ebp
	leaq	.LC0(%rip), %r12
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	movabsq	$-8543223828751151131, %rax
	movl	20(%rsp), %esi
	movl	%esi, %ecx
	subl	%r15d, %ecx
	movl	%esi, %r15d
	movslq	%ecx, %rcx
	imulq	%rbp, %rcx
	addq	$1, %rbp
	addq	%r14, %rcx
	mulq	%rcx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movabsq	$-8543223828751151131, %rax
	movq	%rcx, %r14
	leaq	(%rcx,%rbx), %rcx
	mulq	%rcx
	movq	%rdx, %rbx
	shrq	$29, %rbx
	imulq	$1000000007, %rbx, %rax
	movq	%rcx, %rbx
	subq	%rax, %rbx
	cmpq	%rbp, 8(%rsp)
	je	.L1
.L5:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	testq	%rbp, %rbp
	jne	.L3
	movl	20(%rsp), %r15d
	addq	$1, %rbp
	cmpq	%rbp, 8(%rsp)
	jne	.L5
.L1:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%rbx, %rax
	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
.L7:
	.cfi_restore_state
	xorl	%ebx, %ebx
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	hoge, .-hoge
	.section	.rodata.str1.1
.LC1:
	.string	"%lu %lu"
.LC2:
	.string	"%lu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC1(%rip), %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rdi
	call	hoge
	movq	16(%rsp), %rdi
	movq	%rax, %rbx
	call	hoge
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movabsq	$-8543223828751151131, %rdx
	imulq	%rax, %rbx
	movq	%rbx, %rax
	movq	%rbx, %rcx
	mulq	%rdx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	movq	%rcx, %rdx
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.text
	.p2align 4
	.globl	hoge
	.type	hoge, @function
hoge:
.LFB23:
	.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
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rdi, 8(%rsp)
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	.L7
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	leaq	20(%rsp), %r13
	xorl	%ebp, %ebp
	leaq	.LC0(%rip), %r12
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	movabsq	$-8543223828751151131, %rax
	movl	20(%rsp), %esi
	movl	%esi, %ecx
	subl	%r15d, %ecx
	movl	%esi, %r15d
	movslq	%ecx, %rcx
	imulq	%rbp, %rcx
	addq	$1, %rbp
	addq	%r14, %rcx
	mulq	%rcx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movabsq	$-8543223828751151131, %rax
	movq	%rcx, %r14
	leaq	(%rcx,%rbx), %rcx
	mulq	%rcx
	movq	%rdx, %rbx
	shrq	$29, %rbx
	imulq	$1000000007, %rbx, %rax
	movq	%rcx, %rbx
	subq	%rax, %rbx
	cmpq	%rbp, 8(%rsp)
	je	.L1
.L5:
	xorl	%eax, %eax
	movq	%r13, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	testq	%rbp, %rbp
	jne	.L3
	movl	20(%rsp), %r15d
	addq	$1, %rbp
	cmpq	%rbp, 8(%rsp)
	jne	.L5
.L1:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L11
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%rbx, %rax
	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
.L7:
	.cfi_restore_state
	xorl	%ebx, %ebx
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	hoge, .-hoge
	.section	.rodata.str1.1
.LC1:
	.string	"%lu %lu"
.LC2:
	.string	"%lu\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	leaq	.LC1(%rip), %rdi
	subq	$32, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %rdi
	call	hoge
	movq	16(%rsp), %rdi
	movq	%rax, %rbx
	call	hoge
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movabsq	$-8543223828751151131, %rdx
	imulq	%rax, %rbx
	movq	%rbx, %rax
	movq	%rbx, %rcx
	mulq	%rdx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	xorl	%eax, %eax
	movq	%rcx, %rdx
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	addq	$32, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	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>
#include <stdint.h>

#define MOD_VAL ((uint64_t)1000000007)

uint64_t hoge(uint64_t cnt) {
    uint64_t tmp = 0;
    int32_t pp; /* prev p */
    uint64_t pinc = 0; /* prev inc */
    for (int i = 0; i < cnt; i++) {
        int32_t p;
        uint64_t w;
        uint64_t inc;
        scanf("%d", &p);
        if (i == 0) {
            pp = p;
            continue;
        }
        w = (uint64_t)(p - pp);
        inc = pinc + (uint64_t)i * w;
        inc %= MOD_VAL;
        tmp += inc;
        tmp %= MOD_VAL;
        /* save as previous value */
        pp = p;
        pinc = inc;
    }
    return (uint64_t)tmp;
}

int main(void)
{
    uint64_t n, m;
    scanf("%lu %lu", &n, &m);
    printf("%lu\n", (hoge(n) * hoge(m)) % MOD_VAL);
    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 <stdint.h>

#define MOD_VAL ((uint64_t)1000000007)

uint64_t hoge(uint64_t cnt) {
    uint64_t tmp = 0;
    int32_t pp; /* prev p */
    uint64_t pinc = 0; /* prev inc */
    for (int i = 0; i < cnt; i++) {
        int32_t p;
        uint64_t w;
        uint64_t inc;
        scanf("%d", &p);
        if (i == 0) {
            pp = p;
            continue;
        }
        w = (uint64_t)(p - pp);
        inc = pinc + (uint64_t)i * w;
        inc %= MOD_VAL;
        tmp += inc;
        tmp %= MOD_VAL;
        /* save as previous value */
        pp = p;
        pinc = inc;
    }
    return (uint64_t)tmp;
}

int main(void)
{
    uint64_t n, m;
    scanf("%lu %lu", &n, &m);
    printf("%lu\n", (hoge(n) * hoge(m)) % MOD_VAL);
    return 0;
}

```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	hoge
	.type	hoge, @function
hoge:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%rdi, -72(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L2
.L5:
	leaq	-52(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$0, -44(%rbp)
	jne	.L3
	movl	-52(%rbp), %eax
	movl	%eax, -48(%rbp)
	jmp	.L4
.L3:
	movl	-52(%rbp), %eax
	subl	-48(%rbp), %eax
	cltq
	movq	%rax, -24(%rbp)
	movl	-44(%rbp), %eax
	cltq
	imulq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	addq	%rax, -40(%rbp)
	movq	-40(%rbp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movl	-52(%rbp), %eax
	movl	%eax, -48(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, -32(%rbp)
.L4:
	addl	$1, -44(%rbp)
.L2:
	movl	-44(%rbp), %eax
	cltq
	cmpq	%rax, -72(%rbp)
	ja	.L5
	movq	-40(%rbp), %rax
	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
.LFE0:
	.size	hoge, .-hoge
	.section	.rodata
.LC1:
	.string	"%lu %lu"
.LC2:
	.string	"%lu\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
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	hoge
	movq	%rax, %rbx
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	hoge
	imulq	%rax, %rbx
	movq	%rbx, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %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	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	hoge
	.type	hoge, @function
hoge:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%rdi, -72(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -40(%rbp)
	movq	$0, -32(%rbp)
	movl	$0, -44(%rbp)
	jmp	.L2
.L5:
	leaq	-52(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$0, -44(%rbp)
	jne	.L3
	movl	-52(%rbp), %eax
	movl	%eax, -48(%rbp)
	jmp	.L4
.L3:
	movl	-52(%rbp), %eax
	subl	-48(%rbp), %eax
	cltq
	movq	%rax, -24(%rbp)
	movl	-44(%rbp), %eax
	cltq
	imulq	-24(%rbp), %rax
	movq	%rax, %rdx
	movq	-32(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	addq	%rax, -40(%rbp)
	movq	-40(%rbp), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -40(%rbp)
	movl	-52(%rbp), %eax
	movl	%eax, -48(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, -32(%rbp)
.L4:
	addl	$1, -44(%rbp)
.L2:
	movl	-44(%rbp), %eax
	cltq
	cmpq	%rax, -72(%rbp)
	ja	.L5
	movq	-40(%rbp), %rax
	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
.LFE0:
	.size	hoge, .-hoge
	.section	.rodata
.LC1:
	.string	"%lu %lu"
.LC2:
	.string	"%lu\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
	subq	$40, %rsp
	.cfi_offset 3, -24
	movq	%fs:40, %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	leaq	-32(%rbp), %rdx
	leaq	-40(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-40(%rbp), %rax
	movq	%rax, %rdi
	call	hoge
	movq	%rax, %rbx
	movq	-32(%rbp), %rax
	movq	%rax, %rdi
	call	hoge
	imulq	%rax, %rbx
	movq	%rbx, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %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	-24(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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:
