	.file	"799967.c"
	.intel_syntax noprefix
	.text
	.globl	p
	.bss
	.align 4
	.type	p, @object
	.size	p, 4
p:
	.zero	4
	.globl	prime
	.align 32
	.type	prime, @object
	.size	prime, 315108
prime:
	.zero	315108
	.globl	ar
	.align 32
	.type	ar, @object
	.size	ar, 62520
ar:
	.zero	62520
	.text
	.globl	Sieve
	.type	Sieve, @function
Sieve:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR ar[rip]
	or	eax, 1
	mov	DWORD PTR ar[rip], eax
	mov	eax, DWORD PTR ar[rip]
	or	eax, 1
	mov	DWORD PTR ar[rip], eax
	mov	DWORD PTR -12[rbp], 3
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -12[rbp]
	sar	eax, 6
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ar[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	sar	eax
	and	eax, 31
	mov	esi, 1
	mov	ecx, eax
	sal	esi, cl
	mov	eax, esi
	and	eax, edx
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, eax
	mov	DWORD PTR -8[rbp], eax
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -8[rbp]
	sar	eax, 6
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ar[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	sar	eax
	and	eax, 31
	mov	esi, 1
	mov	ecx, eax
	sal	esi, cl
	mov	eax, esi
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	sar	eax, 6
	or	ecx, edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ar[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -4[rbp]
	add	DWORD PTR -8[rbp], eax
.L4:
	cmp	DWORD PTR -8[rbp], 1000009
	jle	.L5
.L3:
	add	DWORD PTR -12[rbp], 1
	add	DWORD PTR -12[rbp], 1
.L2:
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, eax
	cmp	eax, 1000009
	jle	.L6
	mov	DWORD PTR p[rip], 0
	mov	eax, DWORD PTR p[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR p[rip], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, prime[rip]
	mov	DWORD PTR [rdx+rax], 2
	mov	DWORD PTR -12[rbp], 3
	jmp	.L7
.L11:
	cmp	DWORD PTR -12[rbp], 0
	je	.L8
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 1
	test	eax, eax
	je	.L8
	mov	eax, DWORD PTR -12[rbp]
	sar	eax, 6
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ar[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -12[rbp]
	sar	eax
	and	eax, 31
	mov	esi, 1
	mov	ecx, eax
	sal	esi, cl
	mov	eax, esi
	and	eax, edx
	test	eax, eax
	je	.L9
.L8:
	cmp	DWORD PTR -12[rbp], 2
	jne	.L10
.L9:
	mov	eax, DWORD PTR p[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR p[rip], edx
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, prime[rip]
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L10:
	add	DWORD PTR -12[rbp], 1
	add	DWORD PTR -12[rbp], 1
.L7:
	cmp	DWORD PTR -12[rbp], 1000009
	jle	.L11
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	Sieve, .-Sieve
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	eax, 0
	call	Sieve
	mov	eax, DWORD PTR p[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L13
.L17:
	cmp	DWORD PTR -4[rbp], 0
	je	.L14
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 1
	test	eax, eax
	je	.L14
	mov	eax, DWORD PTR -4[rbp]
	sar	eax, 6
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, ar[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	sar	eax
	and	eax, 31
	mov	esi, 1
	mov	ecx, eax
	sal	esi, cl
	mov	eax, esi
	and	eax, edx
	test	eax, eax
	je	.L15
.L14:
	cmp	DWORD PTR -4[rbp], 2
	jne	.L16
.L15:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	add	DWORD PTR -4[rbp], 1
.L13:
	cmp	DWORD PTR -4[rbp], 59
	jle	.L17
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"799967.c"
	.text
	.comm	p,4,4
	.comm	prime,315108,4
	.global	ar
	.bss
	.align	2
	.type	ar, %object
	.size	ar, 62520
ar:
	.space	62520
	.text
	.align	2
	.global	Sieve
	.syntax unified
	.arm
	.fpu softvfp
	.type	Sieve, %function
Sieve:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	ldr	r3, .L12
	ldr	r3, [r3]
	orr	r3, r3, #1
	ldr	r2, .L12
	str	r3, [r2]
	ldr	r3, .L12
	ldr	r3, [r3]
	orr	r3, r3, #1
	ldr	r2, .L12
	str	r3, [r2]
	mov	r3, #3
	str	r3, [fp, #-16]
	b	.L2
.L6:
	ldr	r3, [fp, #-16]
	asr	r3, r3, #6
	ldr	r2, .L12
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	asr	r2, r2, #1
	and	r2, r2, #31
	mov	r1, #1
	lsl	r2, r1, r2
	and	r3, r3, r2
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	str	r3, [fp, #-12]
	b	.L4
.L5:
	ldr	r3, [fp, #-12]
	asr	r3, r3, #6
	ldr	r2, .L12
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-12]
	asr	r3, r3, #1
	and	r3, r3, #31
	mov	r1, #1
	lsl	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-12]
	asr	r3, r3, #6
	orr	r2, r2, r1
	ldr	r1, .L12
	str	r2, [r1, r3, lsl #2]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-12]
.L4:
	ldr	r3, [fp, #-12]
	ldr	r2, .L12+4
	cmp	r3, r2
	ble	.L5
.L3:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, [fp, #-16]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, .L12+4
	cmp	r3, r2
	ble	.L6
	ldr	r3, .L12+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L12+8
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L12+8
	str	r2, [r1]
	ldr	r2, .L12+12
	mov	r1, #2
	str	r1, [r2, r3, lsl #2]
	mov	r3, #3
	str	r3, [fp, #-16]
	b	.L7
.L11:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-16]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-16]
	asr	r3, r3, #6
	ldr	r2, .L12
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	asr	r2, r2, #1
	and	r2, r2, #31
	mov	r1, #1
	lsl	r2, r1, r2
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L9
.L8:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	bne	.L10
.L9:
	ldr	r3, .L12+8
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L12+8
	str	r2, [r1]
	ldr	r1, .L12+12
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
.L10:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L7:
	ldr	r3, [fp, #-16]
	ldr	r2, .L12+4
	cmp	r3, r2
	ble	.L11
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L13:
	.align	2
.L12:
	.word	ar
	.word	1000009
	.word	p
	.word	prime
	.size	Sieve, .-Sieve
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	Sieve
	ldr	r3, .L21
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L21+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L15
.L19:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-8]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-8]
	asr	r3, r3, #6
	ldr	r2, .L21+8
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-8]
	asr	r2, r2, #1
	and	r2, r2, #31
	mov	r1, #1
	lsl	r2, r1, r2
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L17
.L16:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L18
.L17:
	ldr	r1, [fp, #-8]
	ldr	r0, .L21+4
	bl	printf
.L18:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L15:
	ldr	r3, [fp, #-8]
	cmp	r3, #59
	ble	.L19
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	p
	.word	.LC0
	.word	ar
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
