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

```c
int main() {
	long long int n,result=1,time,m;
  	char str[55],str2[55];
	scanf("%lld%s%s", &n,str,str2);
	
	if (str[0] == str[1]) {
		result *= 6;
		time = 2;
	}
	else {
		result *= 3;
		time = 1;
	}
	for (int i = time; i < n; i += time) {
		if (str[i] == str[i+1]&&time==2) {
			result *= 3;
			time = 2;
		}
		else if(str[i] == str[i + 1] && time == 1){
			result *= 2;
			time = 2;
		}
		else if (str[i] != str[i + 1] && time == 2) {
			result *= 1;
			time = 1;
		}
		else if (str[i] != str[i + 1] && time == 1) {
			result *= 2;
			time = 1;
		}
	}
	result %= 1000000007;
	printf("%lld", result);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld%s%s"
.LC1:
	.string	"%lld"
	.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	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$1, -144(%rbp)
	leaq	-64(%rbp), %rcx
	leaq	-128(%rbp), %rdx
	leaq	-152(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movzbl	-128(%rbp), %edx
	movzbl	-127(%rbp), %eax
	cmpb	%al, %dl
	jne	.L2
	movq	-144(%rbp), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, -144(%rbp)
	movq	$2, -136(%rbp)
	jmp	.L3
.L2:
	movq	-144(%rbp), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, -144(%rbp)
	movq	$1, -136(%rbp)
.L3:
	movq	-136(%rbp), %rax
	movl	%eax, -156(%rbp)
	jmp	.L4
.L9:
	movl	-156(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %edx
	movl	-156(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L5
	cmpq	$2, -136(%rbp)
	jne	.L5
	movq	-144(%rbp), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, -144(%rbp)
	movq	$2, -136(%rbp)
	jmp	.L6
.L5:
	movl	-156(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %edx
	movl	-156(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L7
	cmpq	$1, -136(%rbp)
	jne	.L7
	salq	-144(%rbp)
	movq	$2, -136(%rbp)
	jmp	.L6
.L7:
	movl	-156(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %edx
	movl	-156(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L8
	cmpq	$2, -136(%rbp)
	jne	.L8
	movq	$1, -136(%rbp)
	jmp	.L6
.L8:
	movl	-156(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %edx
	movl	-156(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L6
	cmpq	$1, -136(%rbp)
	jne	.L6
	salq	-144(%rbp)
	movq	$1, -136(%rbp)
.L6:
	movq	-136(%rbp), %rax
	movl	%eax, %edx
	movl	-156(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -156(%rbp)
.L4:
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	movq	-152(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L9
	movq	-144(%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, -144(%rbp)
	movq	-144(%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	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%s%s"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	8(%rsp), %rsi
	leaq	80(%rsp), %rcx
	leaq	16(%rsp), %rdx
	call	scanf@PLT
	movzbl	16(%rsp), %eax
	xorl	%r8d, %r8d
	cmpb	17(%rsp), %al
	sete	%r8b
	movq	8(%rsp), %r9
	xorl	%esi, %esi
	addq	$1, %r8
	cmpb	17(%rsp), %al
	sete	%sil
	leaq	3(%rsi,%rsi,2), %rsi
	cmpq	%r9, %r8
	jge	.L3
	movl	%r8d, %edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	cmpq	$2, %r8
	je	.L10
	addq	%rsi, %rsi
	movl	$1, %eax
	movl	$1, %r8d
.L6:
	addl	%eax, %edx
	movslq	%edx, %rcx
	cmpq	%rcx, %r9
	jle	.L3
.L7:
	leal	1(%rdx), %ecx
	movslq	%edx, %rdi
	movslq	%ecx, %rcx
	movzbl	16(%rsp,%rcx), %eax
	cmpb	%al, 16(%rsp,%rdi)
	jne	.L4
	cmpq	$2, %r8
	je	.L14
	movl	$2, %eax
	addq	%rsi, %rsi
	movl	$2, %r8d
	addl	%eax, %edx
	movslq	%edx, %rcx
	cmpq	%rcx, %r9
	jg	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rsi, %rax
	leaq	.LC1(%rip), %rdi
	movabsq	$-8543223828751151131, %rdx
	mulq	%rdx
	xorl	%eax, %eax
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	call	printf@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	xorl	%eax, %eax
	addq	$152, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	movl	$1, %eax
	movl	$1, %r8d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	leaq	(%rsi,%rsi,2), %rsi
	movl	$2, %eax
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%s%s"
.LC1:
	.string	"%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	8(%rsp), %rsi
	leaq	80(%rsp), %rcx
	leaq	16(%rsp), %rdx
	call	scanf@PLT
	movzbl	16(%rsp), %eax
	xorl	%r8d, %r8d
	cmpb	17(%rsp), %al
	sete	%r8b
	movq	8(%rsp), %r9
	xorl	%esi, %esi
	addq	$1, %r8
	cmpb	17(%rsp), %al
	sete	%sil
	leaq	3(%rsi,%rsi,2), %rsi
	cmpq	%r9, %r8
	jge	.L3
	movl	%r8d, %edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	cmpq	$2, %r8
	je	.L10
	addq	%rsi, %rsi
	movl	$1, %eax
	movl	$1, %r8d
.L6:
	addl	%eax, %edx
	movslq	%edx, %rcx
	cmpq	%rcx, %r9
	jle	.L3
.L7:
	leal	1(%rdx), %ecx
	movslq	%edx, %rdi
	movslq	%ecx, %rcx
	movzbl	16(%rsp,%rcx), %eax
	cmpb	%al, 16(%rsp,%rdi)
	jne	.L4
	cmpq	$2, %r8
	je	.L14
	movl	$2, %eax
	addq	%rsi, %rsi
	movl	$2, %r8d
	addl	%eax, %edx
	movslq	%edx, %rcx
	cmpq	%rcx, %r9
	jg	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	movq	%rsi, %rax
	leaq	.LC1(%rip), %rdi
	movabsq	$-8543223828751151131, %rdx
	mulq	%rdx
	xorl	%eax, %eax
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %rsi
	call	printf@PLT
	movq	136(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L15
	xorl	%eax, %eax
	addq	$152, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	movl	$1, %eax
	movl	$1, %r8d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	leaq	(%rsi,%rsi,2), %rsi
	movl	$2, %eax
	jmp	.L6
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

int main() {
	long long int n,result=1,time,m;
  	char str[55],str2[55];
	scanf("%lld%s%s", &n,str,str2);
	
	if (str[0] == str[1]) {
		result *= 6;
		time = 2;
	}
	else {
		result *= 3;
		time = 1;
	}
	for (int i = time; i < n; i += time) {
		if (str[i] == str[i+1]&&time==2) {
			result *= 3;
			time = 2;
		}
		else if(str[i] == str[i + 1] && time == 1){
			result *= 2;
			time = 2;
		}
		else if (str[i] != str[i + 1] && time == 2) {
			result *= 1;
			time = 1;
		}
		else if (str[i] != str[i + 1] && time == 1) {
			result *= 2;
			time = 1;
		}
	}
	result %= 1000000007;
	printf("%lld", result);
}
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
int main() {
	long long int n,result=1,time,m;
  	char str[55],str2[55];
	scanf("%lld%s%s", &n,str,str2);
	
	if (str[0] == str[1]) {
		result *= 6;
		time = 2;
	}
	else {
		result *= 3;
		time = 1;
	}
	for (int i = time; i < n; i += time) {
		if (str[i] == str[i+1]&&time==2) {
			result *= 3;
			time = 2;
		}
		else if(str[i] == str[i + 1] && time == 1){
			result *= 2;
			time = 2;
		}
		else if (str[i] != str[i + 1] && time == 2) {
			result *= 1;
			time = 1;
		}
		else if (str[i] != str[i + 1] && time == 1) {
			result *= 2;
			time = 1;
		}
	}
	result %= 1000000007;
	printf("%lld", result);
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld%s%s"
.LC1:
	.string	"%lld"
	.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	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$1, -144(%rbp)
	leaq	-64(%rbp), %rcx
	leaq	-128(%rbp), %rdx
	leaq	-152(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movzbl	-128(%rbp), %edx
	movzbl	-127(%rbp), %eax
	cmpb	%al, %dl
	jne	.L2
	movq	-144(%rbp), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, -144(%rbp)
	movq	$2, -136(%rbp)
	jmp	.L3
.L2:
	movq	-144(%rbp), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, -144(%rbp)
	movq	$1, -136(%rbp)
.L3:
	movq	-136(%rbp), %rax
	movl	%eax, -156(%rbp)
	jmp	.L4
.L9:
	movl	-156(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %edx
	movl	-156(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L5
	cmpq	$2, -136(%rbp)
	jne	.L5
	movq	-144(%rbp), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, -144(%rbp)
	movq	$2, -136(%rbp)
	jmp	.L6
.L5:
	movl	-156(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %edx
	movl	-156(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L7
	cmpq	$1, -136(%rbp)
	jne	.L7
	salq	-144(%rbp)
	movq	$2, -136(%rbp)
	jmp	.L6
.L7:
	movl	-156(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %edx
	movl	-156(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L8
	cmpq	$2, -136(%rbp)
	jne	.L8
	movq	$1, -136(%rbp)
	jmp	.L6
.L8:
	movl	-156(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %edx
	movl	-156(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L6
	cmpq	$1, -136(%rbp)
	jne	.L6
	salq	-144(%rbp)
	movq	$1, -136(%rbp)
.L6:
	movq	-136(%rbp), %rax
	movl	%eax, %edx
	movl	-156(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -156(%rbp)
.L4:
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	movq	-152(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L9
	movq	-144(%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, -144(%rbp)
	movq	-144(%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	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%lld%s%s"
.LC1:
	.string	"%lld"
	.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	$160, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movq	$1, -144(%rbp)
	leaq	-64(%rbp), %rcx
	leaq	-128(%rbp), %rdx
	leaq	-152(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movzbl	-128(%rbp), %edx
	movzbl	-127(%rbp), %eax
	cmpb	%al, %dl
	jne	.L2
	movq	-144(%rbp), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	addq	%rax, %rax
	movq	%rax, -144(%rbp)
	movq	$2, -136(%rbp)
	jmp	.L3
.L2:
	movq	-144(%rbp), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, -144(%rbp)
	movq	$1, -136(%rbp)
.L3:
	movq	-136(%rbp), %rax
	movl	%eax, -156(%rbp)
	jmp	.L4
.L9:
	movl	-156(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %edx
	movl	-156(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L5
	cmpq	$2, -136(%rbp)
	jne	.L5
	movq	-144(%rbp), %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	movq	%rax, -144(%rbp)
	movq	$2, -136(%rbp)
	jmp	.L6
.L5:
	movl	-156(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %edx
	movl	-156(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	cmpb	%al, %dl
	jne	.L7
	cmpq	$1, -136(%rbp)
	jne	.L7
	salq	-144(%rbp)
	movq	$2, -136(%rbp)
	jmp	.L6
.L7:
	movl	-156(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %edx
	movl	-156(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L8
	cmpq	$2, -136(%rbp)
	jne	.L8
	movq	$1, -136(%rbp)
	jmp	.L6
.L8:
	movl	-156(%rbp), %eax
	cltq
	movzbl	-128(%rbp,%rax), %edx
	movl	-156(%rbp), %eax
	addl	$1, %eax
	cltq
	movzbl	-128(%rbp,%rax), %eax
	cmpb	%al, %dl
	je	.L6
	cmpq	$1, -136(%rbp)
	jne	.L6
	salq	-144(%rbp)
	movq	$1, -136(%rbp)
.L6:
	movq	-136(%rbp), %rax
	movl	%eax, %edx
	movl	-156(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -156(%rbp)
.L4:
	movl	-156(%rbp), %eax
	movslq	%eax, %rdx
	movq	-152(%rbp), %rax
	cmpq	%rax, %rdx
	jl	.L9
	movq	-144(%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, -144(%rbp)
	movq	-144(%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	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
