	.file	"68892.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	running, @object
	.size	running, 4
running:
	.long	1
	.text
	.type	SIGINT_handler, @function
SIGINT_handler:
.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 -4[rbp], edi
	mov	DWORD PTR running[rip], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	SIGINT_handler, .-SIGINT_handler
	.section	.rodata
	.align 8
.LC0:
	.string	"failed to grow the storage: %s\n"
.LC1:
	.string	"realloc@(%llu, %llu)\n"
.LC2:
	.string	"%llu\n"
	.text
	.type	prime_store, @function
prime_store:
.LFB7:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	cmp	rdx, rax
	jbe	.L3
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 32[rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	jne	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rcx, 1[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rdx], rcx
	sal	rax, 3
	add	rax, rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	cmp	DWORD PTR -20[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -16[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	test	eax, eax
	jns	.L6
	mov	eax, -1
	jmp	.L5
.L6:
	mov	eax, 0
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	prime_store, .-prime_store
	.section	.rodata
.LC3:
	.string	"r+"
.LC4:
	.string	"w"
	.align 8
.LC5:
	.string	"failed to open cache file: %s\n"
.LC6:
	.string	"strange prime line found\n"
	.text
	.type	prime_init, @function
prime_init:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 40
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 24[rax], 4096
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 24[rax]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 32[rax], rdx
	cmp	DWORD PTR -36[rbp], 0
	je	.L8
	lea	rax, .LC3[rip]
	jmp	.L9
.L8:
	lea	rax, .LC4[rip]
.L9:
	mov	rdx, QWORD PTR -64[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	fopen@PLT
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L10
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L11
.L10:
	cmp	DWORD PTR -36[rbp], 0
	je	.L12
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	jmp	.L13
.L19:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoull@PLT
	mov	QWORD PTR -16[rbp], rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 25
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L11
.L14:
	cmp	QWORD PTR -16[rbp], 0
	je	.L22
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	prime_store
	test	eax, eax
	je	.L18
	mov	eax, -1
	jmp	.L11
.L18:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
.L13:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR [rax]
	lea	rcx, -24[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	getline@PLT
	test	rax, rax
	jle	.L20
	mov	eax, DWORD PTR running[rip]
	test	eax, eax
	jne	.L19
	jmp	.L20
.L12:
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 1
	mov	esi, 2
	mov	rdi, rax
	call	prime_store
	jmp	.L20
.L22:
	nop
.L20:
	lea	rsi, SIGINT_handler[rip]
	mov	edi, 2
	call	signal@PLT
	mov	eax, 0
.L11:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	prime_init, .-prime_init
	.type	prime_search, @function
prime_search:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, 1
	mov	QWORD PTR -24[rbp], rax
	jmp	.L24
.L32:
	mov	QWORD PTR -16[rbp], 1
	mov	QWORD PTR -8[rbp], 0
	jmp	.L25
.L28:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	div	rcx
	mov	rax, rdx
	test	rax, rax
	jne	.L26
	mov	QWORD PTR -16[rbp], 0
	jmp	.L27
.L26:
	add	QWORD PTR -8[rbp], 1
.L25:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	cmp	QWORD PTR -8[rbp], rax
	jnb	.L27
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	imul	rax, rdx
	cmp	QWORD PTR -24[rbp], rax
	jb	.L27
	mov	eax, DWORD PTR running[rip]
	test	eax, eax
	jne	.L28
.L27:
	cmp	QWORD PTR -16[rbp], 0
	je	.L29
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	prime_store
	test	eax, eax
	je	.L29
	mov	eax, -1
	jmp	.L30
.L29:
	add	QWORD PTR -24[rbp], 1
.L24:
	cmp	QWORD PTR -24[rbp], -1
	je	.L31
	mov	eax, DWORD PTR running[rip]
	test	eax, eax
	jne	.L32
.L31:
	mov	eax, 0
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	prime_search, .-prime_search
	.section	.rodata
.LC7:
	.string	"./primes.txt"
.LC8:
	.string	"init failed\n"
.LC9:
	.string	"starting search...\n"
.LC10:
	.string	"search failed\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	prime_init
	test	eax, eax
	je	.L34
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L34:
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	prime_search
	test	eax, eax
	je	.L35
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L35:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE10:
	.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	"68892.c"
	.text
	.data
	.align	2
	.type	running, %object
	.size	running, 4
running:
	.word	1
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	SIGINT_handler, %function
SIGINT_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L2
	mov	r2, #0
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	running
	.size	SIGINT_handler, .-SIGINT_handler
	.section	.rodata
	.align	2
.LC0:
	.ascii	"failed to grow the storage: %s\012\000"
	.align	2
.LC1:
	.ascii	"realloc@(%llu, %llu)\012\000"
	.align	2
.LC2:
	.ascii	"%llu\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prime_store, %function
prime_store:
	@ args = 4, pretend = 0, frame = 16
	@ 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, #-24]
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-24]
	add	r1, r3, #16
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-24]
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bls	.L5
	ldr	r3, [fp, #-24]
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	adds	r6, r2, r2
	adc	r7, r3, r3
	mov	r2, r6
	mov	r3, r7
	ldr	r1, [fp, #-24]
	str	r2, [r1, #24]
	str	r3, [r1, #28]
	ldr	r3, [fp, #-24]
	ldr	r0, [r3, #32]
	ldr	r3, [fp, #-24]
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	mov	r3, r2
	lsl	r3, r3, #3
	mov	r1, r3
	bl	realloc
	mov	r2, r0
	ldr	r3, [fp, #-24]
	str	r2, [r3, #32]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #32]
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L9
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L9+4
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L7
.L6:
	ldr	r3, .L9+8
	ldr	ip, [r3]
	ldr	r3, [fp, #-24]
	add	r1, r3, #16
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-24]
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L9+12
	mov	r0, ip
	bl	fprintf
.L5:
	ldr	r3, [fp, #-24]
	ldr	r1, [r3, #32]
	ldr	r3, [fp, #-24]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	ldr	r0, [fp, #-24]
	str	r4, [r0, #16]
	str	r5, [r0, #20]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r1, r1, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	stm	r1, {r2-r3}
	ldmia	r1, {r2-r3}
	ldr	r1, [fp, #-24]
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-24]
	ldr	r0, [r3]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r1, .L9+16
	bl	fprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	mvn	r3, #0
	b	.L7
.L8:
	mov	r3, #0
.L7:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L10:
	.align	2
.L9:
	.word	stderr
	.word	.LC0
	.word	stdout
	.word	.LC1
	.word	.LC2
	.size	prime_store, .-prime_store
	.section	.rodata
	.align	2
.LC3:
	.ascii	"r+\000"
	.align	2
.LC4:
	.ascii	"w\000"
	.align	2
.LC5:
	.ascii	"failed to open cache file: %s\012\000"
	.align	2
.LC6:
	.ascii	"strange prime line found\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prime_init, %function
prime_init:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r2, #40
	mov	r1, #0
	ldr	r0, [fp, #-48]
	bl	memset
	mov	r1, #0
	ldr	r0, [fp, #-52]
	bl	access
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-32]
	ldr	r1, [fp, #-48]
	mov	r2, #4096
	mov	r3, #0
	str	r2, [r1, #24]
	str	r3, [r1, #28]
	ldr	r3, [fp, #-48]
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	mov	r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-48]
	str	r2, [r3, #32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L27+4
	b	.L13
.L12:
	ldr	r3, .L27+8
.L13:
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	fopen
	mov	r2, r0
	ldr	r3, [fp, #-48]
	str	r2, [r3]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L27+12
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L27+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L15
.L14:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L16
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L17
.L23:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoull
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L18
	ldr	r3, .L27+12
	ldr	r3, [r3]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, .L27+20
	bl	fwrite
	mvn	r3, #0
	b	.L15
.L18:
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L26
	mov	r3, #0
	str	r3, [sp]
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-48]
	bl	prime_store
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	mvn	r3, #0
	b	.L15
.L22:
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
.L17:
	ldr	r3, [fp, #-48]
	ldr	r2, [r3]
	sub	r1, fp, #36
	sub	r3, fp, #40
	mov	r0, r3
	bl	getline
	mov	r3, r0
	cmp	r3, #0
	ble	.L24
	ldr	r3, .L27+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L23
	b	.L24
.L16:
	mov	r3, #1
	str	r3, [sp]
	mov	r2, #2
	mov	r3, #0
	ldr	r0, [fp, #-48]
	bl	prime_store
	b	.L24
.L26:
	nop
.L24:
	ldr	r1, .L27+28
	mov	r0, #2
	bl	signal
	mov	r3, #0
.L15:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC7
	.word	.LC3
	.word	.LC4
	.word	stderr
	.word	.LC5
	.word	.LC6
	.word	running
	.word	SIGINT_handler
	.size	prime_init, .-prime_init
	.global	__aeabi_uldivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prime_search, %function
prime_search:
	@ 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, #40
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	add	r3, r3, #8
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-52]
	str	r5, [fp, #-48]
	b	.L30
.L38:
	mov	r2, #1
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L31
.L34:
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #32]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_uldivmod
	orrs	r3, r2, r3
	bne	.L32
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L33
.L32:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-36]
	str	r7, [fp, #-32]
.L31:
	ldr	r3, [fp, #-56]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bcs	.L33
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #32]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-56]
	ldr	r2, [r3, #32]
	ldr	r3, [fp, #-36]
	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
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	cmp	r3, r5
	cmpeq	r2, r4
	bcc	.L33
	ldr	r3, .L39
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L34
.L33:
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L35
	mov	r3, #1
	str	r3, [sp]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	ldr	r0, [fp, #-56]
	bl	prime_store
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	mvn	r3, #0
	b	.L36
.L35:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	str	r8, [fp, #-52]
	str	r9, [fp, #-48]
.L30:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	mvn	r0, #0
	mvn	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	beq	.L37
	ldr	r3, .L39
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L38
.L37:
	mov	r3, #0
.L36:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L40:
	.align	2
.L39:
	.word	running
	.size	prime_search, .-prime_search
	.section	.rodata
	.align	2
.LC8:
	.ascii	"./primes.txt\000"
	.align	2
.LC9:
	.ascii	"init failed\012\000"
	.align	2
.LC10:
	.ascii	"starting search...\012\000"
	.align	2
.LC11:
	.ascii	"search failed\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #52
	ldr	r1, .L45+4
	mov	r0, r3
	bl	prime_init
	mov	r3, r0
	cmp	r3, #0
	beq	.L42
	ldr	r3, .L45+8
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L45+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L42:
	ldr	r3, .L45+16
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L45+20
	bl	fwrite
	sub	r3, fp, #52
	mov	r0, r3
	bl	prime_search
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	ldr	r3, .L45+8
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L45+24
	bl	fwrite
	mov	r0, #1
	bl	exit
.L43:
	mov	r0, #0
	bl	exit
.L46:
	.align	2
.L45:
	.word	.LC12
	.word	.LC8
	.word	stderr
	.word	.LC9
	.word	stdout
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
