	.file	"424893.c"
	.intel_syntax noprefix
	.text
	.globl	fill_mutex
	.bss
	.align 32
	.type	fill_mutex, @object
	.size	fill_mutex, 40
fill_mutex:
	.zero	40
	.globl	arr
	.align 32
	.type	arr, @object
	.size	arr, 40
arr:
	.zero	40
	.globl	flag
	.align 4
	.type	flag, @object
	.size	flag, 4
flag:
	.zero	4
	.globl	cond_var
	.align 32
	.type	cond_var, @object
	.size	cond_var, 48
cond_var:
	.zero	48
	.section	.rodata
.LC0:
	.string	"\nEnter values"
.LC1:
	.string	"%d"
	.text
	.globl	fill
	.type	fill, @function
fill:
.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	DWORD PTR -4[rbp], 0
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, arr[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L3
	lea	rdi, fill_mutex[rip]
	call	pthread_mutex_lock@PLT
	lea	rdi, cond_var[rip]
	call	pthread_cond_signal@PLT
	lea	rdi, fill_mutex[rip]
	call	pthread_mutex_unlock@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	fill, .-fill
	.section	.rodata
.LC2:
	.string	"Values filled in array are"
.LC3:
	.string	"\n %d \n"
	.text
	.globl	read
	.type	read, @function
read:
.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	DWORD PTR -4[rbp], 0
	lea	rdi, fill_mutex[rip]
	call	pthread_mutex_lock@PLT
	lea	rsi, fill_mutex[rip]
	lea	rdi, cond_var[rip]
	call	pthread_cond_wait@PLT
	lea	rdi, fill_mutex[rip]
	call	pthread_mutex_unlock@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, arr[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L5:
	cmp	DWORD PTR -4[rbp], 3
	jle	.L6
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE7:
	.size	read, .-read
	.section	.rodata
.LC4:
	.string	"\n Created threads"
	.text
	.globl	main
	.type	main, @function
main:
.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, 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -88[rbp]
	mov	ecx, 0
	lea	rdx, fill[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -92[rbp], eax
	lea	rax, -80[rbp]
	mov	ecx, 0
	lea	rdx, read[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -92[rbp], eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -88[rbp]
	lea	rdx, -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, -72[rbp]
	mov	rsi, rdx
	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
.LFE8:
	.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	"424893.c"
	.text
	.comm	fill_mutex,24,4
	.comm	arr,40,4
	.global	flag
	.bss
	.align	2
	.type	flag, %object
	.size	flag, 4
flag:
	.space	4
	.global	cond_var
	.align	3
	.type	cond_var, %object
	.size	cond_var, 48
cond_var:
	.space	48
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Enter values\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.text
	.align	2
	.global	fill
	.syntax unified
	.arm
	.fpu softvfp
	.type	fill, %function
fill:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, .L4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, .L4+4
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L4+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L3
	ldr	r0, .L4+12
	bl	pthread_mutex_lock
	ldr	r0, .L4+16
	bl	pthread_cond_signal
	ldr	r0, .L4+12
	bl	pthread_mutex_unlock
	mov	r0, #0
	bl	pthread_exit
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	arr
	.word	.LC1
	.word	fill_mutex
	.word	cond_var
	.size	fill, .-fill
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Values filled in array are\000"
	.align	2
.LC3:
	.ascii	"\012 %d \012\000"
	.text
	.align	2
	.global	read
	.syntax unified
	.arm
	.fpu softvfp
	.type	read, %function
read:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	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	r0, .L9+8
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r2, .L9+12
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L9+16
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	ble	.L8
	mov	r0, #0
	bl	pthread_exit
.L10:
	.align	2
.L9:
	.word	fill_mutex
	.word	cond_var
	.word	.LC2
	.word	arr
	.word	.LC3
	.size	read, .-read
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\012 Created threads\000"
	.align	2
.LC5:
	.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
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #60
	mov	r3, #0
	ldr	r2, .L14+4
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-48]
	sub	r0, fp, #56
	mov	r3, #0
	ldr	r2, .L14+8
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-48]
	ldr	r0, .L14+12
	bl	printf
	ldr	r3, [fp, #-60]
	sub	r2, fp, #52
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-56]
	sub	r2, fp, #52
	mov	r1, r2
	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	.LC5
	.word	fill
	.word	read
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
