	.file	"524307.c"
	.intel_syntax noprefix
	.text
	.globl	sieve
	.bss
	.align 32
	.type	sieve, @object
	.size	sieve, 1000000
sieve:
	.zero	1000000
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	init_sieve
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	mov	rdi, rax
	call	is_circular
	test	eax, eax
	je	.L3
	add	DWORD PTR -4[rbp], 1
.L3:
	add	DWORD PTR -8[rbp], 1
.L2:
	cmp	DWORD PTR -8[rbp], 999999
	jle	.L4
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	init_sieve
	.type	init_sieve, @function
init_sieve:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -12[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, sieve[rip]
	mov	BYTE PTR [rax+rdx], 1
	add	DWORD PTR -12[rbp], 1
.L7:
	cmp	DWORD PTR -12[rbp], 999999
	jle	.L8
	mov	BYTE PTR sieve[rip+1], 0
	movzx	eax, BYTE PTR sieve[rip+1]
	mov	BYTE PTR sieve[rip], al
	mov	DWORD PTR -8[rbp], 2
	jmp	.L9
.L13:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, sieve[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	je	.L10
	mov	eax, DWORD PTR -8[rbp]
	add	eax, eax
	mov	DWORD PTR -4[rbp], eax
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, sieve[rip]
	mov	BYTE PTR [rax+rdx], 0
	mov	eax, DWORD PTR -8[rbp]
	add	DWORD PTR -4[rbp], eax
.L11:
	cmp	DWORD PTR -4[rbp], 999999
	jle	.L12
.L10:
	add	DWORD PTR -8[rbp], 1
.L9:
	cmp	DWORD PTR -8[rbp], 999999
	jle	.L13
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	init_sieve, .-init_sieve
	.globl	rotate
	.type	rotate, @function
rotate:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -8[rbp], 0
	jmp	.L15
.L16:
	add	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
.L15:
	cmp	DWORD PTR -4[rbp], 0
	jg	.L16
	mov	DWORD PTR -4[rbp], 1
	jmp	.L17
.L18:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	DWORD PTR -4[rbp], eax
	sub	DWORD PTR -8[rbp], 1
.L17:
	cmp	DWORD PTR -8[rbp], 1
	jg	.L18
	mov	eax, DWORD PTR -4[rbp]
	movsx	rsi, eax
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	mov	rdi, rcx
	sar	rdi, 63
	sub	rax, rdi
	mov	rdx, rax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	sub	rcx, rax
	mov	rdx, rcx
	imul	rsi, rdx
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, 7378697629483820647
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 2
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	rax, rsi
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	rotate, .-rotate
	.globl	is_circular
	.type	is_circular, @function
is_circular:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -24[rbp], rdi
	lea	rdx, sieve[rip]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L21
	mov	eax, 0
	jmp	.L22
.L21:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotate
	mov	QWORD PTR -8[rbp], rax
	jmp	.L23
.L25:
	lea	rdx, sieve[rip]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L24
	mov	eax, 0
	jmp	.L22
.L24:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	rotate
	mov	QWORD PTR -8[rbp], rax
.L23:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jne	.L25
	mov	eax, 1
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	is_circular, .-is_circular
	.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	"524307.c"
	.text
	.comm	sieve,1000000,4
	.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	init_sieve
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L4:
	ldr	r3, [fp, #-12]
	mov	r2, r3
	asr	r3, r2, #31
	mov	r0, r2
	mov	r1, r3
	bl	is_circular
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	ldr	r2, .L6
	cmp	r3, r2
	blt	.L4
	ldr	r1, [fp, #-8]
	ldr	r0, .L6+4
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	1000000
	.word	.LC0
	.size	main, .-main
	.align	2
	.global	init_sieve
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_sieve, %function
init_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
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L9
.L10:
	ldr	r2, .L16
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L9:
	ldr	r3, [fp, #-16]
	ldr	r2, .L16+4
	cmp	r3, r2
	blt	.L10
	ldr	r3, .L16
	mov	r2, #0
	strb	r2, [r3, #1]
	ldr	r3, .L16
	ldrsb	r2, [r3, #1]
	ldr	r3, .L16
	strb	r2, [r3]
	mov	r3, #2
	str	r3, [fp, #-12]
	b	.L11
.L15:
	ldr	r2, .L16
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrsb	r3, [r3]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L13
.L14:
	ldr	r2, .L16
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-8]
.L13:
	ldr	r3, [fp, #-8]
	ldr	r2, .L16+4
	cmp	r3, r2
	blt	.L14
.L12:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L11:
	ldr	r3, [fp, #-12]
	ldr	r2, .L16+4
	cmp	r3, r2
	blt	.L15
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L17:
	.align	2
.L16:
	.word	sieve
	.word	1000000
	.size	init_sieve, .-init_sieve
	.global	__aeabi_ldivmod
	.align	2
	.global	rotate
	.syntax unified
	.arm
	.fpu softvfp
	.type	rotate, %function
rotate:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #16
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L19
.L20:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	ldr	r2, .L24
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-32]
.L19:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bgt	.L20
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L21
.L22:
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	str	r3, [fp, #-36]
.L21:
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	bgt	.L22
	ldr	r3, [fp, #-32]
	mov	r6, r3
	asr	r7, r6, #31
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	mov	r2, #10
	mov	r3, #0
	bl	__aeabi_ldivmod
	mul	r0, r2, r7
	mul	r1, r6, r3
	add	r1, r0, r1
	umull	r4, r5, r6, r2
	add	r3, r1, r5
	mov	r5, r3
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	mov	r2, #10
	mov	r3, #0
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	adds	r8, r4, r2
	adc	r9, r5, r3
	mov	r2, r8
	mov	r3, r9
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L25:
	.align	2
.L24:
	.word	1717986919
	.size	rotate, .-rotate
	.align	2
	.global	is_circular
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_circular, %function
is_circular:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	ldr	r2, .L32
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrsb	r3, [r3]
	cmp	r3, #0
	bne	.L27
	mov	r3, #0
	b	.L28
.L27:
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	rotate
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	b	.L29
.L31:
	ldr	r2, .L32
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrsb	r3, [r3]
	cmp	r3, #0
	bne	.L30
	mov	r3, #0
	b	.L28
.L30:
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	rotate
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
.L29:
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L31
	mov	r3, #1
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	sieve
	.size	is_circular, .-is_circular
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
