	.file	"606234.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.type	rcsid, @object
	.size	rcsid, 5
rcsid:
	.string	"$Id$"
	.local	mtx
	.comm	mtx,40,32
	.local	cond
	.comm	cond,48,32
	.data
	.align 4
	.type	return_value, @object
	.size	return_value, 4
return_value:
	.long	-1
	.text
	.globl	worker_thread
	.type	worker_thread, @function
worker_thread:
.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
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR return_value[rip], 0
	lea	rdi, mtx[rip]
	call	pthread_mutex_lock@PLT
	lea	rdi, cond[rip]
	call	pthread_cond_signal@PLT
	lea	rdi, mtx[rip]
	call	pthread_mutex_unlock@PLT
.L2:
	mov	edi, 1
	call	sleep@PLT
	call	pthread_testcancel@PLT
	jmp	.L2
	.cfi_endproc
.LFE6:
	.size	worker_thread, .-worker_thread
	.section	.rodata
.LC0:
	.string	"%s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	lea	rdi, mtx[rip]
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	jne	.L4
	lea	rax, -40[rbp]
	mov	ecx, 0
	lea	rdx, worker_thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	je	.L5
.L4:
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L10
.L5:
	mov	edi, 0
	call	time@PLT
	add	rax, 2
	mov	QWORD PTR -32[rbp], rax
	lea	rax, -32[rbp]
	mov	rdx, rax
	lea	rsi, mtx[rip]
	lea	rdi, cond[rip]
	call	pthread_cond_timedwait@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 4
	je	.L5
	cmp	DWORD PTR -44[rbp], 0
	je	.L7
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L10
.L7:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	pthread_cancel@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	jne	.L8
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	je	.L9
.L8:
	mov	eax, DWORD PTR -44[rbp]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L10
.L9:
	mov	eax, DWORD PTR return_value[rip]
.L10:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"606234.c"
	.text
	.section	.rodata
	.align	2
	.type	rcsid, %object
	.size	rcsid, 5
rcsid:
	.ascii	"$Id$\000"
	.local	mtx
	.comm	mtx,24,4
	.local	cond
	.comm	cond,48,8
	.data
	.align	2
	.type	return_value, %object
	.size	return_value, 4
return_value:
	.word	-1
	.text
	.align	2
	.global	worker_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker_thread, %function
worker_thread:
	@ 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	r3, .L3
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L3+4
	bl	pthread_mutex_lock
	ldr	r0, .L3+8
	bl	pthread_cond_signal
	ldr	r0, .L3+4
	bl	pthread_mutex_unlock
.L2:
	mov	r0, #1
	bl	sleep
	bl	pthread_testcancel
	b	.L2
.L4:
	.align	2
.L3:
	.word	return_value
	.word	mtx
	.word	cond
	.size	worker_thread, .-worker_thread
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	ldr	r0, .L14+4
	bl	pthread_mutex_lock
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L6
	sub	r0, fp, #32
	mov	r3, #0
	ldr	r2, .L14+8
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L7
.L6:
	ldr	r3, .L14+12
	ldr	r4, [r3]
	ldr	r0, [fp, #-28]
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L14+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L12
.L7:
	mov	r0, #0
	bl	time
	mov	r3, r0
	add	r3, r3, #2
	str	r3, [fp, #-24]
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, .L14+4
	ldr	r0, .L14+20
	bl	pthread_cond_timedwait
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #4
	beq	.L7
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L14+12
	ldr	r4, [r3]
	ldr	r0, [fp, #-28]
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L14+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L12
.L9:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	pthread_cancel
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-32]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L11
.L10:
	ldr	r3, .L14+12
	ldr	r4, [r3]
	ldr	r0, [fp, #-28]
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L14+16
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L12
.L11:
	ldr	r3, .L14+24
	ldr	r3, [r3]
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	mtx
	.word	worker_thread
	.word	stderr
	.word	.LC0
	.word	cond
	.word	return_value
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
