	.file	"649694.c"
	.intel_syntax noprefix
	.text
	.globl	buffer
	.bss
	.align 32
	.type	buffer, @object
	.size	buffer, 40
buffer:
	.zero	40
	.globl	mutex
	.align 32
	.type	mutex, @object
	.size	mutex, 32
mutex:
	.zero	32
	.globl	empty
	.align 32
	.type	empty, @object
	.size	empty, 32
empty:
	.zero	32
	.globl	full
	.align 32
	.type	full, @object
	.size	full, 32
full:
	.zero	32
	.text
	.globl	produz
	.type	produz, @function
produz:
.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, 16
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 100
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 1[rdx]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	produz, .-produz
	.globl	inicializa_buffer_zerado
	.type	inicializa_buffer_zerado, @function
inicializa_buffer_zerado:
.LFB7:
	.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], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, buffer[rip]
	mov	DWORD PTR [rdx+rax], 0
	add	DWORD PTR -4[rbp], 1
.L4:
	cmp	DWORD PTR -4[rbp], 9
	jle	.L5
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	inicializa_buffer_zerado, .-inicializa_buffer_zerado
	.globl	insere_buffer
	.type	insere_buffer, @function
insere_buffer:
.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 -8[rbp], 0
	jmp	.L7
.L10:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, buffer[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, buffer[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L9
.L8:
	add	DWORD PTR -8[rbp], 1
.L7:
	cmp	DWORD PTR -8[rbp], 9
	jle	.L10
.L9:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	insere_buffer, .-insere_buffer
	.globl	remove_buffer
	.type	remove_buffer, @function
remove_buffer:
.LFB9:
	.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 -8[rbp], 0
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, buffer[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L14
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, buffer[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, buffer[rip]
	mov	DWORD PTR [rdx+rax], 0
	jmp	.L15
.L14:
	add	DWORD PTR -8[rbp], 1
.L13:
	cmp	DWORD PTR -8[rbp], 9
	jle	.L16
.L15:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	remove_buffer, .-remove_buffer
	.globl	identifica_posicao
	.type	identifica_posicao, @function
identifica_posicao:
.LFB10:
	.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 -8[rbp], 0
	jmp	.L19
.L22:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, buffer[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L20
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L21
.L20:
	add	DWORD PTR -8[rbp], 1
.L19:
	cmp	DWORD PTR -8[rbp], 9
	jle	.L22
.L21:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	identifica_posicao, .-identifica_posicao
	.section	.rodata
.LC0:
	.string	"Prod: buffer[%d] = %d\n"
	.text
	.globl	produtor
	.type	produtor, @function
produtor:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
.L25:
	call	produz
	mov	DWORD PTR -8[rbp], eax
	lea	rdi, empty[rip]
	call	sem_wait@PLT
	lea	rdi, mutex[rip]
	call	sem_wait@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	insere_buffer
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, buffer[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rdi, mutex[rip]
	call	sem_post@PLT
	lea	rdi, full[rip]
	call	sem_post@PLT
	jmp	.L25
	.cfi_endproc
.LFE11:
	.size	produtor, .-produtor
	.section	.rodata
.LC1:
	.string	"Cons: %d = buffer[%d]\n"
	.text
	.globl	consumidor
	.type	consumidor, @function
consumidor:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
.L27:
	mov	edi, 1
	call	sleep@PLT
	lea	rdi, full[rip]
	call	sem_wait@PLT
	lea	rdi, mutex[rip]
	call	sem_wait@PLT
	call	identifica_posicao
	mov	DWORD PTR -8[rbp], eax
	call	remove_buffer
	mov	DWORD PTR -4[rbp], eax
	lea	rdi, mutex[rip]
	call	sem_post@PLT
	lea	rdi, empty[rip]
	call	sem_post@PLT
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L27
	.cfi_endproc
.LFE12:
	.size	consumidor, .-consumidor
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	inicializa_buffer_zerado
	mov	edx, 1
	mov	esi, 0
	lea	rdi, mutex[rip]
	call	sem_init@PLT
	mov	edx, 10
	mov	esi, 0
	lea	rdi, empty[rip]
	call	sem_init@PLT
	mov	edx, 0
	mov	esi, 0
	lea	rdi, full[rip]
	call	sem_init@PLT
	mov	DWORD PTR -100[rbp], 0
	jmp	.L29
.L30:
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	ecx, 0
	lea	rdx, produtor[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -100[rbp], 1
.L29:
	cmp	DWORD PTR -100[rbp], 4
	jle	.L30
	mov	DWORD PTR -100[rbp], 0
	jmp	.L31
.L32:
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	ecx, 0
	lea	rdx, consumidor[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -100[rbp], 1
.L31:
	cmp	DWORD PTR -100[rbp], 4
	jle	.L32
	mov	DWORD PTR -100[rbp], 0
	jmp	.L33
.L34:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	rax, QWORD PTR -96[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -100[rbp], 1
.L33:
	cmp	DWORD PTR -100[rbp], 4
	jle	.L34
	mov	DWORD PTR -100[rbp], 0
	jmp	.L35
.L36:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	rax, QWORD PTR -48[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -100[rbp], 1
.L35:
	cmp	DWORD PTR -100[rbp], 4
	jle	.L36
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	"649694.c"
	.text
	.comm	buffer,40,4
	.comm	mutex,16,4
	.comm	empty,16,4
	.comm	full,16,4
	.align	2
	.global	produz
	.syntax unified
	.arm
	.fpu softvfp
	.type	produz, %function
produz:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	rand
	mov	r1, r0
	ldr	r3, .L3
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	add	r3, r2, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	1374389535
	.size	produz, .-produz
	.align	2
	.global	inicializa_buffer_zerado
	.syntax unified
	.arm
	.fpu softvfp
	.type	inicializa_buffer_zerado, %function
inicializa_buffer_zerado:
	@ 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
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L6
.L7:
	ldr	r2, .L8
	ldr	r3, [fp, #-8]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L6:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L7
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L9:
	.align	2
.L8:
	.word	buffer
	.size	inicializa_buffer_zerado, .-inicializa_buffer_zerado
	.align	2
	.global	insere_buffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	insere_buffer, %function
insere_buffer:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L11
.L14:
	ldr	r2, .L16
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L12
	ldr	r1, .L16
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	b	.L13
.L12:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L11:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	ble	.L14
.L13:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L17:
	.align	2
.L16:
	.word	buffer
	.size	insere_buffer, .-insere_buffer
	.align	2
	.global	remove_buffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	remove_buffer, %function
remove_buffer:
	@ 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
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L19
.L22:
	ldr	r2, .L24
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L20
	ldr	r2, .L24
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r2, .L24
	ldr	r3, [fp, #-12]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	b	.L21
.L20:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L19:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	ble	.L22
.L21:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L25:
	.align	2
.L24:
	.word	buffer
	.size	remove_buffer, .-remove_buffer
	.align	2
	.global	identifica_posicao
	.syntax unified
	.arm
	.fpu softvfp
	.type	identifica_posicao, %function
identifica_posicao:
	@ 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
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L27
.L30:
	ldr	r2, .L32
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	b	.L29
.L28:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L27:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	ble	.L30
.L29:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L33:
	.align	2
.L32:
	.word	buffer
	.size	identifica_posicao, .-identifica_posicao
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Prod: buffer[%d] = %d\012\000"
	.text
	.align	2
	.global	produtor
	.syntax unified
	.arm
	.fpu softvfp
	.type	produtor, %function
produtor:
	@ 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]
.L35:
	bl	produz
	str	r0, [fp, #-12]
	ldr	r0, .L36
	bl	sem_wait
	ldr	r0, .L36+4
	bl	sem_wait
	ldr	r0, [fp, #-12]
	bl	insere_buffer
	str	r0, [fp, #-8]
	ldr	r2, .L36+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L36+12
	bl	printf
	ldr	r3, .L36+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, .L36+4
	bl	sem_post
	ldr	r0, .L36+20
	bl	sem_post
	b	.L35
.L37:
	.align	2
.L36:
	.word	empty
	.word	mutex
	.word	buffer
	.word	.LC0
	.word	stdout
	.word	full
	.size	produtor, .-produtor
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Cons: %d = buffer[%d]\012\000"
	.text
	.align	2
	.global	consumidor
	.syntax unified
	.arm
	.fpu softvfp
	.type	consumidor, %function
consumidor:
	@ 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]
.L39:
	mov	r0, #1
	bl	sleep
	ldr	r0, .L40
	bl	sem_wait
	ldr	r0, .L40+4
	bl	sem_wait
	bl	identifica_posicao
	str	r0, [fp, #-12]
	bl	remove_buffer
	str	r0, [fp, #-8]
	ldr	r0, .L40+4
	bl	sem_post
	ldr	r0, .L40+8
	bl	sem_post
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, .L40+12
	bl	printf
	ldr	r3, .L40+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L39
.L41:
	.align	2
.L40:
	.word	full
	.word	mutex
	.word	empty
	.word	.LC1
	.word	stdout
	.size	consumidor, .-consumidor
	.section	.rodata
	.align	2
.LC2:
	.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, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	inicializa_buffer_zerado
	mov	r2, #1
	mov	r1, #0
	ldr	r0, .L53+4
	bl	sem_init
	mov	r2, #10
	mov	r1, #0
	ldr	r0, .L53+8
	bl	sem_init
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L53+12
	bl	sem_init
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L43
.L44:
	sub	r2, fp, #48
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r0, r2, r3
	mov	r3, #0
	ldr	r2, .L53+16
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L43:
	ldr	r3, [fp, #-52]
	cmp	r3, #4
	ble	.L44
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L45
.L46:
	sub	r2, fp, #28
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	add	r0, r2, r3
	mov	r3, #0
	ldr	r2, .L53+20
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L45:
	ldr	r3, [fp, #-52]
	cmp	r3, #4
	ble	.L46
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L47
.L48:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L47:
	ldr	r3, [fp, #-52]
	cmp	r3, #4
	ble	.L48
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L49
.L50:
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-24]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L49:
	ldr	r3, [fp, #-52]
	cmp	r3, #4
	ble	.L50
	mov	r3, #0
	ldr	r2, .L53
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L52
	bl	__stack_chk_fail
.L52:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC2
	.word	mutex
	.word	empty
	.word	full
	.word	produtor
	.word	consumidor
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
