	.file	"607475.c"
	.intel_syntax noprefix
	.text
	.globl	matriz
	.bss
	.align 8
	.type	matriz, @object
	.size	matriz, 8
matriz:
	.zero	8
	.globl	_contadorPrimos
	.align 4
	.type	_contadorPrimos, @object
	.size	_contadorPrimos, 4
_contadorPrimos:
	.zero	4
	.globl	_MBDisponiveis
	.align 4
	.type	_MBDisponiveis, @object
	.size	_MBDisponiveis, 4
_MBDisponiveis:
	.zero	4
	.globl	_mutexNumPrimo
	.align 32
	.type	_mutexNumPrimo, @object
	.size	_mutexNumPrimo, 40
_mutexNumPrimo:
	.zero	40
	.globl	_mutexMBDisponiveis
	.align 32
	.type	_mutexMBDisponiveis, @object
	.size	_mutexMBDisponiveis, 40
_mutexMBDisponiveis:
	.zero	40
	.section	.rodata
	.align 8
.LC0:
	.string	"\nBUSCA SERIAL\nQuantidade de n\303\272meros primos na matriz: %u\n"
.LC1:
	.string	"Tempo decorrido: %d ms\n"
.LC2:
	.string	"\n Erro: %d \n"
	.align 8
.LC3:
	.string	"\nBUSCA PARALELA\nQuantidade de n\303\272meros primos na matriz: %u\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
	sub	rsp, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -140[rbp], 0
	mov	DWORD PTR -128[rbp], 0
	mov	esi, 0
	lea	rdi, _mutexNumPrimo[rip]
	call	pthread_mutex_init@PLT
	mov	esi, 0
	lea	rdi, _mutexMBDisponiveis[rip]
	call	pthread_mutex_init@PLT
	mov	eax, 0
	call	cria_matriz
	mov	eax, 0
	call	add_num
	lea	rax, -112[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	DWORD PTR _contadorPrimos[rip], 0
	mov	eax, 0
	call	busca_serial
	mov	eax, DWORD PTR _contadorPrimos[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -96[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rdx, QWORD PTR -112[rbp]
	sub	rax, rdx
	imul	esi, eax, 1000
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -104[rbp]
	sub	rax, rdx
	mov	rcx, rax
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	eax, esi
	mov	DWORD PTR -124[rbp], eax
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR _contadorPrimos[rip], 0
	lea	rax, -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	DWORD PTR _MBDisponiveis[rip], 40000
	mov	eax, DWORD PTR _MBDisponiveis[rip]
	mov	eax, eax
	sal	rax, 4
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -120[rbp], rax
	mov	DWORD PTR -136[rbp], 0
	jmp	.L2
.L5:
	mov	DWORD PTR -132[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -136[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -136[rbp]
	add	edx, 100
	mov	DWORD PTR 4[rax], edx
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -132[rbp]
	mov	DWORD PTR 8[rdx], eax
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -132[rbp]
	add	edx, 100
	mov	DWORD PTR 12[rax], edx
	add	DWORD PTR -140[rbp], 1
	add	DWORD PTR -132[rbp], 100
.L3:
	cmp	DWORD PTR -132[rbp], 19999
	jle	.L4
	add	DWORD PTR -136[rbp], 100
.L2:
	cmp	DWORD PTR -136[rbp], 19999
	jle	.L5
	mov	DWORD PTR -140[rbp], 0
	jmp	.L6
.L8:
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	sal	rax, 3
	lea	rdi, [rdx+rax]
	mov	rax, QWORD PTR -120[rbp]
	mov	rcx, rax
	lea	rdx, busca_paralelo[rip]
	mov	esi, 0
	call	pthread_create@PLT
	mov	DWORD PTR -128[rbp], eax
	cmp	DWORD PTR -128[rbp], 0
	je	.L7
	mov	eax, DWORD PTR -128[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	add	DWORD PTR -140[rbp], 1
.L6:
	cmp	DWORD PTR -140[rbp], 3
	jle	.L8
	mov	DWORD PTR -140[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	mov	rax, QWORD PTR -48[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -140[rbp], 1
.L9:
	cmp	DWORD PTR -140[rbp], 3
	jle	.L10
	mov	eax, DWORD PTR _contadorPrimos[rip]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -80[rbp]
	sub	rax, rdx
	imul	esi, eax, 1000
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	sub	rax, rdx
	mov	rcx, rax
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	eax, esi
	mov	DWORD PTR -124[rbp], eax
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	set_me_free
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	eh_primo
	.type	eh_primo, @function
eh_primo:
.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	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 2
	jne	.L14
	mov	eax, 1
	jmp	.L15
.L14:
	cmp	DWORD PTR -20[rbp], 1
	jle	.L16
	mov	eax, DWORD PTR -20[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L17
.L16:
	mov	eax, 0
	jmp	.L15
.L17:
	mov	DWORD PTR -16[rbp], 3
	mov	DWORD PTR -12[rbp], 1
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -20[rbp]
	movq	rax, xmm2
	movq	xmm0, rax
	call	sqrt@PLT
	movsd	xmm1, QWORD PTR .LC4[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	jmp	.L18
.L22:
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -16[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L19
	mov	DWORD PTR -12[rbp], 0
.L19:
	add	DWORD PTR -16[rbp], 2
.L18:
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -16[rbp]
	movsd	xmm0, QWORD PTR -8[rbp]
	comisd	xmm0, xmm1
	jbe	.L20
	cmp	DWORD PTR -12[rbp], 0
	jne	.L22
.L20:
	mov	eax, DWORD PTR -12[rbp]
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	eh_primo, .-eh_primo
	.globl	add_num_lin
	.type	add_num_lin, @function
add_num_lin:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	call	clock@PLT
	mov	edi, eax
	call	srand@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L25
.L26:
	call	rand@PLT
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rcx, rdx
	movsx	rdx, eax
	imul	rdx, rdx, -1949264299
	shr	rdx, 32
	add	edx, eax
	sar	edx, 14
	mov	esi, eax
	sar	esi, 31
	sub	edx, esi
	imul	esi, edx, 29999
	sub	eax, esi
	mov	edx, eax
	mov	DWORD PTR [rcx], edx
	add	DWORD PTR -4[rbp], 1
.L25:
	cmp	DWORD PTR -4[rbp], 19999
	jle	.L26
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	add_num_lin, .-add_num_lin
	.globl	add_num
	.type	add_num, @function
add_num:
.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 -4[rbp], 0
	jmp	.L28
.L29:
	mov	rdx, QWORD PTR matriz[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	add_num_lin
	add	DWORD PTR -4[rbp], 1
.L28:
	cmp	DWORD PTR -4[rbp], 19999
	jle	.L29
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	add_num, .-add_num
	.section	.rodata
.LC5:
	.string	" %5d "
	.text
	.globl	imprime_matriz
	.type	imprime_matriz, @function
imprime_matriz:
.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, 16
	mov	DWORD PTR -16[rbp], 0
	jmp	.L31
.L34:
	mov	rdx, QWORD PTR matriz[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L32
.L33:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -12[rbp], 1
.L32:
	cmp	DWORD PTR -12[rbp], 19999
	jle	.L33
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -16[rbp], 1
.L31:
	cmp	DWORD PTR -16[rbp], 19999
	jle	.L34
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	imprime_matriz, .-imprime_matriz
	.globl	busca_serial
	.type	busca_serial, @function
busca_serial:
.LFB11:
	.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 -16[rbp], 0
	jmp	.L36
.L39:
	mov	rdx, QWORD PTR matriz[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L37
.L38:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	eh_primo
	mov	edx, eax
	mov	eax, DWORD PTR _contadorPrimos[rip]
	add	eax, edx
	mov	DWORD PTR _contadorPrimos[rip], eax
	add	DWORD PTR -12[rbp], 1
.L37:
	cmp	DWORD PTR -12[rbp], 19999
	jle	.L38
	add	DWORD PTR -16[rbp], 1
.L36:
	cmp	DWORD PTR -16[rbp], 19999
	jle	.L39
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	busca_serial, .-busca_serial
	.globl	set_me_free
	.type	set_me_free, @function
set_me_free:
.LFB12:
	.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 -12[rbp], 0
	jmp	.L41
.L42:
	mov	rdx, QWORD PTR matriz[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -12[rbp], 1
.L41:
	cmp	DWORD PTR -12[rbp], 19999
	jle	.L42
	mov	rax, QWORD PTR matriz[rip]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	set_me_free, .-set_me_free
	.globl	cria_matriz
	.type	cria_matriz, @function
cria_matriz:
.LFB13:
	.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	edi, 160000
	call	malloc@PLT
	mov	QWORD PTR matriz[rip], rax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L44
.L45:
	mov	rdx, QWORD PTR matriz[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 3
	lea	rbx, [rdx+rax]
	mov	edi, 80000
	call	malloc@PLT
	mov	QWORD PTR [rbx], rax
	add	DWORD PTR -20[rbp], 1
.L44:
	cmp	DWORD PTR -20[rbp], 19999
	jle	.L45
	nop
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	cria_matriz, .-cria_matriz
	.globl	busca_paralelo
	.type	busca_paralelo, @function
busca_paralelo:
.LFB14:
	.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	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
.L55:
	lea	rdi, _mutexMBDisponiveis[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR _MBDisponiveis[rip]
	test	eax, eax
	je	.L47
	mov	eax, DWORD PTR _MBDisponiveis[rip]
	sub	eax, 1
	mov	eax, eax
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	mov	eax, DWORD PTR _MBDisponiveis[rip]
	sub	eax, 1
	mov	DWORD PTR _MBDisponiveis[rip], eax
	jmp	.L48
.L47:
	mov	DWORD PTR -24[rbp], 1
.L48:
	lea	rdi, _mutexMBDisponiveis[rip]
	call	pthread_mutex_unlock@PLT
	cmp	DWORD PTR -24[rbp], 0
	je	.L49
	mov	edi, 0
	call	pthread_exit@PLT
.L49:
	mov	DWORD PTR -20[rbp], 0
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -32[rbp], eax
	jmp	.L50
.L54:
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L51
.L53:
	mov	rdx, QWORD PTR matriz[rip]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	eh_primo
	test	eax, eax
	je	.L52
	add	DWORD PTR -20[rbp], 1
.L52:
	add	DWORD PTR -28[rbp], 1
.L51:
	mov	eax, DWORD PTR -4[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L53
	add	DWORD PTR -32[rbp], 1
.L50:
	mov	eax, DWORD PTR -12[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L54
	lea	rdi, _mutexNumPrimo[rip]
	call	pthread_mutex_lock@PLT
	mov	edx, DWORD PTR _contadorPrimos[rip]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR _contadorPrimos[rip], eax
	lea	rdi, _mutexNumPrimo[rip]
	call	pthread_mutex_unlock@PLT
	jmp	.L55
	.cfi_endproc
.LFE14:
	.size	busca_paralelo, .-busca_paralelo
	.section	.rodata
	.align 8
.LC4:
	.long	0
	.long	1072693248
	.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	"607475.c"
	.text
	.comm	matriz,4,4
	.comm	_contadorPrimos,4,4
	.comm	_MBDisponiveis,4,4
	.comm	_mutexNumPrimo,24,4
	.comm	_mutexMBDisponiveis,24,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012BUSCA SERIAL\012Quantidade de n\303\272meros pr"
	.ascii	"imos na matriz: %u\012\000"
	.align	2
.LC1:
	.ascii	"Tempo decorrido: %d ms\012\000"
	.align	2
.LC2:
	.ascii	"\012 Erro: %d \012\000"
	.align	2
.LC3:
	.ascii	"\012BUSCA PARALELA\012Quantidade de n\303\272meros "
	.ascii	"primos na matriz: %u\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r1, #0
	ldr	r0, .L13+4
	bl	pthread_mutex_init
	mov	r1, #0
	ldr	r0, .L13+8
	bl	pthread_mutex_init
	bl	cria_matriz
	bl	add_num
	sub	r3, fp, #56
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, .L13+12
	mov	r2, #0
	str	r2, [r3]
	bl	busca_serial
	ldr	r3, .L13+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+16
	bl	printf
	sub	r3, fp, #48
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-56]
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r1, r3
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	ldr	r2, .L13+20
	smull	r0, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r3, r1, r3
	str	r3, [fp, #-64]
	ldr	r1, [fp, #-64]
	ldr	r0, .L13+24
	bl	printf
	ldr	r3, .L13+12
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #40
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, .L13+28
	ldr	r2, .L13+32
	str	r2, [r3]
	ldr	r3, .L13+28
	ldr	r3, [r3]
	lsl	r3, r3, #4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L2
.L5:
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L3
.L4:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r2, [fp, #-76]
	str	r2, [r3]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r2, [fp, #-76]
	add	r2, r2, #100
	str	r2, [r3, #4]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r2, [fp, #-72]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r2, [fp, #-72]
	add	r2, r2, #100
	str	r2, [r3, #12]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-72]
	add	r3, r3, #100
	str	r3, [fp, #-72]
.L3:
	ldr	r3, [fp, #-72]
	ldr	r2, .L13+36
	cmp	r3, r2
	ble	.L4
	ldr	r3, [fp, #-76]
	add	r3, r3, #100
	str	r3, [fp, #-76]
.L2:
	ldr	r3, [fp, #-76]
	ldr	r2, .L13+36
	cmp	r3, r2
	ble	.L5
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L6
.L8:
	sub	r2, fp, #24
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, [fp, #-60]
	ldr	r2, .L13+40
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L7
	ldr	r1, [fp, #-68]
	ldr	r0, .L13+44
	bl	printf
.L7:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L6:
	ldr	r3, [fp, #-80]
	cmp	r3, #3
	ble	.L8
	mov	r3, #0
	str	r3, [fp, #-80]
	b	.L9
.L10:
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-20]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L9:
	ldr	r3, [fp, #-80]
	cmp	r3, #3
	ble	.L10
	ldr	r3, .L13+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+48
	bl	printf
	sub	r3, fp, #32
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-40]
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r1, r3
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	ldr	r2, .L13+20
	smull	r0, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r3, r1, r3
	str	r3, [fp, #-64]
	ldr	r1, [fp, #-64]
	ldr	r0, .L13+24
	bl	printf
	bl	set_me_free
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC4
	.word	_mutexNumPrimo
	.word	_mutexMBDisponiveis
	.word	_contadorPrimos
	.word	.LC0
	.word	274877907
	.word	.LC1
	.word	_MBDisponiveis
	.word	40000
	.word	19999
	.word	busca_paralelo
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.global	__aeabi_i2d
	.global	__aeabi_dadd
	.global	__aeabi_idivmod
	.global	__aeabi_dcmpgt
	.align	2
	.global	eh_primo
	.syntax unified
	.arm
	.fpu softvfp
	.type	eh_primo, %function
eh_primo:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	bne	.L16
	mov	r3, #1
	b	.L17
.L16:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L18
	ldr	r3, [fp, #-24]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L19
.L18:
	mov	r3, #0
	b	.L17
.L19:
	mov	r3, #3
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, #0
	ldr	r3, .L26
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	b	.L20
.L24:
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L21
	mov	r3, #0
	str	r3, [fp, #-16]
.L21:
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	str	r3, [fp, #-20]
.L20:
	ldr	r0, [fp, #-20]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L24
.L22:
	ldr	r3, [fp, #-16]
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	1072693248
	.size	eh_primo, .-eh_primo
	.align	2
	.global	add_num_lin
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_num_lin, %function
add_num_lin:
	@ 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]
	bl	clock
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L29
.L30:
	bl	rand
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	ip, r2, r3
	ldr	r3, .L31
	smull	r2, r3, r0, r3
	add	r3, r3, r0
	asr	r2, r3, #14
	asr	r3, r0, #31
	sub	r1, r2, r3
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r2, r3, #4
	sub	r2, r2, r3
	lsl	r2, r2, #4
	sub	r2, r2, r1
	sub	r1, r0, r2
	str	r1, [ip]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L29:
	ldr	r3, [fp, #-8]
	ldr	r2, .L31+4
	cmp	r3, r2
	ble	.L30
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	-1949264299
	.word	19999
	.size	add_num_lin, .-add_num_lin
	.align	2
	.global	add_num
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_num, %function
add_num:
	@ 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, #-8]
	b	.L34
.L35:
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	add_num_lin
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L34:
	ldr	r3, [fp, #-8]
	ldr	r2, .L36+4
	cmp	r3, r2
	ble	.L35
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	matriz
	.word	19999
	.size	add_num, .-add_num
	.section	.rodata
	.align	2
.LC5:
	.ascii	" %5d \000"
	.text
	.align	2
	.global	imprime_matriz
	.syntax unified
	.arm
	.fpu softvfp
	.type	imprime_matriz, %function
imprime_matriz:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L39
.L42:
	ldr	r3, .L43
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L40
.L41:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L43+4
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L40:
	ldr	r3, [fp, #-12]
	ldr	r2, .L43+8
	cmp	r3, r2
	ble	.L41
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L39:
	ldr	r3, [fp, #-16]
	ldr	r2, .L43+8
	cmp	r3, r2
	ble	.L42
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	matriz
	.word	.LC5
	.word	19999
	.size	imprime_matriz, .-imprime_matriz
	.align	2
	.global	busca_serial
	.syntax unified
	.arm
	.fpu softvfp
	.type	busca_serial, %function
busca_serial:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L46
.L49:
	ldr	r3, .L50
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L47
.L48:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	eh_primo
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L50+4
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L50+4
	str	r3, [r2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L47:
	ldr	r3, [fp, #-12]
	ldr	r2, .L50+8
	cmp	r3, r2
	ble	.L48
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L46:
	ldr	r3, [fp, #-16]
	ldr	r2, .L50+8
	cmp	r3, r2
	ble	.L49
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	matriz
	.word	_contadorPrimos
	.word	19999
	.size	busca_serial, .-busca_serial
	.align	2
	.global	set_me_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_me_free, %function
set_me_free:
	@ 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]
	b	.L53
.L54:
	ldr	r3, .L55
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L53:
	ldr	r3, [fp, #-12]
	ldr	r2, .L55+4
	cmp	r3, r2
	ble	.L54
	ldr	r3, .L55
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	matriz
	.word	19999
	.size	set_me_free, .-set_me_free
	.align	2
	.global	cria_matriz
	.syntax unified
	.arm
	.fpu softvfp
	.type	cria_matriz, %function
cria_matriz:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	ldr	r0, .L60
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L60+4
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L58
.L59:
	ldr	r3, .L60+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r4, r2, r3
	ldr	r0, .L60
	bl	malloc
	mov	r3, r0
	str	r3, [r4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L58:
	ldr	r3, [fp, #-16]
	ldr	r2, .L60+8
	cmp	r3, r2
	ble	.L59
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L61:
	.align	2
.L60:
	.word	80000
	.word	matriz
	.word	19999
	.size	cria_matriz, .-cria_matriz
	.align	2
	.global	busca_paralelo
	.syntax unified
	.arm
	.fpu softvfp
	.type	busca_paralelo, %function
busca_paralelo:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
.L71:
	ldr	r0, .L72
	bl	pthread_mutex_lock
	ldr	r3, .L72+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L63
	ldr	r3, .L72+4
	ldr	r3, [r3]
	sub	r3, r3, #-268435455
	lsl	r3, r3, #4
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	sub	ip, fp, #20
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L72+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L72+4
	str	r3, [r2]
	b	.L64
.L63:
	mov	r3, #1
	str	r3, [fp, #-28]
.L64:
	ldr	r0, .L72
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L65
	mov	r0, #0
	bl	pthread_exit
.L65:
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-36]
	b	.L66
.L70:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-32]
	b	.L67
.L69:
	ldr	r3, .L72+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	eh_primo
	mov	r3, r0
	cmp	r3, #0
	beq	.L68
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L68:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L67:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	blt	.L69
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L66:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L70
	ldr	r0, .L72+12
	bl	pthread_mutex_lock
	ldr	r3, .L72+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, .L72+16
	str	r3, [r2]
	ldr	r0, .L72+12
	bl	pthread_mutex_unlock
	b	.L71
.L73:
	.align	2
.L72:
	.word	_mutexMBDisponiveis
	.word	_MBDisponiveis
	.word	matriz
	.word	_mutexNumPrimo
	.word	_contadorPrimos
	.size	busca_paralelo, .-busca_paralelo
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
