	.file	"579755.c"
	.intel_syntax noprefix
	.text
	.globl	thrd_mutex
	.bss
	.align 32
	.type	thrd_mutex, @object
	.size	thrd_mutex, 40
thrd_mutex:
	.zero	40
	.globl	thrd_cond
	.align 32
	.type	thrd_cond, @object
	.size	thrd_cond, 48
thrd_cond:
	.zero	48
	.local	temp_value
	.comm	temp_value,4,4
	.section	.rodata
.LC0:
	.string	"[%s] temp_value: %d.\n"
	.text
	.globl	thread_func2
	.type	thread_func2, @function
thread_func2:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	lea	rsi, thrd_mutex[rip]
	lea	rdi, thrd_cond[rip]
	call	pthread_cond_wait@PLT
	mov	DWORD PTR temp_value[rip], 0
	mov	eax, DWORD PTR temp_value[rip]
	mov	edx, eax
	lea	rsi, __func__.1[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 9
	jle	.L3
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	thread_func2, .-thread_func2
	.globl	thread_func1
	.type	thread_func1, @function
thread_func1:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	jmp	.L6
.L10:
	lea	rdi, thrd_mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L7
.L9:
	mov	eax, DWORD PTR temp_value[rip]
	add	eax, 1
	mov	DWORD PTR temp_value[rip], eax
	mov	eax, DWORD PTR temp_value[rip]
	cmp	eax, 100
	jle	.L8
	mov	eax, DWORD PTR temp_value[rip]
	mov	edx, eax
	lea	rsi, __func__.0[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, thrd_cond[rip]
	call	pthread_cond_signal@PLT
.L8:
	add	DWORD PTR -4[rbp], 1
.L7:
	cmp	DWORD PTR -4[rbp], 100
	jle	.L9
	lea	rdi, thrd_mutex[rip]
	call	pthread_mutex_unlock@PLT
	mov	edi, 1
	call	sleep@PLT
	add	DWORD PTR -8[rbp], 1
.L6:
	cmp	DWORD PTR -8[rbp], 9
	jle	.L10
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	thread_func1, .-thread_func1
	.section	.rodata
.LC1:
	.string	"Error in pthread_create."
.LC2:
	.string	"Error in pthread_join."
	.text
	.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	lea	rax, thread_func1[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, thread_func2[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	esi, 0
	lea	rdi, thrd_mutex[rip]
	call	pthread_mutex_init@PLT
	mov	esi, 0
	lea	rdi, thrd_cond[rip]
	call	pthread_cond_init@PLT
	mov	DWORD PTR -56[rbp], 0
	jmp	.L13
.L16:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	rax, QWORD PTR -32[rbp+rax*8]
	lea	rcx, -48[rbp]
	mov	edx, DWORD PTR -56[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	lea	rdi, [rcx+rdx]
	mov	ecx, 0
	mov	rdx, rax
	mov	esi, 0
	call	pthread_create@PLT
	test	eax, eax
	je	.L14
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	DWORD PTR -52[rbp], -1
	jmp	.L15
.L14:
	add	DWORD PTR -56[rbp], 1
.L13:
	cmp	DWORD PTR -56[rbp], 1
	jle	.L16
	mov	DWORD PTR -56[rbp], 0
	jmp	.L17
.L19:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	mov	rax, QWORD PTR -48[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	test	eax, eax
	je	.L18
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR -52[rbp], -1
	jmp	.L15
.L18:
	add	DWORD PTR -56[rbp], 1
.L17:
	cmp	DWORD PTR -56[rbp], 1
	jle	.L19
	nop
.L15:
	lea	rdi, thrd_cond[rip]
	call	pthread_cond_destroy@PLT
	lea	rdi, thrd_mutex[rip]
	call	pthread_mutex_destroy@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__func__.1, @object
	.size	__func__.1, 13
__func__.1:
	.string	"thread_func2"
	.align 8
	.type	__func__.0, @object
	.size	__func__.0, 13
__func__.0:
	.string	"thread_func1"
	.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	"579755.c"
	.text
	.comm	thrd_mutex,24,4
	.comm	thrd_cond,48,8
	.local	temp_value
	.comm	temp_value,4,4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"[%s] temp_value: %d.\012\000"
	.text
	.align	2
	.global	thread_func2
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_func2, %function
thread_func2:
	@ 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, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r1, .L5
	ldr	r0, .L5+4
	bl	pthread_cond_wait
	ldr	r3, .L5+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L5+8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L5+12
	ldr	r0, .L5+16
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L3
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	thrd_mutex
	.word	thrd_cond
	.word	temp_value
	.word	__func__.5815
	.word	.LC1
	.size	thread_func2, .-thread_func2
	.align	2
	.global	thread_func1
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_func1, %function
thread_func1:
	@ 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, #0
	str	r3, [fp, #-12]
	b	.L8
.L12:
	ldr	r0, .L14
	bl	pthread_mutex_lock
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L9
.L11:
	ldr	r3, .L14+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L14+4
	str	r3, [r2]
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r3, #100
	ble	.L10
	ldr	r3, .L14+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L14+8
	ldr	r0, .L14+12
	bl	printf
	ldr	r0, .L14+16
	bl	pthread_cond_signal
.L10:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #100
	ble	.L11
	ldr	r0, .L14
	bl	pthread_mutex_unlock
	mov	r0, #1
	bl	sleep
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L8:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	ble	.L12
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	thrd_mutex
	.word	temp_value
	.word	__func__.5824
	.word	.LC1
	.word	thrd_cond
	.size	thread_func1, .-thread_func1
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Error in pthread_create.\000"
	.align	2
.LC3:
	.ascii	"Error in pthread_join.\000"
	.align	2
.LC0:
	.word	thread_func1
	.word	thread_func2
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r2, .L26+4
	sub	r3, fp, #16
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	mov	r1, #0
	ldr	r0, .L26+8
	bl	pthread_mutex_init
	mov	r1, #0
	ldr	r0, .L26+12
	bl	pthread_cond_init
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L17
.L20:
	sub	r2, fp, #24
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-12]
	mov	r3, #0
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	ldr	r0, .L26+16
	bl	puts
	mvn	r3, #0
	str	r3, [fp, #-28]
	b	.L19
.L18:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L17:
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	ble	.L20
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L21
.L23:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-20]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r0, .L26+20
	bl	puts
	mvn	r3, #0
	str	r3, [fp, #-28]
	b	.L19
.L22:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L21:
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	ble	.L23
	nop
.L19:
	ldr	r0, .L26+12
	bl	pthread_cond_destroy
	ldr	r0, .L26+8
	bl	pthread_mutex_destroy
	ldr	r3, [fp, #-28]
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC4
	.word	.LC0
	.word	thrd_mutex
	.word	thrd_cond
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__func__.5815, %object
	.size	__func__.5815, 13
__func__.5815:
	.ascii	"thread_func2\000"
	.align	2
	.type	__func__.5824, %object
	.size	__func__.5824, 13
__func__.5824:
	.ascii	"thread_func1\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
