	.file	"757657.c"
	.intel_syntax noprefix
	.text
	.globl	workers
	.bss
	.align 8
	.type	workers, @object
	.size	workers, 8
workers:
	.zero	8
	.section	.rodata
.LC0:
	.string	"Wrong number of arguments!\n"
.LC1:
	.string	"usage: ./prime <int>\n"
.LC2:
	.string	"Error in calloc()\n"
.LC3:
	.string	"Error in pthread_create()\n"
.LC4:
	.string	"%d"
.LC5:
	.string	"\nAll threads are terminated.\n"
.LC6:
	.string	"Bye!\n\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	cmp	DWORD PTR -116[rbp], 2
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	mov	esi, 16
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR workers[rip], rax
	mov	rax, QWORD PTR workers[rip]
	test	rax, rax
	jne	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L4:
	cmp	rsp, rdx
	je	.L5
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L4
.L5:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L6
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L6:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -64[rbp], rax
	mov	DWORD PTR -84[rbp], 0
	jmp	.L7
.L9:
	mov	rdx, QWORD PTR workers[rip]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR workers[rip]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	DWORD PTR 4[rax], 0
	mov	rdx, QWORD PTR workers[rip]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	DWORD PTR 8[rax], 0
	mov	rdx, QWORD PTR workers[rip]
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	DWORD PTR 12[rax], 0
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	rdx, rax
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, worker_thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	je	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	add	DWORD PTR -84[rbp], 1
.L7:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jl	.L9
	mov	DWORD PTR -88[rbp], 0
	jmp	.L10
.L13:
	mov	eax, DWORD PTR -80[rbp]
	sub	eax, 1
	cmp	DWORD PTR -88[rbp], eax
	jne	.L12
	mov	DWORD PTR -88[rbp], 0
	jmp	.L11
.L12:
	add	DWORD PTR -88[rbp], 1
.L11:
	mov	rdx, QWORD PTR workers[rip]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L13
	mov	rdx, QWORD PTR workers[rip]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	sal	rax, 4
	add	rdx, rax
	mov	eax, DWORD PTR -100[rbp]
	mov	DWORD PTR 8[rdx], eax
	mov	rdx, QWORD PTR workers[rip]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	DWORD PTR [rax], 0
	mov	rdx, QWORD PTR workers[rip]
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	DWORD PTR 4[rax], 1
.L10:
	lea	rax, -100[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L11
	mov	DWORD PTR -92[rbp], 0
	jmp	.L15
.L17:
	call	pthread_yield@PLT
.L16:
	mov	rdx, QWORD PTR workers[rip]
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L17
	mov	rdx, QWORD PTR workers[rip]
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	DWORD PTR 4[rax], -1
	add	DWORD PTR -92[rbp], 1
.L15:
	mov	eax, DWORD PTR -92[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jl	.L16
	mov	DWORD PTR -96[rbp], 0
	jmp	.L19
.L21:
	call	pthread_yield@PLT
.L20:
	mov	rdx, QWORD PTR workers[rip]
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR 12[rax]
	test	eax, eax
	je	.L21
	add	DWORD PTR -96[rbp], 1
.L19:
	mov	eax, DWORD PTR -96[rbp]
	cmp	eax, DWORD PTR -80[rbp]
	jl	.L20
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR workers[rip]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC7:
	.string	"%d is a prime number\n"
.LC8:
	.string	"%d is not a prime number\n"
	.text
	.globl	worker_thread
	.type	worker_thread, @function
worker_thread:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -4[rbp], eax
.L32:
	mov	rdx, QWORD PTR workers[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	DWORD PTR [rax], 1
	jmp	.L26
.L27:
	call	pthread_yield@PLT
.L26:
	mov	rdx, QWORD PTR workers[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	je	.L27
	mov	rdx, QWORD PTR workers[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, -1
	je	.L35
	mov	rdx, QWORD PTR workers[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	eax, DWORD PTR 8[rax]
	mov	edi, eax
	call	isPrime
	test	eax, eax
	je	.L30
	mov	rdx, QWORD PTR workers[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L31
.L30:
	mov	rdx, QWORD PTR workers[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L31:
	mov	rdx, QWORD PTR workers[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	DWORD PTR 4[rax], 0
	jmp	.L32
.L35:
	nop
	mov	rdx, QWORD PTR workers[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	mov	DWORD PTR 12[rax], 1
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	worker_thread, .-worker_thread
	.globl	isPrime
	.type	isPrime, @function
isPrime:
.LFB8:
	.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], 2
	jmp	.L37
.L40:
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -4[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L38
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	je	.L38
	mov	eax, 0
	jmp	.L39
.L38:
	add	DWORD PTR -4[rbp], 1
.L37:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L40
	mov	eax, 1
.L39:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	isPrime, .-isPrime
	.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	"757657.c"
	.text
	.comm	workers,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Wrong number of arguments!\012\000"
	.align	2
.LC1:
	.ascii	"usage: ./prime <int>\012\000"
	.align	2
.LC2:
	.ascii	"Error in calloc()\012\000"
	.align	2
.LC3:
	.ascii	"Error in pthread_create()\012\000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	"\012All threads are terminated.\012\000"
	.align	2
.LC6:
	.ascii	"Bye!\012\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L22+8
	bl	fwrite
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L22+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	mov	r1, #16
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L22+16
	str	r2, [r3]
	ldr	r3, .L22+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L22+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	ldr	ip, [fp, #-32]
	sub	r3, ip, #1
	str	r3, [fp, #-28]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L4
.L6:
	ldr	r3, .L22+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L22+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L22+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, .L22+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r0, r2, r3
	ldr	r3, [fp, #-36]
	ldr	r2, .L22+24
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L22+28
	bl	fwrite
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L4:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L6
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L7
.L10:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bne	.L9
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L8
.L9:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L8:
	ldr	r3, .L22+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L22+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-52]
	str	r2, [r3, #8]
	ldr	r3, .L22+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L22+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #4]
.L7:
	sub	r3, fp, #52
	mov	r1, r3
	ldr	r0, .L22+32
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L12
.L14:
	bl	pthread_yield
.L13:
	ldr	r3, .L22+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L22+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L12:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L13
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L16
.L18:
	bl	pthread_yield
.L17:
	ldr	r3, .L22+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L16:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L17
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L22+36
	bl	fwrite
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L22+40
	bl	fwrite
	ldr	r3, .L22+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	mov	r3, #0
	mov	sp, r4
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC7
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	workers
	.word	.LC2
	.word	worker_thread
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.section	.rodata
	.align	2
.LC8:
	.ascii	"%d is a prime number\012\000"
	.align	2
.LC9:
	.ascii	"%d is not a prime number\012\000"
	.text
	.align	2
	.global	worker_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker_thread, %function
worker_thread:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
.L31:
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
	b	.L25
.L26:
	bl	pthread_yield
.L25:
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L26
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmn	r3, #1
	beq	.L34
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	isPrime
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	ldr	r3, .L35+4
	ldr	r0, [r3]
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r1, .L35+8
	bl	fprintf
	b	.L30
.L29:
	ldr	r3, .L35+4
	ldr	r0, [r3]
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r1, .L35+12
	bl	fprintf
.L30:
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	b	.L31
.L34:
	nop
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3, #12]
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	workers
	.word	stdout
	.word	.LC8
	.word	.LC9
	.size	worker_thread, .-worker_thread
	.global	__aeabi_idivmod
	.align	2
	.global	isPrime
	.syntax unified
	.arm
	.fpu softvfp
	.type	isPrime, %function
isPrime:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r3, #2
	str	r3, [fp, #-8]
	b	.L38
.L41:
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L39
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	beq	.L39
	mov	r3, #0
	b	.L40
.L39:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L38:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L41
	mov	r3, #1
.L40:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	isPrime, .-isPrime
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
