Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <stdio.h>
#define lli long long int
#define Div 1000000007
long long int Pow(lli m, lli n);
int main() {
	long long int m,n,a;
	scanf("%lld%lld", &m, &n);
	a=Pow(m,n)%Div;
	printf("%lld\n", a);
	return 0;
}

long long int Pow(lli m, lli n)
{	
	long long res = 1;
	if (n == 0) return 1;
	res = Pow(m*m%Div, n / 2);
	if (n % 2 == 1) res = res*m%Div;
	return res;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld\n"
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-24(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-24(%rbp), %rdx
	movq	-32(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	Pow
	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
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	Pow
	.type	Pow, @function
Pow:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	$1, -8(%rbp)
	cmpq	$0, -32(%rbp)
	jne	.L5
	movl	$1, %eax
	jmp	.L6
.L5:
	movq	-32(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rsi
	movq	-24(%rbp), %rax
	imulq	%rax, %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, %rdi
	call	Pow
	movq	%rax, -8(%rbp)
	movq	-32(%rbp), %rax
	cqto
	shrq	$63, %rdx
	addq	%rdx, %rax
	andl	$1, %eax
	subq	%rdx, %rax
	cmpq	$1, %rax
	jne	.L7
	movq	-8(%rbp), %rax
	imulq	-24(%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
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
.L7:
	movq	-8(%rbp), %rax
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Pow, .-Pow
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.type	Pow.part.0, @function
Pow.part.0:
.LFB25:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rsi, %rcx
	movl	$1, %r8d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	shrq	$63, %rcx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	addq	%rsi, %rcx
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rsi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	sarq	%rcx
	jne	.L17
.L2:
	movq	%rbx, %rax
	shrq	$63, %rax
	addq	%rax, %rbx
	andl	$1, %ebx
	subq	%rax, %rbx
	cmpq	$1, %rbx
	jne	.L1
	movabsq	$-8543223828751151131, %rdx
	imulq	%r8, %rbp
	movq	%rbp, %rax
	imulq	%rdx
	movq	%rbp, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rbp), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	movq	%rbp, %r8
	subq	%rax, %r8
.L1:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r8, %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
.L17:
	.cfi_restore_state
	movabsq	$-8543223828751151131, %r9
	movq	%rdi, %rsi
	imulq	%rdi, %rsi
	movq	%rsi, %rax
	mulq	%r9
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, %r12
	movq	%rcx, %rsi
	shrq	$63, %rsi
	addq	%rcx, %rsi
	sarq	%rsi
	movq	%rsi, %r13
	je	.L3
	movq	%r12, %rsi
	movq	%r13, %r14
	imulq	%r12, %rsi
	shrq	$63, %r14
	addq	%r13, %r14
	movq	%rsi, %rax
	mulq	%r9
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	sarq	%r14
	movq	%rsi, %r15
	jne	.L18
.L4:
	movq	%r13, %rax
	shrq	$63, %rax
	leaq	0(%r13,%rax), %rsi
	andl	$1, %esi
	subq	%rax, %rsi
	cmpq	$1, %rsi
	je	.L19
.L3:
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rax, %rcx
	andl	$1, %ecx
	subq	%rax, %rcx
	cmpq	$1, %rcx
	jne	.L2
	movabsq	$-8543223828751151131, %rdx
	movq	%r12, %rcx
	imulq	%r8, %rcx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %rcx
	movq	%rcx, %r8
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	imulq	%rsi, %rsi
	movq	%rsi, %rax
	mulq	%r9
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, %r10
	movq	%r14, %rsi
	shrq	$63, %rsi
	addq	%r14, %rsi
	sarq	%rsi
	je	.L5
	movq	%r10, %rdi
	movq	%rcx, 8(%rsp)
	imulq	%r10, %rdi
	movq	%r10, (%rsp)
	movq	%rdi, %rax
	mulq	%r9
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rdi
	call	Pow.part.0
	movq	8(%rsp), %rcx
	movq	(%rsp), %r10
	movq	%rax, %r8
.L5:
	movq	%r14, %rax
	shrq	$63, %rax
	addq	%rax, %r14
	andl	$1, %r14d
	subq	%rax, %r14
	cmpq	$1, %r14
	jne	.L4
	movabsq	$-8543223828751151131, %rdx
	imulq	%r8, %r10
	movq	%r10, %rax
	imulq	%rdx
	movq	%r10, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r10), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %r10
	movq	%r10, %r8
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	movabsq	$-8543223828751151131, %rdx
	imulq	%r8, %r15
	movq	%r15, %rax
	imulq	%rdx
	movq	%r15, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r15), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %r15
	movq	%r15, %r8
	jmp	.L3
	.cfi_endproc
.LFE25:
	.size	Pow.part.0, .-Pow.part.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %r8
	movq	8(%rsp), %rdi
	movl	$1, %esi
	testq	%r8, %r8
	je	.L21
	movq	%r8, %rsi
	call	Pow.part.0
	movq	%rax, %rsi
.L21:
	movq	%rsi, %rax
	movl	$1, %edi
	movabsq	$-8543223828751151131, %rdx
	imulq	%rdx
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rcx
	movq	%rsi, %rdx
	leaq	.LC1(%rip), %rsi
	sarq	$29, %rcx
	subq	%rax, %rcx
	xorl	%eax, %eax
	imulq	$1000000007, %rcx, %rcx
	subq	%rcx, %rdx
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	Pow
	.type	Pow, @function
Pow:
.LFB24:
	.cfi_startproc
	endbr64
	movl	$1, %r8d
	testq	%rsi, %rsi
	jne	.L45
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L45:
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movq	%rsi, %rax
	movq	%rsi, %r11
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	shrq	$63, %rax
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	(%rax,%rsi), %rcx
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	sarq	%rcx
	je	.L30
	movabsq	$-8543223828751151131, %r9
	movq	%rdi, %rsi
	imulq	%rdi, %rsi
	movq	%rsi, %rax
	mulq	%r9
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, %rbp
	movq	%rcx, %rsi
	shrq	$63, %rsi
	addq	%rcx, %rsi
	sarq	%rsi
	movq	%rsi, %r12
	jne	.L46
.L31:
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rax, %rcx
	andl	$1, %ecx
	subq	%rax, %rcx
	cmpq	$1, %rcx
	je	.L47
.L30:
	movq	%r11, %rax
	shrq	$63, %rax
	addq	%rax, %r11
	andl	$1, %r11d
	subq	%rax, %r11
	cmpq	$1, %r11
	jne	.L28
	movabsq	$-8543223828751151131, %rdx
	imulq	%r8, %rbx
	movq	%rbx, %rax
	movq	%rbx, %rcx
	imulq	%rdx
	movq	%rbx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rbx), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %rcx
	movq	%rcx, %r8
.L28:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%r8, %rax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L46:
	.cfi_restore_state
	movq	%rbp, %rsi
	imulq	%rbp, %rsi
	movq	%rsi, %rax
	mulq	%r9
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%r12, %rax
	shrq	$63, %rax
	movq	%rsi, %r13
	addq	%r12, %rax
	sarq	%rax
	movq	%rax, %rsi
	je	.L32
	movq	%r13, %rdi
	movq	%rcx, 8(%rsp)
	imulq	%r13, %rdi
	movq	%rdi, %rax
	mulq	%r9
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rdi
	call	Pow.part.0
	movq	8(%rsp), %rcx
	movq	%rax, %r8
.L32:
	movq	%r12, %rax
	shrq	$63, %rax
	leaq	(%r12,%rax), %rsi
	andl	$1, %esi
	subq	%rax, %rsi
	cmpq	$1, %rsi
	jne	.L31
	movabsq	$-8543223828751151131, %rdx
	imulq	%r8, %r13
	movq	%r13, %rax
	imulq	%rdx
	movq	%r13, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r13), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	movq	%r13, %r8
	subq	%rax, %r8
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L47:
	movabsq	$-8543223828751151131, %rdx
	movq	%rbp, %rcx
	imulq	%r8, %rcx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %rcx
	movq	%rcx, %r8
	jmp	.L30
	.cfi_endproc
.LFE24:
	.size	Pow, .-Pow
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.type	Pow.part.0, @function
Pow.part.0:
.LFB25:
	.cfi_startproc
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rsi, %rcx
	movl	$1, %r8d
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	shrq	$63, %rcx
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	addq	%rsi, %rcx
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%rdi, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rsi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	sarq	%rcx
	jne	.L17
.L2:
	movq	%rbx, %rax
	shrq	$63, %rax
	addq	%rax, %rbx
	andl	$1, %ebx
	subq	%rax, %rbx
	cmpq	$1, %rbx
	jne	.L1
	movabsq	$-8543223828751151131, %rdx
	imulq	%r8, %rbp
	movq	%rbp, %rax
	imulq	%rdx
	movq	%rbp, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rbp), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	movq	%rbp, %r8
	subq	%rax, %r8
.L1:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movq	%r8, %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
.L17:
	.cfi_restore_state
	movabsq	$-8543223828751151131, %r9
	movq	%rdi, %rsi
	imulq	%rdi, %rsi
	movq	%rsi, %rax
	mulq	%r9
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, %r12
	movq	%rcx, %rsi
	shrq	$63, %rsi
	addq	%rcx, %rsi
	sarq	%rsi
	movq	%rsi, %r13
	je	.L3
	movq	%r12, %rsi
	movq	%r13, %r14
	imulq	%r12, %rsi
	shrq	$63, %r14
	addq	%r13, %r14
	movq	%rsi, %rax
	mulq	%r9
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	sarq	%r14
	movq	%rsi, %r15
	jne	.L18
.L4:
	movq	%r13, %rax
	shrq	$63, %rax
	leaq	0(%r13,%rax), %rsi
	andl	$1, %esi
	subq	%rax, %rsi
	cmpq	$1, %rsi
	je	.L19
.L3:
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rax, %rcx
	andl	$1, %ecx
	subq	%rax, %rcx
	cmpq	$1, %rcx
	jne	.L2
	movabsq	$-8543223828751151131, %rdx
	movq	%r12, %rcx
	imulq	%r8, %rcx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %rcx
	movq	%rcx, %r8
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	imulq	%rsi, %rsi
	movq	%rsi, %rax
	mulq	%r9
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, %r10
	movq	%r14, %rsi
	shrq	$63, %rsi
	addq	%r14, %rsi
	sarq	%rsi
	je	.L5
	movq	%r10, %rdi
	movq	%rcx, 8(%rsp)
	imulq	%r10, %rdi
	movq	%r10, (%rsp)
	movq	%rdi, %rax
	mulq	%r9
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rdi
	call	Pow.part.0
	movq	8(%rsp), %rcx
	movq	(%rsp), %r10
	movq	%rax, %r8
.L5:
	movq	%r14, %rax
	shrq	$63, %rax
	addq	%rax, %r14
	andl	$1, %r14d
	subq	%rax, %r14
	cmpq	$1, %r14
	jne	.L4
	movabsq	$-8543223828751151131, %rdx
	imulq	%r8, %r10
	movq	%r10, %rax
	imulq	%rdx
	movq	%r10, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r10), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %r10
	movq	%r10, %r8
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	movabsq	$-8543223828751151131, %rdx
	imulq	%r8, %r15
	movq	%r15, %rax
	imulq	%rdx
	movq	%r15, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r15), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %r15
	movq	%r15, %r8
	jmp	.L3
	.cfi_endproc
.LFE25:
	.size	Pow.part.0, .-Pow.part.0
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	subq	$40, %rsp
	.cfi_def_cfa_offset 48
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	16(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movq	16(%rsp), %r8
	movq	8(%rsp), %rdi
	movl	$1, %esi
	testq	%r8, %r8
	je	.L21
	movq	%r8, %rsi
	call	Pow.part.0
	movq	%rax, %rsi
.L21:
	movq	%rsi, %rax
	movl	$1, %edi
	movabsq	$-8543223828751151131, %rdx
	imulq	%rdx
	movq	%rsi, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rsi), %rcx
	movq	%rsi, %rdx
	leaq	.LC1(%rip), %rsi
	sarq	$29, %rcx
	subq	%rax, %rcx
	xorl	%eax, %eax
	imulq	$1000000007, %rcx, %rcx
	subq	%rcx, %rdx
	call	__printf_chk@PLT
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	xorl	%eax, %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.text
	.p2align 4
	.globl	Pow
	.type	Pow, @function
Pow:
.LFB24:
	.cfi_startproc
	endbr64
	movl	$1, %r8d
	testq	%rsi, %rsi
	jne	.L45
	movq	%r8, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L45:
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	movq	%rsi, %rax
	movq	%rsi, %r11
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	shrq	$63, %rax
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	(%rax,%rsi), %rcx
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movq	%rdi, %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	sarq	%rcx
	je	.L30
	movabsq	$-8543223828751151131, %r9
	movq	%rdi, %rsi
	imulq	%rdi, %rsi
	movq	%rsi, %rax
	mulq	%r9
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, %rbp
	movq	%rcx, %rsi
	shrq	$63, %rsi
	addq	%rcx, %rsi
	sarq	%rsi
	movq	%rsi, %r12
	jne	.L46
.L31:
	movq	%rcx, %rax
	shrq	$63, %rax
	addq	%rax, %rcx
	andl	$1, %ecx
	subq	%rax, %rcx
	cmpq	$1, %rcx
	je	.L47
.L30:
	movq	%r11, %rax
	shrq	$63, %rax
	addq	%rax, %r11
	andl	$1, %r11d
	subq	%rax, %r11
	cmpq	$1, %r11
	jne	.L28
	movabsq	$-8543223828751151131, %rdx
	imulq	%r8, %rbx
	movq	%rbx, %rax
	movq	%rbx, %rcx
	imulq	%rdx
	movq	%rbx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rbx), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %rcx
	movq	%rcx, %r8
.L28:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movq	%r8, %rax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L46:
	.cfi_restore_state
	movq	%rbp, %rsi
	imulq	%rbp, %rsi
	movq	%rsi, %rax
	mulq	%r9
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%r12, %rax
	shrq	$63, %rax
	movq	%rsi, %r13
	addq	%r12, %rax
	sarq	%rax
	movq	%rax, %rsi
	je	.L32
	movq	%r13, %rdi
	movq	%rcx, 8(%rsp)
	imulq	%r13, %rdi
	movq	%rdi, %rax
	mulq	%r9
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rdi
	call	Pow.part.0
	movq	8(%rsp), %rcx
	movq	%rax, %r8
.L32:
	movq	%r12, %rax
	shrq	$63, %rax
	leaq	(%r12,%rax), %rsi
	andl	$1, %esi
	subq	%rax, %rsi
	cmpq	$1, %rsi
	jne	.L31
	movabsq	$-8543223828751151131, %rdx
	imulq	%r8, %r13
	movq	%r13, %rax
	imulq	%rdx
	movq	%r13, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r13), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	movq	%r13, %r8
	subq	%rax, %r8
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L47:
	movabsq	$-8543223828751151131, %rdx
	movq	%rbp, %rcx
	imulq	%r8, %rcx
	movq	%rcx, %rax
	imulq	%rdx
	movq	%rcx, %rax
	sarq	$63, %rax
	leaq	(%rdx,%rcx), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %rcx
	movq	%rcx, %r8
	jmp	.L30
	.cfi_endproc
.LFE24:
	.size	Pow, .-Pow
	.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:

#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <stdio.h>
#define lli long long int
#define Div 1000000007
long long int Pow(lli m, lli n);
int main() {
	long long int m,n,a;
	scanf("%lld%lld", &m, &n);
	a=Pow(m,n)%Div;
	printf("%lld\n", a);
	return 0;
}

long long int Pow(lli m, lli n)
{	
	long long res = 1;
	if (n == 0) return 1;
	res = Pow(m*m%Div, n / 2);
	if (n % 2 == 1) res = res*m%Div;
	return res;
}
2 1
 5 9
 2 2
 7 9
 3 3
 13 9
 1 3
 13 1
 12 1
 3 1

2
 1953125
 4
 40353607
 27
 604499303
 1
 13
 12
 3

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <stdio.h>
#define lli long long int
#define Div 1000000007
long long int Pow(lli m, lli n);
int main() {
	long long int m,n,a;
	scanf("%lld%lld", &m, &n);
	a=Pow(m,n)%Div;
	printf("%lld\n", a);
	return 0;
}

long long int Pow(lli m, lli n)
{	
	long long res = 1;
	if (n == 0) return 1;
	res = Pow(m*m%Div, n / 2);
	if (n % 2 == 1) res = res*m%Div;
	return res;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld\n"
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-24(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-24(%rbp), %rdx
	movq	-32(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	Pow
	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
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	Pow
	.type	Pow, @function
Pow:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	$1, -8(%rbp)
	cmpq	$0, -32(%rbp)
	jne	.L5
	movl	$1, %eax
	jmp	.L6
.L5:
	movq	-32(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rsi
	movq	-24(%rbp), %rax
	imulq	%rax, %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, %rdi
	call	Pow
	movq	%rax, -8(%rbp)
	movq	-32(%rbp), %rax
	cqto
	shrq	$63, %rdx
	addq	%rdx, %rax
	andl	$1, %eax
	subq	%rdx, %rax
	cmpq	$1, %rax
	jne	.L7
	movq	-8(%rbp), %rax
	imulq	-24(%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
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
.L7:
	movq	-8(%rbp), %rax
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Pow, .-Pow
	.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	"%lld%lld"
.LC1:
	.string	"%lld\n"
	.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
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-24(%rbp), %rdx
	leaq	-32(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-24(%rbp), %rdx
	movq	-32(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	Pow
	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
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	Pow
	.type	Pow, @function
Pow:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	$1, -8(%rbp)
	cmpq	$0, -32(%rbp)
	jne	.L5
	movl	$1, %eax
	jmp	.L6
.L5:
	movq	-32(%rbp), %rax
	movq	%rax, %rdx
	shrq	$63, %rdx
	addq	%rdx, %rax
	sarq	%rax
	movq	%rax, %rsi
	movq	-24(%rbp), %rax
	imulq	%rax, %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, %rdi
	call	Pow
	movq	%rax, -8(%rbp)
	movq	-32(%rbp), %rax
	cqto
	shrq	$63, %rdx
	addq	%rdx, %rax
	andl	$1, %eax
	subq	%rdx, %rax
	cmpq	$1, %rax
	jne	.L7
	movq	-8(%rbp), %rax
	imulq	-24(%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
	movq	%rax, -8(%rbp)
	movq	-8(%rbp), %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, -8(%rbp)
.L7:
	movq	-8(%rbp), %rax
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	Pow, .-Pow
	.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:
