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

```c
i,f,d[5];main(n){for(;i>4||scanf("%d",d+i)**d;i=++i%10,f*=!!i)n=(f>14|f==9|f==4|f==2?2:!(f&d[i%5]*2))+49,i<5?f|=(d[i]=d[i]-1?1<<d[i]-1:9):puts(&n);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	d
	.align 16
	.type	d, @object
	.size	d, 20
d:
	.zero	20
	.section	.rodata
.LC0:
	.string	"%d"
	.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	$16, %rsp
	movl	%edi, -4(%rbp)
	jmp	.L2
.L11:
	movl	f(%rip), %eax
	cmpl	$14, %eax
	setg	%dl
	movl	f(%rip), %eax
	cmpl	$9, %eax
	sete	%al
	orl	%edx, %eax
	movzbl	%al, %edx
	movl	f(%rip), %eax
	cmpl	$4, %eax
	sete	%al
	movzbl	%al, %eax
	orl	%eax, %edx
	movl	f(%rip), %eax
	cmpl	$2, %eax
	sete	%al
	movzbl	%al, %eax
	orl	%edx, %eax
	testl	%eax, %eax
	jne	.L3
	movl	i(%rip), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	%eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	sall	$2, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rax,%rax), %edx
	movl	f(%rip), %eax
	andl	%edx, %eax
	testl	%eax, %eax
	jne	.L4
	movl	$50, %eax
	jmp	.L6
.L4:
	movl	$49, %eax
	jmp	.L6
.L3:
	movl	$51, %eax
.L6:
	movl	%eax, -4(%rbp)
	movl	i(%rip), %eax
	cmpl	$4, %eax
	jg	.L7
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	je	.L8
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	jmp	.L9
.L8:
	movl	$9, %edx
.L9:
	movl	i(%rip), %eax
	movslq	%eax, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	d(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	f(%rip), %eax
	orl	%edx, %eax
	movl	%eax, f(%rip)
	jmp	.L10
.L7:
	leaq	-4(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
	movl	i(%rip), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	movl	%edx, i(%rip)
	movl	i(%rip), %eax
	testl	%eax, %eax
	setne	%al
	movzbl	%al, %edx
	movl	f(%rip), %eax
	imull	%edx, %eax
	movl	%eax, f(%rip)
.L2:
	movl	i(%rip), %eax
	cmpl	$4, %eax
	jg	.L11
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	d(%rip), %edx
	imull	%edx, %eax
	testl	%eax, %eax
	jne	.L11
	movl	$0, %eax
	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"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	d(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	.LC0(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movl	i(%rip), %eax
	movl	%edi, 12(%rsp)
	leaq	12(%rsp), %rbp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	movslq	%eax, %rdi
	movl	$9, %esi
	movl	(%r12,%rdi,4), %ecx
	cmpl	$1, %ecx
	je	.L5
	subl	$1, %ecx
	movl	$1, %esi
	sall	%cl, %esi
.L5:
	movl	%esi, (%r12,%rdi,4)
	orl	%esi, %edx
.L6:
	leal	1(%rax), %esi
	movslq	%esi, %rax
	movl	%esi, %ecx
	imulq	$1717986919, %rax, %rax
	sarl	$31, %ecx
	sarq	$34, %rax
	subl	%ecx, %eax
	leal	(%rax,%rax,4), %ecx
	movl	%esi, %eax
	addl	%ecx, %ecx
	subl	%ecx, %eax
	setne	%cl
	movl	%eax, i(%rip)
	movzbl	%cl, %ecx
	imull	%ecx, %edx
	movl	%edx, f(%rip)
.L2:
	cmpl	$4, %eax
	jg	.L7
	cltq
	movq	%rbx, %rdi
	leaq	(%r12,%rax,4), %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	imull	(%r12), %eax
	testl	%eax, %eax
	je	.L8
	movl	i(%rip), %eax
.L7:
	movl	f(%rip), %edx
	cmpl	$14, %edx
	setg	%cl
	cmpl	$9, %edx
	sete	%sil
	orb	%sil, %cl
	jne	.L9
	leal	-2(%rdx), %ecx
	andl	$-3, %ecx
	je	.L9
	movslq	%eax, %rcx
	movl	%eax, %esi
	imulq	$1717986919, %rcx, %rcx
	sarl	$31, %esi
	sarq	$33, %rcx
	subl	%esi, %ecx
	leal	(%rcx,%rcx,4), %esi
	movl	%eax, %ecx
	subl	%esi, %ecx
	movslq	%ecx, %rcx
	movl	(%r12,%rcx,4), %ecx
	addl	%ecx, %ecx
	andl	%edx, %ecx
	cmpl	$1, %ecx
	movl	$49, %ecx
	adcl	$0, %ecx
.L3:
	movl	%ecx, 12(%rsp)
	cmpl	$4, %eax
	jle	.L15
	movq	%rbp, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	movl	f(%rip), %edx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$51, %ecx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	d
	.bss
	.align 16
	.type	d, @object
	.size	d, 20
d:
	.zero	20
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	d(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	.LC0(%rip), %rbx
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movl	i(%rip), %eax
	movl	%edi, 12(%rsp)
	leaq	12(%rsp), %rbp
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	movslq	%eax, %rdi
	movl	$9, %esi
	movl	(%r12,%rdi,4), %ecx
	cmpl	$1, %ecx
	je	.L5
	subl	$1, %ecx
	movl	$1, %esi
	sall	%cl, %esi
.L5:
	movl	%esi, (%r12,%rdi,4)
	orl	%esi, %edx
.L6:
	leal	1(%rax), %esi
	movslq	%esi, %rax
	movl	%esi, %ecx
	imulq	$1717986919, %rax, %rax
	sarl	$31, %ecx
	sarq	$34, %rax
	subl	%ecx, %eax
	leal	(%rax,%rax,4), %ecx
	movl	%esi, %eax
	addl	%ecx, %ecx
	subl	%ecx, %eax
	setne	%cl
	movl	%eax, i(%rip)
	movzbl	%cl, %ecx
	imull	%ecx, %edx
	movl	%edx, f(%rip)
.L2:
	cmpl	$4, %eax
	jg	.L7
	cltq
	movq	%rbx, %rdi
	leaq	(%r12,%rax,4), %rsi
	xorl	%eax, %eax
	call	scanf@PLT
	imull	(%r12), %eax
	testl	%eax, %eax
	je	.L8
	movl	i(%rip), %eax
.L7:
	movl	f(%rip), %edx
	cmpl	$14, %edx
	setg	%cl
	cmpl	$9, %edx
	sete	%sil
	orb	%sil, %cl
	jne	.L9
	leal	-2(%rdx), %ecx
	andl	$-3, %ecx
	je	.L9
	movslq	%eax, %rcx
	movl	%eax, %esi
	imulq	$1717986919, %rcx, %rcx
	sarl	$31, %esi
	sarq	$33, %rcx
	subl	%esi, %ecx
	leal	(%rcx,%rcx,4), %esi
	movl	%eax, %ecx
	subl	%esi, %ecx
	movslq	%ecx, %rcx
	movl	(%r12,%rcx,4), %ecx
	addl	%ecx, %ecx
	andl	%edx, %ecx
	cmpl	$1, %ecx
	movl	$49, %ecx
	adcl	$0, %ecx
.L3:
	movl	%ecx, 12(%rsp)
	cmpl	$4, %eax
	jle	.L15
	movq	%rbp, %rdi
	call	puts@PLT
	movl	i(%rip), %eax
	movl	f(%rip), %edx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	movl	$51, %ecx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	addq	$16, %rsp
	.cfi_def_cfa_offset 32
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 24
	popq	%rbp
	.cfi_def_cfa_offset 16
	popq	%r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	d
	.bss
	.align 16
	.type	d, @object
	.size	d, 20
d:
	.zero	20
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.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:

i,f,d[5];main(n){for(;i>4||scanf("%d",d+i)**d;i=++i%10,f*=!!i)n=(f>14|f==9|f==4|f==2?2:!(f&d[i%5]*2))+49,i<5?f|=(d[i]=d[i]-1?1<<d[i]-1:9):puts(&n);}
1
3
3
2
1
1
2
2
2
1
0
 1
1
1
2
1
1
2
2
2
1
0
 1
2
3
2
1
1
1
2
2
1
0
 1
2
2
2
1
1
1
2
2
1
0
 1
2
3
2
1
1
2
2
2
2
0
 1
3
1
2
1
1
2
1
2
1
0
 1
2
3
2
1
1
2
3
2
2
0
 1
2
2
2
1
1
2
3
2
2
0
 1
1
2
2
1
1
2
3
2
2
0
 1
3
3
1
1
1
2
3
2
2
0

3
3
3
3
3
1
2
2
2
1
 1
1
1
2
1
1
2
2
2
1
 3
3
3
3
3
1
1
2
2
1
 1
2
2
2
1
1
1
2
2
1
 3
3
3
3
3
1
2
2
2
2
 3
3
3
3
3
1
2
1
2
1
 3
3
3
3
3
3
3
3
3
3
 1
2
2
2
1
3
3
3
3
3
 1
1
2
2
1
3
3
3
3
3
 2
1
1
2
2
3
3
3
3
3

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

```c
i,f,d[5];main(n){for(;i>4||scanf("%d",d+i)**d;i=++i%10,f*=!!i)n=(f>14|f==9|f==4|f==2?2:!(f&d[i%5]*2))+49,i<5?f|=(d[i]=d[i]-1?1<<d[i]-1:9):puts(&n);}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	d
	.align 16
	.type	d, @object
	.size	d, 20
d:
	.zero	20
	.section	.rodata
.LC0:
	.string	"%d"
	.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	$16, %rsp
	movl	%edi, -4(%rbp)
	jmp	.L2
.L11:
	movl	f(%rip), %eax
	cmpl	$14, %eax
	setg	%dl
	movl	f(%rip), %eax
	cmpl	$9, %eax
	sete	%al
	orl	%edx, %eax
	movzbl	%al, %edx
	movl	f(%rip), %eax
	cmpl	$4, %eax
	sete	%al
	movzbl	%al, %eax
	orl	%eax, %edx
	movl	f(%rip), %eax
	cmpl	$2, %eax
	sete	%al
	movzbl	%al, %eax
	orl	%edx, %eax
	testl	%eax, %eax
	jne	.L3
	movl	i(%rip), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	%eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	sall	$2, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rax,%rax), %edx
	movl	f(%rip), %eax
	andl	%edx, %eax
	testl	%eax, %eax
	jne	.L4
	movl	$50, %eax
	jmp	.L6
.L4:
	movl	$49, %eax
	jmp	.L6
.L3:
	movl	$51, %eax
.L6:
	movl	%eax, -4(%rbp)
	movl	i(%rip), %eax
	cmpl	$4, %eax
	jg	.L7
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	je	.L8
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	jmp	.L9
.L8:
	movl	$9, %edx
.L9:
	movl	i(%rip), %eax
	movslq	%eax, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	d(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	f(%rip), %eax
	orl	%edx, %eax
	movl	%eax, f(%rip)
	jmp	.L10
.L7:
	leaq	-4(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
	movl	i(%rip), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	movl	%edx, i(%rip)
	movl	i(%rip), %eax
	testl	%eax, %eax
	setne	%al
	movzbl	%al, %edx
	movl	f(%rip), %eax
	imull	%edx, %eax
	movl	%eax, f(%rip)
.L2:
	movl	i(%rip), %eax
	cmpl	$4, %eax
	jg	.L11
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	d(%rip), %edx
	imull	%edx, %eax
	testl	%eax, %eax
	jne	.L11
	movl	$0, %eax
	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
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	f
	.align 4
	.type	f, @object
	.size	f, 4
f:
	.zero	4
	.globl	d
	.align 16
	.type	d, @object
	.size	d, 20
d:
	.zero	20
	.section	.rodata
.LC0:
	.string	"%d"
	.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	$16, %rsp
	movl	%edi, -4(%rbp)
	jmp	.L2
.L11:
	movl	f(%rip), %eax
	cmpl	$14, %eax
	setg	%dl
	movl	f(%rip), %eax
	cmpl	$9, %eax
	sete	%al
	orl	%edx, %eax
	movzbl	%al, %edx
	movl	f(%rip), %eax
	cmpl	$4, %eax
	sete	%al
	movzbl	%al, %eax
	orl	%eax, %edx
	movl	f(%rip), %eax
	cmpl	$2, %eax
	sete	%al
	movzbl	%al, %eax
	orl	%edx, %eax
	testl	%eax, %eax
	jne	.L3
	movl	i(%rip), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	%eax
	movl	%edx, %ecx
	sarl	$31, %ecx
	subl	%ecx, %eax
	movl	%eax, %ecx
	sall	$2, %ecx
	addl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	(%rax,%rax), %edx
	movl	f(%rip), %eax
	andl	%edx, %eax
	testl	%eax, %eax
	jne	.L4
	movl	$50, %eax
	jmp	.L6
.L4:
	movl	$49, %eax
	jmp	.L6
.L3:
	movl	$51, %eax
.L6:
	movl	%eax, -4(%rbp)
	movl	i(%rip), %eax
	cmpl	$4, %eax
	jg	.L7
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	$1, %eax
	je	.L8
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %eax
	subl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	jmp	.L9
.L8:
	movl	$9, %edx
.L9:
	movl	i(%rip), %eax
	movslq	%eax, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	d(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	f(%rip), %eax
	orl	%edx, %eax
	movl	%eax, f(%rip)
	jmp	.L10
.L7:
	leaq	-4(%rbp), %rax
	movq	%rax, %rdi
	call	puts@PLT
.L10:
	movl	i(%rip), %eax
	addl	$1, %eax
	movl	%eax, i(%rip)
	movl	i(%rip), %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%ecx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	subl	%eax, %ecx
	movl	%ecx, %edx
	movl	%edx, i(%rip)
	movl	i(%rip), %eax
	testl	%eax, %eax
	setne	%al
	movzbl	%al, %edx
	movl	f(%rip), %eax
	imull	%edx, %eax
	movl	%eax, f(%rip)
.L2:
	movl	i(%rip), %eax
	cmpl	$4, %eax
	jg	.L11
	movl	i(%rip), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	d(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	scanf@PLT
	movl	d(%rip), %edx
	imull	%edx, %eax
	testl	%eax, %eax
	jne	.L11
	movl	$0, %eax
	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:
