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

```c
B[3000];
p;
main()
{
	scanf("%d",&p);
	for(int i=0;i<p;i++)
	{
		int a;scanf("%d",&a);
		if(a)
		{
			B[p-1]+=p-1;
			if(i==0)
			{
				B[0]=1;
			}
			else
			{
				int now=p-1;
				for(int j=p-2;j>0;j--)
				{
					B[j]+=now=now*i%p;
				}
			}
		}
	}
	for(int i=0;i<p;i++)printf("%d\n",B[i]%p);
}```

Assembly Code:

```assembly
	.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:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	p(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	call	scanf@PLT
	movl	p(%rip), %edx
	testl	%edx, %edx
	jle	.L7
	leaq	B(%rip), %rbp
	xorl	%r14d, %r14d
	leaq	4(%rsp), %r12
	leaq	-4(%rbp), %r13
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$1, B(%rip)
.L5:
	addl	$1, %r14d
	cmpl	%ecx, %r14d
	jge	.L19
.L2:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	4(%rsp), %eax
	movl	p(%rip), %ecx
	testl	%eax, %eax
	je	.L5
	leal	-1(%rcx), %edx
	movslq	%edx, %rax
	addl	%edx, 0(%rbp,%rax,4)
	testl	%r14d, %r14d
	je	.L20
	cmpl	$2, %ecx
	jle	.L5
	movslq	%ecx, %rax
	leal	-3(%rcx), %edi
	leaq	0(%rbp,%rax,4), %rsi
	subq	%rdi, %rax
	leaq	0(%r13,%rax,4), %rdi
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%edx, %eax
	imull	%r14d, %eax
	cltd
	idivl	%ecx
	addl	%edx, -8(%rsi)
	subq	$4, %rsi
	cmpq	%rdi, %rsi
	jne	.L6
	addl	$1, %r14d
	cmpl	%ecx, %r14d
	jl	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	testl	%ecx, %ecx
	jle	.L7
	xorl	%ebx, %ebx
	leaq	B(%rip), %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r12,%rbx,4), %eax
	movq	%rbp, %rdi
	addq	$1, %rbx
	cltd
	idivl	%ecx
	xorl	%eax, %eax
	movl	%edx, %esi
	call	printf@PLT
	movl	p(%rip), %ecx
	cmpl	%ebx, %ecx
	jg	.L8
.L7:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	p
	.bss
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	B
	.align 32
	.type	B, @object
	.size	B, 12000
B:
	.zero	12000
	.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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	p(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	call	scanf@PLT
	movl	p(%rip), %edx
	testl	%edx, %edx
	jle	.L7
	leaq	B(%rip), %rbp
	xorl	%r14d, %r14d
	leaq	4(%rsp), %r12
	leaq	-4(%rbp), %r13
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$1, B(%rip)
.L5:
	addl	$1, %r14d
	cmpl	%ecx, %r14d
	jge	.L19
.L2:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	4(%rsp), %eax
	movl	p(%rip), %ecx
	testl	%eax, %eax
	je	.L5
	leal	-1(%rcx), %edx
	movslq	%edx, %rax
	addl	%edx, 0(%rbp,%rax,4)
	testl	%r14d, %r14d
	je	.L20
	cmpl	$2, %ecx
	jle	.L5
	movslq	%ecx, %rax
	leal	-3(%rcx), %edi
	leaq	0(%rbp,%rax,4), %rsi
	subq	%rdi, %rax
	leaq	0(%r13,%rax,4), %rdi
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%edx, %eax
	imull	%r14d, %eax
	cltd
	idivl	%ecx
	addl	%edx, -8(%rsi)
	subq	$4, %rsi
	cmpq	%rdi, %rsi
	jne	.L6
	addl	$1, %r14d
	cmpl	%ecx, %r14d
	jl	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	testl	%ecx, %ecx
	jle	.L7
	xorl	%ebx, %ebx
	leaq	B(%rip), %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r12,%rbx,4), %eax
	movq	%rbp, %rdi
	addq	$1, %rbx
	cltd
	idivl	%ecx
	xorl	%eax, %eax
	movl	%edx, %esi
	call	printf@PLT
	movl	p(%rip), %ecx
	cmpl	%ebx, %ecx
	jg	.L8
.L7:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	p
	.bss
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	B
	.align 32
	.type	B, @object
	.size	B, 12000
B:
	.zero	12000
	.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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	p(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	call	scanf@PLT
	movl	p(%rip), %edx
	testl	%edx, %edx
	jle	.L7
	leaq	B(%rip), %rbp
	xorl	%r14d, %r14d
	leaq	4(%rsp), %r12
	leaq	-4(%rbp), %r13
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$1, B(%rip)
.L5:
	addl	$1, %r14d
	cmpl	%ecx, %r14d
	jge	.L19
.L2:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	4(%rsp), %eax
	movl	p(%rip), %ecx
	testl	%eax, %eax
	je	.L5
	leal	-1(%rcx), %edx
	movslq	%edx, %rax
	addl	%edx, 0(%rbp,%rax,4)
	testl	%r14d, %r14d
	je	.L20
	cmpl	$2, %ecx
	jle	.L5
	movslq	%ecx, %rax
	leal	-3(%rcx), %edi
	leaq	0(%rbp,%rax,4), %rsi
	subq	%rdi, %rax
	leaq	0(%r13,%rax,4), %rdi
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%edx, %eax
	imull	%r14d, %eax
	cltd
	idivl	%ecx
	addl	%edx, -8(%rsi)
	subq	$4, %rsi
	cmpq	%rdi, %rsi
	jne	.L6
	addl	$1, %r14d
	cmpl	%ecx, %r14d
	jl	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	testl	%ecx, %ecx
	jle	.L7
	xorl	%ebx, %ebx
	leaq	B(%rip), %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r12,%rbx,4), %eax
	movq	%rbp, %rdi
	addq	$1, %rbx
	cltd
	idivl	%ecx
	xorl	%eax, %eax
	movl	%edx, %esi
	call	printf@PLT
	movl	p(%rip), %ecx
	cmpl	%ebx, %ecx
	jg	.L8
.L7:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	p
	.bss
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	B
	.align 32
	.type	B, @object
	.size	B, 12000
B:
	.zero	12000
	.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
B[3000];
p;
main()
{
	scanf("%d",&p);
	for(int i=0;i<p;i++)
	{
		int a;scanf("%d",&a);
		if(a)
		{
			B[p-1]+=p-1;
			if(i==0)
			{
				B[0]=1;
			}
			else
			{
				int now=p-1;
				for(int j=p-2;j>0;j--)
				{
					B[j]+=now=now*i%p;
				}
			}
		}
	}
	for(int i=0;i<p;i++)printf("%d\n",B[i]%p);
}```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
B[3000];
p;
main()
{
	scanf("%d",&p);
	for(int i=0;i<p;i++)
	{
		int a;scanf("%d",&a);
		if(a)
		{
			B[p-1]+=p-1;
			if(i==0)
			{
				B[0]=1;
			}
			else
			{
				int now=p-1;
				for(int j=p-2;j>0;j--)
				{
					B[j]+=now=now*i%p;
				}
			}
		}
	}
	for(int i=0;i<p;i++)printf("%d\n",B[i]%p);
}```

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:

3
0 0 1
 2
0 0
 3
0 1 0
 3
0 1 1
 3
1 1 0
 5
0 1 0 1 1
 2
0 1
 5
0 0 0 1 1
 3
1 1 1
 5
0 0 1 1 1

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

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

```c
B[3000];
p;
main()
{
	scanf("%d",&p);
	for(int i=0;i<p;i++)
	{
		int a;scanf("%d",&a);
		if(a)
		{
			B[p-1]+=p-1;
			if(i==0)
			{
				B[0]=1;
			}
			else
			{
				int now=p-1;
				for(int j=p-2;j>0;j--)
				{
					B[j]+=now=now*i%p;
				}
			}
		}
	}
	for(int i=0;i<p;i++)printf("%d\n",B[i]%p);
}```

Assembly Code:

```assembly
	.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:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	p(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	call	scanf@PLT
	movl	p(%rip), %edx
	testl	%edx, %edx
	jle	.L7
	leaq	B(%rip), %rbp
	xorl	%r14d, %r14d
	leaq	4(%rsp), %r12
	leaq	-4(%rbp), %r13
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$1, B(%rip)
.L5:
	addl	$1, %r14d
	cmpl	%ecx, %r14d
	jge	.L19
.L2:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	4(%rsp), %eax
	movl	p(%rip), %ecx
	testl	%eax, %eax
	je	.L5
	leal	-1(%rcx), %edx
	movslq	%edx, %rax
	addl	%edx, 0(%rbp,%rax,4)
	testl	%r14d, %r14d
	je	.L20
	cmpl	$2, %ecx
	jle	.L5
	movslq	%ecx, %rax
	leal	-3(%rcx), %edi
	leaq	0(%rbp,%rax,4), %rsi
	subq	%rdi, %rax
	leaq	0(%r13,%rax,4), %rdi
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%edx, %eax
	imull	%r14d, %eax
	cltd
	idivl	%ecx
	addl	%edx, -8(%rsi)
	subq	$4, %rsi
	cmpq	%rdi, %rsi
	jne	.L6
	addl	$1, %r14d
	cmpl	%ecx, %r14d
	jl	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	testl	%ecx, %ecx
	jle	.L7
	xorl	%ebx, %ebx
	leaq	B(%rip), %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r12,%rbx,4), %eax
	movq	%rbp, %rdi
	addq	$1, %rbx
	cltd
	idivl	%ecx
	xorl	%eax, %eax
	movl	%edx, %esi
	call	printf@PLT
	movl	p(%rip), %ecx
	cmpl	%ebx, %ecx
	jg	.L8
.L7:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	p
	.bss
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	B
	.align 32
	.type	B, @object
	.size	B, 12000
B:
	.zero	12000
	.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"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	leaq	p(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	leaq	.LC0(%rip), %rbx
	movq	%rbx, %rdi
	subq	$16, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 8(%rsp)
	xorl	%eax, %eax
	call	scanf@PLT
	movl	p(%rip), %edx
	testl	%edx, %edx
	jle	.L7
	leaq	B(%rip), %rbp
	xorl	%r14d, %r14d
	leaq	4(%rsp), %r12
	leaq	-4(%rbp), %r13
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	movl	$1, B(%rip)
.L5:
	addl	$1, %r14d
	cmpl	%ecx, %r14d
	jge	.L19
.L2:
	movq	%r12, %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	call	scanf@PLT
	movl	4(%rsp), %eax
	movl	p(%rip), %ecx
	testl	%eax, %eax
	je	.L5
	leal	-1(%rcx), %edx
	movslq	%edx, %rax
	addl	%edx, 0(%rbp,%rax,4)
	testl	%r14d, %r14d
	je	.L20
	cmpl	$2, %ecx
	jle	.L5
	movslq	%ecx, %rax
	leal	-3(%rcx), %edi
	leaq	0(%rbp,%rax,4), %rsi
	subq	%rdi, %rax
	leaq	0(%r13,%rax,4), %rdi
	.p2align 4,,10
	.p2align 3
.L6:
	movl	%edx, %eax
	imull	%r14d, %eax
	cltd
	idivl	%ecx
	addl	%edx, -8(%rsi)
	subq	$4, %rsi
	cmpq	%rdi, %rsi
	jne	.L6
	addl	$1, %r14d
	cmpl	%ecx, %r14d
	jl	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	testl	%ecx, %ecx
	jle	.L7
	xorl	%ebx, %ebx
	leaq	B(%rip), %r12
	leaq	.LC1(%rip), %rbp
	.p2align 4,,10
	.p2align 3
.L8:
	movl	(%r12,%rbx,4), %eax
	movq	%rbp, %rdi
	addq	$1, %rbx
	cltd
	idivl	%ecx
	xorl	%eax, %eax
	movl	%edx, %esi
	call	printf@PLT
	movl	p(%rip), %ecx
	cmpl	%ebx, %ecx
	jg	.L8
.L7:
	movq	8(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L21
	addq	$16, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	p
	.bss
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	B
	.align 32
	.type	B, @object
	.size	B, 12000
B:
	.zero	12000
	.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:
```