	.file	"338774.c"
	.intel_syntax noprefix
	.text
	.globl	lkk_mvalue
	.type	lkk_mvalue, @function
lkk_mvalue:
.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	eax, DWORD PTR -20[rbp]
	sar	eax, 31
	xor	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	shr	eax, 31
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	ecx, DWORD PTR -4[rbp]
	mov	rax, -1
	mov	edx, 0
	div	rcx
	add	rax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	lkk_mvalue, .-lkk_mvalue
	.globl	lkk_divisible
	.type	lkk_divisible, @function
lkk_divisible:
.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	QWORD PTR -32[rbp], rsi
	mov	eax, DWORD PTR -20[rbp]
	sar	eax, 31
	xor	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	shr	eax, 31
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	imul	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	sub	rdx, 1
	cmp	rax, rdx
	setbe	al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	lkk_divisible, .-lkk_divisible
	.globl	count_primes_under_N
	.type	count_primes_under_N, @function
count_primes_under_N:
.LFB8:
	.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, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -28[rbp], edi
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 3
	jmp	.L6
.L12:
	mov	BYTE PTR -21[rbp], 1
	mov	DWORD PTR -12[rbp], 0
	jmp	.L7
.L10:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, prime_mvals.0[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	lkk_divisible
	test	al, al
	je	.L8
	mov	BYTE PTR -21[rbp], 0
	jmp	.L9
.L8:
	add	DWORD PTR -12[rbp], 1
.L7:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L10
.L9:
	cmp	BYTE PTR -21[rbp], 0
	je	.L11
	mov	ebx, DWORD PTR -20[rbp]
	lea	eax, 1[rbx]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	lkk_mvalue
	movsx	rdx, ebx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, prime_mvals.0[rip]
	mov	QWORD PTR [rcx+rdx], rax
.L11:
	add	DWORD PTR -16[rbp], 2
.L6:
	cmp	DWORD PTR -16[rbp], 39999
	jle	.L12
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	xor	eax, DWORD PTR -28[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	count_primes_under_N, .-count_primes_under_N
	.section	.rodata
.LC0:
	.string	"There are %d\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, 16
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	count_primes_under_N
	xor	DWORD PTR -8[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L15:
	cmp	DWORD PTR -4[rbp], 999
	jle	.L16
	mov	eax, DWORD PTR -8[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
.LFE9:
	.size	main, .-main
	.local	prime_mvals.0
	.comm	prime_mvals.0,320000,32
	.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	"338774.c"
	.text
	.global	__aeabi_uldivmod
	.align	2
	.global	lkk_mvalue
	.syntax unified
	.arm
	.fpu softvfp
	.type	lkk_mvalue, %function
lkk_mvalue:
	@ 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]
	ldr	r3, [fp, #-24]
	asr	r2, r3, #31
	ldr	r3, [fp, #-24]
	eor	r3, r3, r2
	ldr	r2, [fp, #-24]
	lsr	r2, r2, #31
	add	r3, r3, r2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r2, r3
	mov	r3, #0
	mvn	r0, #0
	mvn	r1, #0
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	adds	r4, r2, #1
	adc	r5, r3, #0
	mov	r2, r4
	mov	r3, r5
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	lkk_mvalue, .-lkk_mvalue
	.align	2
	.global	lkk_divisible
	.syntax unified
	.arm
	.fpu softvfp
	.type	lkk_divisible, %function
lkk_divisible:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-24]
	asr	r2, r3, #31
	ldr	r3, [fp, #-24]
	eor	r3, r3, r2
	ldr	r2, [fp, #-24]
	lsr	r2, r2, #31
	add	r3, r3, r2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r2, r3
	mov	r3, #0
	ldr	r1, [fp, #-36]
	mul	r0, r3, r1
	ldr	r1, [fp, #-32]
	mul	r1, r2, r1
	add	ip, r0, r1
	ldr	lr, [fp, #-36]
	umull	r0, r1, lr, r2
	add	r3, ip, r1
	mov	r1, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	subs	r4, r2, #1
	sbc	r5, r3, #0
	cmp	r1, r5
	cmpeq	r0, r4
	movls	r3, #1
	movhi	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	lkk_divisible, .-lkk_divisible
	.align	2
	.global	count_primes_under_N
	.syntax unified
	.arm
	.fpu softvfp
	.type	count_primes_under_N, %function
count_primes_under_N:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #3
	str	r3, [fp, #-20]
	b	.L6
.L12:
	mov	r3, #1
	strb	r3, [fp, #-25]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L7
.L10:
	ldr	r2, .L14
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-20]
	bl	lkk_divisible
	mov	r3, r0
	cmp	r3, #0
	beq	.L8
	mov	r3, #0
	strb	r3, [fp, #-25]
	b	.L9
.L8:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L7:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L10
.L9:
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L11
	ldr	r4, [fp, #-24]
	add	r3, r4, #1
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	lkk_mvalue
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L14
	lsl	r1, r4, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
.L11:
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	str	r3, [fp, #-20]
.L6:
	ldr	r3, [fp, #-20]
	ldr	r2, .L14+4
	cmp	r3, r2
	ble	.L12
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	ldr	r3, [fp, #-32]
	eor	r3, r3, r2
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	prime_mvals.5152
	.word	39999
	.size	count_primes_under_N, .-count_primes_under_N
	.section	.rodata
	.align	2
.LC0:
	.ascii	"There are %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
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L17
.L18:
	ldr	r0, [fp, #-12]
	bl	count_primes_under_N
	mov	r2, r0
	ldr	r3, [fp, #-12]
	eor	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L17:
	ldr	r3, [fp, #-8]
	cmp	r3, #1000
	blt	.L18
	ldr	r1, [fp, #-12]
	ldr	r0, .L20
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC0
	.size	main, .-main
	.local	prime_mvals.5152
	.comm	prime_mvals.5152,320000,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
