	.file	"236043.c"
	.intel_syntax noprefix
	.text
	.globl	bb
	.bss
	.align 32
	.type	bb, @object
	.size	bb, 232
bb:
	.zero	232
	.section	.rodata
.LC4:
	.string	"produce_item: item=%d\n"
	.text
	.globl	produce_item
	.type	produce_item, @function
produce_item:
.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
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR .LC0[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC1[rip]
	divsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -4[rbp], eax
	call	rand@PLT
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC1[rip]
	divsd	xmm0, xmm1
	comisd	xmm0, QWORD PTR .LC3[rip]
	jnb	.L2
	cvttsd2si	rax, xmm0
	jmp	.L3
.L2:
	movsd	xmm1, QWORD PTR .LC3[rip]
	subsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	movabs	rdx, -9223372036854775808
	xor	rax, rdx
.L3:
	mov	rdi, rax
	mov	eax, 0
	call	sleep@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	produce_item, .-produce_item
	.globl	insert_item
	.type	insert_item, @function
insert_item:
.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
	lea	rdi, bb[rip+96]
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L8
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L7
.L10:
	lea	rsi, bb[rip+96]
	lea	rdi, bb[rip+184]
	call	pthread_cond_wait@PLT
	mov	DWORD PTR -4[rbp], eax
.L8:
	mov	eax, DWORD PTR bb[rip+80]
	cmp	eax, 19
	jle	.L9
	cmp	DWORD PTR -4[rbp], 0
	je	.L10
.L9:
	cmp	DWORD PTR -4[rbp], 0
	je	.L11
	lea	rdi, bb[rip+96]
	call	pthread_mutex_unlock@PLT
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L7
.L11:
	mov	eax, DWORD PTR bb[rip+84]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, bb[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR bb[rip+84]
	lea	ecx, 1[rax]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 3
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	sub	ecx, eax
	mov	edx, ecx
	mov	DWORD PTR bb[rip+84], edx
	mov	eax, DWORD PTR bb[rip+80]
	add	eax, 1
	mov	DWORD PTR bb[rip+80], eax
	lea	rdi, bb[rip+136]
	call	pthread_cond_signal@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L12
	lea	rdi, bb[rip+96]
	call	pthread_mutex_unlock@PLT
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L7
.L12:
	lea	rdi, bb[rip+96]
	call	pthread_mutex_unlock@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	insert_item, .-insert_item
	.section	.rodata
.LC5:
	.string	"\t\tconsume_item: item=%d\n"
	.text
	.globl	consume_item
	.type	consume_item, @function
consume_item:
.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	DWORD PTR -4[rbp], edi
	call	rand@PLT
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, eax
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC1[rip]
	divsd	xmm0, xmm1
	comisd	xmm0, QWORD PTR .LC3[rip]
	jnb	.L14
	cvttsd2si	rax, xmm0
	jmp	.L15
.L14:
	movsd	xmm1, QWORD PTR .LC3[rip]
	subsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	movabs	rdx, -9223372036854775808
	xor	rax, rdx
.L15:
	mov	rdi, rax
	mov	eax, 0
	call	sleep@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	consume_item, .-consume_item
	.globl	remove_item
	.type	remove_item, @function
remove_item:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, bb[rip+96]
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L19
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L18
.L21:
	lea	rsi, bb[rip+96]
	lea	rdi, bb[rip+136]
	call	pthread_cond_wait@PLT
	mov	DWORD PTR -4[rbp], eax
.L19:
	mov	eax, DWORD PTR bb[rip+80]
	test	eax, eax
	jg	.L20
	cmp	DWORD PTR -4[rbp], 0
	je	.L21
.L20:
	cmp	DWORD PTR -4[rbp], 0
	je	.L22
	lea	rdi, bb[rip+96]
	call	pthread_mutex_unlock@PLT
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L18
.L22:
	mov	eax, DWORD PTR bb[rip+88]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, bb[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR bb[rip+88]
	lea	ecx, 1[rax]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 3
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 2
	sub	ecx, eax
	mov	edx, ecx
	mov	DWORD PTR bb[rip+88], edx
	mov	eax, DWORD PTR bb[rip+80]
	sub	eax, 1
	mov	DWORD PTR bb[rip+80], eax
	lea	rdi, bb[rip+184]
	call	pthread_cond_signal@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L23
	lea	rdi, bb[rip+96]
	call	pthread_mutex_unlock@PLT
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L18
.L23:
	lea	rdi, bb[rip+96]
	call	pthread_mutex_unlock@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	remove_item, .-remove_item
	.globl	producer
	.type	producer, @function
producer:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
.L25:
	mov	eax, 0
	call	produce_item
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	insert_item
	jmp	.L25
	.cfi_endproc
.LFE10:
	.size	producer, .-producer
	.globl	consumer
	.type	consumer, @function
consumer:
.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
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L27:
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	remove_item
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	consume_item
	jmp	.L27
	.cfi_endproc
.LFE11:
	.size	consumer, .-consumer
	.section	.rodata
.LC6:
	.string	"Create producer thread"
.LC7:
	.string	"Create consumer thread"
.LC8:
	.string	"Join producer thread"
.LC9:
	.string	"Join consumer thread"
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, producer[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L30
	lea	rdi, .LC6[rip]
	call	perror@PLT
.L30:
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, consumer[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L31
	lea	rdi, .LC7[rip]
	call	perror@PLT
.L31:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L32
	lea	rdi, .LC8[rip]
	call	perror@PLT
.L32:
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L33
	lea	rdi, .LC9[rip]
	call	perror@PLT
.L33:
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L35
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1079574528
	.align 8
.LC1:
	.long	0
	.long	1105199104
	.align 8
.LC2:
	.long	0
	.long	1075052544
	.align 8
.LC3:
	.long	0
	.long	1138753536
	.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	"236043.c"
	.text
	.global	bb
	.bss
	.align	3
	.type	bb, %object
	.size	bb, 216
bb:
	.space	216
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.global	__aeabi_d2iz
	.global	__aeabi_d2uiz
	.section	.rodata
	.align	2
.LC0:
	.ascii	"produce_item: item=%d\012\000"
	.text
	.align	2
	.global	produce_item
	.syntax unified
	.arm
	.fpu softvfp
	.type	produce_item, %function
produce_item:
	@ 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	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L3
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L3+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-8]
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L3+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L3+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	mov	r0, r3
	bl	sleep
	ldr	r1, [fp, #-8]
	ldr	r0, .L3+12
	bl	printf
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	1079574528
	.word	1105199104
	.word	1075052544
	.word	.LC0
	.size	produce_item, .-produce_item
	.align	2
	.global	insert_item
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert_item, %function
insert_item:
	@ 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	r0, .L13
	bl	pthread_mutex_lock
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-8]
	b	.L7
.L10:
	ldr	r1, .L13
	ldr	r0, .L13+4
	bl	pthread_cond_wait
	str	r0, [fp, #-8]
.L8:
	ldr	r3, .L13+8
	ldr	r3, [r3, #80]
	cmp	r3, #19
	ble	.L9
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L10
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L11
	ldr	r0, .L13
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	b	.L7
.L11:
	ldr	r3, .L13+8
	ldr	r3, [r3, #84]
	ldr	r1, .L13+8
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L13+8
	ldr	r3, [r3, #84]
	add	r1, r3, #1
	ldr	r3, .L13+12
	smull	r2, r3, r1, r3
	asr	r2, r3, #3
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	ldr	r3, .L13+8
	str	r2, [r3, #84]
	ldr	r3, .L13+8
	ldr	r3, [r3, #80]
	add	r3, r3, #1
	ldr	r2, .L13+8
	str	r3, [r2, #80]
	ldr	r0, .L13+16
	bl	pthread_cond_signal
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L12
	ldr	r0, .L13
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	b	.L7
.L12:
	ldr	r0, .L13
	bl	pthread_mutex_unlock
	mov	r3, r0
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	bb+92
	.word	bb+168
	.word	bb
	.word	1717986919
	.word	bb+120
	.size	insert_item, .-insert_item
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\011\011consume_item: item=%d\012\000"
	.text
	.align	2
	.global	consume_item
	.syntax unified
	.arm
	.fpu softvfp
	.type	consume_item, %function
consume_item:
	@ 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]
	bl	rand
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L16
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L16+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	mov	r0, r3
	bl	sleep
	ldr	r1, [fp, #-8]
	ldr	r0, .L16+8
	bl	printf
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	1075052544
	.word	1105199104
	.word	.LC1
	.size	consume_item, .-consume_item
	.align	2
	.global	remove_item
	.syntax unified
	.arm
	.fpu softvfp
	.type	remove_item, %function
remove_item:
	@ 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	r0, .L26
	bl	pthread_mutex_lock
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-8]
	b	.L20
.L23:
	ldr	r1, .L26
	ldr	r0, .L26+4
	bl	pthread_cond_wait
	str	r0, [fp, #-8]
.L21:
	ldr	r3, .L26+8
	ldr	r3, [r3, #80]
	cmp	r3, #0
	bgt	.L22
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L23
.L22:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L24
	ldr	r0, .L26
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	b	.L20
.L24:
	ldr	r3, .L26+8
	ldr	r3, [r3, #88]
	ldr	r2, .L26+8
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, .L26+8
	ldr	r3, [r3, #88]
	add	r1, r3, #1
	ldr	r3, .L26+12
	smull	r2, r3, r1, r3
	asr	r2, r3, #3
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	ldr	r3, .L26+8
	str	r2, [r3, #88]
	ldr	r3, .L26+8
	ldr	r3, [r3, #80]
	sub	r3, r3, #1
	ldr	r2, .L26+8
	str	r3, [r2, #80]
	ldr	r0, .L26+16
	bl	pthread_cond_signal
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L25
	ldr	r0, .L26
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	b	.L20
.L25:
	ldr	r0, .L26
	bl	pthread_mutex_unlock
	mov	r3, r0
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	bb+92
	.word	bb+120
	.word	bb
	.word	1717986919
	.word	bb+168
	.size	remove_item, .-remove_item
	.align	2
	.global	producer
	.syntax unified
	.arm
	.fpu softvfp
	.type	producer, %function
producer:
	@ 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]
.L29:
	bl	produce_item
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	insert_item
	b	.L29
	.size	producer, .-producer
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	consumer
	.syntax unified
	.arm
	.fpu softvfp
	.type	consumer, %function
consumer:
	@ 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, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L31:
	sub	r3, fp, #12
	mov	r0, r3
	bl	remove_item
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	consume_item
	b	.L31
.L34:
	.align	2
.L33:
	.word	.LC2
	.size	consumer, .-consumer
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Create producer thread\000"
	.align	2
.LC4:
	.ascii	"Create consumer thread\000"
	.align	2
.LC5:
	.ascii	"Join producer thread\000"
	.align	2
.LC6:
	.ascii	"Join consumer thread\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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #20
	mov	r3, #0
	ldr	r2, .L42+4
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L36
	ldr	r0, .L42+8
	bl	perror
.L36:
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L42+12
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L37
	ldr	r0, .L42+16
	bl	perror
.L37:
	ldr	r3, [fp, #-20]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L38
	ldr	r0, .L42+20
	bl	perror
.L38:
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L39
	ldr	r0, .L42+24
	bl	perror
.L39:
	mov	r3, #0
	ldr	r2, .L42
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC7
	.word	producer
	.word	.LC3
	.word	consumer
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
