	.file	"1000886.c"
	.intel_syntax noprefix
	.text
	.globl	count_mutex
	.bss
	.align 32
	.type	count_mutex, @object
	.size	count_mutex, 40
count_mutex:
	.zero	40
	.globl	condition_mutex
	.align 32
	.type	condition_mutex, @object
	.size	condition_mutex, 40
condition_mutex:
	.zero	40
	.globl	condition_cond
	.align 32
	.type	condition_cond, @object
	.size	condition_cond, 48
condition_cond:
	.zero	48
	.globl	count
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.zero	4
	.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, 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, function_count1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, function_count2[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	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.string	"Counter value function_count1: %d\n"
	.text
	.globl	function_count1
	.type	function_count1, @function
function_count1:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
.L9:
	lea	rdi, condition_mutex[rip]
	call	pthread_mutex_lock@PLT
	jmp	.L4
.L6:
	lea	rsi, condition_mutex[rip]
	lea	rdi, condition_cond[rip]
	call	pthread_cond_wait@PLT
.L4:
	mov	eax, DWORD PTR count[rip]
	cmp	eax, 2
	jle	.L5
	mov	eax, DWORD PTR count[rip]
	cmp	eax, 6
	jle	.L6
.L5:
	lea	rdi, condition_mutex[rip]
	call	pthread_mutex_unlock@PLT
	lea	rdi, count_mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR count[rip]
	add	eax, 1
	mov	DWORD PTR count[rip], eax
	mov	eax, DWORD PTR count[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, count_mutex[rip]
	call	pthread_mutex_unlock@PLT
	mov	eax, DWORD PTR count[rip]
	cmp	eax, 9
	jle	.L9
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	function_count1, .-function_count1
	.section	.rodata
	.align 8
.LC1:
	.string	"Counter value function_count2: %d\n"
	.text
	.globl	function_count2
	.type	function_count2, @function
function_count2:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
.L16:
	lea	rdi, condition_mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR count[rip]
	cmp	eax, 2
	jle	.L12
	mov	eax, DWORD PTR count[rip]
	cmp	eax, 6
	jle	.L13
.L12:
	lea	rdi, condition_cond[rip]
	call	pthread_cond_signal@PLT
.L13:
	lea	rdi, condition_mutex[rip]
	call	pthread_mutex_unlock@PLT
	lea	rdi, count_mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR count[rip]
	add	eax, 1
	mov	DWORD PTR count[rip], eax
	mov	eax, DWORD PTR count[rip]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, count_mutex[rip]
	call	pthread_mutex_unlock@PLT
	mov	eax, DWORD PTR count[rip]
	cmp	eax, 9
	jle	.L16
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	function_count2, .-function_count2
	.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	"1000886.c"
	.text
	.global	count_mutex
	.bss
	.align	2
	.type	count_mutex, %object
	.size	count_mutex, 24
count_mutex:
	.space	24
	.global	condition_mutex
	.align	2
	.type	condition_mutex, %object
	.size	condition_mutex, 24
condition_mutex:
	.space	24
	.global	condition_cond
	.align	3
	.type	condition_cond, %object
	.size	condition_cond, 48
condition_cond:
	.space	48
	.global	count
	.align	2
	.type	count, %object
	.size	count, 4
count:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.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, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L3+4
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L3+8
	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	r0, #0
	bl	exit
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	function_count1
	.word	function_count2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Counter value function_count1: %d\012\000"
	.text
	.align	2
	.global	function_count1
	.syntax unified
	.arm
	.fpu softvfp
	.type	function_count1, %function
function_count1:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
.L11:
	ldr	r0, .L13
	bl	pthread_mutex_lock
	b	.L6
.L8:
	ldr	r1, .L13
	ldr	r0, .L13+4
	bl	pthread_cond_wait
.L6:
	ldr	r3, .L13+8
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L7
	ldr	r3, .L13+8
	ldr	r3, [r3]
	cmp	r3, #6
	ble	.L8
.L7:
	ldr	r0, .L13
	bl	pthread_mutex_unlock
	ldr	r0, .L13+12
	bl	pthread_mutex_lock
	ldr	r3, .L13+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L13+8
	str	r3, [r2]
	ldr	r3, .L13+8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L13+16
	bl	printf
	ldr	r0, .L13+12
	bl	pthread_mutex_unlock
	ldr	r3, .L13+8
	ldr	r3, [r3]
	cmp	r3, #9
	ble	.L11
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	condition_mutex
	.word	condition_cond
	.word	count
	.word	count_mutex
	.word	.LC1
	.size	function_count1, .-function_count1
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Counter value function_count2: %d\012\000"
	.text
	.align	2
	.global	function_count2
	.syntax unified
	.arm
	.fpu softvfp
	.type	function_count2, %function
function_count2:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
.L20:
	ldr	r0, .L22
	bl	pthread_mutex_lock
	ldr	r3, .L22+4
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L16
	ldr	r3, .L22+4
	ldr	r3, [r3]
	cmp	r3, #6
	ble	.L17
.L16:
	ldr	r0, .L22+8
	bl	pthread_cond_signal
.L17:
	ldr	r0, .L22
	bl	pthread_mutex_unlock
	ldr	r0, .L22+12
	bl	pthread_mutex_lock
	ldr	r3, .L22+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L22+4
	str	r3, [r2]
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L22+16
	bl	printf
	ldr	r0, .L22+12
	bl	pthread_mutex_unlock
	ldr	r3, .L22+4
	ldr	r3, [r3]
	cmp	r3, #9
	ble	.L20
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	condition_mutex
	.word	count
	.word	condition_cond
	.word	count_mutex
	.word	.LC2
	.size	function_count2, .-function_count2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
