	.file	"6387144.c"
	.intel_syntax noprefix
	.text
	.globl	num
	.bss
	.align 4
	.type	num, @object
	.size	num, 4
num:
	.zero	4
	.globl	m
	.align 32
	.type	m, @object
	.size	m, 40
m:
	.zero	40
	.globl	empty
	.align 32
	.type	empty, @object
	.size	empty, 48
empty:
	.zero	48
	.globl	full
	.align 32
	.type	full, @object
	.size	full, 48
full:
	.zero	48
	.section	.rodata
.LC0:
	.string	"producing ...."
	.text
	.globl	thread1
	.type	thread1, @function
thread1:
.LFB0:
	.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	QWORD PTR -8[rbp], rdi
	lea	rdi, m[rip]
	call	pthread_mutex_lock@PLT
	jmp	.L2
.L3:
	lea	rsi, m[rip]
	lea	rdi, empty[rip]
	call	pthread_cond_wait@PLT
.L2:
	mov	eax, DWORD PTR num[rip]
	test	eax, eax
	jg	.L3
	mov	eax, DWORD PTR num[rip]
	add	eax, 1
	mov	DWORD PTR num[rip], eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, m[rip]
	call	pthread_mutex_unlock@PLT
	lea	rdi, full[rip]
	call	pthread_cond_signal@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	thread1, .-thread1
	.section	.rodata
.LC1:
	.string	"consume ...."
	.text
	.globl	thread2
	.type	thread2, @function
thread2:
.LFB1:
	.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	QWORD PTR -8[rbp], rdi
	lea	rdi, m[rip]
	call	pthread_mutex_lock@PLT
	jmp	.L5
.L6:
	lea	rsi, m[rip]
	lea	rdi, full[rip]
	call	pthread_cond_wait@PLT
.L5:
	mov	eax, DWORD PTR num[rip]
	test	eax, eax
	je	.L6
	mov	eax, DWORD PTR num[rip]
	sub	eax, 1
	mov	DWORD PTR num[rip], eax
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, m[rip]
	call	pthread_mutex_unlock@PLT
	lea	rdi, empty[rip]
	call	pthread_cond_signal@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	thread2, .-thread2
	.globl	main
	.type	main, @function
main:
.LFB2:
	.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
	mov	DWORD PTR num[rip], 0
	mov	esi, 0
	lea	rdi, m[rip]
	call	pthread_mutex_init@PLT
	mov	esi, 0
	lea	rdi, empty[rip]
	call	pthread_cond_init@PLT
	mov	esi, 0
	lea	rdi, full[rip]
	call	pthread_cond_init@PLT
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, thread1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, thread2[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"6387144.c"
	.text
	.comm	num,4,4
	.comm	m,24,4
	.comm	empty,48,8
	.comm	full,48,8
	.section	.rodata
	.align	2
.LC0:
	.ascii	"producing ....\000"
	.text
	.align	2
	.global	thread1
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread1, %function
thread1:
	@ 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]
	ldr	r0, .L4
	bl	pthread_mutex_lock
	b	.L2
.L3:
	ldr	r1, .L4
	ldr	r0, .L4+4
	bl	pthread_cond_wait
.L2:
	ldr	r3, .L4+8
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L3
	ldr	r3, .L4+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L4+8
	str	r3, [r2]
	ldr	r0, .L4+12
	bl	puts
	ldr	r0, .L4
	bl	pthread_mutex_unlock
	ldr	r0, .L4+16
	bl	pthread_cond_signal
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	m
	.word	empty
	.word	num
	.word	.LC0
	.word	full
	.size	thread1, .-thread1
	.section	.rodata
	.align	2
.LC1:
	.ascii	"consume ....\000"
	.text
	.align	2
	.global	thread2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread2, %function
thread2:
	@ 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]
	ldr	r0, .L9
	bl	pthread_mutex_lock
	b	.L7
.L8:
	ldr	r1, .L9
	ldr	r0, .L9+4
	bl	pthread_cond_wait
.L7:
	ldr	r3, .L9+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L9+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L9+8
	str	r3, [r2]
	ldr	r0, .L9+12
	bl	puts
	ldr	r0, .L9
	bl	pthread_mutex_unlock
	ldr	r0, .L9+16
	bl	pthread_cond_signal
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	m
	.word	full
	.word	num
	.word	.LC1
	.word	empty
	.size	thread2, .-thread2
	.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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L14+4
	mov	r2, #0
	str	r2, [r3]
	mov	r1, #0
	ldr	r0, .L14+8
	bl	pthread_mutex_init
	mov	r1, #0
	ldr	r0, .L14+12
	bl	pthread_cond_init
	mov	r1, #0
	ldr	r0, .L14+16
	bl	pthread_cond_init
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L14+20
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L14+24
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC2
	.word	num
	.word	m
	.word	empty
	.word	full
	.word	thread1
	.word	thread2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
