	.file	"578655.c"
	.intel_syntax noprefix
	.text
	.globl	cond
	.bss
	.align 32
	.type	cond, @object
	.size	cond, 48
cond:
	.zero	48
	.globl	mutex
	.align 32
	.type	mutex, @object
	.size	mutex, 40
mutex:
	.zero	40
	.section	.rodata
.LC0:
	.string	"M: do pracy!"
	.text
	.globl	manager
	.type	manager, @function
manager:
.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
.L2:
	mov	edi, 2
	call	sleep@PLT
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, cond[rip]
	call	pthread_cond_signal@PLT
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	manager, .-manager
	.section	.rodata
.LC1:
	.string	"%s: pracuje ...\n"
.LC2:
	.string	"%s:   |\n"
.LC3:
	.string	"%s: skonczylem\n"
	.text
	.globl	worker
	.type	worker, @function
worker:
.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	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
.L6:
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	lea	rsi, mutex[rip]
	lea	rdi, cond[rip]
	call	pthread_cond_wait@PLT
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	sleep@PLT
	add	DWORD PTR -12[rbp], 1
.L4:
	cmp	DWORD PTR -12[rbp], 2
	jle	.L5
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
	.cfi_endproc
.LFE1:
	.size	worker, .-worker
	.section	.rodata
.LC4:
	.string	"\t\tW[1]"
.LC5:
	.string	"\t\t\t\t\tW[2]"
	.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	lea	rsi, -64[rbp]
	lea	rax, -80[rbp]
	lea	rcx, .LC4[rip]
	lea	rdx, worker[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -64[rbp]
	lea	rdx, -80[rbp]
	lea	rdi, 8[rdx]
	lea	rcx, .LC5[rip]
	lea	rdx, worker[rip]
	mov	rsi, rax
	call	pthread_create@PLT
	mov	edi, 0
	call	manager
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, 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	"578655.c"
	.text
	.global	cond
	.bss
	.align	3
	.type	cond, %object
	.size	cond, 48
cond:
	.space	48
	.global	mutex
	.align	2
	.type	mutex, %object
	.size	mutex, 24
mutex:
	.space	24
	.section	.rodata
	.align	2
.LC0:
	.ascii	"M: do pracy!\000"
	.text
	.align	2
	.global	manager
	.syntax unified
	.arm
	.fpu softvfp
	.type	manager, %function
manager:
	@ 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]
.L2:
	mov	r0, #2
	bl	sleep
	ldr	r0, .L3
	bl	pthread_mutex_lock
	ldr	r0, .L3+4
	bl	puts
	ldr	r0, .L3+8
	bl	pthread_cond_signal
	ldr	r0, .L3
	bl	pthread_mutex_unlock
	b	.L2
.L4:
	.align	2
.L3:
	.word	mutex
	.word	.LC0
	.word	cond
	.size	manager, .-manager
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%s: pracuje ...\012\000"
	.align	2
.LC2:
	.ascii	"%s:   |\012\000"
	.align	2
.LC3:
	.ascii	"%s: skonczylem\012\000"
	.text
	.align	2
	.global	worker
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker, %function
worker:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
.L8:
	ldr	r0, .L9
	bl	pthread_mutex_lock
	ldr	r1, .L9
	ldr	r0, .L9+4
	bl	pthread_cond_wait
	ldr	r0, .L9
	bl	pthread_mutex_unlock
	ldr	r1, [fp, #-8]
	ldr	r0, .L9+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L6
.L7:
	ldr	r1, [fp, #-8]
	ldr	r0, .L9+12
	bl	printf
	mov	r0, #1
	bl	sleep
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L6:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	ble	.L7
	ldr	r1, [fp, #-8]
	ldr	r0, .L9+16
	bl	printf
	b	.L8
.L10:
	.align	2
.L9:
	.word	mutex
	.word	cond
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	worker, .-worker
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\011\011W[1]\000"
	.align	2
.LC5:
	.ascii	"\011\011\011\011\011W[2]\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_init
	sub	r1, fp, #44
	sub	r0, fp, #52
	ldr	r3, .L14+4
	ldr	r2, .L14+8
	bl	pthread_create
	sub	r1, fp, #44
	sub	r3, fp, #52
	add	r0, r3, #4
	ldr	r3, .L14+12
	ldr	r2, .L14+8
	bl	pthread_create
	mov	r0, #0
	bl	manager
	ldr	r3, [fp, #-52]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-48]
	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	.LC6
	.word	.LC4
	.word	worker
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
