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>

int main(void){
    int n;
    int a[100000];
    scanf("%d", &n);
    int i, j, k;
    for(i = 0; i < n; i++){
        scanf("%d", &a[i]);
    }

    long long int ans = 1;
    long long int mod = 1000000007;
    int co[] = {0, 0, 0};
    long long int cnt;
    //とりあえず，先頭の1人を赤，次の人を青と仮定して計算し，後で6倍する
    for(i = 0; i < n; i++){
        cnt = 0;
        for(j = 0; j < 3; j++){
            if(co[j] == a[i]){
                if(cnt == 0){
                    co[j]++;
                }
                cnt++;
            }
        }
        ans *= cnt;
        ans %= mod;
    }
    printf("%lld\n", ans);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.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
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400068(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400064(%rbp)
	jmp	.L2
.L3:
	leaq	-400016(%rbp), %rdx
	movl	-400064(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400064(%rbp)
.L2:
	movl	-400068(%rbp), %eax
	cmpl	%eax, -400064(%rbp)
	jl	.L3
	movq	$1, -400056(%rbp)
	movq	$1000000007, -400040(%rbp)
	movl	$0, -400028(%rbp)
	movl	$0, -400024(%rbp)
	movl	$0, -400020(%rbp)
	movl	$0, -400064(%rbp)
	jmp	.L4
.L9:
	movq	$0, -400048(%rbp)
	movl	$0, -400060(%rbp)
	jmp	.L5
.L8:
	movl	-400060(%rbp), %eax
	cltq
	movl	-400028(%rbp,%rax,4), %edx
	movl	-400064(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L6
	cmpq	$0, -400048(%rbp)
	jne	.L7
	movl	-400060(%rbp), %eax
	cltq
	movl	-400028(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-400060(%rbp), %eax
	cltq
	movl	%edx, -400028(%rbp,%rax,4)
.L7:
	addq	$1, -400048(%rbp)
.L6:
	addl	$1, -400060(%rbp)
.L5:
	cmpl	$2, -400060(%rbp)
	jle	.L8
	movq	-400056(%rbp), %rax
	imulq	-400048(%rbp), %rax
	movq	%rax, -400056(%rbp)
	movq	-400056(%rbp), %rax
	cqto
	idivq	-400040(%rbp)
	movq	%rdx, -400056(%rbp)
	addl	$1, -400064(%rbp)
.L4:
	movl	-400068(%rbp), %eax
	cmpl	%eax, -400064(%rbp)
	jl	.L9
	movq	-400056(%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	"%d"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397352
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2728, %rsp
	.cfi_def_cfa_offset 400080
	leaq	.LC0(%rip), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 400024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %r12
	movq	%r12, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L4
	testl	%eax, %eax
	jle	.L5
	subl	$1, %eax
	leaq	4(%r12), %rcx
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	leaq	(%rcx,%rax,4), %r11
	xorl	%edi, %edi
	movl	$1, %r8d
	movabsq	$-8543223828751151131, %rbx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	cmpl	%esi, %r9d
	je	.L23
	cmpl	%esi, %r10d
	je	.L24
	xorl	%r8d, %r8d
.L9:
	movq	%rcx, %r12
	cmpq	%rcx, %r11
	je	.L3
.L26:
	addq	$4, %rcx
.L13:
	movl	(%r12), %esi
	cmpl	%esi, %edi
	jne	.L25
	addl	$1, %edi
	cmpl	%esi, %r9d
	je	.L16
	cmpl	%esi, %r10d
	jne	.L10
	addq	%r8, %r8
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r8, %rax
	movq	%rcx, %r12
	mulq	%rbx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %r8
	cmpq	%rcx, %r11
	jne	.L26
.L3:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	400024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$400040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	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
.L24:
	.cfi_restore_state
	addl	$1, %r10d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	addl	$1, %r9d
	movl	$1, %eax
	cmpl	%esi, %r10d
	je	.L12
.L28:
	movq	%r8, %rsi
	imulq	%rax, %rsi
	movq	%rsi, %rax
	mulq	%rbx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, %r8
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L16:
	movl	$2, %eax
	cmpl	%esi, %r10d
	jne	.L28
.L12:
	leaq	1(%rax), %rsi
	imulq	%rsi, %r8
	jmp	.L10
.L5:
	movl	$1, %r8d
	jmp	.L3
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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"
.LC1:
	.string	"%lld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	-397312(%rsp), %r11
	.cfi_def_cfa 11, 397352
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$2728, %rsp
	.cfi_def_cfa_offset 400080
	leaq	.LC0(%rip), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movq	%fs:40, %rax
	movq	%rax, 400024(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	leaq	16(%rsp), %r12
	movq	%r12, %rbp
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jle	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	movq	%rbp, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %ebx
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	addq	$4, %rbp
	cmpl	%ebx, %eax
	jg	.L4
	testl	%eax, %eax
	jle	.L5
	subl	$1, %eax
	leaq	4(%r12), %rcx
	xorl	%r10d, %r10d
	xorl	%r9d, %r9d
	leaq	(%rcx,%rax,4), %r11
	xorl	%edi, %edi
	movl	$1, %r8d
	movabsq	$-8543223828751151131, %rbx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	cmpl	%esi, %r9d
	je	.L23
	cmpl	%esi, %r10d
	je	.L24
	xorl	%r8d, %r8d
.L9:
	movq	%rcx, %r12
	cmpq	%rcx, %r11
	je	.L3
.L26:
	addq	$4, %rcx
.L13:
	movl	(%r12), %esi
	cmpl	%esi, %edi
	jne	.L25
	addl	$1, %edi
	cmpl	%esi, %r9d
	je	.L16
	cmpl	%esi, %r10d
	jne	.L10
	addq	%r8, %r8
	.p2align 4,,10
	.p2align 3
.L10:
	movq	%r8, %rax
	movq	%rcx, %r12
	mulq	%rbx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rdx
	subq	%rdx, %r8
	cmpq	%rcx, %r11
	jne	.L26
.L3:
	xorl	%eax, %eax
	movq	%r8, %rdx
	movl	$1, %edi
	leaq	.LC1(%rip), %rsi
	call	__printf_chk@PLT
	movq	400024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L27
	addq	$400040, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	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
.L24:
	.cfi_restore_state
	addl	$1, %r10d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	addl	$1, %r9d
	movl	$1, %eax
	cmpl	%esi, %r10d
	je	.L12
.L28:
	movq	%r8, %rsi
	imulq	%rax, %rsi
	movq	%rsi, %rax
	mulq	%rbx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rsi
	movq	%rsi, %r8
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L16:
	movl	$2, %eax
	cmpl	%esi, %r10d
	jne	.L28
.L12:
	leaq	1(%rax), %rsi
	imulq	%rsi, %r8
	jmp	.L10
.L5:
	movl	$1, %r8d
	jmp	.L3
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.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>

int main(void){
    int n;
    int a[100000];
    scanf("%d", &n);
    int i, j, k;
    for(i = 0; i < n; i++){
        scanf("%d", &a[i]);
    }

    long long int ans = 1;
    long long int mod = 1000000007;
    int co[] = {0, 0, 0};
    long long int cnt;
    //とりあえず，先頭の1人を赤，次の人を青と仮定して計算し，後で6倍する
    for(i = 0; i < n; i++){
        cnt = 0;
        for(j = 0; j < 3; j++){
            if(co[j] == a[i]){
                if(cnt == 0){
                    co[j]++;
                }
                cnt++;
            }
        }
        ans *= cnt;
        ans %= mod;
    }
    printf("%lld\n", ans);
    return 0;
}
54
0 0 1 0 1 2 1 2 3 2 3 3 4 4 5 4 6 5 7 8 5 6 6 7 7 8 8 9 9 10 10 11 9 12 10 13 14 11 11 12 12 20 13 14 14 15 15 15 16 16 16 17 17 17
 6
0 1 2 0 3 4
 6
0 1 1 3 4 5
 54
0 0 1 0 1 2 1 2 3 2 3 3 4 4 5 4 6 5 7 8 5 6 6 7 7 8 8 9 9 10 10 11 9 12 10 13 14 11 11 12 12 9 13 14 14 15 15 15 16 16 16 17 17 17
 6
0 1 0 3 4 5
 54
0 0 1 0 1 2 1 2 3 2 3 3 2 4 5 4 6 5 7 8 5 6 6 7 7 8 8 9 9 10 10 11 9 12 10 13 14 11 11 12 12 9 13 14 14 15 15 15 16 16 16 17 17 17
 6
0 1 0 1 4 5
 54
0 0 1 0 1 2 1 2 6 2 3 3 2 4 5 4 6 5 7 8 5 6 6 7 7 8 8 9 9 10 10 11 9 12 10 13 14 11 11 12 12 9 13 14 14 15 15 15 16 16 16 17 17 17
 6
0 1 0 1 2 5
 54
0 0 1 0 1 2 1 2 6 2 3 3 2 4 5 4 6 5 7 8 5 6 6 7 7 7 8 9 9 10 10 11 9 12 10 13 14 11 11 12 12 9 13 14 14 15 15 15 16 16 16 17 17 17

0
 6
 0
 0
 0
 0
 0
 0
 0
 0

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>

int main(void){
    int n;
    int a[100000];
    scanf("%d", &n);
    int i, j, k;
    for(i = 0; i < n; i++){
        scanf("%d", &a[i]);
    }

    long long int ans = 1;
    long long int mod = 1000000007;
    int co[] = {0, 0, 0};
    long long int cnt;
    //とりあえず，先頭の1人を赤，次の人を青と仮定して計算し，後で6倍する
    for(i = 0; i < n; i++){
        cnt = 0;
        for(j = 0; j < 3; j++){
            if(co[j] == a[i]){
                if(cnt == 0){
                    co[j]++;
                }
                cnt++;
            }
        }
        ans *= cnt;
        ans %= mod;
    }
    printf("%lld\n", ans);
    return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.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
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400068(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400064(%rbp)
	jmp	.L2
.L3:
	leaq	-400016(%rbp), %rdx
	movl	-400064(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400064(%rbp)
.L2:
	movl	-400068(%rbp), %eax
	cmpl	%eax, -400064(%rbp)
	jl	.L3
	movq	$1, -400056(%rbp)
	movq	$1000000007, -400040(%rbp)
	movl	$0, -400028(%rbp)
	movl	$0, -400024(%rbp)
	movl	$0, -400020(%rbp)
	movl	$0, -400064(%rbp)
	jmp	.L4
.L9:
	movq	$0, -400048(%rbp)
	movl	$0, -400060(%rbp)
	jmp	.L5
.L8:
	movl	-400060(%rbp), %eax
	cltq
	movl	-400028(%rbp,%rax,4), %edx
	movl	-400064(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L6
	cmpq	$0, -400048(%rbp)
	jne	.L7
	movl	-400060(%rbp), %eax
	cltq
	movl	-400028(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-400060(%rbp), %eax
	cltq
	movl	%edx, -400028(%rbp,%rax,4)
.L7:
	addq	$1, -400048(%rbp)
.L6:
	addl	$1, -400060(%rbp)
.L5:
	cmpl	$2, -400060(%rbp)
	jle	.L8
	movq	-400056(%rbp), %rax
	imulq	-400048(%rbp), %rax
	movq	%rax, -400056(%rbp)
	movq	-400056(%rbp), %rax
	cqto
	idivq	-400040(%rbp)
	movq	%rdx, -400056(%rbp)
	addl	$1, -400064(%rbp)
.L4:
	movl	-400068(%rbp), %eax
	cmpl	%eax, -400064(%rbp)
	jl	.L9
	movq	-400056(%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.
val
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.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
	leaq	-397312(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$2768, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-400068(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -400064(%rbp)
	jmp	.L2
.L3:
	leaq	-400016(%rbp), %rdx
	movl	-400064(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -400064(%rbp)
.L2:
	movl	-400068(%rbp), %eax
	cmpl	%eax, -400064(%rbp)
	jl	.L3
	movq	$1, -400056(%rbp)
	movq	$1000000007, -400040(%rbp)
	movl	$0, -400028(%rbp)
	movl	$0, -400024(%rbp)
	movl	$0, -400020(%rbp)
	movl	$0, -400064(%rbp)
	jmp	.L4
.L9:
	movq	$0, -400048(%rbp)
	movl	$0, -400060(%rbp)
	jmp	.L5
.L8:
	movl	-400060(%rbp), %eax
	cltq
	movl	-400028(%rbp,%rax,4), %edx
	movl	-400064(%rbp), %eax
	cltq
	movl	-400016(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jne	.L6
	cmpq	$0, -400048(%rbp)
	jne	.L7
	movl	-400060(%rbp), %eax
	cltq
	movl	-400028(%rbp,%rax,4), %eax
	leal	1(%rax), %edx
	movl	-400060(%rbp), %eax
	cltq
	movl	%edx, -400028(%rbp,%rax,4)
.L7:
	addq	$1, -400048(%rbp)
.L6:
	addl	$1, -400060(%rbp)
.L5:
	cmpl	$2, -400060(%rbp)
	jle	.L8
	movq	-400056(%rbp), %rax
	imulq	-400048(%rbp), %rax
	movq	%rax, -400056(%rbp)
	movq	-400056(%rbp), %rax
	cqto
	idivq	-400040(%rbp)
	movq	%rdx, -400056(%rbp)
	addl	$1, -400064(%rbp)
.L4:
	movl	-400068(%rbp), %eax
	cmpl	%eax, -400064(%rbp)
	jl	.L9
	movq	-400056(%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:
