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

```c
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}

#define P 1000000007

ulong f(uint k){
	if(k<64) return (((long)1)<<k)%P;
	ulong a=f(k/2);
	if(k&1) return a*a*2%P;
	else return a*a%P;
}

int main(void){
	int n, i;
	char a[100000];
	memset(a, 0, sizeof(a));
	scanf("%d", &n);
	for(i=0; i<n; i++){
		int A;
		scanf("%d", &A);
		if((A&1)==(n&1) || a[A]>=2 || (A==0&&a[0]>=1)){
			puts("0");
			return 0;
		}else{
			a[A]++;
		}
	}
	printf("%ld\n", f(n/2));
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	comp
	.type	comp, @function
comp:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.globl	f
	.type	f, @function
f:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	cmpl	$63, -20(%rbp)
	ja	.L4
	movl	-20(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	jmp	.L5
.L4:
	movl	-20(%rbp), %eax
	shrl	%eax
	movl	%eax, %edi
	call	f
	movq	%rax, -8(%rbp)
	movl	-20(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L6
	movq	-8(%rbp), %rax
	imulq	%rax, %rax
	leaq	(%rax,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	jmp	.L5
.L6:
	movq	-8(%rbp), %rax
	imulq	%rax, %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	f, .-f
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"0"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1728, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-100016(%rbp), %rax
	movl	$100000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-100028(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -100020(%rbp)
	jmp	.L8
.L12:
	leaq	-100024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-100024(%rbp), %edx
	movl	-100028(%rbp), %eax
	xorl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L9
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$1, %al
	jg	.L9
	movl	-100024(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movzbl	-100016(%rbp), %eax
	testb	%al, %al
	jle	.L10
.L9:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L11
.L10:
	movl	-100024(%rbp), %eax
	movslq	%eax, %rdx
	movzbl	-100016(%rbp,%rdx), %edx
	addl	$1, %edx
	cltq
	movb	%dl, -100016(%rbp,%rax)
	addl	$1, -100020(%rbp)
.L8:
	movl	-100028(%rbp), %eax
	cmpl	%eax, -100020(%rbp)
	jl	.L12
	movl	-100028(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edi
	call	f
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L11:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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
	.type	f.part.0, @function
f.part.0:
.LFB54:
	.cfi_startproc
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	shrl	%ebp
	movl	%edi, %ebx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	cmpl	$127, %edi
	ja	.L2
	movl	%ebp, %ecx
	movl	$1, %eax
	movabsq	$-8543223828751151131, %rdx
	salq	%cl, %rax
	movq	%rax, %rcx
	imulq	%rdx
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
.L3:
	movq	%rdx, %rcx
	imulq	%rdx, %rcx
	andl	$1, %ebx
	je	.L13
	addq	%rcx, %rcx
.L13:
	movq	%rcx, %rax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movabsq	$-8543223828751151131, %rdx
	mulq	%rdx
	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
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	movl	%edi, %r12d
	shrl	$2, %r12d
	cmpl	$255, %edi
	ja	.L4
	movl	%r12d, %ecx
	movl	$1, %eax
	movabsq	$-8543223828751151131, %rdx
	salq	%cl, %rax
	movq	%rax, %rcx
	imulq	%rdx
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
.L5:
	movq	%rdx, %rcx
	imulq	%rdx, %rcx
	andl	$1, %ebp
	je	.L12
	addq	%rcx, %rcx
.L12:
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%edi, %r13d
	shrl	$3, %r13d
	cmpl	$511, %edi
	ja	.L6
	movl	%r13d, %ecx
	movl	$1, %eax
	movabsq	$-8543223828751151131, %rdx
	salq	%cl, %rax
	movq	%rax, %rcx
	imulq	%rdx
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
.L7:
	movq	%rdx, %rcx
	imulq	%rdx, %rcx
	andl	$1, %r12d
	je	.L11
	addq	%rcx, %rcx
.L11:
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	shrl	$4, %edi
	cmpl	$1023, %ebx
	ja	.L8
	movl	%edi, %ecx
	movl	$1, %eax
	movabsq	$-8543223828751151131, %rdx
	salq	%cl, %rax
	movq	%rax, %rcx
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
.L9:
	imulq	%rax, %rax
	andl	$1, %r13d
	movq	%rax, %rcx
	je	.L10
	addq	%rcx, %rcx
.L10:
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	call	f.part.0
	jmp	.L9
	.cfi_endproc
.LFE54:
	.size	f.part.0, .-f.part.0
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	comp, .-comp
	.p2align 4
	.globl	f
	.type	f, @function
f:
.LFB52:
	.cfi_startproc
	endbr64
	movl	%edi, %r8d
	cmpl	$63, %edi
	ja	.L19
	movl	%edi, %ecx
	movl	$1, %eax
	movabsq	$-8543223828751151131, %rdx
	salq	%cl, %rax
	movq	%rax, %rcx
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	movl	%edi, %esi
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	shrl	%esi
	cmpl	$127, %edi
	ja	.L21
	movl	%esi, %ecx
	movl	$1, %eax
	movabsq	$-8543223828751151131, %rdx
	salq	%cl, %rax
	movq	%rax, %rcx
	imulq	%rdx
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
.L22:
	movq	%rdx, %rsi
	imulq	%rdx, %rsi
	andl	$1, %r8d
	je	.L29
	addq	%rsi, %rsi
.L29:
	movq	%rsi, %rax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	movabsq	$-8543223828751151131, %rdx
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rsi, %rax
	subq	%rdx, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	movl	%edi, %r9d
	shrl	$2, %r9d
	cmpl	$255, %edi
	ja	.L23
	movl	%r9d, %ecx
	movl	$1, %eax
	movabsq	$-8543223828751151131, %rdx
	salq	%cl, %rax
	movq	%rax, %rcx
	imulq	%rdx
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
.L24:
	movq	%rdx, %rcx
	imulq	%rdx, %rcx
	andl	$1, %esi
	je	.L28
	addq	%rcx, %rcx
.L28:
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L23:
	shrl	$3, %edi
	cmpl	$511, %r8d
	ja	.L25
	movl	%edi, %ecx
	movl	$1, %eax
	movabsq	$-8543223828751151131, %rdx
	salq	%cl, %rax
	movq	%rax, %rcx
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
.L26:
	imulq	%rax, %rax
	andl	$1, %r9d
	movq	%rax, %rcx
	je	.L27
	addq	%rcx, %rcx
.L27:
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L25:
	call	f.part.0
	jmp	.L26
	.cfi_endproc
.LFE52:
	.size	f, .-f
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"0"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98336
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1728, %rsp
	.cfi_def_cfa_offset 100064
	movl	$100000, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 100024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	call	memset@PLT
	leaq	8(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L34
	xorl	%r12d, %r12d
	leaq	12(%rsp), %rbp
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L47:
	movslq	%esi, %rcx
	movzbl	16(%rsp,%rcx), %edx
	cmpb	$1, %dl
	jg	.L35
	testl	%esi, %esi
	jne	.L36
	cmpb	$0, 16(%rsp)
	jg	.L35
.L36:
	addl	$1, %edx
	addl	$1, %r12d
	movb	%dl, 16(%rsp,%rcx)
	cmpl	%r12d, %eax
	jle	.L34
.L38:
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	movl	8(%rsp), %eax
	movl	%esi, %edx
	xorl	%eax, %edx
	andl	$1, %edx
	jne	.L47
.L35:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L37:
	movq	100024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L48
	addq	$100032, %rsp
	.cfi_remember_state
	.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
.L34:
	.cfi_restore_state
	movl	$2, %ecx
	cltd
	idivl	%ecx
	cmpl	$63, %eax
	ja	.L39
	movl	%eax, %ecx
	movl	$1, %edx
	salq	%cl, %rdx
	movl	$1000000007, %ecx
	movq	%rdx, %rax
	cqto
	idivq	%rcx
.L40:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L37
.L39:
	movl	%eax, %edi
	call	f.part.0
	movq	%rax, %rdx
	jmp	.L40
.L48:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.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
	.p2align 4
	.type	f.part.0, @function
f.part.0:
.LFB54:
	.cfi_startproc
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movl	%edi, %ebp
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	shrl	%ebp
	movl	%edi, %ebx
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	cmpl	$127, %edi
	ja	.L2
	movl	%ebp, %ecx
	movl	$1, %eax
	movabsq	$-8543223828751151131, %rdx
	salq	%cl, %rax
	movq	%rax, %rcx
	imulq	%rdx
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
.L3:
	movq	%rdx, %rcx
	imulq	%rdx, %rcx
	andl	$1, %ebx
	je	.L13
	addq	%rcx, %rcx
.L13:
	movq	%rcx, %rax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	movabsq	$-8543223828751151131, %rdx
	mulq	%rdx
	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
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	movl	%edi, %r12d
	shrl	$2, %r12d
	cmpl	$255, %edi
	ja	.L4
	movl	%r12d, %ecx
	movl	$1, %eax
	movabsq	$-8543223828751151131, %rdx
	salq	%cl, %rax
	movq	%rax, %rcx
	imulq	%rdx
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
.L5:
	movq	%rdx, %rcx
	imulq	%rdx, %rcx
	andl	$1, %ebp
	je	.L12
	addq	%rcx, %rcx
.L12:
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	movl	%edi, %r13d
	shrl	$3, %r13d
	cmpl	$511, %edi
	ja	.L6
	movl	%r13d, %ecx
	movl	$1, %eax
	movabsq	$-8543223828751151131, %rdx
	salq	%cl, %rax
	movq	%rax, %rcx
	imulq	%rdx
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
.L7:
	movq	%rdx, %rcx
	imulq	%rdx, %rcx
	andl	$1, %r12d
	je	.L11
	addq	%rcx, %rcx
.L11:
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	shrl	$4, %edi
	cmpl	$1023, %ebx
	ja	.L8
	movl	%edi, %ecx
	movl	$1, %eax
	movabsq	$-8543223828751151131, %rdx
	salq	%cl, %rax
	movq	%rax, %rcx
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
.L9:
	imulq	%rax, %rax
	andl	$1, %r13d
	movq	%rax, %rcx
	je	.L10
	addq	%rcx, %rcx
.L10:
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	call	f.part.0
	jmp	.L9
	.cfi_endproc
.LFE54:
	.size	f.part.0, .-f.part.0
	.p2align 4
	.globl	comp
	.type	comp, @function
comp:
.LFB51:
	.cfi_startproc
	endbr64
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE51:
	.size	comp, .-comp
	.p2align 4
	.globl	f
	.type	f, @function
f:
.LFB52:
	.cfi_startproc
	endbr64
	movl	%edi, %r8d
	cmpl	$63, %edi
	ja	.L19
	movl	%edi, %ecx
	movl	$1, %eax
	movabsq	$-8543223828751151131, %rdx
	salq	%cl, %rax
	movq	%rax, %rcx
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	movl	%edi, %esi
	subq	$8, %rsp
	.cfi_def_cfa_offset 16
	shrl	%esi
	cmpl	$127, %edi
	ja	.L21
	movl	%esi, %ecx
	movl	$1, %eax
	movabsq	$-8543223828751151131, %rdx
	salq	%cl, %rax
	movq	%rax, %rcx
	imulq	%rdx
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
.L22:
	movq	%rdx, %rsi
	imulq	%rdx, %rsi
	andl	$1, %r8d
	je	.L29
	addq	%rsi, %rsi
.L29:
	movq	%rsi, %rax
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	movabsq	$-8543223828751151131, %rdx
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rsi, %rax
	subq	%rdx, %rax
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	movl	%edi, %r9d
	shrl	$2, %r9d
	cmpl	$255, %edi
	ja	.L23
	movl	%r9d, %ecx
	movl	$1, %eax
	movabsq	$-8543223828751151131, %rdx
	salq	%cl, %rax
	movq	%rax, %rcx
	imulq	%rdx
	movq	%rcx, %rax
	sarq	$63, %rax
	addq	%rcx, %rdx
	sarq	$29, %rdx
	subq	%rax, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
.L24:
	movq	%rdx, %rcx
	imulq	%rdx, %rcx
	andl	$1, %esi
	je	.L28
	addq	%rcx, %rcx
.L28:
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L23:
	shrl	$3, %edi
	cmpl	$511, %r8d
	ja	.L25
	movl	%edi, %ecx
	movl	$1, %eax
	movabsq	$-8543223828751151131, %rdx
	salq	%cl, %rax
	movq	%rax, %rcx
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	sarq	$29, %rax
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
.L26:
	imulq	%rax, %rax
	andl	$1, %r9d
	movq	%rax, %rcx
	je	.L27
	addq	%rcx, %rcx
.L27:
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	shrq	$29, %rdx
	imulq	$1000000007, %rdx, %rax
	subq	%rax, %rcx
	movq	%rcx, %rdx
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L25:
	call	f.part.0
	jmp	.L26
	.cfi_endproc
.LFE52:
	.size	f, .-f
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"0"
.LC2:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	leaq	-98304(%rsp), %r11
	.cfi_def_cfa 11, 98336
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$1728, %rsp
	.cfi_def_cfa_offset 100064
	movl	$100000, %edx
	xorl	%esi, %esi
	leaq	.LC0(%rip), %rbx
	movq	%fs:40, %rax
	movq	%rax, 100024(%rsp)
	xorl	%eax, %eax
	leaq	16(%rsp), %rdi
	call	memset@PLT
	leaq	8(%rsp), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	8(%rsp), %eax
	testl	%eax, %eax
	jle	.L34
	xorl	%r12d, %r12d
	leaq	12(%rsp), %rbp
	jmp	.L38
	.p2align 4,,10
	.p2align 3
.L47:
	movslq	%esi, %rcx
	movzbl	16(%rsp,%rcx), %edx
	cmpb	$1, %dl
	jg	.L35
	testl	%esi, %esi
	jne	.L36
	cmpb	$0, 16(%rsp)
	jg	.L35
.L36:
	addl	$1, %edx
	addl	$1, %r12d
	movb	%dl, 16(%rsp,%rcx)
	cmpl	%r12d, %eax
	jle	.L34
.L38:
	movq	%rbp, %rsi
	xorl	%eax, %eax
	movq	%rbx, %rdi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %esi
	movl	8(%rsp), %eax
	movl	%esi, %edx
	xorl	%eax, %edx
	andl	$1, %edx
	jne	.L47
.L35:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
.L37:
	movq	100024(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L48
	addq	$100032, %rsp
	.cfi_remember_state
	.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
.L34:
	.cfi_restore_state
	movl	$2, %ecx
	cltd
	idivl	%ecx
	cmpl	$63, %eax
	ja	.L39
	movl	%eax, %ecx
	movl	$1, %edx
	salq	%cl, %rdx
	movl	$1000000007, %ecx
	movq	%rdx, %rax
	cqto
	idivq	%rcx
.L40:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L37
.L39:
	movl	%eax, %edi
	call	f.part.0
	movq	%rax, %rdx
	jmp	.L40
.L48:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE53:
	.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 <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}

#define P 1000000007

ulong f(uint k){
	if(k<64) return (((long)1)<<k)%P;
	ulong a=f(k/2);
	if(k&1) return a*a*2%P;
	else return a*a%P;
}

int main(void){
	int n, i;
	char a[100000];
	memset(a, 0, sizeof(a));
	scanf("%d", &n);
	for(i=0; i<n; i++){
		int A;
		scanf("%d", &A);
		if((A&1)==(n&1) || a[A]>=2 || (A==0&&a[0]>=1)){
			puts("0");
			return 0;
		}else{
			a[A]++;
		}
	}
	printf("%ld\n", f(n/2));
}

8
7 5 1 2 7 3 5 3
 7
6 4 0 2 4 0 4
 5
0 4 4 0 2
 7
6 4 0 2 4 -1 4
 5
0 4 4 0 1
 7
6 4 0 2 8 -1 4
 5
0 4 1 0 1
 7
6 4 0 2 8 0 4
 5
0 4 0 0 1
 7
6 4 1 2 8 0 4

0
 0
 0
 0
 0
 0
 0
 0
 0
 0

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

```c
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>

int comp(const void *a, const void *b){return *(int*)a-*(int*)b;}

#define P 1000000007

ulong f(uint k){
	if(k<64) return (((long)1)<<k)%P;
	ulong a=f(k/2);
	if(k&1) return a*a*2%P;
	else return a*a%P;
}

int main(void){
	int n, i;
	char a[100000];
	memset(a, 0, sizeof(a));
	scanf("%d", &n);
	for(i=0; i<n; i++){
		int A;
		scanf("%d", &A);
		if((A&1)==(n&1) || a[A]>=2 || (A==0&&a[0]>=1)){
			puts("0");
			return 0;
		}else{
			a[A]++;
		}
	}
	printf("%ld\n", f(n/2));
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	comp
	.type	comp, @function
comp:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.globl	f
	.type	f, @function
f:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	cmpl	$63, -20(%rbp)
	ja	.L4
	movl	-20(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	jmp	.L5
.L4:
	movl	-20(%rbp), %eax
	shrl	%eax
	movl	%eax, %edi
	call	f
	movq	%rax, -8(%rbp)
	movl	-20(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L6
	movq	-8(%rbp), %rax
	imulq	%rax, %rax
	leaq	(%rax,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	jmp	.L5
.L6:
	movq	-8(%rbp), %rax
	imulq	%rax, %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	f, .-f
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"0"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1728, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-100016(%rbp), %rax
	movl	$100000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-100028(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -100020(%rbp)
	jmp	.L8
.L12:
	leaq	-100024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-100024(%rbp), %edx
	movl	-100028(%rbp), %eax
	xorl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L9
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$1, %al
	jg	.L9
	movl	-100024(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movzbl	-100016(%rbp), %eax
	testb	%al, %al
	jle	.L10
.L9:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L11
.L10:
	movl	-100024(%rbp), %eax
	movslq	%eax, %rdx
	movzbl	-100016(%rbp,%rdx), %edx
	addl	$1, %edx
	cltq
	movb	%dl, -100016(%rbp,%rax)
	addl	$1, -100020(%rbp)
.L8:
	movl	-100028(%rbp), %eax
	cmpl	%eax, -100020(%rbp)
	jl	.L12
	movl	-100028(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edi
	call	f
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L11:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	comp
	.type	comp, @function
comp:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	comp, .-comp
	.globl	f
	.type	f, @function
f:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	cmpl	$63, -20(%rbp)
	ja	.L4
	movl	-20(%rbp), %eax
	movl	$1, %edx
	movl	%eax, %ecx
	salq	%cl, %rdx
	movq	%rdx, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	imulq	%rdx
	leaq	(%rdx,%rcx), %rax
	sarq	$29, %rax
	movq	%rcx, %rdx
	sarq	$63, %rdx
	subq	%rdx, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	jmp	.L5
.L4:
	movl	-20(%rbp), %eax
	shrl	%eax
	movl	%eax, %edi
	call	f
	movq	%rax, -8(%rbp)
	movl	-20(%rbp), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L6
	movq	-8(%rbp), %rax
	imulq	%rax, %rax
	leaq	(%rax,%rax), %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	jmp	.L5
.L6:
	movq	-8(%rbp), %rax
	imulq	%rax, %rax
	movq	%rax, %rcx
	movabsq	$-8543223828751151131, %rdx
	movq	%rcx, %rax
	mulq	%rdx
	movq	%rdx, %rax
	shrq	$29, %rax
	imulq	$1000000007, %rax, %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	f, .-f
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"0"
.LC2:
	.string	"%ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	leaq	-98304(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$1728, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-100016(%rbp), %rax
	movl	$100000, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	leaq	-100028(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$0, -100020(%rbp)
	jmp	.L8
.L12:
	leaq	-100024(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-100024(%rbp), %edx
	movl	-100028(%rbp), %eax
	xorl	%edx, %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L9
	movl	-100024(%rbp), %eax
	cltq
	movzbl	-100016(%rbp,%rax), %eax
	cmpb	$1, %al
	jg	.L9
	movl	-100024(%rbp), %eax
	testl	%eax, %eax
	jne	.L10
	movzbl	-100016(%rbp), %eax
	testb	%al, %al
	jle	.L10
.L9:
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$0, %eax
	jmp	.L11
.L10:
	movl	-100024(%rbp), %eax
	movslq	%eax, %rdx
	movzbl	-100016(%rbp,%rdx), %edx
	addl	$1, %edx
	cltq
	movb	%dl, -100016(%rbp,%rax)
	addl	$1, -100020(%rbp)
.L8:
	movl	-100028(%rbp), %eax
	cmpl	%eax, -100020(%rbp)
	jl	.L12
	movl	-100028(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edi
	call	f
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L11:
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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:
