	.file	"719566.c"
	.intel_syntax noprefix
	.text
	.globl	maxprime
	.data
	.align 4
	.type	maxprime, @object
	.size	maxprime, 4
maxprime:
	.long	100
	.section	.rodata
	.align 8
.LC0:
	.string	"Invalid argument / Argument too large"
	.align 8
.LC1:
	.string	"\n\nGenerating prime numbers less than %d\n\n"
	.align 8
.LC2:
	.string	"Could not allocate memory for (Chan *)out in main()"
.LC3:
	.string	"Could not create new thread\n"
	.text
	.globl	startup
	.type	startup, @function
startup:
.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, 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
	cmp	DWORD PTR -52[rbp], 2
	jne	.L2
	lea	rax, -33[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, -24[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR maxprime[rip], eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L3
	mov	eax, DWORD PTR maxprime[rip]
	test	eax, eax
	jg	.L2
.L3:
	lea	rdi, .LC0[rip]
	call	fatal
.L2:
	mov	eax, DWORD PTR maxprime[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 184
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L5
	lea	rdi, .LC2[rip]
	call	fatal
.L5:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 80
	mov	esi, 0
	mov	rdi, rax
	call	pthread_cond_init@PLT
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, -128
	mov	esi, 0
	mov	rdi, rax
	call	pthread_cond_init@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 40
	mov	esi, 0
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -24[rbp]
	mov	rcx, rdx
	lea	rdx, sieve[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jns	.L6
	lea	rdi, .LC3[rip]
	call	fatal
.L6:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	add	rdx, 80
	mov	rsi, rax
	mov	rdi, rdx
	call	pthread_cond_wait@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	DWORD PTR -32[rbp], 2
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	DWORD PTR 176[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 40
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, -128
	mov	rdi, rax
	call	pthread_cond_signal@PLT
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 40
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	add	rdx, 80
	mov	rsi, rax
	mov	rdi, rdx
	call	pthread_cond_wait@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	add	DWORD PTR -32[rbp], 1
.L7:
	mov	eax, DWORD PTR maxprime[rip]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L8
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	startup, .-startup
	.section	.rodata
	.align 8
.LC4:
	.string	"Could not allocate memory for (Chan *)out in sieve()"
.LC5:
	.string	"myprime = %d\n"
	.text
	.type	sieve, @function
sieve:
.LFB7:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 40
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 80
	mov	rdi, rax
	call	pthread_cond_signal@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	esi, 184
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L12
	lea	rdi, .LC4[rip]
	call	fatal
.L12:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 80
	mov	esi, 0
	mov	rdi, rax
	call	pthread_cond_init@PLT
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, -128
	mov	esi, 0
	mov	rdi, rax
	call	pthread_cond_init@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 40
	mov	esi, 0
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 40[rax]
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, -128
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_cond_wait@PLT
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 40
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 176[rax]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 40
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 80
	mov	rdi, rax
	call	pthread_cond_signal@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -24[rbp]
	mov	rcx, rdx
	lea	rdx, sieve[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jns	.L13
	lea	rdi, .LC3[rip]
	call	fatal
.L13:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	add	rdx, 80
	mov	rsi, rax
	mov	rdi, rdx
	call	pthread_cond_wait@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
.L15:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 40[rax]
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, -128
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_cond_wait@PLT
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 40
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 176[rax]
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 40
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 80
	mov	rdi, rax
	call	pthread_cond_signal@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	eax, DWORD PTR -36[rbp]
	cdq
	idiv	DWORD PTR -32[rbp]
	mov	eax, edx
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR 176[rax], edx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 40
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, -128
	mov	rdi, rax
	call	pthread_cond_signal@PLT
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 40
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	add	rdx, 80
	mov	rsi, rax
	mov	rdi, rdx
	call	pthread_cond_wait@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
.L14:
	mov	eax, DWORD PTR maxprime[rip]
	cmp	DWORD PTR -36[rbp], eax
	jl	.L15
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	pthread_mutex_destroy@PLT
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 80
	mov	rdi, rax
	call	pthread_cond_destroy@PLT
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 40
	mov	rdi, rax
	call	pthread_mutex_destroy@PLT
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, -128
	mov	rdi, rax
	call	pthread_cond_destroy@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_mutex_destroy@PLT
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 80
	mov	rdi, rax
	call	pthread_cond_destroy@PLT
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 40
	mov	rdi, rax
	call	pthread_mutex_destroy@PLT
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, -128
	mov	rdi, rax
	call	pthread_cond_destroy@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sieve, .-sieve
	.section	.rodata
.LC6:
	.string	"Sieve Error: \"%s\"\n"
	.text
	.type	fatal, @function
fatal:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	fatal, .-fatal
	.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	"719566.c"
	.text
	.global	maxprime
	.data
	.align	2
	.type	maxprime, %object
	.size	maxprime, 4
maxprime:
	.word	100
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Invalid argument / Argument too large\000"
	.align	2
.LC1:
	.ascii	"\012\012Generating prime numbers less than %d\012\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"Could not allocate memory for (Chan *)out in main()"
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"Could not create new thread\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	startup
	.syntax unified
	.arm
	.fpu softvfp
	.type	startup, %function
startup:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	bne	.L2
	sub	r3, fp, #25
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r1, fp, #24
	mov	r2, #0
	mov	r0, r3
	bl	strtoul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L11+4
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L2
.L3:
	ldr	r0, .L11+8
	bl	fatal
.L2:
	ldr	r3, .L11+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+12
	bl	printf
	mov	r1, #152
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L11+16
	bl	fatal
.L5:
	ldr	r3, [fp, #-16]
	add	r3, r3, #48
	mov	r1, #0
	mov	r0, r3
	bl	pthread_cond_init
	ldr	r3, [fp, #-16]
	add	r3, r3, #96
	mov	r1, #0
	mov	r0, r3
	bl	pthread_cond_init
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_mutex_init
	ldr	r3, [fp, #-16]
	add	r3, r3, #24
	mov	r1, #0
	mov	r0, r3
	bl	pthread_mutex_init
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	pthread_mutex_lock
	sub	r0, fp, #24
	ldr	r3, [fp, #-16]
	ldr	r2, .L11+20
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L11+24
	bl	fatal
.L6:
	ldr	r3, [fp, #-16]
	add	r3, r3, #48
	ldr	r2, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	pthread_cond_wait
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	pthread_mutex_unlock
	mov	r3, #2
	str	r3, [fp, #-20]
	b	.L7
.L8:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #144]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-16]
	add	r3, r3, #24
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-16]
	add	r3, r3, #96
	mov	r0, r3
	bl	pthread_cond_signal
	ldr	r3, [fp, #-16]
	add	r3, r3, #24
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-16]
	add	r3, r3, #48
	ldr	r2, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	pthread_cond_wait
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L7:
	ldr	r3, .L11+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L8
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC4
	.word	maxprime
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	sieve
	.word	.LC3
	.size	startup, .-startup
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Could not allocate memory for (Chan *)out in sieve("
	.ascii	")\000"
	.align	2
.LC6:
	.ascii	"myprime = %d\012\000"
	.global	__aeabi_idivmod
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sieve, %function
sieve:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	add	r3, r3, #24
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-32]
	add	r3, r3, #48
	mov	r0, r3
	bl	pthread_cond_signal
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	pthread_mutex_unlock
	mov	r1, #152
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L20+4
	bl	fatal
.L14:
	ldr	r3, [fp, #-24]
	add	r3, r3, #48
	mov	r1, #0
	mov	r0, r3
	bl	pthread_cond_init
	ldr	r3, [fp, #-24]
	add	r3, r3, #96
	mov	r1, #0
	mov	r0, r3
	bl	pthread_cond_init
	ldr	r3, [fp, #-24]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_mutex_init
	ldr	r3, [fp, #-24]
	add	r3, r3, #24
	mov	r1, #0
	mov	r0, r3
	bl	pthread_mutex_init
	ldr	r3, [fp, #-32]
	add	r2, r3, #96
	ldr	r3, [fp, #-32]
	add	r3, r3, #24
	mov	r1, r3
	mov	r0, r2
	bl	pthread_cond_wait
	ldr	r3, [fp, #-32]
	add	r3, r3, #24
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #144]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, .L20+8
	bl	printf
	ldr	r3, [fp, #-32]
	add	r3, r3, #24
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-32]
	add	r3, r3, #48
	mov	r0, r3
	bl	pthread_cond_signal
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	pthread_mutex_lock
	sub	r0, fp, #28
	ldr	r3, [fp, #-24]
	ldr	r2, .L20+12
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L20+16
	bl	fatal
.L15:
	ldr	r3, [fp, #-24]
	add	r3, r3, #48
	ldr	r2, [fp, #-24]
	mov	r1, r2
	mov	r0, r3
	bl	pthread_cond_wait
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	pthread_mutex_unlock
.L17:
	ldr	r3, [fp, #-32]
	add	r2, r3, #96
	ldr	r3, [fp, #-32]
	add	r3, r3, #24
	mov	r1, r3
	mov	r0, r2
	bl	pthread_cond_wait
	ldr	r3, [fp, #-32]
	add	r3, r3, #24
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #144]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r3, #24
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-32]
	add	r3, r3, #48
	mov	r0, r3
	bl	pthread_cond_signal
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #144]
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-24]
	add	r3, r3, #24
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-24]
	add	r3, r3, #96
	mov	r0, r3
	bl	pthread_cond_signal
	ldr	r3, [fp, #-24]
	add	r3, r3, #24
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-24]
	add	r3, r3, #48
	ldr	r2, [fp, #-24]
	mov	r1, r2
	mov	r0, r3
	bl	pthread_cond_wait
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	pthread_mutex_unlock
.L16:
	ldr	r3, .L20+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L17
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	pthread_mutex_destroy
	ldr	r3, [fp, #-32]
	add	r3, r3, #48
	mov	r0, r3
	bl	pthread_cond_destroy
	ldr	r3, [fp, #-32]
	add	r3, r3, #24
	mov	r0, r3
	bl	pthread_mutex_destroy
	ldr	r3, [fp, #-32]
	add	r3, r3, #96
	mov	r0, r3
	bl	pthread_cond_destroy
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	pthread_mutex_destroy
	ldr	r3, [fp, #-24]
	add	r3, r3, #48
	mov	r0, r3
	bl	pthread_cond_destroy
	ldr	r3, [fp, #-24]
	add	r3, r3, #24
	mov	r0, r3
	bl	pthread_mutex_destroy
	ldr	r3, [fp, #-24]
	add	r3, r3, #96
	mov	r0, r3
	bl	pthread_cond_destroy
	nop
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC7
	.word	.LC5
	.word	.LC6
	.word	sieve
	.word	.LC3
	.word	maxprime
	.size	sieve, .-sieve
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Sieve Error: \"%s\"\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fatal, %function
fatal:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L23
	bl	printf
	mvn	r0, #0
	bl	exit
.L24:
	.align	2
.L23:
	.word	.LC8
	.size	fatal, .-fatal
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
