	.file	"124733.c"
	.intel_syntax noprefix
	.text
	.globl	primes
	.bss
	.align 32
	.type	primes, @object
	.size	primes, 16000008
primes:
	.zero	16000008
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.text
	.globl	IS_PRIME
	.type	IS_PRIME, @function
IS_PRIME:
.LFB6:
	.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	DWORD PTR -4[rbp], 1
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, primes[rip]
	mov	rcx, QWORD PTR [rcx+rdx]
	mov	edx, 0
	div	rcx
	mov	rax, rdx
	test	rax, rax
	jne	.L3
	mov	eax, 0
	jmp	.L4
.L3:
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR k[rip]
	cmp	DWORD PTR -4[rbp], eax
	jg	.L5
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, primes[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, primes[rip]
	mov	rax, QWORD PTR [rcx+rax]
	imul	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	cmp	rdx, rax
	jbe	.L6
.L5:
	mov	eax, 1
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	IS_PRIME, .-IS_PRIME
	.section	.rodata
.LC0:
	.string	"%llu"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], 2
	mov	QWORD PTR primes[rip+8], 2
	mov	QWORD PTR primes[rip+16], 3
	mov	DWORD PTR k[rip], 2
	mov	ebx, 6
	jmp	.L8
.L11:
	mov	eax, ebx
	sub	eax, 1
	mov	edi, eax
	call	IS_PRIME
	test	eax, eax
	je	.L9
	mov	eax, DWORD PTR k[rip]
	add	eax, 1
	mov	DWORD PTR k[rip], eax
	mov	edx, DWORD PTR k[rip]
	lea	rax, -1[rbx]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, primes[rip]
	mov	QWORD PTR [rcx+rdx], rax
.L9:
	mov	eax, ebx
	add	eax, 1
	mov	edi, eax
	call	IS_PRIME
	test	eax, eax
	je	.L10
	mov	eax, DWORD PTR k[rip]
	add	eax, 1
	mov	DWORD PTR k[rip], eax
	mov	edx, DWORD PTR k[rip]
	lea	rax, 1[rbx]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, primes[rip]
	mov	QWORD PTR [rcx+rdx], rax
.L10:
	add	rbx, 6
.L8:
	mov	eax, DWORD PTR k[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, primes[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR k[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, primes[rip]
	mov	rax, QWORD PTR [rcx+rax]
	imul	rax, rdx
	movabs	rdx, 600851475143
	cmp	rax, rdx
	jbe	.L11
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	ebx, 1
	jmp	.L12
.L15:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rbx*8]
	lea	rcx, primes[rip]
	mov	rcx, QWORD PTR [rdx+rcx]
	mov	edx, 0
	div	rcx
	mov	rax, rdx
	test	rax, rax
	jne	.L13
	lea	rax, 0[0+rbx*8]
	lea	rdx, primes[rip]
	mov	rax, QWORD PTR [rax+rdx]
	mov	DWORD PTR -36[rbp], eax
.L13:
	add	rbx, 1
.L12:
	mov	eax, DWORD PTR k[rip]
	cdqe
	cmp	rbx, rax
	ja	.L14
	lea	rax, 0[0+rbx*8]
	lea	rdx, primes[rip]
	mov	rdx, QWORD PTR [rax+rdx]
	mov	rax, QWORD PTR -32[rbp]
	cmp	rdx, rax
	jbe	.L15
.L14:
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -24[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"124733.c"
	.text
	.comm	primes,16000008,8
	.comm	k,4,4
	.global	__aeabi_uldivmod
	.align	2
	.global	IS_PRIME
	.syntax unified
	.arm
	.fpu softvfp
	.type	IS_PRIME, %function
IS_PRIME:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L2
.L6:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r2, .L7
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_uldivmod
	orrs	r3, r2, r3
	bne	.L3
	mov	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L2:
	ldr	r3, .L7+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bgt	.L5
	ldr	r2, .L7
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r2, .L7
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mul	lr, r2, r1
	mul	ip, r0, r3
	add	ip, lr, ip
	umull	r4, r5, r0, r2
	add	r3, ip, r5
	mov	r5, r3
	ldr	r3, [fp, #-24]
	mov	r2, r3
	asr	r3, r2, #31
	cmp	r5, r3
	cmpeq	r4, r2
	bls	.L6
.L5:
	mov	r3, #1
.L4:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L8:
	.align	2
.L7:
	.word	primes
	.word	k
	.size	IS_PRIME, .-IS_PRIME
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%llu\000"
	.align	2
.LC1:
	.ascii	"%d\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #32
	ldr	r3, .L20+8
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, #2
	str	r3, [fp, #-48]
	ldr	r1, .L20+12
	mov	r2, #2
	mov	r3, #0
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	ldr	r1, .L20+12
	mov	r2, #3
	mov	r3, #0
	str	r2, [r1, #16]
	str	r3, [r1, #20]
	ldr	r3, .L20+16
	mov	r2, #2
	str	r2, [r3]
	mov	r4, #6
	mov	r5, #0
	b	.L10
.L13:
	mov	r3, r4
	sub	r3, r3, #1
	mov	r0, r3
	bl	IS_PRIME
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L20+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L20+16
	str	r3, [r2]
	ldr	r3, .L20+16
	ldr	r3, [r3]
	subs	r8, r4, #1
	sbc	r9, r5, #0
	ldr	r2, .L20+12
	lsl	r3, r3, #3
	add	r3, r2, r3
	stm	r3, {r8-r9}
.L11:
	mov	r3, r4
	add	r3, r3, #1
	mov	r0, r3
	bl	IS_PRIME
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L20+16
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L20+16
	str	r3, [r2]
	ldr	r3, .L20+16
	ldr	r3, [r3]
	adds	r2, r4, #1
	str	r2, [fp, #-60]
	adc	r2, r5, #0
	str	r2, [fp, #-56]
	ldr	r2, .L20+12
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r2, fp, #60
	ldmia	r2, {r1-r2}
	stm	r3, {r1-r2}
.L12:
	adds	r4, r4, #6
	adc	r5, r5, #0
.L10:
	ldr	r3, .L20+16
	ldr	r3, [r3]
	ldr	r2, .L20+12
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, .L20+16
	ldr	r3, [r3]
	ldr	r2, .L20+12
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mul	lr, r2, r1
	mul	ip, r0, r3
	add	ip, lr, ip
	umull	r6, r7, r0, r2
	add	r3, ip, r7
	mov	r7, r3
	adr	r3, .L20
	ldmia	r3, {r2-r3}
	cmp	r7, r3
	cmpeq	r6, r2
	bls	.L13
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, .L20+20
	bl	__isoc99_scanf
	mov	r4, #1
	mov	r5, #0
	b	.L14
.L17:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	ldr	r2, .L20+12
	mov	r3, r4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	bl	__aeabi_uldivmod
	orrs	r3, r2, r3
	bne	.L15
	ldr	r2, .L20+12
	mov	r3, r4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	mov	r3, r2
	str	r3, [fp, #-48]
.L15:
	adds	r4, r4, #1
	adc	r5, r5, #0
.L14:
	ldr	r3, .L20+16
	ldr	r3, [r3]
	mov	r2, r3
	asr	r3, r2, #31
	cmp	r5, r3
	cmpeq	r4, r2
	bhi	.L16
	ldr	r2, .L20+12
	mov	r3, r4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bls	.L17
.L16:
	ldr	r1, [fp, #-48]
	ldr	r0, .L20+24
	bl	printf
	mov	r3, #0
	ldr	r2, .L20+8
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L21:
	.align	3
.L20:
	.word	-443946297
	.word	139
	.word	.LC2
	.word	primes
	.word	k
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
