	.file	"835436.c"
	.intel_syntax noprefix
	.text
	.globl	mutex
	.bss
	.align 32
	.type	mutex, @object
	.size	mutex, 40
mutex:
	.zero	40
	.globl	shared_a
	.align 4
	.type	shared_a, @object
	.size	shared_a, 4
shared_a:
	.zero	4
	.globl	shared_b
	.align 4
	.type	shared_b, @object
	.size	shared_b, 4
shared_b:
	.zero	4
	.globl	shared_chunk_size
	.align 4
	.type	shared_chunk_size, @object
	.size	shared_chunk_size, 4
shared_chunk_size:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Returning: %d\n"
	.text
	.globl	worker
	.type	worker, @function
worker:
.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	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -36[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L2
.L14:
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR shared_chunk_size[rip]
	add	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	mov	eax, DWORD PTR shared_b[rip]
	cmp	DWORD PTR -40[rbp], eax
	jle	.L3
	mov	DWORD PTR -36[rbp], 0
	jmp	.L2
.L3:
	cmp	DWORD PTR -40[rbp], 1
	jne	.L4
	add	DWORD PTR -40[rbp], 1
.L4:
	cmp	DWORD PTR -40[rbp], 2
	jne	.L5
	mov	eax, DWORD PTR shared_b[rip]
	cmp	DWORD PTR -40[rbp], eax
	jge	.L5
	add	DWORD PTR -40[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
.L5:
	mov	edx, DWORD PTR shared_chunk_size[rip]
	mov	eax, DWORD PTR -40[rbp]
	add	edx, eax
	mov	eax, DWORD PTR shared_b[rip]
	cmp	edx, eax
	jle	.L6
	mov	eax, DWORD PTR shared_b[rip]
	add	eax, 1
	jmp	.L7
.L6:
	mov	edx, DWORD PTR shared_chunk_size[rip]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
.L7:
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -32[rbp], eax
	jmp	.L8
.L13:
	mov	eax, DWORD PTR -32[rbp]
	and	eax, 1
	test	eax, eax
	je	.L9
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 3
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -32[rbp]
	cdq
	idiv	DWORD PTR -24[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L11
	cmp	DWORD PTR -28[rbp], 0
	jne	.L11
	mov	DWORD PTR -28[rbp], 1
.L11:
	add	DWORD PTR -24[rbp], 2
.L10:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -24[rbp]
	movsd	QWORD PTR -64[rbp], xmm1
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -32[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	movq	xmm0, rax
	call	ceil@PLT
	movq	rax, xmm0
	movq	xmm3, rax
	comisd	xmm3, QWORD PTR -64[rbp]
	jnb	.L12
	cmp	DWORD PTR -28[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
.L9:
	add	DWORD PTR -32[rbp], 1
.L8:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L13
.L2:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L14
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	worker, .-worker
	.globl	prime_count
	.type	prime_count, @function
prime_count:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -80[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR -48[rbp], eax
	mov	DWORD PTR -44[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR shared_a[rip], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR shared_b[rip], eax
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR shared_chunk_size[rip], eax
	mov	QWORD PTR -32[rbp], 0
	jmp	.L16
.L17:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	lea	rdi, [rdx+rax]
	lea	rax, -48[rbp]
	mov	rcx, rax
	lea	rdx, worker[rip]
	mov	esi, 0
	call	pthread_create@PLT
	add	QWORD PTR -32[rbp], 1
.L16:
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -72[rbp]
	jb	.L17
	mov	QWORD PTR -24[rbp], 0
	jmp	.L18
.L19:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	add	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	add	QWORD PTR -24[rbp], 1
.L18:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -72[rbp]
	jb	.L19
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	QWORD PTR -64[rbp], 6
	jbe	.L20
	cmp	QWORD PTR -64[rbp], 99
	jbe	.L21
.L20:
	cmp	QWORD PTR -64[rbp], 7919
	jne	.L22
.L21:
	sub	DWORD PTR -44[rbp], 1
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	jmp	.L24
.L22:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
.L24:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	prime_count, .-prime_count
	.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	"835436.c"
	.text
	.global	mutex
	.bss
	.align	2
	.type	mutex, %object
	.size	mutex, 24
mutex:
	.space	24
	.comm	shared_a,4,4
	.comm	shared_b,4,4
	.comm	shared_chunk_size,4,4
	.global	__aeabi_idivmod
	.global	__aeabi_i2d
	.global	__aeabi_dcmple
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Returning: %d\012\000"
	.text
	.align	2
	.global	worker
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker, %function
worker:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-24]
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3]
	b	.L2
.L14:
	ldr	r0, .L15
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, .L15+4
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r0, .L15
	bl	pthread_mutex_unlock
	ldr	r3, .L15+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	ble	.L3
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L2
.L3:
	ldr	r3, [fp, #-44]
	cmp	r3, #1
	bne	.L4
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L4:
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	bne	.L5
	ldr	r3, .L15+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bge	.L5
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r2, [r3]
.L5:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r2, r2, r3
	ldr	r3, .L15+8
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L6
	ldr	r3, .L15+8
	ldr	r3, [r3]
	add	r3, r3, #1
	b	.L7
.L6:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
.L7:
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-36]
	b	.L8
.L13:
	ldr	r3, [fp, #-36]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L9
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #3
	str	r3, [fp, #-28]
	b	.L10
.L12:
	ldr	r3, [fp, #-36]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L11
	mov	r3, #1
	str	r3, [fp, #-32]
.L11:
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	str	r3, [fp, #-28]
.L10:
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-36]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	ceil
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r2, [r3]
.L9:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L8:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L13
.L2:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+12
	bl	printf
	ldr	r0, [fp, #-20]
	bl	pthread_exit
.L16:
	.align	2
.L15:
	.word	mutex
	.word	shared_chunk_size
	.word	shared_b
	.word	.LC0
	.size	worker, .-worker
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	prime_count
	.syntax unified
	.arm
	.fpu softvfp
	.type	prime_count, %function
prime_count:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-40]
	ldr	r2, .L28+4
	str	r3, [r2]
	ldr	r3, [fp, #-44]
	ldr	r2, .L28+8
	str	r3, [r2]
	ldr	r3, [fp, #-52]
	ldr	r2, .L28+12
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L18
.L19:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r0, r2, r3
	sub	r3, fp, #32
	ldr	r2, .L28+16
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L18:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bcc	.L19
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L20
.L21:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L20:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bcc	.L21
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r3, [fp, #-44]
	cmp	r3, #6
	bls	.L22
	ldr	r3, [fp, #-44]
	cmp	r3, #99
	bls	.L23
.L22:
	ldr	r3, [fp, #-44]
	ldr	r2, .L28+20
	cmp	r3, r2
	bne	.L24
.L23:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	b	.L26
.L24:
	ldr	r3, [fp, #-24]
.L26:
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC1
	.word	shared_a
	.word	shared_b
	.word	shared_chunk_size
	.word	worker
	.word	7919
	.size	prime_count, .-prime_count
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
