	.file	"86686.c"
	.intel_syntax noprefix
	.text
	.globl	MAX
	.data
	.align 4
	.type	MAX, @object
	.size	MAX, 4
MAX:
	.long	10
	.globl	count
	.align 4
	.type	count, @object
	.size	count, 4
count:
	.long	1
	.globl	mutex
	.bss
	.align 32
	.type	mutex, @object
	.size	mutex, 40
mutex:
	.zero	40
	.globl	number
	.align 32
	.type	number, @object
	.size	number, 48
number:
	.zero	48
	.text
	.globl	print_star
	.type	print_star, @function
print_star:
.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 1
	jmp	.L2
.L3:
	mov	edi, 42
	call	putchar@PLT
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jle	.L3
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_star, .-print_star
	.section	.rodata
.LC0:
	.string	"This is even thread()"
	.text
	.globl	even
	.type	even, @function
even:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	jmp	.L5
.L7:
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR count[rip]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cmp	eax, 1
	jne	.L6
	lea	rsi, mutex[rip]
	lea	rdi, number[rip]
	call	pthread_cond_wait@PLT
.L6:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, DWORD PTR count[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR count[rip], edx
	mov	edi, eax
	call	print_star
	lea	rdi, number[rip]
	call	pthread_cond_signal@PLT
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
.L5:
	mov	edx, DWORD PTR count[rip]
	mov	eax, DWORD PTR MAX[rip]
	cmp	edx, eax
	jle	.L7
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE7:
	.size	even, .-even
	.section	.rodata
.LC1:
	.string	"This is odd thread()"
	.text
	.globl	odd
	.type	odd, @function
odd:
.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	QWORD PTR -8[rbp], rdi
	jmp	.L9
.L11:
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR count[rip]
	and	eax, 1
	test	eax, eax
	jne	.L10
	lea	rsi, mutex[rip]
	lea	rdi, number[rip]
	call	pthread_cond_wait@PLT
.L10:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, DWORD PTR count[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR count[rip], edx
	mov	edi, eax
	call	print_star
	lea	rdi, number[rip]
	call	pthread_cond_signal@PLT
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
.L9:
	mov	edx, DWORD PTR count[rip]
	mov	eax, DWORD PTR MAX[rip]
	cmp	edx, eax
	jl	.L11
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE8:
	.size	odd, .-odd
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, odd[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, even[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
	lea	rdi, mutex[rip]
	call	pthread_mutex_destroy@PLT
	lea	rdi, number[rip]
	call	pthread_cond_destroy@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"86686.c"
	.text
	.global	MAX
	.data
	.align	2
	.type	MAX, %object
	.size	MAX, 4
MAX:
	.word	10
	.global	count
	.align	2
	.type	count, %object
	.size	count, 4
count:
	.word	1
	.global	mutex
	.bss
	.align	2
	.type	mutex, %object
	.size	mutex, 24
mutex:
	.space	24
	.global	number
	.align	3
	.type	number, %object
	.size	number, 48
number:
	.space	48
	.text
	.align	2
	.global	print_star
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_star, %function
print_star:
	@ 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]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L2
.L3:
	mov	r0, #42
	bl	putchar
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	ble	.L3
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	print_star, .-print_star
	.section	.rodata
	.align	2
.LC0:
	.ascii	"This is even thread()\000"
	.text
	.align	2
	.global	even
	.syntax unified
	.arm
	.fpu softvfp
	.type	even, %function
even:
	@ 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]
	b	.L5
.L7:
	ldr	r0, .L8
	bl	pthread_mutex_lock
	ldr	r3, .L8+4
	ldr	r3, [r3]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L6
	ldr	r1, .L8
	ldr	r0, .L8+8
	bl	pthread_cond_wait
.L6:
	ldr	r0, .L8+12
	bl	puts
	ldr	r3, .L8+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L8+4
	str	r2, [r1]
	mov	r0, r3
	bl	print_star
	ldr	r0, .L8+8
	bl	pthread_cond_signal
	ldr	r0, .L8
	bl	pthread_mutex_unlock
.L5:
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, .L8+16
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L7
	mov	r0, #0
	bl	pthread_exit
.L9:
	.align	2
.L8:
	.word	mutex
	.word	count
	.word	number
	.word	.LC0
	.word	MAX
	.size	even, .-even
	.section	.rodata
	.align	2
.LC1:
	.ascii	"This is odd thread()\000"
	.text
	.align	2
	.global	odd
	.syntax unified
	.arm
	.fpu softvfp
	.type	odd, %function
odd:
	@ 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]
	b	.L11
.L13:
	ldr	r0, .L14
	bl	pthread_mutex_lock
	ldr	r3, .L14+4
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L12
	ldr	r1, .L14
	ldr	r0, .L14+8
	bl	pthread_cond_wait
.L12:
	ldr	r0, .L14+12
	bl	puts
	ldr	r3, .L14+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L14+4
	str	r2, [r1]
	mov	r0, r3
	bl	print_star
	ldr	r0, .L14+8
	bl	pthread_cond_signal
	ldr	r0, .L14
	bl	pthread_mutex_unlock
.L11:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, .L14+16
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L13
	mov	r0, #0
	bl	pthread_exit
.L15:
	.align	2
.L14:
	.word	mutex
	.word	count
	.word	number
	.word	.LC1
	.word	MAX
	.size	odd, .-odd
	.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, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L19+4
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L19+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
	ldr	r0, .L19+12
	bl	pthread_mutex_destroy
	ldr	r0, .L19+16
	bl	pthread_cond_destroy
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC2
	.word	odd
	.word	even
	.word	mutex
	.word	number
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
