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
long int PROD(long int a,long int b){return a%MOD*(b%MOD)%MOD;}//a*b
int main(){
  char s[53],t[53];
  long int i,n,x=0,y=1;
  scanf("%ld%s%s",&n,s,t);
  for(i=0;i<n;i++){
    if(!i)y=3*(1+(s[i]!=t[i]));
    else{
      if(x){y=PROD(y,1+2*(s[i]!=t[i]));}
      else{y=PROD(y,2);}
    }
    x=s[i]!=t[i];
    i+=x;
  }
  printf("%ld",y);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	PROD
	.type	PROD, @function
PROD:
.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), %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, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%rcx, %rsi
	subq	%rax, %rsi
	movq	-16(%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
	imulq	%rax, %rsi
	movq	%rsi, %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
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	PROD, .-PROD
	.section	.rodata
.LC0:
	.string	"%ld%s%s"
.LC1:
	.string	"%ld"
	.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
	subq	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -144(%rbp)
	movq	$1, -136(%rbp)
	leaq	-64(%rbp), %rcx
	leaq	-128(%rbp), %rdx
	leaq	-160(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -152(%rbp)
	jmp	.L4
.L12:
	cmpq	$0, -152(%rbp)
	jne	.L5
	leaq	-128(%rbp), %rdx
	movq	-152(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	-152(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L6
	movl	$6, %eax
	jmp	.L7
.L6:
	movl	$3, %eax
.L7:
	movq	%rax, -136(%rbp)
	jmp	.L8
.L5:
	cmpq	$0, -144(%rbp)
	je	.L9
	leaq	-128(%rbp), %rdx
	movq	-152(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	-152(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L10
	movl	$3, %edx
	jmp	.L11
.L10:
	movl	$1, %edx
.L11:
	movq	-136(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	PROD
	movq	%rax, -136(%rbp)
	jmp	.L8
.L9:
	movq	-136(%rbp), %rax
	movl	$2, %esi
	movq	%rax, %rdi
	call	PROD
	movq	%rax, -136(%rbp)
.L8:
	leaq	-128(%rbp), %rdx
	movq	-152(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	-152(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	setne	%al
	movzbl	%al, %eax
	movq	%rax, -144(%rbp)
	movq	-144(%rbp), %rax
	addq	%rax, -152(%rbp)
	addq	$1, -152(%rbp)
.L4:
	movq	-160(%rbp), %rax
	cmpq	%rax, -152(%rbp)
	jl	.L12
	movq	-136(%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	.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	PROD
	.type	PROD, @function
PROD:
.LFB23:
	.cfi_startproc
	endbr64
	movabsq	$-8543223828751151131, %rcx
	movq	%rdi, %rax
	imulq	%rcx
	movq	%rdi, %rax
	sarq	$63, %rax
	addq	%rdi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movq	%rsi, %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rdi
	imulq	%rcx
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	%rsi, %rdi
	movq	%rdi, %rax
	imulq	%rcx
	leaq	(%rdx,%rdi), %rax
	movq	%rdi, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rdi, %rax
	subq	%rdx, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	PROD, .-PROD
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld%s%s"
.LC1:
	.string	"%ld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r9
	testq	%r9, %r9
	jle	.L16
	movzbl	16(%rsp), %eax
	movzbl	80(%rsp), %edx
	xorl	%ecx, %ecx
	movl	$6, %r8d
	movabsq	$-8543223828751151131, %r11
	cmpb	%dl, %al
	jne	.L5
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L13:
	cmpb	%dil, %sil
	leaq	(%r8,%r8,2), %rax
	cmovne	%rax, %r8
	movq	%r8, %rax
	mulq	%r11
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %r8
.L12:
	movl	%esi, %edx
	movl	%edi, %eax
.L5:
	xorl	%esi, %esi
	cmpb	%dl, %al
	setne	%sil
	leaq	1(%rcx,%rsi), %rcx
	cmpq	%r9, %rcx
	jge	.L4
	movzbl	16(%rsp,%rcx), %edi
	movzbl	80(%rsp,%rcx), %esi
	cmpb	%dl, %al
	jne	.L13
	leaq	(%r8,%r8), %r10
	movq	%r10, %rax
	mulq	%r11
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %r10
	movq	%r10, %r8
	jmp	.L12
.L16:
	movl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	xorl	%eax, %eax
	addq	$152, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	movl	$3, %r8d
	movq	%r11, %r10
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	cmpb	%dil, %sil
	je	.L8
	leaq	(%r8,%r8,2), %r8
.L8:
	movq	%r8, %rax
	imulq	%r10
	leaq	(%rdx,%r8), %rax
	movq	%r8, %rdx
	sarq	$29, %rax
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %r8
.L7:
	movl	%esi, %eax
	movl	%edi, %edx
.L6:
	xorl	%esi, %esi
	cmpb	%al, %dl
	setne	%sil
	leaq	1(%rcx,%rsi), %rcx
	cmpq	%r9, %rcx
	jge	.L4
	movzbl	16(%rsp,%rcx), %esi
	movzbl	80(%rsp,%rcx), %edi
	cmpb	%al, %dl
	jne	.L9
	leaq	(%r8,%r8), %r11
	movq	%r11, %rax
	imulq	%r10
	movq	%r11, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r11), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %r11
	movq	%r11, %r8
	jmp	.L7
.L23:
	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	PROD
	.type	PROD, @function
PROD:
.LFB23:
	.cfi_startproc
	endbr64
	movabsq	$-8543223828751151131, %rcx
	movq	%rdi, %rax
	imulq	%rcx
	movq	%rdi, %rax
	sarq	$63, %rax
	addq	%rdi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	movq	%rsi, %rax
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rdi
	imulq	%rcx
	movq	%rsi, %rax
	sarq	$63, %rax
	addq	%rsi, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	imulq	%rsi, %rdi
	movq	%rdi, %rax
	imulq	%rcx
	leaq	(%rdx,%rdi), %rax
	movq	%rdi, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rdi, %rax
	subq	%rdx, %rax
	ret
	.cfi_endproc
.LFE23:
	.size	PROD, .-PROD
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%ld%s%s"
.LC1:
	.string	"%ld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	subq	$152, %rsp
	.cfi_def_cfa_offset 160
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 136(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %rcx
	leaq	16(%rsp), %rdx
	leaq	8(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	8(%rsp), %r9
	testq	%r9, %r9
	jle	.L16
	movzbl	16(%rsp), %eax
	movzbl	80(%rsp), %edx
	xorl	%ecx, %ecx
	movl	$6, %r8d
	movabsq	$-8543223828751151131, %r11
	cmpb	%dl, %al
	jne	.L5
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L13:
	cmpb	%dil, %sil
	leaq	(%r8,%r8,2), %rax
	cmovne	%rax, %r8
	movq	%r8, %rax
	mulq	%r11
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %r8
.L12:
	movl	%esi, %edx
	movl	%edi, %eax
.L5:
	xorl	%esi, %esi
	cmpb	%dl, %al
	setne	%sil
	leaq	1(%rcx,%rsi), %rcx
	cmpq	%r9, %rcx
	jge	.L4
	movzbl	16(%rsp,%rcx), %edi
	movzbl	80(%rsp,%rcx), %esi
	cmpb	%dl, %al
	jne	.L13
	leaq	(%r8,%r8), %r10
	movq	%r10, %rax
	mulq	%r11
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %r10
	movq	%r10, %r8
	jmp	.L12
.L16:
	movl	$1, %r8d
	.p2align 4,,10
	.p2align 3
.L4:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	xorl	%eax, %eax
	addq	$152, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L22:
	.cfi_restore_state
	movl	$3, %r8d
	movq	%r11, %r10
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	cmpb	%dil, %sil
	je	.L8
	leaq	(%r8,%r8,2), %r8
.L8:
	movq	%r8, %rax
	imulq	%r10
	leaq	(%rdx,%r8), %rax
	movq	%r8, %rdx
	sarq	$29, %rax
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rax
	subq	%rax, %r8
.L7:
	movl	%esi, %eax
	movl	%edi, %edx
.L6:
	xorl	%esi, %esi
	cmpb	%al, %dl
	setne	%sil
	leaq	1(%rcx,%rsi), %rcx
	cmpq	%r9, %rcx
	jge	.L4
	movzbl	16(%rsp,%rcx), %esi
	movzbl	80(%rsp,%rcx), %edi
	cmpb	%al, %dl
	jne	.L9
	leaq	(%r8,%r8), %r11
	movq	%r11, %rax
	imulq	%r10
	movq	%r11, %rax
	sarq	$63, %rax
	leaq	(%rdx,%r11), %r8
	sarq	$29, %r8
	subq	%rax, %r8
	imulq	$1000000007, %r8, %rax
	subq	%rax, %r11
	movq	%r11, %r8
	jmp	.L7
.L23:
	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 MOD 1000000007
long int PROD(long int a,long int b){return a%MOD*(b%MOD)%MOD;}//a*b
int main(){
  char s[53],t[53];
  long int i,n,x=0,y=1;
  scanf("%ld%s%s",&n,s,t);
  for(i=0;i<n;i++){
    if(!i)y=3*(1+(s[i]!=t[i]));
    else{
      if(x){y=PROD(y,1+2*(s[i]!=t[i]));}
      else{y=PROD(y,2);}
    }
    x=s[i]!=t[i];
    i+=x;
  }
  printf("%ld",y);
}

1
[
[
 52
RvvttdWIyyPPQFFZZssffEEkkaSSDKqcibbeYrhAljCCGGJppHHn
RLLwwdWIxxNNQUUXXVVMMooCBaggDKqcimmeYrhAljOOTTJuuzzn
 3
aab
acc
 3
bab
bab
 3
aab
cbb
 3
aab
bbb
 3
aab
bcb
 3
aab
bdb
 52
nHHppJGGCCjlAhrYebbicqKDSSakkEEffssZZFFQPPyyIWdttvvR
nzzuuJTTOOjlAhrYemmicqKDggaBBooMMVVXXUUQNNxxIWdwwLLR
 3
baa
bbb

3 958681902 6 12 6 6 6 6 958681902 6
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
long int PROD(long int a,long int b){return a%MOD*(b%MOD)%MOD;}//a*b
int main(){
  char s[53],t[53];
  long int i,n,x=0,y=1;
  scanf("%ld%s%s",&n,s,t);
  for(i=0;i<n;i++){
    if(!i)y=3*(1+(s[i]!=t[i]));
    else{
      if(x){y=PROD(y,1+2*(s[i]!=t[i]));}
      else{y=PROD(y,2);}
    }
    x=s[i]!=t[i];
    i+=x;
  }
  printf("%ld",y);
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	PROD
	.type	PROD, @function
PROD:
.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), %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, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%rcx, %rsi
	subq	%rax, %rsi
	movq	-16(%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
	imulq	%rax, %rsi
	movq	%rsi, %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
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	PROD, .-PROD
	.section	.rodata
.LC0:
	.string	"%ld%s%s"
.LC1:
	.string	"%ld"
	.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
	subq	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -144(%rbp)
	movq	$1, -136(%rbp)
	leaq	-64(%rbp), %rcx
	leaq	-128(%rbp), %rdx
	leaq	-160(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -152(%rbp)
	jmp	.L4
.L12:
	cmpq	$0, -152(%rbp)
	jne	.L5
	leaq	-128(%rbp), %rdx
	movq	-152(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	-152(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L6
	movl	$6, %eax
	jmp	.L7
.L6:
	movl	$3, %eax
.L7:
	movq	%rax, -136(%rbp)
	jmp	.L8
.L5:
	cmpq	$0, -144(%rbp)
	je	.L9
	leaq	-128(%rbp), %rdx
	movq	-152(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	-152(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L10
	movl	$3, %edx
	jmp	.L11
.L10:
	movl	$1, %edx
.L11:
	movq	-136(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	PROD
	movq	%rax, -136(%rbp)
	jmp	.L8
.L9:
	movq	-136(%rbp), %rax
	movl	$2, %esi
	movq	%rax, %rdi
	call	PROD
	movq	%rax, -136(%rbp)
.L8:
	leaq	-128(%rbp), %rdx
	movq	-152(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	-152(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	setne	%al
	movzbl	%al, %eax
	movq	%rax, -144(%rbp)
	movq	-144(%rbp), %rax
	addq	%rax, -152(%rbp)
	addq	$1, -152(%rbp)
.L4:
	movq	-160(%rbp), %rax
	cmpq	%rax, -152(%rbp)
	jl	.L12
	movq	-136(%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	.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	PROD
	.type	PROD, @function
PROD:
.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), %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, %rsi
	imulq	$1000000007, %rsi, %rax
	movq	%rcx, %rsi
	subq	%rax, %rsi
	movq	-16(%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
	imulq	%rax, %rsi
	movq	%rsi, %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
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	PROD, .-PROD
	.section	.rodata
.LC0:
	.string	"%ld%s%s"
.LC1:
	.string	"%ld"
	.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
	subq	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$0, -144(%rbp)
	movq	$1, -136(%rbp)
	leaq	-64(%rbp), %rcx
	leaq	-128(%rbp), %rdx
	leaq	-160(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	$0, -152(%rbp)
	jmp	.L4
.L12:
	cmpq	$0, -152(%rbp)
	jne	.L5
	leaq	-128(%rbp), %rdx
	movq	-152(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	-152(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L6
	movl	$6, %eax
	jmp	.L7
.L6:
	movl	$3, %eax
.L7:
	movq	%rax, -136(%rbp)
	jmp	.L8
.L5:
	cmpq	$0, -144(%rbp)
	je	.L9
	leaq	-128(%rbp), %rdx
	movq	-152(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	-152(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	je	.L10
	movl	$3, %edx
	jmp	.L11
.L10:
	movl	$1, %edx
.L11:
	movq	-136(%rbp), %rax
	movq	%rdx, %rsi
	movq	%rax, %rdi
	call	PROD
	movq	%rax, -136(%rbp)
	jmp	.L8
.L9:
	movq	-136(%rbp), %rax
	movl	$2, %esi
	movq	%rax, %rdi
	call	PROD
	movq	%rax, -136(%rbp)
.L8:
	leaq	-128(%rbp), %rdx
	movq	-152(%rbp), %rax
	addq	%rdx, %rax
	movzbl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	-152(%rbp), %rax
	addq	%rcx, %rax
	movzbl	(%rax), %eax
	cmpb	%al, %dl
	setne	%al
	movzbl	%al, %eax
	movq	%rax, -144(%rbp)
	movq	-144(%rbp), %rax
	addq	%rax, -152(%rbp)
	addq	$1, -152(%rbp)
.L4:
	movq	-160(%rbp), %rax
	cmpq	%rax, -152(%rbp)
	jl	.L12
	movq	-136(%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	.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:
