	.file	"3263749.c"
	.intel_syntax noprefix
	.text
	.globl	MAX
	.data
	.align 4
	.type	MAX, @object
	.size	MAX, 4
MAX:
	.long	2000000
	.globl	sieve
	.bss
	.align 8
	.type	sieve, @object
	.size	sieve, 8
sieve:
	.zero	8
	.globl	sum
	.data
	.align 8
	.type	sum, @object
	.size	sum, 8
sum:
	.quad	2
	.text
	.globl	init
	.type	init, @function
init:
.LFB6:
	.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, DWORD PTR MAX[rip]
	and	eax, 31
	test	eax, eax
	je	.L2
	mov	eax, DWORD PTR MAX[rip]
	shr	eax, 5
	mov	eax, eax
	add	rax, 1
	sal	rax, 2
	jmp	.L3
.L2:
	mov	eax, DWORD PTR MAX[rip]
	shr	eax, 5
	mov	eax, eax
	sal	rax, 2
.L3:
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR sieve[rip], rax
	mov	rax, QWORD PTR sieve[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init, .-init
	.globl	isComposite
	.type	isComposite, @function
isComposite:
.LFB7:
	.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 -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	shr	eax, 5
	mov	eax, eax
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 31
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR sieve[rip]
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	ecx, eax
	sal	esi, cl
	mov	eax, esi
	and	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	isComposite, .-isComposite
	.globl	setComposite
	.type	setComposite, @function
setComposite:
.LFB8:
	.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 -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	shr	eax, 5
	mov	eax, eax
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 31
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR sieve[rip]
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	ecx, eax
	sal	esi, cl
	mov	eax, esi
	mov	esi, eax
	mov	rcx, QWORD PTR sieve[rip]
	mov	rax, QWORD PTR -16[rbp]
	sal	rax, 2
	add	rax, rcx
	or	edx, esi
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	setComposite, .-setComposite
	.section	.rodata
.LC0:
	.string	"%zu\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	mov	DWORD PTR -12[rbp], 3
	cmp	DWORD PTR -20[rbp], 2
	jne	.L8
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR MAX[rip], eax
.L8:
	mov	eax, 0
	call	init
	mov	eax, DWORD PTR MAX[rip]
	mov	eax, eax
	test	rax, rax
	js	.L9
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movq	rax, xmm1
	jmp	.L10
.L9:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
	movq	rax, xmm0
.L10:
	movq	xmm0, rax
	call	sqrt@PLT
	cvttsd2si	rax, xmm0
	add	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L11
.L15:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR sum[rip]
	add	rax, rdx
	mov	QWORD PTR sum[rip], rax
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, eax
	mov	DWORD PTR -8[rbp], eax
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	setComposite
	mov	eax, DWORD PTR -12[rbp]
	add	DWORD PTR -8[rbp], eax
.L12:
	mov	eax, DWORD PTR MAX[rip]
	cmp	DWORD PTR -8[rbp], eax
	jbe	.L13
.L14:
	add	DWORD PTR -12[rbp], 2
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	isComposite
	test	eax, eax
	je	.L11
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jb	.L14
.L11:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jb	.L15
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 1
	test	eax, eax
	je	.L16
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L18
.L16:
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L18
.L20:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	isComposite
	test	eax, eax
	jne	.L19
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR sum[rip]
	add	rax, rdx
	mov	QWORD PTR sum[rip], rax
.L19:
	add	DWORD PTR -12[rbp], 2
.L18:
	mov	eax, DWORD PTR MAX[rip]
	cmp	DWORD PTR -12[rbp], eax
	jbe	.L20
	mov	rax, QWORD PTR sum[rip]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"3263749.c"
	.text
	.global	MAX
	.data
	.align	2
	.type	MAX, %object
	.size	MAX, 4
MAX:
	.word	2000000
	.comm	sieve,4,4
	.global	sum
	.align	3
	.type	sum, %object
	.size	sum, 8
sum:
	.word	2
	.word	0
	.text
	.align	2
	.global	init
	.syntax unified
	.arm
	.fpu softvfp
	.type	init, %function
init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L4
	ldr	r3, [r3]
	and	r3, r3, #31
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L4
	ldr	r3, [r3]
	lsr	r3, r3, #5
	add	r3, r3, #1
	lsl	r3, r3, #2
	b	.L3
.L2:
	ldr	r3, .L4
	ldr	r3, [r3]
	lsr	r3, r3, #5
	lsl	r3, r3, #2
.L3:
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L4+4
	str	r2, [r3]
	ldr	r3, .L4+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	mov	r1, #0
	mov	r0, r3
	bl	memset
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	MAX
	.word	sieve
	.size	init, .-init
	.align	2
	.global	isComposite
	.syntax unified
	.arm
	.fpu softvfp
	.type	isComposite, %function
isComposite:
	@ 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
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #5
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	and	r3, r3, #31
	str	r3, [fp, #-8]
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #1
	ldr	r2, [fp, #-8]
	lsl	r2, r1, r2
	and	r3, r3, r2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L9:
	.align	2
.L8:
	.word	sieve
	.size	isComposite, .-isComposite
	.align	2
	.global	setComposite
	.syntax unified
	.arm
	.fpu softvfp
	.type	setComposite, %function
setComposite:
	@ 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
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsr	r3, r3, #5
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	and	r3, r3, #31
	str	r3, [fp, #-8]
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	mov	r1, #1
	ldr	r3, [fp, #-8]
	lsl	r3, r1, r3
	mov	r0, r3
	ldr	r3, .L11
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r1, r3
	orr	r2, r2, r0
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	sieve
	.size	setComposite, .-setComposite
	.global	__aeabi_ui2d
	.global	__aeabi_d2uiz
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%zu\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #24
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	bne	.L14
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L26
	str	r2, [r3]
.L14:
	bl	init
	ldr	r3, .L26
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L15
.L19:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	mov	r1, #0
	ldr	r3, .L26+4
	ldmia	r3, {r2-r3}
	adds	r6, r0, r2
	adc	r7, r1, r3
	ldr	r3, .L26+4
	stm	r3, {r6-r7}
	ldr	r3, [fp, #-32]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	str	r3, [fp, #-28]
	b	.L16
.L17:
	ldr	r0, [fp, #-28]
	bl	setComposite
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-28]
.L16:
	ldr	r3, .L26
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bls	.L17
.L18:
	ldr	r3, [fp, #-32]
	add	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-32]
	bl	isComposite
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcc	.L18
.L15:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcc	.L19
	ldr	r3, [fp, #-24]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-32]
	b	.L22
.L20:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L22
.L24:
	ldr	r0, [fp, #-32]
	bl	isComposite
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-32]
	mov	r0, r3
	mov	r1, #0
	ldr	r3, .L26+4
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r3, .L26+4
	stm	r3, {r4-r5}
.L23:
	ldr	r3, [fp, #-32]
	add	r3, r3, #2
	str	r3, [fp, #-32]
.L22:
	ldr	r3, .L26
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bls	.L24
	ldr	r3, .L26+4
	ldmia	r3, {r2-r3}
	ldr	r0, .L26+8
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L27:
	.align	2
.L26:
	.word	MAX
	.word	sum
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
