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 n;

int saiki(int ima)
{
	if (ima == n)
	{
		return 1;
	}

	if (ima > n)
	{
		return 0;
	}
	
	int res=0;

	res +=saiki(ima+1)+saiki(ima+2)+saiki(ima+3);
	return res; 
}
int main()
{
	int x = saiki(0);
	for(;;)
	{
		scanf("%d", &n);
		if (n==0)
		{
			break;
		}
		printf("%d\n", saiki(0)/ 10 / 365 +1);

	}

	

	
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.text
	.globl	saiki
	.type	saiki, @function
saiki:
.LFB0:
	.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
	movl	%edi, -36(%rbp)
	movl	n(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jne	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jle	.L4
	movl	$0, %eax
	jmp	.L3
.L4:
	movl	$0, -20(%rbp)
	movl	-36(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edi
	call	saiki
	movl	%eax, %ebx
	movl	-36(%rbp), %eax
	addl	$2, %eax
	movl	%eax, %edi
	call	saiki
	addl	%eax, %ebx
	movl	-36(%rbp), %eax
	addl	$3, %eax
	movl	%eax, %edi
	call	saiki
	addl	%ebx, %eax
	addl	%eax, -20(%rbp)
	movl	-20(%rbp), %eax
.L3:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	saiki, .-saiki
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\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
	subq	$16, %rsp
	movl	$0, %edi
	call	saiki
	movl	%eax, -4(%rbp)
.L8:
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L11
	movl	$0, %edi
	call	saiki
	movslq	%eax, %rdx
	imulq	$602472125, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$9, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L8
.L11:
	nop
	movl	$0, %eax
	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	saiki
	.type	saiki, @function
saiki:
.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	$88, %rsp
	.cfi_def_cfa_offset 144
	movl	n(%rip), %r15d
	cmpl	%r15d, %edi
	je	.L116
	movl	%edi, %eax
	leal	2(%rdi), %ecx
	movl	$0, 72(%rsp)
	addl	$1, %eax
	movl	%ecx, 60(%rsp)
	movl	%eax, 68(%rsp)
	leal	2(%r15), %eax
	movl	%eax, 76(%rsp)
	leal	-1(%r15), %eax
	movl	%eax, 32(%rsp)
	leal	-2(%r15), %eax
	movl	%eax, 12(%rsp)
.L115:
	movl	60(%rsp), %ecx
	leal	-2(%rcx), %eax
	cmpl	%eax, %r15d
	jl	.L1
	cmpl	%r15d, 68(%rsp)
	je	.L117
	jg	.L118
	leal	1(%rcx), %eax
	movl	%ecx, 52(%rsp)
	movl	%r15d, %ebp
	movl	%eax, 48(%rsp)
	movl	$0, 56(%rsp)
	cmpl	%ebp, 52(%rsp)
	je	.L119
.L218:
	jg	.L120
	movl	48(%rsp), %eax
	movl	$0, 40(%rsp)
	leal	1(%rax), %edx
	movl	%eax, 36(%rsp)
	movl	%edx, 24(%rsp)
	cmpl	%ebp, 36(%rsp)
	je	.L121
.L200:
	jg	.L122
	movl	24(%rsp), %r15d
	movl	%ebp, %r14d
	movl	$0, 16(%rsp)
	leal	1(%r15), %r12d
	movl	%r15d, %ebx
	cmpl	%r14d, %r15d
	je	.L123
.L191:
	movl	$0, %r13d
	jg	.L9
.L10:
	leal	1(%rbx), %edi
	call	saiki
	leal	2(%rbx), %edi
	addl	$3, %ebx
	movl	%eax, %ebp
	call	saiki
	addl	%eax, %ebp
	addl	%ebp, %r13d
	cmpl	%r14d, %ebx
	je	.L187
	jle	.L10
.L9:
	movl	%r12d, %ebx
	cmpl	%r14d, %r12d
	je	.L188
.L12:
	jg	.L13
	xorl	%ebp, %ebp
	movl	%r12d, 20(%rsp)
	movl	%r14d, %r12d
	movl	%ebp, %r14d
	movl	%ebx, %ebp
.L14:
	leal	1(%rbp), %edi
	call	saiki
	leal	2(%rbp), %edi
	addl	$3, %ebp
	movl	%eax, %ebx
	call	saiki
	addl	%eax, %ebx
	addl	%ebx, %r14d
	cmpl	%r12d, %ebp
	je	.L189
	jle	.L14
	movl	%r14d, %ebp
	movl	%r12d, %r14d
	movl	20(%rsp), %r12d
	addl	%ebp, %r13d
.L13:
	addl	%r13d, 16(%rsp)
	cmpl	%r15d, 12(%rsp)
	je	.L190
.L16:
	leal	3(%r15), %eax
	addl	$2, %r15d
	addl	$3, %r12d
	cmpl	%r15d, %r14d
	jl	.L172
	movl	%eax, %r15d
	movl	%r15d, %ebx
	cmpl	%r14d, %r15d
	jne	.L191
.L123:
	movl	$1, %r13d
	movl	%r12d, %ebx
	cmpl	%r14d, %r12d
	jne	.L12
	.p2align 4,,10
	.p2align 3
.L188:
	addl	$1, %r13d
	addl	%r13d, 16(%rsp)
	cmpl	%r15d, 12(%rsp)
	jne	.L16
	.p2align 4,,10
	.p2align 3
.L190:
	addl	$1, 16(%rsp)
	movl	%r14d, %ebp
.L7:
	cmpl	%ebp, 24(%rsp)
	je	.L192
.L17:
	jg	.L18
	movl	24(%rsp), %eax
	movl	%ebp, %r15d
	movl	$0, 28(%rsp)
	leal	1(%rax), %r14d
	leal	2(%rax), %r12d
	movl	%r14d, %ebx
	cmpl	%r15d, %r14d
	je	.L126
.L198:
	movl	$0, %r13d
	jg	.L21
.L22:
	leal	1(%rbx), %edi
	call	saiki
	leal	2(%rbx), %edi
	addl	$3, %ebx
	movl	%eax, %ebp
	call	saiki
	addl	%eax, %ebp
	addl	%ebp, %r13d
	cmpl	%r15d, %ebx
	je	.L193
	jle	.L22
.L21:
	movl	%r12d, %ebx
	cmpl	%r15d, %r12d
	je	.L194
.L24:
	jg	.L25
	xorl	%ebp, %ebp
	movl	%r12d, 20(%rsp)
	movl	%r15d, %r12d
	movl	%ebp, %r15d
	movl	%ebx, %ebp
.L26:
	leal	1(%rbp), %edi
	call	saiki
	leal	2(%rbp), %edi
	addl	$3, %ebp
	movl	%eax, %ebx
	call	saiki
	addl	%eax, %ebx
	addl	%ebx, %r15d
	cmpl	%r12d, %ebp
	je	.L195
	jle	.L26
	movl	%r15d, %ebp
	movl	%r12d, %r15d
	movl	20(%rsp), %r12d
	addl	%ebp, %r13d
.L25:
	addl	%r13d, 28(%rsp)
	cmpl	%r14d, 12(%rsp)
	je	.L196
.L28:
	leal	3(%r14), %eax
	addl	$2, %r14d
	addl	$3, %r12d
	cmpl	%r14d, %r15d
	jl	.L197
	movl	%eax, %r14d
	movl	%r14d, %ebx
	cmpl	%r15d, %r14d
	jne	.L198
.L126:
	movl	$1, %r13d
	movl	%r12d, %ebx
	cmpl	%r15d, %r12d
	jne	.L24
	.p2align 4,,10
	.p2align 3
.L194:
	addl	$1, %r13d
	addl	%r13d, 28(%rsp)
	cmpl	%r14d, 12(%rsp)
	jne	.L28
	.p2align 4,,10
	.p2align 3
.L196:
	movl	16(%rsp), %ecx
	movl	28(%rsp), %eax
	movl	%r15d, %ebp
	leal	1(%rax,%rcx), %eax
	movl	%eax, 16(%rsp)
.L18:
	movl	16(%rsp), %esi
	movl	24(%rsp), %ecx
	addl	%esi, 40(%rsp)
	cmpl	%ecx, 32(%rsp)
	je	.L199
	leal	1(%rcx), %r14d
	addl	$3, 36(%rsp)
	leal	3(%rcx), %eax
	cmpl	%r14d, %ebp
	jl	.L5
	movl	%eax, 24(%rsp)
	cmpl	%ebp, 36(%rsp)
	jne	.L200
.L121:
	movl	$1, 16(%rsp)
	cmpl	%ebp, 24(%rsp)
	jne	.L17
.L192:
	addl	$1, 16(%rsp)
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L189:
	movl	%r14d, %ebp
	movl	%r12d, %r14d
	movl	20(%rsp), %r12d
	leal	1(%rbp,%r13), %r13d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L187:
	addl	$1, %r13d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L195:
	movl	%r15d, %ebp
	movl	%r12d, %r15d
	movl	20(%rsp), %r12d
	leal	1(%rbp,%r13), %r13d
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L193:
	addl	$1, %r13d
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L197:
	movl	28(%rsp), %ecx
	movl	%r15d, %ebp
	addl	%ecx, 16(%rsp)
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L172:
	movl	%r14d, %ebp
	jmp	.L7
.L199:
	addl	$1, 40(%rsp)
.L5:
	cmpl	%ebp, 48(%rsp)
	je	.L201
.L30:
	jg	.L31
	movl	48(%rsp), %eax
	movl	$0, 44(%rsp)
	leal	1(%rax), %ecx
	addl	$2, %eax
	movl	%ecx, 36(%rsp)
	movl	%eax, 24(%rsp)
	cmpl	%ebp, 36(%rsp)
	je	.L129
.L216:
	jg	.L130
	movl	24(%rsp), %r15d
	movl	%ebp, %r14d
	movl	$0, 16(%rsp)
	leal	1(%r15), %r12d
	movl	%r15d, %ebx
	cmpl	%r14d, %r15d
	je	.L131
.L206:
	movl	$0, %r13d
	jg	.L36
.L37:
	leal	1(%rbx), %edi
	call	saiki
	leal	2(%rbx), %edi
	addl	$3, %ebx
	movl	%eax, %ebp
	call	saiki
	addl	%eax, %ebp
	addl	%ebp, %r13d
	cmpl	%ebx, %r14d
	je	.L202
	jge	.L37
.L36:
	movl	%r12d, %ebx
	cmpl	%r14d, %r12d
	je	.L203
.L39:
	jg	.L40
	xorl	%ebp, %ebp
	movl	%r12d, 20(%rsp)
	movl	%r14d, %r12d
	movl	%ebp, %r14d
	movl	%ebx, %ebp
.L41:
	leal	1(%rbp), %edi
	call	saiki
	leal	2(%rbp), %edi
	addl	$3, %ebp
	movl	%eax, %ebx
	call	saiki
	addl	%eax, %ebx
	addl	%ebx, %r14d
	cmpl	%r12d, %ebp
	je	.L204
	jle	.L41
	movl	%r14d, %ebp
	movl	%r12d, %r14d
	movl	20(%rsp), %r12d
	addl	%ebp, %r13d
.L40:
	addl	%r13d, 16(%rsp)
	cmpl	%r15d, 12(%rsp)
	je	.L205
.L43:
	leal	3(%r15), %eax
	addl	$2, %r15d
	addl	$3, %r12d
	cmpl	%r15d, %r14d
	jl	.L175
	movl	%eax, %r15d
	movl	%r15d, %ebx
	cmpl	%r14d, %r15d
	jne	.L206
.L131:
	movl	$1, %r13d
	movl	%r12d, %ebx
	cmpl	%r14d, %r12d
	jne	.L39
	.p2align 4,,10
	.p2align 3
.L203:
	addl	$1, %r13d
	addl	%r13d, 16(%rsp)
	cmpl	%r15d, 12(%rsp)
	jne	.L43
	.p2align 4,,10
	.p2align 3
.L205:
	addl	$1, 16(%rsp)
	movl	%r14d, %ebp
.L34:
	cmpl	%ebp, 24(%rsp)
	je	.L207
.L44:
	jg	.L45
	movl	24(%rsp), %eax
	movl	%ebp, %r15d
	movl	$0, 28(%rsp)
	leal	1(%rax), %r14d
	leal	2(%rax), %r12d
	movl	%r14d, %ebx
	cmpl	%r15d, %r14d
	je	.L134
.L213:
	movl	$0, %r13d
	jg	.L48
.L49:
	leal	1(%rbx), %edi
	call	saiki
	leal	2(%rbx), %edi
	addl	$3, %ebx
	movl	%eax, %ebp
	call	saiki
	addl	%eax, %ebp
	addl	%ebp, %r13d
	cmpl	%ebx, %r15d
	je	.L208
	jge	.L49
.L48:
	movl	%r12d, %ebx
	cmpl	%r15d, %r12d
	je	.L209
.L51:
	jg	.L52
	xorl	%ebp, %ebp
	movl	%r12d, 20(%rsp)
	movl	%r15d, %r12d
	movl	%ebp, %r15d
	movl	%ebx, %ebp
.L53:
	leal	1(%rbp), %edi
	call	saiki
	leal	2(%rbp), %edi
	addl	$3, %ebp
	movl	%eax, %ebx
	call	saiki
	addl	%eax, %ebx
	addl	%ebx, %r15d
	cmpl	%ebp, %r12d
	je	.L210
	jge	.L53
	movl	%r15d, %ebp
	movl	%r12d, %r15d
	movl	20(%rsp), %r12d
	addl	%ebp, %r13d
.L52:
	addl	%r13d, 28(%rsp)
	cmpl	%r14d, 12(%rsp)
	je	.L211
.L55:
	leal	3(%r14), %eax
	addl	$2, %r14d
	addl	$3, %r12d
	cmpl	%r14d, %r15d
	jl	.L212
	movl	%eax, %r14d
	movl	%r14d, %ebx
	cmpl	%r15d, %r14d
	jne	.L213
.L134:
	movl	$1, %r13d
	movl	%r12d, %ebx
	cmpl	%r15d, %r12d
	jne	.L51
	.p2align 4,,10
	.p2align 3
.L209:
	addl	$1, %r13d
	addl	%r13d, 28(%rsp)
	cmpl	%r14d, 12(%rsp)
	jne	.L55
	.p2align 4,,10
	.p2align 3
.L211:
	movl	16(%rsp), %ecx
	movl	28(%rsp), %eax
	movl	%r15d, %ebp
	leal	1(%rax,%rcx), %eax
	movl	%eax, 16(%rsp)
.L45:
	movl	16(%rsp), %esi
	movl	24(%rsp), %ecx
	addl	%esi, 44(%rsp)
	cmpl	%ecx, 32(%rsp)
	je	.L214
	leal	1(%rcx), %r14d
	addl	$3, 36(%rsp)
	leal	3(%rcx), %eax
	cmpl	%r14d, %ebp
	jl	.L215
	movl	%eax, 24(%rsp)
	cmpl	%ebp, 36(%rsp)
	jne	.L216
.L129:
	movl	$1, 16(%rsp)
	cmpl	%ebp, 24(%rsp)
	jne	.L44
.L207:
	addl	$1, 16(%rsp)
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L204:
	movl	%r14d, %ebp
	movl	%r12d, %r14d
	movl	20(%rsp), %r12d
	leal	1(%rbp,%r13), %r13d
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L202:
	addl	$1, %r13d
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L210:
	movl	%r15d, %ebp
	movl	%r12d, %r15d
	movl	20(%rsp), %r12d
	leal	1(%rbp,%r13), %r13d
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L208:
	addl	$1, %r13d
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L175:
	movl	%r14d, %ebp
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L212:
	movl	28(%rsp), %esi
	movl	%r15d, %ebp
	addl	%esi, 16(%rsp)
	jmp	.L45
.L214:
	movl	40(%rsp), %esi
	movl	44(%rsp), %eax
	leal	1(%rax,%rsi), %eax
	movl	%eax, 40(%rsp)
.L31:
	movl	40(%rsp), %esi
	movl	48(%rsp), %edx
	addl	%esi, 56(%rsp)
	cmpl	%edx, 32(%rsp)
	je	.L217
	movl	%edx, %eax
	addl	$3, 52(%rsp)
	leal	3(%rdx), %ecx
	addl	$1, %eax
	cmpl	%eax, %ebp
	jl	.L170
	movl	%ecx, 48(%rsp)
	cmpl	%ebp, 52(%rsp)
	jne	.L218
.L119:
	movl	$1, 40(%rsp)
	cmpl	%ebp, 48(%rsp)
	jne	.L30
.L201:
	addl	$1, 40(%rsp)
	jmp	.L31
.L130:
	movl	$0, 16(%rsp)
	jmp	.L34
.L122:
	movl	$0, 16(%rsp)
	jmp	.L7
.L215:
	movl	44(%rsp), %esi
	addl	%esi, 40(%rsp)
	jmp	.L31
.L217:
	addl	$1, 56(%rsp)
	movl	%ebp, %r15d
.L3:
	cmpl	%r15d, 60(%rsp)
	je	.L219
.L58:
	jg	.L59
	movl	60(%rsp), %eax
	movl	$0, 64(%rsp)
	movl	%r15d, %ebp
	leal	1(%rax), %edx
	addl	$2, %eax
	movl	%edx, 52(%rsp)
	movl	%eax, 48(%rsp)
	cmpl	%ebp, 52(%rsp)
	je	.L137
.L252:
	jg	.L138
	movl	48(%rsp), %eax
	movl	$0, 40(%rsp)
	leal	1(%rax), %esi
	movl	%eax, 36(%rsp)
	movl	%esi, 24(%rsp)
	cmpl	36(%rsp), %ebp
	je	.L139
.L233:
	jl	.L140
	movl	24(%rsp), %r15d
	movl	%ebp, %r14d
	movl	$0, 16(%rsp)
	leal	1(%r15), %r12d
	movl	%r15d, %ebx
	cmpl	%r15d, %r14d
	je	.L141
.L224:
	movl	$0, %r13d
	jl	.L66
.L67:
	leal	1(%rbx), %edi
	call	saiki
	leal	2(%rbx), %edi
	addl	$3, %ebx
	movl	%eax, %ebp
	call	saiki
	addl	%eax, %ebp
	addl	%ebp, %r13d
	cmpl	%ebx, %r14d
	je	.L220
	jge	.L67
.L66:
	movl	%r12d, %ebx
	cmpl	%r12d, %r14d
	je	.L221
.L69:
	jl	.L70
	xorl	%ebp, %ebp
	movl	%r12d, 20(%rsp)
	movl	%r14d, %r12d
	movl	%ebp, %r14d
	movl	%ebx, %ebp
.L71:
	leal	1(%rbp), %edi
	call	saiki
	leal	2(%rbp), %edi
	addl	$3, %ebp
	movl	%eax, %ebx
	call	saiki
	addl	%eax, %ebx
	addl	%ebx, %r14d
	cmpl	%ebp, %r12d
	je	.L222
	jge	.L71
	movl	%r14d, %ebp
	movl	%r12d, %r14d
	movl	20(%rsp), %r12d
	addl	%ebp, %r13d
.L70:
	addl	%r13d, 16(%rsp)
	cmpl	%r15d, 12(%rsp)
	je	.L223
.L73:
	leal	3(%r15), %eax
	addl	$2, %r15d
	addl	$3, %r12d
	cmpl	%r15d, %r14d
	jl	.L179
	movl	%eax, %r15d
	movl	%r15d, %ebx
	cmpl	%r15d, %r14d
	jne	.L224
.L141:
	movl	$1, %r13d
	movl	%r12d, %ebx
	cmpl	%r12d, %r14d
	jne	.L69
	.p2align 4,,10
	.p2align 3
.L221:
	addl	$1, %r13d
	addl	%r13d, 16(%rsp)
	cmpl	%r15d, 12(%rsp)
	jne	.L73
	.p2align 4,,10
	.p2align 3
.L223:
	addl	$1, 16(%rsp)
	movl	%r14d, %ebp
.L64:
	cmpl	24(%rsp), %ebp
	je	.L225
.L74:
	jl	.L75
	movl	24(%rsp), %eax
	movl	%ebp, %r15d
	movl	$0, 28(%rsp)
	leal	1(%rax), %r14d
	leal	2(%rax), %r12d
	movl	%r14d, %ebx
	cmpl	%r14d, %r15d
	je	.L144
.L231:
	movl	$0, %r13d
	jl	.L78
.L79:
	leal	1(%rbx), %edi
	call	saiki
	leal	2(%rbx), %edi
	addl	$3, %ebx
	movl	%eax, %ebp
	call	saiki
	addl	%eax, %ebp
	addl	%ebp, %r13d
	cmpl	%ebx, %r15d
	je	.L226
	jge	.L79
.L78:
	movl	%r12d, %ebx
	cmpl	%r12d, %r15d
	je	.L227
.L81:
	jl	.L82
	xorl	%ebp, %ebp
	movl	%r12d, 20(%rsp)
	movl	%r15d, %r12d
	movl	%ebp, %r15d
	movl	%ebx, %ebp
.L83:
	leal	1(%rbp), %edi
	call	saiki
	leal	2(%rbp), %edi
	addl	$3, %ebp
	movl	%eax, %ebx
	call	saiki
	addl	%eax, %ebx
	addl	%ebx, %r15d
	cmpl	%ebp, %r12d
	je	.L228
	jge	.L83
	movl	%r15d, %ebp
	movl	%r12d, %r15d
	movl	20(%rsp), %r12d
	addl	%ebp, %r13d
.L82:
	addl	%r13d, 28(%rsp)
	cmpl	%r14d, 12(%rsp)
	je	.L229
.L85:
	leal	3(%r14), %eax
	addl	$2, %r14d
	addl	$3, %r12d
	cmpl	%r14d, %r15d
	jl	.L230
	movl	%eax, %r14d
	movl	%r14d, %ebx
	cmpl	%r14d, %r15d
	jne	.L231
.L144:
	movl	$1, %r13d
	movl	%r12d, %ebx
	cmpl	%r12d, %r15d
	jne	.L81
	.p2align 4,,10
	.p2align 3
.L227:
	addl	$1, %r13d
	addl	%r13d, 28(%rsp)
	cmpl	%r14d, 12(%rsp)
	jne	.L85
	.p2align 4,,10
	.p2align 3
.L229:
	movl	16(%rsp), %eax
	movl	28(%rsp), %esi
	movl	%r15d, %ebp
	leal	1(%rax,%rsi), %eax
	movl	%eax, 16(%rsp)
.L75:
	movl	16(%rsp), %esi
	movl	24(%rsp), %ecx
	addl	%esi, 40(%rsp)
	cmpl	%ecx, 32(%rsp)
	je	.L232
	leal	1(%rcx), %r14d
	addl	$3, 36(%rsp)
	leal	3(%rcx), %eax
	cmpl	%r14d, %ebp
	jl	.L62
	movl	%eax, 24(%rsp)
	cmpl	36(%rsp), %ebp
	jne	.L233
.L139:
	movl	$1, 16(%rsp)
	cmpl	24(%rsp), %ebp
	jne	.L74
.L225:
	addl	$1, 16(%rsp)
	jmp	.L75
	.p2align 4,,10
	.p2align 3
.L222:
	movl	%r14d, %ebp
	movl	%r12d, %r14d
	movl	20(%rsp), %r12d
	leal	1(%rbp,%r13), %r13d
	jmp	.L70
	.p2align 4,,10
	.p2align 3
.L220:
	addl	$1, %r13d
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L228:
	movl	%r15d, %ebp
	movl	%r12d, %r15d
	movl	20(%rsp), %r12d
	leal	1(%rbp,%r13), %r13d
	jmp	.L82
	.p2align 4,,10
	.p2align 3
.L226:
	addl	$1, %r13d
	jmp	.L78
	.p2align 4,,10
	.p2align 3
.L230:
	movl	28(%rsp), %edx
	movl	%r15d, %ebp
	addl	%edx, 16(%rsp)
	jmp	.L75
	.p2align 4,,10
	.p2align 3
.L179:
	movl	%r14d, %ebp
	jmp	.L64
.L232:
	addl	$1, 40(%rsp)
.L62:
	cmpl	%ebp, 48(%rsp)
	je	.L234
.L87:
	jg	.L88
	movl	48(%rsp), %eax
	movl	$0, 44(%rsp)
	leal	1(%rax), %edx
	addl	$2, %eax
	movl	%edx, 36(%rsp)
	movl	%eax, 24(%rsp)
	cmpl	36(%rsp), %ebp
	je	.L147
.L249:
	jl	.L148
	movl	24(%rsp), %r15d
	movl	%ebp, %r14d
	movl	$0, 16(%rsp)
	leal	1(%r15), %r12d
	movl	%r15d, %ebx
	cmpl	%r15d, %r14d
	je	.L149
.L239:
	movl	$0, %r13d
	jl	.L93
.L94:
	leal	1(%rbx), %edi
	call	saiki
	leal	2(%rbx), %edi
	addl	$3, %ebx
	movl	%eax, %ebp
	call	saiki
	addl	%eax, %ebp
	addl	%ebp, %r13d
	cmpl	%ebx, %r14d
	je	.L235
	jge	.L94
.L93:
	movl	%r12d, %ebx
	cmpl	%r12d, %r14d
	je	.L236
.L96:
	jl	.L97
	xorl	%ebp, %ebp
	movl	%r12d, 20(%rsp)
	movl	%r14d, %r12d
	movl	%ebp, %r14d
	movl	%ebx, %ebp
.L98:
	leal	1(%rbp), %edi
	call	saiki
	leal	2(%rbp), %edi
	addl	$3, %ebp
	movl	%eax, %ebx
	call	saiki
	addl	%eax, %ebx
	addl	%ebx, %r14d
	cmpl	%ebp, %r12d
	je	.L237
	jge	.L98
	movl	%r14d, %ebp
	movl	%r12d, %r14d
	movl	20(%rsp), %r12d
	addl	%ebp, %r13d
.L97:
	addl	%r13d, 16(%rsp)
	cmpl	%r15d, 12(%rsp)
	je	.L238
.L100:
	leal	3(%r15), %eax
	addl	$2, %r15d
	addl	$3, %r12d
	cmpl	%r15d, %r14d
	jl	.L182
	movl	%eax, %r15d
	movl	%r15d, %ebx
	cmpl	%r15d, %r14d
	jne	.L239
.L149:
	movl	$1, %r13d
	movl	%r12d, %ebx
	cmpl	%r12d, %r14d
	jne	.L96
	.p2align 4,,10
	.p2align 3
.L236:
	addl	$1, %r13d
	addl	%r13d, 16(%rsp)
	cmpl	%r15d, 12(%rsp)
	jne	.L100
	.p2align 4,,10
	.p2align 3
.L238:
	addl	$1, 16(%rsp)
	movl	%r14d, %ebp
.L91:
	cmpl	24(%rsp), %ebp
	je	.L240
.L101:
	jl	.L102
	movl	24(%rsp), %eax
	movl	%ebp, %r15d
	movl	$0, 28(%rsp)
	leal	1(%rax), %r14d
	leal	2(%rax), %r12d
	movl	%r14d, %ebx
	cmpl	%r14d, %r15d
	je	.L152
.L246:
	movl	$0, %r13d
	jl	.L105
.L106:
	leal	1(%rbx), %edi
	call	saiki
	leal	2(%rbx), %edi
	addl	$3, %ebx
	movl	%eax, %ebp
	call	saiki
	addl	%eax, %ebp
	addl	%ebp, %r13d
	cmpl	%ebx, %r15d
	je	.L241
	jge	.L106
.L105:
	movl	%r12d, %ebx
	cmpl	%r12d, %r15d
	je	.L242
.L108:
	jl	.L109
	xorl	%ebp, %ebp
	movl	%r12d, 20(%rsp)
	movl	%r15d, %r12d
	movl	%ebp, %r15d
	movl	%ebx, %ebp
.L110:
	leal	1(%rbp), %edi
	call	saiki
	leal	2(%rbp), %edi
	addl	$3, %ebp
	movl	%eax, %ebx
	call	saiki
	addl	%eax, %ebx
	addl	%ebx, %r15d
	cmpl	%ebp, %r12d
	je	.L243
	jge	.L110
	movl	%r15d, %ebp
	movl	%r12d, %r15d
	movl	20(%rsp), %r12d
	addl	%ebp, %r13d
.L109:
	addl	%r13d, 28(%rsp)
	cmpl	12(%rsp), %r14d
	je	.L244
.L112:
	leal	3(%r14), %eax
	addl	$2, %r14d
	addl	$3, %r12d
	cmpl	%r14d, %r15d
	jl	.L245
	movl	%eax, %r14d
	movl	%r14d, %ebx
	cmpl	%r14d, %r15d
	jne	.L246
.L152:
	movl	$1, %r13d
	movl	%r12d, %ebx
	cmpl	%r12d, %r15d
	jne	.L108
	.p2align 4,,10
	.p2align 3
.L242:
	addl	$1, %r13d
	addl	%r13d, 28(%rsp)
	cmpl	12(%rsp), %r14d
	jne	.L112
	.p2align 4,,10
	.p2align 3
.L244:
	movl	16(%rsp), %eax
	movl	28(%rsp), %edx
	movl	%r15d, %ebp
	leal	1(%rax,%rdx), %eax
	movl	%eax, 16(%rsp)
.L102:
	movl	16(%rsp), %esi
	movl	24(%rsp), %edx
	addl	%esi, 44(%rsp)
	cmpl	%edx, 32(%rsp)
	je	.L247
	leal	1(%rdx), %r14d
	addl	$3, 36(%rsp)
	leal	3(%rdx), %eax
	cmpl	%r14d, %ebp
	jl	.L248
	movl	%eax, 24(%rsp)
	cmpl	36(%rsp), %ebp
	jne	.L249
.L147:
	movl	$1, 16(%rsp)
	cmpl	24(%rsp), %ebp
	jne	.L101
.L240:
	addl	$1, 16(%rsp)
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L237:
	movl	%r14d, %ebp
	movl	%r12d, %r14d
	movl	20(%rsp), %r12d
	leal	1(%rbp,%r13), %r13d
	jmp	.L97
	.p2align 4,,10
	.p2align 3
.L235:
	addl	$1, %r13d
	jmp	.L93
	.p2align 4,,10
	.p2align 3
.L243:
	movl	%r15d, %ebp
	movl	%r12d, %r15d
	movl	20(%rsp), %r12d
	leal	1(%rbp,%r13), %r13d
	jmp	.L109
	.p2align 4,,10
	.p2align 3
.L241:
	addl	$1, %r13d
	jmp	.L105
	.p2align 4,,10
	.p2align 3
.L182:
	movl	%r14d, %ebp
	jmp	.L91
	.p2align 4,,10
	.p2align 3
.L245:
	movl	28(%rsp), %ecx
	movl	%r15d, %ebp
	addl	%ecx, 16(%rsp)
	jmp	.L102
.L247:
	movl	40(%rsp), %edx
	movl	44(%rsp), %eax
	leal	1(%rax,%rdx), %eax
	movl	%eax, 40(%rsp)
.L88:
	movl	40(%rsp), %ecx
	movl	48(%rsp), %esi
	addl	%ecx, 64(%rsp)
	cmpl	%esi, 32(%rsp)
	je	.L250
	movl	%esi, %eax
	addl	$3, 52(%rsp)
	leal	3(%rsi), %ecx
	addl	$1, %eax
	cmpl	%eax, %ebp
	jl	.L251
	movl	%ecx, 48(%rsp)
	cmpl	%ebp, 52(%rsp)
	jne	.L252
.L137:
	movl	$1, 40(%rsp)
	cmpl	%ebp, 48(%rsp)
	jne	.L87
.L234:
	addl	$1, 40(%rsp)
	jmp	.L88
.L140:
	movl	$0, 16(%rsp)
	jmp	.L64
.L248:
	movl	44(%rsp), %edx
	addl	%edx, 40(%rsp)
	jmp	.L88
.L148:
	movl	$0, 16(%rsp)
	jmp	.L91
.L250:
	movl	56(%rsp), %esi
	movl	64(%rsp), %eax
	movl	%ebp, %r15d
	leal	1(%rax,%rsi), %eax
	movl	%eax, 56(%rsp)
.L59:
	addl	$3, 60(%rsp)
	movl	56(%rsp), %esi
	addl	$3, 68(%rsp)
	movl	60(%rsp), %eax
	addl	%esi, 72(%rsp)
	cmpl	%eax, 76(%rsp)
	jne	.L115
	addl	$1, 72(%rsp)
.L1:
	movl	72(%rsp), %eax
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L251:
	.cfi_restore_state
	movl	64(%rsp), %ecx
	movl	%ebp, %r15d
	addl	%ecx, 56(%rsp)
	jmp	.L59
.L120:
	movl	$0, 40(%rsp)
	jmp	.L5
.L138:
	movl	$0, 40(%rsp)
	jmp	.L62
.L170:
	movl	%ebp, %r15d
	cmpl	%r15d, 60(%rsp)
	jne	.L58
.L219:
	addl	$1, 56(%rsp)
	jmp	.L59
.L118:
	movl	$0, 56(%rsp)
	jmp	.L3
.L117:
	movl	$1, 56(%rsp)
	jmp	.L3
.L116:
	movl	$1, 72(%rsp)
	jmp	.L1
	.cfi_endproc
.LFE23:
	.size	saiki, .-saiki
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xorl	%edi, %edi
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	n(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	.LC0(%rip), %rbx
	call	saiki
	.p2align 4,,10
	.p2align 3
.L257:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %r11d
	testl	%r11d, %r11d
	je	.L254
	xorl	%r10d, %r10d
	xorl	%r8d, %r8d
.L256:
	cmpl	%r8d, %r11d
	jl	.L255
	leal	1(%r8), %edi
	call	saiki
	leal	2(%r8), %edi
	addl	$3, %r8d
	movl	%eax, %r9d
	call	saiki
	addl	%eax, %r9d
	addl	%r9d, %r10d
	cmpl	%r8d, %r11d
	jne	.L256
	addl	$1, %r10d
.L255:
	movslq	%r10d, %rdx
	sarl	$31, %r10d
	movq	%r12, %rsi
	movl	$1, %edi
	imulq	$602472125, %rdx, %rdx
	xorl	%eax, %eax
	sarq	$41, %rdx
	subl	%r10d, %edx
	addl	$1, %edx
	call	__printf_chk@PLT
	jmp	.L257
	.p2align 4,,10
	.p2align 3
.L254:
	popq	%rbx
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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	saiki
	.type	saiki, @function
saiki:
.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	$88, %rsp
	.cfi_def_cfa_offset 144
	movl	n(%rip), %r15d
	cmpl	%r15d, %edi
	je	.L116
	movl	%edi, %eax
	leal	2(%rdi), %ecx
	movl	$0, 72(%rsp)
	addl	$1, %eax
	movl	%ecx, 60(%rsp)
	movl	%eax, 68(%rsp)
	leal	2(%r15), %eax
	movl	%eax, 76(%rsp)
	leal	-1(%r15), %eax
	movl	%eax, 32(%rsp)
	leal	-2(%r15), %eax
	movl	%eax, 12(%rsp)
.L115:
	movl	60(%rsp), %ecx
	leal	-2(%rcx), %eax
	cmpl	%eax, %r15d
	jl	.L1
	cmpl	%r15d, 68(%rsp)
	je	.L117
	jg	.L118
	leal	1(%rcx), %eax
	movl	%ecx, 52(%rsp)
	movl	%r15d, %ebp
	movl	%eax, 48(%rsp)
	movl	$0, 56(%rsp)
	cmpl	%ebp, 52(%rsp)
	je	.L119
.L218:
	jg	.L120
	movl	48(%rsp), %eax
	movl	$0, 40(%rsp)
	leal	1(%rax), %edx
	movl	%eax, 36(%rsp)
	movl	%edx, 24(%rsp)
	cmpl	%ebp, 36(%rsp)
	je	.L121
.L200:
	jg	.L122
	movl	24(%rsp), %r15d
	movl	%ebp, %r14d
	movl	$0, 16(%rsp)
	leal	1(%r15), %r12d
	movl	%r15d, %ebx
	cmpl	%r14d, %r15d
	je	.L123
.L191:
	movl	$0, %r13d
	jg	.L9
.L10:
	leal	1(%rbx), %edi
	call	saiki
	leal	2(%rbx), %edi
	addl	$3, %ebx
	movl	%eax, %ebp
	call	saiki
	addl	%eax, %ebp
	addl	%ebp, %r13d
	cmpl	%r14d, %ebx
	je	.L187
	jle	.L10
.L9:
	movl	%r12d, %ebx
	cmpl	%r14d, %r12d
	je	.L188
.L12:
	jg	.L13
	xorl	%ebp, %ebp
	movl	%r12d, 20(%rsp)
	movl	%r14d, %r12d
	movl	%ebp, %r14d
	movl	%ebx, %ebp
.L14:
	leal	1(%rbp), %edi
	call	saiki
	leal	2(%rbp), %edi
	addl	$3, %ebp
	movl	%eax, %ebx
	call	saiki
	addl	%eax, %ebx
	addl	%ebx, %r14d
	cmpl	%r12d, %ebp
	je	.L189
	jle	.L14
	movl	%r14d, %ebp
	movl	%r12d, %r14d
	movl	20(%rsp), %r12d
	addl	%ebp, %r13d
.L13:
	addl	%r13d, 16(%rsp)
	cmpl	%r15d, 12(%rsp)
	je	.L190
.L16:
	leal	3(%r15), %eax
	addl	$2, %r15d
	addl	$3, %r12d
	cmpl	%r15d, %r14d
	jl	.L172
	movl	%eax, %r15d
	movl	%r15d, %ebx
	cmpl	%r14d, %r15d
	jne	.L191
.L123:
	movl	$1, %r13d
	movl	%r12d, %ebx
	cmpl	%r14d, %r12d
	jne	.L12
	.p2align 4,,10
	.p2align 3
.L188:
	addl	$1, %r13d
	addl	%r13d, 16(%rsp)
	cmpl	%r15d, 12(%rsp)
	jne	.L16
	.p2align 4,,10
	.p2align 3
.L190:
	addl	$1, 16(%rsp)
	movl	%r14d, %ebp
.L7:
	cmpl	%ebp, 24(%rsp)
	je	.L192
.L17:
	jg	.L18
	movl	24(%rsp), %eax
	movl	%ebp, %r15d
	movl	$0, 28(%rsp)
	leal	1(%rax), %r14d
	leal	2(%rax), %r12d
	movl	%r14d, %ebx
	cmpl	%r15d, %r14d
	je	.L126
.L198:
	movl	$0, %r13d
	jg	.L21
.L22:
	leal	1(%rbx), %edi
	call	saiki
	leal	2(%rbx), %edi
	addl	$3, %ebx
	movl	%eax, %ebp
	call	saiki
	addl	%eax, %ebp
	addl	%ebp, %r13d
	cmpl	%r15d, %ebx
	je	.L193
	jle	.L22
.L21:
	movl	%r12d, %ebx
	cmpl	%r15d, %r12d
	je	.L194
.L24:
	jg	.L25
	xorl	%ebp, %ebp
	movl	%r12d, 20(%rsp)
	movl	%r15d, %r12d
	movl	%ebp, %r15d
	movl	%ebx, %ebp
.L26:
	leal	1(%rbp), %edi
	call	saiki
	leal	2(%rbp), %edi
	addl	$3, %ebp
	movl	%eax, %ebx
	call	saiki
	addl	%eax, %ebx
	addl	%ebx, %r15d
	cmpl	%r12d, %ebp
	je	.L195
	jle	.L26
	movl	%r15d, %ebp
	movl	%r12d, %r15d
	movl	20(%rsp), %r12d
	addl	%ebp, %r13d
.L25:
	addl	%r13d, 28(%rsp)
	cmpl	%r14d, 12(%rsp)
	je	.L196
.L28:
	leal	3(%r14), %eax
	addl	$2, %r14d
	addl	$3, %r12d
	cmpl	%r14d, %r15d
	jl	.L197
	movl	%eax, %r14d
	movl	%r14d, %ebx
	cmpl	%r15d, %r14d
	jne	.L198
.L126:
	movl	$1, %r13d
	movl	%r12d, %ebx
	cmpl	%r15d, %r12d
	jne	.L24
	.p2align 4,,10
	.p2align 3
.L194:
	addl	$1, %r13d
	addl	%r13d, 28(%rsp)
	cmpl	%r14d, 12(%rsp)
	jne	.L28
	.p2align 4,,10
	.p2align 3
.L196:
	movl	16(%rsp), %ecx
	movl	28(%rsp), %eax
	movl	%r15d, %ebp
	leal	1(%rax,%rcx), %eax
	movl	%eax, 16(%rsp)
.L18:
	movl	16(%rsp), %esi
	movl	24(%rsp), %ecx
	addl	%esi, 40(%rsp)
	cmpl	%ecx, 32(%rsp)
	je	.L199
	leal	1(%rcx), %r14d
	addl	$3, 36(%rsp)
	leal	3(%rcx), %eax
	cmpl	%r14d, %ebp
	jl	.L5
	movl	%eax, 24(%rsp)
	cmpl	%ebp, 36(%rsp)
	jne	.L200
.L121:
	movl	$1, 16(%rsp)
	cmpl	%ebp, 24(%rsp)
	jne	.L17
.L192:
	addl	$1, 16(%rsp)
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L189:
	movl	%r14d, %ebp
	movl	%r12d, %r14d
	movl	20(%rsp), %r12d
	leal	1(%rbp,%r13), %r13d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L187:
	addl	$1, %r13d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L195:
	movl	%r15d, %ebp
	movl	%r12d, %r15d
	movl	20(%rsp), %r12d
	leal	1(%rbp,%r13), %r13d
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L193:
	addl	$1, %r13d
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L197:
	movl	28(%rsp), %ecx
	movl	%r15d, %ebp
	addl	%ecx, 16(%rsp)
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L172:
	movl	%r14d, %ebp
	jmp	.L7
.L199:
	addl	$1, 40(%rsp)
.L5:
	cmpl	%ebp, 48(%rsp)
	je	.L201
.L30:
	jg	.L31
	movl	48(%rsp), %eax
	movl	$0, 44(%rsp)
	leal	1(%rax), %ecx
	addl	$2, %eax
	movl	%ecx, 36(%rsp)
	movl	%eax, 24(%rsp)
	cmpl	%ebp, 36(%rsp)
	je	.L129
.L216:
	jg	.L130
	movl	24(%rsp), %r15d
	movl	%ebp, %r14d
	movl	$0, 16(%rsp)
	leal	1(%r15), %r12d
	movl	%r15d, %ebx
	cmpl	%r14d, %r15d
	je	.L131
.L206:
	movl	$0, %r13d
	jg	.L36
.L37:
	leal	1(%rbx), %edi
	call	saiki
	leal	2(%rbx), %edi
	addl	$3, %ebx
	movl	%eax, %ebp
	call	saiki
	addl	%eax, %ebp
	addl	%ebp, %r13d
	cmpl	%ebx, %r14d
	je	.L202
	jge	.L37
.L36:
	movl	%r12d, %ebx
	cmpl	%r14d, %r12d
	je	.L203
.L39:
	jg	.L40
	xorl	%ebp, %ebp
	movl	%r12d, 20(%rsp)
	movl	%r14d, %r12d
	movl	%ebp, %r14d
	movl	%ebx, %ebp
.L41:
	leal	1(%rbp), %edi
	call	saiki
	leal	2(%rbp), %edi
	addl	$3, %ebp
	movl	%eax, %ebx
	call	saiki
	addl	%eax, %ebx
	addl	%ebx, %r14d
	cmpl	%r12d, %ebp
	je	.L204
	jle	.L41
	movl	%r14d, %ebp
	movl	%r12d, %r14d
	movl	20(%rsp), %r12d
	addl	%ebp, %r13d
.L40:
	addl	%r13d, 16(%rsp)
	cmpl	%r15d, 12(%rsp)
	je	.L205
.L43:
	leal	3(%r15), %eax
	addl	$2, %r15d
	addl	$3, %r12d
	cmpl	%r15d, %r14d
	jl	.L175
	movl	%eax, %r15d
	movl	%r15d, %ebx
	cmpl	%r14d, %r15d
	jne	.L206
.L131:
	movl	$1, %r13d
	movl	%r12d, %ebx
	cmpl	%r14d, %r12d
	jne	.L39
	.p2align 4,,10
	.p2align 3
.L203:
	addl	$1, %r13d
	addl	%r13d, 16(%rsp)
	cmpl	%r15d, 12(%rsp)
	jne	.L43
	.p2align 4,,10
	.p2align 3
.L205:
	addl	$1, 16(%rsp)
	movl	%r14d, %ebp
.L34:
	cmpl	%ebp, 24(%rsp)
	je	.L207
.L44:
	jg	.L45
	movl	24(%rsp), %eax
	movl	%ebp, %r15d
	movl	$0, 28(%rsp)
	leal	1(%rax), %r14d
	leal	2(%rax), %r12d
	movl	%r14d, %ebx
	cmpl	%r15d, %r14d
	je	.L134
.L213:
	movl	$0, %r13d
	jg	.L48
.L49:
	leal	1(%rbx), %edi
	call	saiki
	leal	2(%rbx), %edi
	addl	$3, %ebx
	movl	%eax, %ebp
	call	saiki
	addl	%eax, %ebp
	addl	%ebp, %r13d
	cmpl	%ebx, %r15d
	je	.L208
	jge	.L49
.L48:
	movl	%r12d, %ebx
	cmpl	%r15d, %r12d
	je	.L209
.L51:
	jg	.L52
	xorl	%ebp, %ebp
	movl	%r12d, 20(%rsp)
	movl	%r15d, %r12d
	movl	%ebp, %r15d
	movl	%ebx, %ebp
.L53:
	leal	1(%rbp), %edi
	call	saiki
	leal	2(%rbp), %edi
	addl	$3, %ebp
	movl	%eax, %ebx
	call	saiki
	addl	%eax, %ebx
	addl	%ebx, %r15d
	cmpl	%ebp, %r12d
	je	.L210
	jge	.L53
	movl	%r15d, %ebp
	movl	%r12d, %r15d
	movl	20(%rsp), %r12d
	addl	%ebp, %r13d
.L52:
	addl	%r13d, 28(%rsp)
	cmpl	%r14d, 12(%rsp)
	je	.L211
.L55:
	leal	3(%r14), %eax
	addl	$2, %r14d
	addl	$3, %r12d
	cmpl	%r14d, %r15d
	jl	.L212
	movl	%eax, %r14d
	movl	%r14d, %ebx
	cmpl	%r15d, %r14d
	jne	.L213
.L134:
	movl	$1, %r13d
	movl	%r12d, %ebx
	cmpl	%r15d, %r12d
	jne	.L51
	.p2align 4,,10
	.p2align 3
.L209:
	addl	$1, %r13d
	addl	%r13d, 28(%rsp)
	cmpl	%r14d, 12(%rsp)
	jne	.L55
	.p2align 4,,10
	.p2align 3
.L211:
	movl	16(%rsp), %ecx
	movl	28(%rsp), %eax
	movl	%r15d, %ebp
	leal	1(%rax,%rcx), %eax
	movl	%eax, 16(%rsp)
.L45:
	movl	16(%rsp), %esi
	movl	24(%rsp), %ecx
	addl	%esi, 44(%rsp)
	cmpl	%ecx, 32(%rsp)
	je	.L214
	leal	1(%rcx), %r14d
	addl	$3, 36(%rsp)
	leal	3(%rcx), %eax
	cmpl	%r14d, %ebp
	jl	.L215
	movl	%eax, 24(%rsp)
	cmpl	%ebp, 36(%rsp)
	jne	.L216
.L129:
	movl	$1, 16(%rsp)
	cmpl	%ebp, 24(%rsp)
	jne	.L44
.L207:
	addl	$1, 16(%rsp)
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L204:
	movl	%r14d, %ebp
	movl	%r12d, %r14d
	movl	20(%rsp), %r12d
	leal	1(%rbp,%r13), %r13d
	jmp	.L40
	.p2align 4,,10
	.p2align 3
.L202:
	addl	$1, %r13d
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L210:
	movl	%r15d, %ebp
	movl	%r12d, %r15d
	movl	20(%rsp), %r12d
	leal	1(%rbp,%r13), %r13d
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L208:
	addl	$1, %r13d
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L175:
	movl	%r14d, %ebp
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L212:
	movl	28(%rsp), %esi
	movl	%r15d, %ebp
	addl	%esi, 16(%rsp)
	jmp	.L45
.L214:
	movl	40(%rsp), %esi
	movl	44(%rsp), %eax
	leal	1(%rax,%rsi), %eax
	movl	%eax, 40(%rsp)
.L31:
	movl	40(%rsp), %esi
	movl	48(%rsp), %edx
	addl	%esi, 56(%rsp)
	cmpl	%edx, 32(%rsp)
	je	.L217
	movl	%edx, %eax
	addl	$3, 52(%rsp)
	leal	3(%rdx), %ecx
	addl	$1, %eax
	cmpl	%eax, %ebp
	jl	.L170
	movl	%ecx, 48(%rsp)
	cmpl	%ebp, 52(%rsp)
	jne	.L218
.L119:
	movl	$1, 40(%rsp)
	cmpl	%ebp, 48(%rsp)
	jne	.L30
.L201:
	addl	$1, 40(%rsp)
	jmp	.L31
.L130:
	movl	$0, 16(%rsp)
	jmp	.L34
.L122:
	movl	$0, 16(%rsp)
	jmp	.L7
.L215:
	movl	44(%rsp), %esi
	addl	%esi, 40(%rsp)
	jmp	.L31
.L217:
	addl	$1, 56(%rsp)
	movl	%ebp, %r15d
.L3:
	cmpl	%r15d, 60(%rsp)
	je	.L219
.L58:
	jg	.L59
	movl	60(%rsp), %eax
	movl	$0, 64(%rsp)
	movl	%r15d, %ebp
	leal	1(%rax), %edx
	addl	$2, %eax
	movl	%edx, 52(%rsp)
	movl	%eax, 48(%rsp)
	cmpl	%ebp, 52(%rsp)
	je	.L137
.L252:
	jg	.L138
	movl	48(%rsp), %eax
	movl	$0, 40(%rsp)
	leal	1(%rax), %esi
	movl	%eax, 36(%rsp)
	movl	%esi, 24(%rsp)
	cmpl	36(%rsp), %ebp
	je	.L139
.L233:
	jl	.L140
	movl	24(%rsp), %r15d
	movl	%ebp, %r14d
	movl	$0, 16(%rsp)
	leal	1(%r15), %r12d
	movl	%r15d, %ebx
	cmpl	%r15d, %r14d
	je	.L141
.L224:
	movl	$0, %r13d
	jl	.L66
.L67:
	leal	1(%rbx), %edi
	call	saiki
	leal	2(%rbx), %edi
	addl	$3, %ebx
	movl	%eax, %ebp
	call	saiki
	addl	%eax, %ebp
	addl	%ebp, %r13d
	cmpl	%ebx, %r14d
	je	.L220
	jge	.L67
.L66:
	movl	%r12d, %ebx
	cmpl	%r12d, %r14d
	je	.L221
.L69:
	jl	.L70
	xorl	%ebp, %ebp
	movl	%r12d, 20(%rsp)
	movl	%r14d, %r12d
	movl	%ebp, %r14d
	movl	%ebx, %ebp
.L71:
	leal	1(%rbp), %edi
	call	saiki
	leal	2(%rbp), %edi
	addl	$3, %ebp
	movl	%eax, %ebx
	call	saiki
	addl	%eax, %ebx
	addl	%ebx, %r14d
	cmpl	%ebp, %r12d
	je	.L222
	jge	.L71
	movl	%r14d, %ebp
	movl	%r12d, %r14d
	movl	20(%rsp), %r12d
	addl	%ebp, %r13d
.L70:
	addl	%r13d, 16(%rsp)
	cmpl	%r15d, 12(%rsp)
	je	.L223
.L73:
	leal	3(%r15), %eax
	addl	$2, %r15d
	addl	$3, %r12d
	cmpl	%r15d, %r14d
	jl	.L179
	movl	%eax, %r15d
	movl	%r15d, %ebx
	cmpl	%r15d, %r14d
	jne	.L224
.L141:
	movl	$1, %r13d
	movl	%r12d, %ebx
	cmpl	%r12d, %r14d
	jne	.L69
	.p2align 4,,10
	.p2align 3
.L221:
	addl	$1, %r13d
	addl	%r13d, 16(%rsp)
	cmpl	%r15d, 12(%rsp)
	jne	.L73
	.p2align 4,,10
	.p2align 3
.L223:
	addl	$1, 16(%rsp)
	movl	%r14d, %ebp
.L64:
	cmpl	24(%rsp), %ebp
	je	.L225
.L74:
	jl	.L75
	movl	24(%rsp), %eax
	movl	%ebp, %r15d
	movl	$0, 28(%rsp)
	leal	1(%rax), %r14d
	leal	2(%rax), %r12d
	movl	%r14d, %ebx
	cmpl	%r14d, %r15d
	je	.L144
.L231:
	movl	$0, %r13d
	jl	.L78
.L79:
	leal	1(%rbx), %edi
	call	saiki
	leal	2(%rbx), %edi
	addl	$3, %ebx
	movl	%eax, %ebp
	call	saiki
	addl	%eax, %ebp
	addl	%ebp, %r13d
	cmpl	%ebx, %r15d
	je	.L226
	jge	.L79
.L78:
	movl	%r12d, %ebx
	cmpl	%r12d, %r15d
	je	.L227
.L81:
	jl	.L82
	xorl	%ebp, %ebp
	movl	%r12d, 20(%rsp)
	movl	%r15d, %r12d
	movl	%ebp, %r15d
	movl	%ebx, %ebp
.L83:
	leal	1(%rbp), %edi
	call	saiki
	leal	2(%rbp), %edi
	addl	$3, %ebp
	movl	%eax, %ebx
	call	saiki
	addl	%eax, %ebx
	addl	%ebx, %r15d
	cmpl	%ebp, %r12d
	je	.L228
	jge	.L83
	movl	%r15d, %ebp
	movl	%r12d, %r15d
	movl	20(%rsp), %r12d
	addl	%ebp, %r13d
.L82:
	addl	%r13d, 28(%rsp)
	cmpl	%r14d, 12(%rsp)
	je	.L229
.L85:
	leal	3(%r14), %eax
	addl	$2, %r14d
	addl	$3, %r12d
	cmpl	%r14d, %r15d
	jl	.L230
	movl	%eax, %r14d
	movl	%r14d, %ebx
	cmpl	%r14d, %r15d
	jne	.L231
.L144:
	movl	$1, %r13d
	movl	%r12d, %ebx
	cmpl	%r12d, %r15d
	jne	.L81
	.p2align 4,,10
	.p2align 3
.L227:
	addl	$1, %r13d
	addl	%r13d, 28(%rsp)
	cmpl	%r14d, 12(%rsp)
	jne	.L85
	.p2align 4,,10
	.p2align 3
.L229:
	movl	16(%rsp), %eax
	movl	28(%rsp), %esi
	movl	%r15d, %ebp
	leal	1(%rax,%rsi), %eax
	movl	%eax, 16(%rsp)
.L75:
	movl	16(%rsp), %esi
	movl	24(%rsp), %ecx
	addl	%esi, 40(%rsp)
	cmpl	%ecx, 32(%rsp)
	je	.L232
	leal	1(%rcx), %r14d
	addl	$3, 36(%rsp)
	leal	3(%rcx), %eax
	cmpl	%r14d, %ebp
	jl	.L62
	movl	%eax, 24(%rsp)
	cmpl	36(%rsp), %ebp
	jne	.L233
.L139:
	movl	$1, 16(%rsp)
	cmpl	24(%rsp), %ebp
	jne	.L74
.L225:
	addl	$1, 16(%rsp)
	jmp	.L75
	.p2align 4,,10
	.p2align 3
.L222:
	movl	%r14d, %ebp
	movl	%r12d, %r14d
	movl	20(%rsp), %r12d
	leal	1(%rbp,%r13), %r13d
	jmp	.L70
	.p2align 4,,10
	.p2align 3
.L220:
	addl	$1, %r13d
	jmp	.L66
	.p2align 4,,10
	.p2align 3
.L228:
	movl	%r15d, %ebp
	movl	%r12d, %r15d
	movl	20(%rsp), %r12d
	leal	1(%rbp,%r13), %r13d
	jmp	.L82
	.p2align 4,,10
	.p2align 3
.L226:
	addl	$1, %r13d
	jmp	.L78
	.p2align 4,,10
	.p2align 3
.L230:
	movl	28(%rsp), %edx
	movl	%r15d, %ebp
	addl	%edx, 16(%rsp)
	jmp	.L75
	.p2align 4,,10
	.p2align 3
.L179:
	movl	%r14d, %ebp
	jmp	.L64
.L232:
	addl	$1, 40(%rsp)
.L62:
	cmpl	%ebp, 48(%rsp)
	je	.L234
.L87:
	jg	.L88
	movl	48(%rsp), %eax
	movl	$0, 44(%rsp)
	leal	1(%rax), %edx
	addl	$2, %eax
	movl	%edx, 36(%rsp)
	movl	%eax, 24(%rsp)
	cmpl	36(%rsp), %ebp
	je	.L147
.L249:
	jl	.L148
	movl	24(%rsp), %r15d
	movl	%ebp, %r14d
	movl	$0, 16(%rsp)
	leal	1(%r15), %r12d
	movl	%r15d, %ebx
	cmpl	%r15d, %r14d
	je	.L149
.L239:
	movl	$0, %r13d
	jl	.L93
.L94:
	leal	1(%rbx), %edi
	call	saiki
	leal	2(%rbx), %edi
	addl	$3, %ebx
	movl	%eax, %ebp
	call	saiki
	addl	%eax, %ebp
	addl	%ebp, %r13d
	cmpl	%ebx, %r14d
	je	.L235
	jge	.L94
.L93:
	movl	%r12d, %ebx
	cmpl	%r12d, %r14d
	je	.L236
.L96:
	jl	.L97
	xorl	%ebp, %ebp
	movl	%r12d, 20(%rsp)
	movl	%r14d, %r12d
	movl	%ebp, %r14d
	movl	%ebx, %ebp
.L98:
	leal	1(%rbp), %edi
	call	saiki
	leal	2(%rbp), %edi
	addl	$3, %ebp
	movl	%eax, %ebx
	call	saiki
	addl	%eax, %ebx
	addl	%ebx, %r14d
	cmpl	%ebp, %r12d
	je	.L237
	jge	.L98
	movl	%r14d, %ebp
	movl	%r12d, %r14d
	movl	20(%rsp), %r12d
	addl	%ebp, %r13d
.L97:
	addl	%r13d, 16(%rsp)
	cmpl	%r15d, 12(%rsp)
	je	.L238
.L100:
	leal	3(%r15), %eax
	addl	$2, %r15d
	addl	$3, %r12d
	cmpl	%r15d, %r14d
	jl	.L182
	movl	%eax, %r15d
	movl	%r15d, %ebx
	cmpl	%r15d, %r14d
	jne	.L239
.L149:
	movl	$1, %r13d
	movl	%r12d, %ebx
	cmpl	%r12d, %r14d
	jne	.L96
	.p2align 4,,10
	.p2align 3
.L236:
	addl	$1, %r13d
	addl	%r13d, 16(%rsp)
	cmpl	%r15d, 12(%rsp)
	jne	.L100
	.p2align 4,,10
	.p2align 3
.L238:
	addl	$1, 16(%rsp)
	movl	%r14d, %ebp
.L91:
	cmpl	24(%rsp), %ebp
	je	.L240
.L101:
	jl	.L102
	movl	24(%rsp), %eax
	movl	%ebp, %r15d
	movl	$0, 28(%rsp)
	leal	1(%rax), %r14d
	leal	2(%rax), %r12d
	movl	%r14d, %ebx
	cmpl	%r14d, %r15d
	je	.L152
.L246:
	movl	$0, %r13d
	jl	.L105
.L106:
	leal	1(%rbx), %edi
	call	saiki
	leal	2(%rbx), %edi
	addl	$3, %ebx
	movl	%eax, %ebp
	call	saiki
	addl	%eax, %ebp
	addl	%ebp, %r13d
	cmpl	%ebx, %r15d
	je	.L241
	jge	.L106
.L105:
	movl	%r12d, %ebx
	cmpl	%r12d, %r15d
	je	.L242
.L108:
	jl	.L109
	xorl	%ebp, %ebp
	movl	%r12d, 20(%rsp)
	movl	%r15d, %r12d
	movl	%ebp, %r15d
	movl	%ebx, %ebp
.L110:
	leal	1(%rbp), %edi
	call	saiki
	leal	2(%rbp), %edi
	addl	$3, %ebp
	movl	%eax, %ebx
	call	saiki
	addl	%eax, %ebx
	addl	%ebx, %r15d
	cmpl	%ebp, %r12d
	je	.L243
	jge	.L110
	movl	%r15d, %ebp
	movl	%r12d, %r15d
	movl	20(%rsp), %r12d
	addl	%ebp, %r13d
.L109:
	addl	%r13d, 28(%rsp)
	cmpl	12(%rsp), %r14d
	je	.L244
.L112:
	leal	3(%r14), %eax
	addl	$2, %r14d
	addl	$3, %r12d
	cmpl	%r14d, %r15d
	jl	.L245
	movl	%eax, %r14d
	movl	%r14d, %ebx
	cmpl	%r14d, %r15d
	jne	.L246
.L152:
	movl	$1, %r13d
	movl	%r12d, %ebx
	cmpl	%r12d, %r15d
	jne	.L108
	.p2align 4,,10
	.p2align 3
.L242:
	addl	$1, %r13d
	addl	%r13d, 28(%rsp)
	cmpl	12(%rsp), %r14d
	jne	.L112
	.p2align 4,,10
	.p2align 3
.L244:
	movl	16(%rsp), %eax
	movl	28(%rsp), %edx
	movl	%r15d, %ebp
	leal	1(%rax,%rdx), %eax
	movl	%eax, 16(%rsp)
.L102:
	movl	16(%rsp), %esi
	movl	24(%rsp), %edx
	addl	%esi, 44(%rsp)
	cmpl	%edx, 32(%rsp)
	je	.L247
	leal	1(%rdx), %r14d
	addl	$3, 36(%rsp)
	leal	3(%rdx), %eax
	cmpl	%r14d, %ebp
	jl	.L248
	movl	%eax, 24(%rsp)
	cmpl	36(%rsp), %ebp
	jne	.L249
.L147:
	movl	$1, 16(%rsp)
	cmpl	24(%rsp), %ebp
	jne	.L101
.L240:
	addl	$1, 16(%rsp)
	jmp	.L102
	.p2align 4,,10
	.p2align 3
.L237:
	movl	%r14d, %ebp
	movl	%r12d, %r14d
	movl	20(%rsp), %r12d
	leal	1(%rbp,%r13), %r13d
	jmp	.L97
	.p2align 4,,10
	.p2align 3
.L235:
	addl	$1, %r13d
	jmp	.L93
	.p2align 4,,10
	.p2align 3
.L243:
	movl	%r15d, %ebp
	movl	%r12d, %r15d
	movl	20(%rsp), %r12d
	leal	1(%rbp,%r13), %r13d
	jmp	.L109
	.p2align 4,,10
	.p2align 3
.L241:
	addl	$1, %r13d
	jmp	.L105
	.p2align 4,,10
	.p2align 3
.L182:
	movl	%r14d, %ebp
	jmp	.L91
	.p2align 4,,10
	.p2align 3
.L245:
	movl	28(%rsp), %ecx
	movl	%r15d, %ebp
	addl	%ecx, 16(%rsp)
	jmp	.L102
.L247:
	movl	40(%rsp), %edx
	movl	44(%rsp), %eax
	leal	1(%rax,%rdx), %eax
	movl	%eax, 40(%rsp)
.L88:
	movl	40(%rsp), %ecx
	movl	48(%rsp), %esi
	addl	%ecx, 64(%rsp)
	cmpl	%esi, 32(%rsp)
	je	.L250
	movl	%esi, %eax
	addl	$3, 52(%rsp)
	leal	3(%rsi), %ecx
	addl	$1, %eax
	cmpl	%eax, %ebp
	jl	.L251
	movl	%ecx, 48(%rsp)
	cmpl	%ebp, 52(%rsp)
	jne	.L252
.L137:
	movl	$1, 40(%rsp)
	cmpl	%ebp, 48(%rsp)
	jne	.L87
.L234:
	addl	$1, 40(%rsp)
	jmp	.L88
.L140:
	movl	$0, 16(%rsp)
	jmp	.L64
.L248:
	movl	44(%rsp), %edx
	addl	%edx, 40(%rsp)
	jmp	.L88
.L148:
	movl	$0, 16(%rsp)
	jmp	.L91
.L250:
	movl	56(%rsp), %esi
	movl	64(%rsp), %eax
	movl	%ebp, %r15d
	leal	1(%rax,%rsi), %eax
	movl	%eax, 56(%rsp)
.L59:
	addl	$3, 60(%rsp)
	movl	56(%rsp), %esi
	addl	$3, 68(%rsp)
	movl	60(%rsp), %eax
	addl	%esi, 72(%rsp)
	cmpl	%eax, 76(%rsp)
	jne	.L115
	addl	$1, 72(%rsp)
.L1:
	movl	72(%rsp), %eax
	addq	$88, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L251:
	.cfi_restore_state
	movl	64(%rsp), %ecx
	movl	%ebp, %r15d
	addl	%ecx, 56(%rsp)
	jmp	.L59
.L120:
	movl	$0, 40(%rsp)
	jmp	.L5
.L138:
	movl	$0, 40(%rsp)
	jmp	.L62
.L170:
	movl	%ebp, %r15d
	cmpl	%r15d, 60(%rsp)
	jne	.L58
.L219:
	addl	$1, 56(%rsp)
	jmp	.L59
.L118:
	movl	$0, 56(%rsp)
	jmp	.L3
.L117:
	movl	$1, 56(%rsp)
	jmp	.L3
.L116:
	movl	$1, 72(%rsp)
	jmp	.L1
	.cfi_endproc
.LFE23:
	.size	saiki, .-saiki
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xorl	%edi, %edi
	leaq	.LC1(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	leaq	n(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	.LC0(%rip), %rbx
	call	saiki
	.p2align 4,,10
	.p2align 3
.L257:
	movq	%rbp, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %r11d
	testl	%r11d, %r11d
	je	.L254
	xorl	%r10d, %r10d
	xorl	%r8d, %r8d
.L256:
	cmpl	%r8d, %r11d
	jl	.L255
	leal	1(%r8), %edi
	call	saiki
	leal	2(%r8), %edi
	addl	$3, %r8d
	movl	%eax, %r9d
	call	saiki
	addl	%eax, %r9d
	addl	%r9d, %r10d
	cmpl	%r8d, %r11d
	jne	.L256
	addl	$1, %r10d
.L255:
	movslq	%r10d, %rdx
	sarl	$31, %r10d
	movq	%r12, %rsi
	movl	$1, %edi
	imulq	$602472125, %rdx, %rdx
	xorl	%eax, %eax
	sarq	$41, %rdx
	subl	%r10d, %edx
	addl	$1, %edx
	call	__printf_chk@PLT
	jmp	.L257
	.p2align 4,,10
	.p2align 3
.L254:
	popq	%rbx
	.cfi_def_cfa_offset 24
	xorl	%eax, %eax
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.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 n;

int saiki(int ima)
{
	if (ima == n)
	{
		return 1;
	}

	if (ima > n)
	{
		return 0;
	}
	
	int res=0;

	res +=saiki(ima+1)+saiki(ima+2)+saiki(ima+3);
	return res; 
}
int main()
{
	int x = saiki(0);
	for(;;)
	{
		scanf("%d", &n);
		if (n==0)
		{
			break;
		}
		printf("%d\n", saiki(0)/ 10 / 365 +1);

	}

	

	
}
1
10
14
25
0
 1
10
14
23
0
 1
10
14
6
0
 1
1
20
25
0
 1
10
14
24
0
 1
10
0
25
0
 1
19
14
5
0
 1
18
0
25
0
 1
18
1
25
0
 1
0
14
6
0

1
1
1
701
 1
1
1
207
 1
1
1
1
 1
1
34
701
 1
1
1
381
 1
1
 1
19
1
1
 1
10
 1
10
1
701
 1

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 n;

int saiki(int ima)
{
	if (ima == n)
	{
		return 1;
	}

	if (ima > n)
	{
		return 0;
	}
	
	int res=0;

	res +=saiki(ima+1)+saiki(ima+2)+saiki(ima+3);
	return res; 
}
int main()
{
	int x = saiki(0);
	for(;;)
	{
		scanf("%d", &n);
		if (n==0)
		{
			break;
		}
		printf("%d\n", saiki(0)/ 10 / 365 +1);

	}

	

	
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.text
	.globl	saiki
	.type	saiki, @function
saiki:
.LFB0:
	.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
	movl	%edi, -36(%rbp)
	movl	n(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jne	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jle	.L4
	movl	$0, %eax
	jmp	.L3
.L4:
	movl	$0, -20(%rbp)
	movl	-36(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edi
	call	saiki
	movl	%eax, %ebx
	movl	-36(%rbp), %eax
	addl	$2, %eax
	movl	%eax, %edi
	call	saiki
	addl	%eax, %ebx
	movl	-36(%rbp), %eax
	addl	$3, %eax
	movl	%eax, %edi
	call	saiki
	addl	%ebx, %eax
	addl	%eax, -20(%rbp)
	movl	-20(%rbp), %eax
.L3:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	saiki, .-saiki
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\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
	subq	$16, %rsp
	movl	$0, %edi
	call	saiki
	movl	%eax, -4(%rbp)
.L8:
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L11
	movl	$0, %edi
	call	saiki
	movslq	%eax, %rdx
	imulq	$602472125, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$9, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L8
.L11:
	nop
	movl	$0, %eax
	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	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.text
	.globl	saiki
	.type	saiki, @function
saiki:
.LFB0:
	.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
	movl	%edi, -36(%rbp)
	movl	n(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jne	.L2
	movl	$1, %eax
	jmp	.L3
.L2:
	movl	n(%rip), %eax
	cmpl	%eax, -36(%rbp)
	jle	.L4
	movl	$0, %eax
	jmp	.L3
.L4:
	movl	$0, -20(%rbp)
	movl	-36(%rbp), %eax
	addl	$1, %eax
	movl	%eax, %edi
	call	saiki
	movl	%eax, %ebx
	movl	-36(%rbp), %eax
	addl	$2, %eax
	movl	%eax, %edi
	call	saiki
	addl	%eax, %ebx
	movl	-36(%rbp), %eax
	addl	$3, %eax
	movl	%eax, %edi
	call	saiki
	addl	%ebx, %eax
	addl	%eax, -20(%rbp)
	movl	-20(%rbp), %eax
.L3:
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	saiki, .-saiki
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\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
	subq	$16, %rsp
	movl	$0, %edi
	call	saiki
	movl	%eax, -4(%rbp)
.L8:
	leaq	n(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	n(%rip), %eax
	testl	%eax, %eax
	je	.L11
	movl	$0, %edi
	call	saiki
	movslq	%eax, %rdx
	imulq	$602472125, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$9, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L8
.L11:
	nop
	movl	$0, %eax
	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:
