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()
{
	int n,p,a[55],i;
	int num_1=0;
	long long int ans,m;
	scanf("%d%d",&n,&p);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);	
		if(a[i]%2)	num_1++;
	}
	if(num_1==0)
	{
		if(p)
		{
			printf("0");
			return 0;
		}
		else
		{
			if(n%2)
			{
				ans=1<<(n/2);
				m=2<<(n/2);
				printf("%lld",m*ans);
				return 0;
			}
			else
			{
				ans=m=1<<(n/2);
				printf("%lld",ans*m);
				return 0;
			}
		}
	}
	ans=1<<(num_1-1);
	m=1<<(n-num_1);
	printf("%lld",ans*m);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$272, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -260(%rbp)
	leaq	-268(%rbp), %rdx
	leaq	-272(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -264(%rbp)
	jmp	.L2
.L4:
	leaq	-240(%rbp), %rdx
	movl	-264(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-264(%rbp), %eax
	cltq
	movl	-240(%rbp,%rax,4), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L3
	addl	$1, -260(%rbp)
.L3:
	addl	$1, -264(%rbp)
.L2:
	movl	-272(%rbp), %eax
	cmpl	%eax, -264(%rbp)
	jl	.L4
	cmpl	$0, -260(%rbp)
	jne	.L5
	movl	-268(%rbp), %eax
	testl	%eax, %eax
	je	.L6
	movl	$48, %edi
	call	putchar@PLT
	movl	$0, %eax
	jmp	.L9
.L6:
	movl	-272(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L8
	movl	-272(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -256(%rbp)
	movl	-272(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	$2, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -248(%rbp)
	movq	-248(%rbp), %rax
	imulq	-256(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L9
.L8:
	movl	-272(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -248(%rbp)
	movq	-248(%rbp), %rax
	movq	%rax, -256(%rbp)
	movq	-256(%rbp), %rax
	imulq	-248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L9
.L5:
	movl	-260(%rbp), %eax
	subl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -256(%rbp)
	movl	-272(%rbp), %eax
	subl	-260(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -248(%rbp)
	movq	-256(%rbp), %rax
	imulq	-248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L9:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.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), %rdi
	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
	subq	$264, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 248(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %esi
	testl	%esi, %esi
	jle	.L2
	xorl	%ebx, %ebx
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %r13
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	(%r12,%rbx,4), %rsi
	xorl	%eax, %eax
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	(%r12,%rbx,4), %eax
	movl	8(%rsp), %esi
	andl	$1, %eax
	cmpl	$1, %eax
	sbbl	$-1, %ebp
	addq	$1, %rbx
	cmpl	%ebx, %esi
	jg	.L4
	testl	%ebp, %ebp
	jne	.L5
.L2:
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jne	.L15
	movl	%esi, %eax
	movl	$2, %edi
	cltd
	idivl	%edi
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	andb	$1, %sil
	movslq	%edx, %rdx
	jne	.L16
	imulq	%rdx, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L7:
	movq	248(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$264, %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
.L16:
	.cfi_restore_state
	sall	%cl, %edi
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movslq	%edi, %rdi
	imulq	%rdi, %rdx
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L7
.L5:
	movl	$1, %eax
	leal	-1(%rbp), %ecx
	movl	$1, %edi
	movl	%eax, %edx
	sall	%cl, %edx
	movl	%esi, %ecx
	leaq	.LC2(%rip), %rsi
	subl	%ebp, %ecx
	movslq	%edx, %rdx
	sall	%cl, %eax
	cltq
	imulq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L15:
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L7
.L17:
	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%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.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), %rdi
	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
	subq	$264, %rsp
	.cfi_def_cfa_offset 304
	movq	%fs:40, %rax
	movq	%rax, 248(%rsp)
	xorl	%eax, %eax
	leaq	8(%rsp), %rsi
	leaq	12(%rsp), %rdx
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %esi
	testl	%esi, %esi
	jle	.L2
	xorl	%ebx, %ebx
	leaq	16(%rsp), %r12
	leaq	.LC1(%rip), %r13
	xorl	%ebp, %ebp
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	(%r12,%rbx,4), %rsi
	xorl	%eax, %eax
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	movl	(%r12,%rbx,4), %eax
	movl	8(%rsp), %esi
	andl	$1, %eax
	cmpl	$1, %eax
	sbbl	$-1, %ebp
	addq	$1, %rbx
	cmpl	%ebx, %esi
	jg	.L4
	testl	%ebp, %ebp
	jne	.L5
.L2:
	movl	12(%rsp), %eax
	testl	%eax, %eax
	jne	.L15
	movl	%esi, %eax
	movl	$2, %edi
	cltd
	idivl	%edi
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	andb	$1, %sil
	movslq	%edx, %rdx
	jne	.L16
	imulq	%rdx, %rdx
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L7:
	movq	248(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L17
	addq	$264, %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
.L16:
	.cfi_restore_state
	sall	%cl, %edi
	leaq	.LC2(%rip), %rsi
	xorl	%eax, %eax
	movslq	%edi, %rdi
	imulq	%rdi, %rdx
	movl	$1, %edi
	call	__printf_chk@PLT
	jmp	.L7
.L5:
	movl	$1, %eax
	leal	-1(%rbp), %ecx
	movl	$1, %edi
	movl	%eax, %edx
	sall	%cl, %edx
	movl	%esi, %ecx
	leaq	.LC2(%rip), %rsi
	subl	%ebp, %ecx
	movslq	%edx, %rdx
	sall	%cl, %eax
	cltq
	imulq	%rax, %rdx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L7
.L15:
	movl	$48, %edi
	call	putchar@PLT
	jmp	.L7
.L17:
	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()
{
	int n,p,a[55],i;
	int num_1=0;
	long long int ans,m;
	scanf("%d%d",&n,&p);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);	
		if(a[i]%2)	num_1++;
	}
	if(num_1==0)
	{
		if(p)
		{
			printf("0");
			return 0;
		}
		else
		{
			if(n%2)
			{
				ans=1<<(n/2);
				m=2<<(n/2);
				printf("%lld",m*ans);
				return 0;
			}
			else
			{
				ans=m=1<<(n/2);
				printf("%lld",ans*m);
				return 0;
			}
		}
	}
	ans=1<<(num_1-1);
	m=1<<(n-num_1);
	printf("%lld",ans*m);
	return 0;
}
1 1
67
 45 1
17 55 85 55 74 20 90 67 40 70 39 89 91 50 16 24 14 43 24 68 25 9 89 71 41 16 53 13 61 15 85 72 62 67 42 26 36 66 4 87 59 91 4 25 26
 3 1
1 1 1
 2 0
1 1
 1 1
42
 45 1
17 55 85 55 74 20 90 67 40 70 39 89 91 50 16 24 14 43 24 68 25 9 89 71 41 16 53 11 61 15 85 72 62 67 42 26 36 66 4 87 59 91 4 25 26
 45 1
17 55 85 55 74 20 90 67 40 70 39 89 91 50 16 24 14 43 24 68 25 9 89 71 41 16 53 11 61 15 85 72 62 67 42 26 36 66 4 87 59 91 4 24 26
 45 1
17 55 85 55 74 20 90 67 40 121 39 89 91 50 16 24 14 43 24 68 25 9 89 71 41 16 53 11 61 15 85 72 62 67 42 26 36 66 4 87 59 91 4 24 26
 45 1
17 55 85 55 74 20 90 67 40 121 39 89 91 50 16 38 14 43 24 68 25 9 89 71 41 16 53 11 61 15 85 72 62 67 42 26 36 66 4 87 59 91 4 24 26
 45 1
17 55 85 55 74 20 90 67 40 121 39 178 91 50 16 38 14 43 24 68 25 9 89 71 41 16 53 11 61 15 85 72 62 67 42 26 36 66 4 87 59 91 4 24 26

1 17592186044416 4 2 0 17592186044416 17592186044416 17592186044416 17592186044416 17592186044416
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()
{
	int n,p,a[55],i;
	int num_1=0;
	long long int ans,m;
	scanf("%d%d",&n,&p);
	for(i=0;i<n;i++)
	{
		scanf("%d",&a[i]);	
		if(a[i]%2)	num_1++;
	}
	if(num_1==0)
	{
		if(p)
		{
			printf("0");
			return 0;
		}
		else
		{
			if(n%2)
			{
				ans=1<<(n/2);
				m=2<<(n/2);
				printf("%lld",m*ans);
				return 0;
			}
			else
			{
				ans=m=1<<(n/2);
				printf("%lld",ans*m);
				return 0;
			}
		}
	}
	ans=1<<(num_1-1);
	m=1<<(n-num_1);
	printf("%lld",ans*m);
	return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$272, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -260(%rbp)
	leaq	-268(%rbp), %rdx
	leaq	-272(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -264(%rbp)
	jmp	.L2
.L4:
	leaq	-240(%rbp), %rdx
	movl	-264(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-264(%rbp), %eax
	cltq
	movl	-240(%rbp,%rax,4), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L3
	addl	$1, -260(%rbp)
.L3:
	addl	$1, -264(%rbp)
.L2:
	movl	-272(%rbp), %eax
	cmpl	%eax, -264(%rbp)
	jl	.L4
	cmpl	$0, -260(%rbp)
	jne	.L5
	movl	-268(%rbp), %eax
	testl	%eax, %eax
	je	.L6
	movl	$48, %edi
	call	putchar@PLT
	movl	$0, %eax
	jmp	.L9
.L6:
	movl	-272(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L8
	movl	-272(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -256(%rbp)
	movl	-272(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	$2, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -248(%rbp)
	movq	-248(%rbp), %rax
	imulq	-256(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L9
.L8:
	movl	-272(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -248(%rbp)
	movq	-248(%rbp), %rax
	movq	%rax, -256(%rbp)
	movq	-256(%rbp), %rax
	imulq	-248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L9
.L5:
	movl	-260(%rbp), %eax
	subl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -256(%rbp)
	movl	-272(%rbp), %eax
	subl	-260(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -248(%rbp)
	movq	-256(%rbp), %rax
	imulq	-248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L9:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d%d"
.LC1:
	.string	"%d"
.LC2:
	.string	"%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$272, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	movl	$0, -260(%rbp)
	leaq	-268(%rbp), %rdx
	leaq	-272(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -264(%rbp)
	jmp	.L2
.L4:
	leaq	-240(%rbp), %rdx
	movl	-264(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-264(%rbp), %eax
	cltq
	movl	-240(%rbp,%rax,4), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L3
	addl	$1, -260(%rbp)
.L3:
	addl	$1, -264(%rbp)
.L2:
	movl	-272(%rbp), %eax
	cmpl	%eax, -264(%rbp)
	jl	.L4
	cmpl	$0, -260(%rbp)
	jne	.L5
	movl	-268(%rbp), %eax
	testl	%eax, %eax
	je	.L6
	movl	$48, %edi
	call	putchar@PLT
	movl	$0, %eax
	jmp	.L9
.L6:
	movl	-272(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L8
	movl	-272(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -256(%rbp)
	movl	-272(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	$2, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -248(%rbp)
	movq	-248(%rbp), %rax
	imulq	-256(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L9
.L8:
	movl	-272(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -248(%rbp)
	movq	-248(%rbp), %rax
	movq	%rax, -256(%rbp)
	movq	-256(%rbp), %rax
	imulq	-248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	jmp	.L9
.L5:
	movl	-260(%rbp), %eax
	subl	$1, %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -256(%rbp)
	movl	-272(%rbp), %eax
	subl	-260(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	sall	%cl, %edx
	movl	%edx, %eax
	cltq
	movq	%rax, -248(%rbp)
	movq	-256(%rbp), %rax
	imulq	-248(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L9:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	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:
