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

```c
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define mod 100000000L

int main() {
	int N, P;
	int *A;
	int i;
	int count = 0;
	long ans1 = 1, ans2 = 0;
	scanf("%d %d", &N, &P);
	A = (int*)malloc(sizeof(int)*N);
	for (i = 0; i < N; i++) {
		scanf("%d", &A[i]);
		if (A[i] % 2) {
			count++;
			break;
		}
	}
	if (count == 0 && P == 1) {
		printf("0\n");
		return 0;
	}
	P = N - 1;
	if (count == 0)P++;
	for (i = 0; i < P; i++) {
		ans1 *= 2;
		ans2 *= 2;
		ans2 += ans1 / mod;
		ans1 %= mod;
	}
	if(ans2)printf("%ld%07ld\n", ans2, ans1);
	else printf("%ld\n", ans1);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"0"
.LC3:
	.string	"%ld%07ld\n"
.LC4:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rdi
	movq	%rdi, %rbx
	salq	$2, %rdi
	call	malloc@PLT
	testl	%ebx, %ebx
	jle	.L2
	movq	%rax, %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, (%rsp)
	jle	.L2
.L4:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	testb	$1, (%rbx)
	je	.L22
	movl	(%rsp), %eax
	leal	-1(%rax), %edi
.L8:
	movl	%edi, 4(%rsp)
	testl	%edi, %edi
	jle	.L12
	xorl	%r8d, %r8d
	movl	$1, %ecx
	xorl	%esi, %esi
	movabsq	$6189700196426901375, %r9
	.p2align 4,,10
	.p2align 3
.L7:
	addq	%rcx, %rcx
	addl	$1, %esi
	movq	%rcx, %rax
	imulq	%r9
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$25, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%r8,2), %r8
	imulq	$100000000, %rdx, %rdx
	subq	%rdx, %rcx
	cmpl	%edi, %esi
	jne	.L7
	testq	%r8, %r8
	je	.L6
	movq	%r8, %rdx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$16, %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
.L2:
	.cfi_restore_state
	cmpl	$1, 4(%rsp)
	movl	(%rsp), %edi
	jne	.L8
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L12:
	movl	$1, %ecx
.L6:
	movq	%rcx, %rdx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"0"
.LC3:
	.string	"%ld%07ld\n"
.LC4:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rdi
	movq	%rdi, %rbx
	salq	$2, %rdi
	call	malloc@PLT
	testl	%ebx, %ebx
	jle	.L2
	movq	%rax, %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, (%rsp)
	jle	.L2
.L4:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	testb	$1, (%rbx)
	je	.L22
	movl	(%rsp), %eax
	leal	-1(%rax), %edi
.L8:
	movl	%edi, 4(%rsp)
	testl	%edi, %edi
	jle	.L12
	xorl	%r8d, %r8d
	movl	$1, %ecx
	xorl	%esi, %esi
	movabsq	$6189700196426901375, %r9
	.p2align 4,,10
	.p2align 3
.L7:
	addq	%rcx, %rcx
	addl	$1, %esi
	movq	%rcx, %rax
	imulq	%r9
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$25, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%r8,2), %r8
	imulq	$100000000, %rdx, %rdx
	subq	%rdx, %rcx
	cmpl	%edi, %esi
	jne	.L7
	testq	%r8, %r8
	je	.L6
	movq	%r8, %rdx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$16, %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
.L2:
	.cfi_restore_state
	cmpl	$1, 4(%rsp)
	movl	(%rsp), %edi
	jne	.L8
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L12:
	movl	$1, %ecx
.L6:
	movq	%rcx, %rdx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"0"
.LC3:
	.string	"%ld%07ld\n"
.LC4:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rdi
	movq	%rdi, %rbx
	salq	$2, %rdi
	call	malloc@PLT
	testl	%ebx, %ebx
	jle	.L2
	movq	%rax, %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, (%rsp)
	jle	.L2
.L4:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	testb	$1, (%rbx)
	je	.L22
	movl	(%rsp), %eax
	leal	-1(%rax), %edi
.L8:
	movl	%edi, 4(%rsp)
	testl	%edi, %edi
	jle	.L12
	xorl	%r8d, %r8d
	movl	$1, %ecx
	xorl	%esi, %esi
	movabsq	$6189700196426901375, %r9
	.p2align 4,,10
	.p2align 3
.L7:
	addq	%rcx, %rcx
	addl	$1, %esi
	movq	%rcx, %rax
	imulq	%r9
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$25, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%r8,2), %r8
	imulq	$100000000, %rdx, %rdx
	subq	%rdx, %rcx
	cmpl	%edi, %esi
	jne	.L7
	testq	%r8, %r8
	je	.L6
	movq	%r8, %rdx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$16, %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
.L2:
	.cfi_restore_state
	cmpl	$1, 4(%rsp)
	movl	(%rsp), %edi
	jne	.L8
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L12:
	movl	$1, %ecx
.L6:
	movq	%rcx, %rdx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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:
```
```c
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define mod 100000000L

int main() {
	int N, P;
	int *A;
	int i;
	int count = 0;
	long ans1 = 1, ans2 = 0;
	scanf("%d %d", &N, &P);
	A = (int*)malloc(sizeof(int)*N);
	for (i = 0; i < N; i++) {
		scanf("%d", &A[i]);
		if (A[i] % 2) {
			count++;
			break;
		}
	}
	if (count == 0 && P == 1) {
		printf("0\n");
		return 0;
	}
	P = N - 1;
	if (count == 0)P++;
	for (i = 0; i < P; i++) {
		ans1 *= 2;
		ans2 *= 2;
		ans2 += ans1 / mod;
		ans1 %= mod;
	}
	if(ans2)printf("%ld%07ld\n", ans2, ans1);
	else printf("%ld\n", ans1);
	return 0;
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define mod 100000000L

int main() {
	int N, P;
	int *A;
	int i;
	int count = 0;
	long ans1 = 1, ans2 = 0;
	scanf("%d %d", &N, &P);
	A = (int*)malloc(sizeof(int)*N);
	for (i = 0; i < N; i++) {
		scanf("%d", &A[i]);
		if (A[i] % 2) {
			count++;
			break;
		}
	}
	if (count == 0 && P == 1) {
		printf("0\n");
		return 0;
	}
	P = N - 1;
	if (count == 0)P++;
	for (i = 0; i < P; i++) {
		ans1 *= 2;
		ans2 *= 2;
		ans2 += ans1 / mod;
		ans1 %= mod;
	}
	if(ans2)printf("%ld%07ld\n", ans2, ans1);
	else printf("%ld\n", ans1);
	return 0;
}```

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.
Optimized Assembly Code:

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 assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define mod 100000000L

int main() {
	int N, P;
	int *A;
	int i;
	int count = 0;
	long ans1 = 1, ans2 = 0;
	scanf("%d %d", &N, &P);
	A = (int*)malloc(sizeof(int)*N);
	for (i = 0; i < N; i++) {
		scanf("%d", &A[i]);
		if (A[i] % 2) {
			count++;
			break;
		}
	}
	if (count == 0 && P == 1) {
		printf("0\n");
		return 0;
	}
	P = N - 1;
	if (count == 0)P++;
	for (i = 0; i < P; i++) {
		ans1 *= 2;
		ans2 *= 2;
		ans2 += ans1 / mod;
		ans1 %= mod;
	}
	if(ans2)printf("%ld%07ld\n", ans2, ans1);
	else printf("%ld\n", ans1);
	return 0;
}```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"0"
.LC3:
	.string	"%ld%07ld\n"
.LC4:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rdi
	movq	%rdi, %rbx
	salq	$2, %rdi
	call	malloc@PLT
	testl	%ebx, %ebx
	jle	.L2
	movq	%rax, %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, (%rsp)
	jle	.L2
.L4:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	testb	$1, (%rbx)
	je	.L22
	movl	(%rsp), %eax
	leal	-1(%rax), %edi
.L8:
	movl	%edi, 4(%rsp)
	testl	%edi, %edi
	jle	.L12
	xorl	%r8d, %r8d
	movl	$1, %ecx
	xorl	%esi, %esi
	movabsq	$6189700196426901375, %r9
	.p2align 4,,10
	.p2align 3
.L7:
	addq	%rcx, %rcx
	addl	$1, %esi
	movq	%rcx, %rax
	imulq	%r9
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$25, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%r8,2), %r8
	imulq	$100000000, %rdx, %rdx
	subq	%rdx, %rcx
	cmpl	%edi, %esi
	jne	.L7
	testq	%r8, %r8
	je	.L6
	movq	%r8, %rdx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$16, %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
.L2:
	.cfi_restore_state
	cmpl	$1, 4(%rsp)
	movl	(%rsp), %edi
	jne	.L8
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L12:
	movl	$1, %ecx
.L6:
	movq	%rcx, %rdx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %d"
.LC1:
	.string	"%d"
.LC2:
	.string	"0"
.LC3:
	.string	"%ld%07ld\n"
.LC4:
	.string	"%ld\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	leaq	.LC0(%rip), %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	pushq	%rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	subq	$16, %rsp
	.cfi_def_cfa_offset 48
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	leaq	4(%rsp), %rdx
	movq	%rsp, %rsi
	call	__isoc99_scanf@PLT
	movslq	(%rsp), %rdi
	movq	%rdi, %rbx
	salq	$2, %rdi
	call	malloc@PLT
	testl	%ebx, %ebx
	jle	.L2
	movq	%rax, %rbx
	xorl	%ebp, %ebp
	leaq	.LC1(%rip), %r12
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, (%rsp)
	jle	.L2
.L4:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r12, %rdi
	call	__isoc99_scanf@PLT
	testb	$1, (%rbx)
	je	.L22
	movl	(%rsp), %eax
	leal	-1(%rax), %edi
.L8:
	movl	%edi, 4(%rsp)
	testl	%edi, %edi
	jle	.L12
	xorl	%r8d, %r8d
	movl	$1, %ecx
	xorl	%esi, %esi
	movabsq	$6189700196426901375, %r9
	.p2align 4,,10
	.p2align 3
.L7:
	addq	%rcx, %rcx
	addl	$1, %esi
	movq	%rcx, %rax
	imulq	%r9
	movq	%rcx, %rax
	sarq	$63, %rax
	sarq	$25, %rdx
	subq	%rax, %rdx
	leaq	(%rdx,%r8,2), %r8
	imulq	$100000000, %rdx, %rdx
	subq	%rdx, %rcx
	cmpl	%edi, %esi
	jne	.L7
	testq	%r8, %r8
	je	.L6
	movq	%r8, %rdx
	leaq	.LC3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
.L5:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L23
	addq	$16, %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
.L2:
	.cfi_restore_state
	cmpl	$1, 4(%rsp)
	movl	(%rsp), %edi
	jne	.L8
	leaq	.LC2(%rip), %rdi
	call	puts@PLT
	jmp	.L5
.L12:
	movl	$1, %ecx
.L6:
	movq	%rcx, %rdx
	leaq	.LC4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	jmp	.L5
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.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:
```