	.file	"884377.c"
	.intel_syntax noprefix
	.text
	.globl	known_primes
	.bss
	.align 32
	.type	known_primes, @object
	.size	known_primes, 4000000
known_primes:
	.zero	4000000
	.globl	am_i_prime
	.align 4
	.type	am_i_prime, @object
	.size	am_i_prime, 4
am_i_prime:
	.zero	4
	.globl	num_primes
	.align 4
	.type	num_primes, @object
	.size	num_primes, 4
num_primes:
	.zero	4
	.globl	counter
	.align 4
	.type	counter, @object
	.size	counter, 4
counter:
	.zero	4
	.section	.rodata
.LC0:
	.string	"2"
.LC1:
	.string	"3"
.LC2:
	.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
	mov	DWORD PTR known_primes[rip], 2
	mov	DWORD PTR known_primes[rip+4], 3
	mov	DWORD PTR num_primes[rip], 1
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	DWORD PTR am_i_prime[rip], 5
	jmp	.L2
.L7:
	mov	DWORD PTR counter[rip], 0
	jmp	.L3
.L6:
	mov	eax, DWORD PTR am_i_prime[rip]
	mov	edx, DWORD PTR counter[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, known_primes[rip]
	mov	ecx, DWORD PTR [rcx+rdx]
	cdq
	idiv	ecx
	mov	eax, edx
	test	eax, eax
	je	.L9
	mov	eax, DWORD PTR counter[rip]
	add	eax, 1
	mov	DWORD PTR counter[rip], eax
	mov	edx, DWORD PTR counter[rip]
	mov	eax, DWORD PTR num_primes[rip]
	cmp	edx, eax
	jle	.L3
	mov	eax, DWORD PTR am_i_prime[rip]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR num_primes[rip]
	add	eax, 1
	mov	DWORD PTR num_primes[rip], eax
	mov	edx, DWORD PTR num_primes[rip]
	mov	eax, DWORD PTR am_i_prime[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, known_primes[rip]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR counter[rip]
	add	eax, 1
	mov	DWORD PTR counter[rip], eax
.L3:
	mov	edx, DWORD PTR counter[rip]
	mov	eax, DWORD PTR num_primes[rip]
	cmp	edx, eax
	jle	.L6
	jmp	.L5
.L9:
	nop
.L5:
	mov	eax, DWORD PTR am_i_prime[rip]
	add	eax, 2
	mov	DWORD PTR am_i_prime[rip], eax
.L2:
	mov	eax, DWORD PTR am_i_prime[rip]
	cmp	eax, 999999
	jle	.L7
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"884377.c"
	.text
	.comm	known_primes,4000000,4
	.comm	am_i_prime,4,4
	.comm	num_primes,4,4
	.comm	counter,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"2\000"
	.align	2
.LC1:
	.ascii	"3\000"
	.global	__aeabi_idivmod
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L10
	mov	r2, #2
	str	r2, [r3]
	ldr	r3, .L10
	mov	r2, #3
	str	r2, [r3, #4]
	ldr	r3, .L10+4
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, .L10+8
	bl	puts
	ldr	r0, .L10+12
	bl	puts
	ldr	r3, .L10+16
	mov	r2, #5
	str	r2, [r3]
	b	.L2
.L7:
	ldr	r3, .L10+20
	mov	r2, #0
	str	r2, [r3]
	b	.L3
.L6:
	ldr	r3, .L10+16
	ldr	r2, [r3]
	ldr	r3, .L10+20
	ldr	r3, [r3]
	ldr	r1, .L10
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L10+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L10+20
	str	r3, [r2]
	ldr	r3, .L10+20
	ldr	r2, [r3]
	ldr	r3, .L10+4
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L3
	ldr	r3, .L10+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L10+24
	bl	printf
	ldr	r3, .L10+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L10+4
	str	r3, [r2]
	ldr	r3, .L10+4
	ldr	r3, [r3]
	ldr	r2, .L10+16
	ldr	r2, [r2]
	ldr	r1, .L10
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L10+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L10+20
	str	r3, [r2]
.L3:
	ldr	r3, .L10+20
	ldr	r2, [r3]
	ldr	r3, .L10+4
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L6
	b	.L5
.L9:
	nop
.L5:
	ldr	r3, .L10+16
	ldr	r3, [r3]
	add	r3, r3, #2
	ldr	r2, .L10+16
	str	r3, [r2]
.L2:
	ldr	r3, .L10+16
	ldr	r3, [r3]
	ldr	r2, .L10+28
	cmp	r3, r2
	blt	.L7
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	known_primes
	.word	num_primes
	.word	.LC0
	.word	.LC1
	.word	am_i_prime
	.word	counter
	.word	.LC2
	.word	1000000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
