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

```c
// AOJ 2868 Hierarchical Calculator
// 2018.3.29 bal4u

#include <stdio.h>

int a[63];
int c[5];		// a = -2, -1, 0, 1, 2;

int main()
{
	int N, i;

	scanf("%d", &N);
	for (i = 1; i <= N; i++) {
		scanf("%d", a+i);
		c[2+a[i]]++;
	}
	c[2] = c[3] = 0;
	if (!(c[0] & 1)) c[1] = 0;
	else if (c[1]) c[1] = 1;
	else c[0]--;
	printf("%d\n", c[0]+c[1]+c[4]);
	for (i = 1; i <= N; i++) {
		if (c[2+a[i]]) printf("%d\n", i), c[2+a[i]]--;
	}
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 252
a:
	.zero	252
	.globl	c
	.align 16
	.type	c, @object
	.size	c, 20
c:
	.zero	20
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\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
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -12(%rbp)
	jmp	.L2
.L3:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$2, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	c(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L2:
	movl	-16(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L3
	movl	$0, 12+c(%rip)
	movl	12+c(%rip), %eax
	movl	%eax, 8+c(%rip)
	movl	c(%rip), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L4
	movl	$0, 4+c(%rip)
	jmp	.L5
.L4:
	movl	4+c(%rip), %eax
	testl	%eax, %eax
	je	.L6
	movl	$1, 4+c(%rip)
	jmp	.L5
.L6:
	movl	c(%rip), %eax
	subl	$1, %eax
	movl	%eax, c(%rip)
.L5:
	movl	c(%rip), %edx
	movl	4+c(%rip), %eax
	addl	%eax, %edx
	movl	16+c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -12(%rbp)
	jmp	.L7
.L9:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$2, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L8
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$2, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	c(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	-1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L8:
	addl	$1, -12(%rbp)
.L7:
	movl	-16(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L9
	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	"%d\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
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	c(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	4+a(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	(%rbx), %eax
	addq	$4, %rbx
	addl	$2, %eax
	cltq
	addl	$1, 0(%rbp,%rax,4)
	cmpl	%r12d, 4(%rsp)
	jge	.L5
.L6:
	movl	c(%rip), %edx
	movq	$0, 8+c(%rip)
	testb	$1, %dl
	jne	.L23
	movl	$0, 4+c(%rip)
.L7:
	leaq	.LC1(%rip), %r12
	addl	4+c(%rip), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	addl	16+c(%rip), %edx
	movq	%r12, %rsi
	movl	$1, %ebx
	call	__printf_chk@PLT
	movl	4(%rsp), %edx
	leaq	c(%rip), %rbp
	leaq	a(%rip), %r13
	testl	%edx, %edx
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L9:
	movl	0(%r13,%rbx,4), %eax
	addl	$2, %eax
	cltq
	movl	0(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L24
	addq	$1, %rbx
	cmpl	%ebx, %edx
	jge	.L9
.L12:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$24, %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
	movl	%ebx, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	0(%r13,%rbx,4), %eax
	movl	4(%rsp), %edx
	addq	$1, %rbx
	addl	$2, %eax
	cltq
	subl	$1, 0(%rbp,%rax,4)
	cmpl	%ebx, %edx
	jge	.L9
	jmp	.L12
.L23:
	cmpl	$0, 4+c(%rip)
	je	.L8
	movl	$1, 4+c(%rip)
	jmp	.L7
.L8:
	subl	$1, %edx
	movl	%edx, c(%rip)
	jmp	.L7
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	c
	.bss
	.align 16
	.type	c, @object
	.size	c, 20
c:
	.zero	20
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 252
a:
	.zero	252
	.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	"%d\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
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	movl	$1, %r12d
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	leaq	c(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	leaq	4+a(%rip), %rbx
	subq	$24, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	4(%rsp), %edx
	testl	%edx, %edx
	jle	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movq	%rbx, %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	addl	$1, %r12d
	call	__isoc99_scanf@PLT
	movl	(%rbx), %eax
	addq	$4, %rbx
	addl	$2, %eax
	cltq
	addl	$1, 0(%rbp,%rax,4)
	cmpl	%r12d, 4(%rsp)
	jge	.L5
.L6:
	movl	c(%rip), %edx
	movq	$0, 8+c(%rip)
	testb	$1, %dl
	jne	.L23
	movl	$0, 4+c(%rip)
.L7:
	leaq	.LC1(%rip), %r12
	addl	4+c(%rip), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	addl	16+c(%rip), %edx
	movq	%r12, %rsi
	movl	$1, %ebx
	call	__printf_chk@PLT
	movl	4(%rsp), %edx
	leaq	c(%rip), %rbp
	leaq	a(%rip), %r13
	testl	%edx, %edx
	jle	.L12
	.p2align 4,,10
	.p2align 3
.L9:
	movl	0(%r13,%rbx,4), %eax
	addl	$2, %eax
	cltq
	movl	0(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L24
	addq	$1, %rbx
	cmpl	%ebx, %edx
	jge	.L9
.L12:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L25
	addq	$24, %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
	movl	%ebx, %edx
	movq	%r12, %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	0(%r13,%rbx,4), %eax
	movl	4(%rsp), %edx
	addq	$1, %rbx
	addl	$2, %eax
	cltq
	subl	$1, 0(%rbp,%rax,4)
	cmpl	%ebx, %edx
	jge	.L9
	jmp	.L12
.L23:
	cmpl	$0, 4+c(%rip)
	je	.L8
	movl	$1, 4+c(%rip)
	jmp	.L7
.L8:
	subl	$1, %edx
	movl	%edx, c(%rip)
	jmp	.L7
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE23:
	.size	main, .-main
	.globl	c
	.bss
	.align 16
	.type	c, @object
	.size	c, 20
c:
	.zero	20
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 252
a:
	.zero	252
	.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:

// AOJ 2868 Hierarchical Calculator
// 2018.3.29 bal4u

#include <stdio.h>

int a[63];
int c[5];		// a = -2, -1, 0, 1, 2;

int main()
{
	int N, i;

	scanf("%d", &N);
	for (i = 1; i <= N; i++) {
		scanf("%d", a+i);
		c[2+a[i]]++;
	}
	c[2] = c[3] = 0;
	if (!(c[0] & 1)) c[1] = 0;
	else if (c[1]) c[1] = 1;
	else c[0]--;
	printf("%d\n", c[0]+c[1]+c[4]);
	for (i = 1; i <= N; i++) {
		if (c[2+a[i]]) printf("%d\n", i), c[2+a[i]]--;
	}
	return 0;
}

4
2 -1 -2 1
 4
2 0 -1 1
 4
1 -1 -2 0
 4
0 -1 -1 1
 4
-1 -1 0 2
 4
-1 -2 0 2
 4
2 -1 1 2
 4
-1 1 -2 0
 4
2 -1 2 2
 4
1 2 -1 1

3
1
2
3
 1
1
 2
2
3
 0
 1
4
 3
1
2
4
 2
1
4
 2
1
3
 3
1
3
4
 1
2

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

```c
// AOJ 2868 Hierarchical Calculator
// 2018.3.29 bal4u

#include <stdio.h>

int a[63];
int c[5];		// a = -2, -1, 0, 1, 2;

int main()
{
	int N, i;

	scanf("%d", &N);
	for (i = 1; i <= N; i++) {
		scanf("%d", a+i);
		c[2+a[i]]++;
	}
	c[2] = c[3] = 0;
	if (!(c[0] & 1)) c[1] = 0;
	else if (c[1]) c[1] = 1;
	else c[0]--;
	printf("%d\n", c[0]+c[1]+c[4]);
	for (i = 1; i <= N; i++) {
		if (c[2+a[i]]) printf("%d\n", i), c[2+a[i]]--;
	}
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 252
a:
	.zero	252
	.globl	c
	.align 16
	.type	c, @object
	.size	c, 20
c:
	.zero	20
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\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
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -12(%rbp)
	jmp	.L2
.L3:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$2, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	c(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L2:
	movl	-16(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L3
	movl	$0, 12+c(%rip)
	movl	12+c(%rip), %eax
	movl	%eax, 8+c(%rip)
	movl	c(%rip), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L4
	movl	$0, 4+c(%rip)
	jmp	.L5
.L4:
	movl	4+c(%rip), %eax
	testl	%eax, %eax
	je	.L6
	movl	$1, 4+c(%rip)
	jmp	.L5
.L6:
	movl	c(%rip), %eax
	subl	$1, %eax
	movl	%eax, c(%rip)
.L5:
	movl	c(%rip), %edx
	movl	4+c(%rip), %eax
	addl	%eax, %edx
	movl	16+c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -12(%rbp)
	jmp	.L7
.L9:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$2, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L8
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$2, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	c(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	-1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L8:
	addl	$1, -12(%rbp)
.L7:
	movl	-16(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L9
	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
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 252
a:
	.zero	252
	.globl	c
	.align 16
	.type	c, @object
	.size	c, 20
c:
	.zero	20
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\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
	subq	$16, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-16(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -12(%rbp)
	jmp	.L2
.L3:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$2, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	c(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L2:
	movl	-16(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L3
	movl	$0, 12+c(%rip)
	movl	12+c(%rip), %eax
	movl	%eax, 8+c(%rip)
	movl	c(%rip), %eax
	andl	$1, %eax
	testl	%eax, %eax
	jne	.L4
	movl	$0, 4+c(%rip)
	jmp	.L5
.L4:
	movl	4+c(%rip), %eax
	testl	%eax, %eax
	je	.L6
	movl	$1, 4+c(%rip)
	jmp	.L5
.L6:
	movl	c(%rip), %eax
	subl	$1, %eax
	movl	%eax, c(%rip)
.L5:
	movl	c(%rip), %edx
	movl	4+c(%rip), %eax
	addl	%eax, %edx
	movl	16+c(%rip), %eax
	addl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$1, -12(%rbp)
	jmp	.L7
.L9:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$2, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	je	.L8
	movl	-12(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	$2, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	c(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	-1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	c(%rip), %rax
	movl	%ecx, (%rdx,%rax)
.L8:
	addl	$1, -12(%rbp)
.L7:
	movl	-16(%rbp), %eax
	cmpl	%eax, -12(%rbp)
	jle	.L9
	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:
