	.file	"188895.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"w"
.LC1:
	.string	"the_stack_data/188895.c"
.LC2:
	.string	"file != NULL"
	.text
	.globl	initFileIfNeed
	.type	initFileIfNeed, @function
initFileIfNeed:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 11
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	initFileIfNeed, .-initFileIfNeed
	.section	.rodata
.LC3:
	.string	"key != -1"
.LC4:
	.string	"*shmid != -1"
	.text
	.globl	initSharedMemory
	.type	initSharedMemory, @function
initSharedMemory:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	initFileIfNeed
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 65
	mov	rdi, rax
	call	ftok@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L4
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 18
	lea	rsi, .LC1[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L4:
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 1005
	mov	rsi, rcx
	mov	edi, eax
	call	shmget@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	jne	.L5
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 21
	lea	rsi, .LC1[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	initSharedMemory, .-initSharedMemory
	.section	.rodata
.LC5:
	.string	"rc == 0"
	.text
	.globl	initMtx
	.type	initMtx, @function
initMtx:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pthread_mutexattr_init@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L8
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 29
	lea	rsi, .LC1[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L8:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pthread_mutexattr_setpshared@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L9
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 32
	lea	rsi, .LC1[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L9:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L11
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 35
	lea	rsi, .LC1[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L11:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	initMtx, .-initMtx
	.globl	initCondVar
	.type	initCondVar, @function
initCondVar:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pthread_condattr_init@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L13
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 42
	lea	rsi, .LC1[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L13:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pthread_condattr_setpshared@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L14
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 45
	lea	rsi, .LC1[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L14:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_cond_init@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L16
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 48
	lea	rsi, .LC1[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	initCondVar, .-initCondVar
	.globl	destroyMutex
	.type	destroyMutex, @function
destroyMutex:
.LFB10:
	.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	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pthread_mutexattr_destroy@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_mutex_destroy@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	destroyMutex, .-destroyMutex
	.globl	destroyCondVar
	.type	destroyCondVar, @function
destroyCondVar:
.LFB11:
	.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	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	pthread_condattr_destroy@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_cond_destroy@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	destroyCondVar, .-destroyCondVar
	.globl	destroySharedMemory
	.type	destroySharedMemory, @function
destroySharedMemory:
.LFB12:
	.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], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	shmdt@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmctl@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	destroySharedMemory, .-destroySharedMemory
	.section	.rodata
.LC6:
	.string	"Hello world"
.LC7:
	.string	"mtx"
.LC8:
	.string	"cond"
.LC9:
	.string	"data"
.LC10:
	.string	"[Writer] Mutex obtained"
.LC11:
	.string	"[Writer] Mutex unlocked"
.LC12:
	.string	"[Writer] Writing data..."
.LC13:
	.string	"[Writer] Notifying..."
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	DWORD PTR -52[rbp], 1024
	lea	rax, .LC6[rip]
	mov	QWORD PTR -24[rbp], rax
	lea	rax, -64[rbp]
	lea	rdx, .LC7[rip]
	mov	esi, 40
	mov	rdi, rax
	call	initSharedMemory
	mov	QWORD PTR -48[rbp], rax
	lea	rax, -60[rbp]
	lea	rdx, .LC8[rip]
	mov	esi, 48
	mov	rdi, rax
	call	initSharedMemory
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	movsx	rcx, eax
	lea	rax, -56[rbp]
	lea	rdx, .LC9[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	initSharedMemory
	mov	QWORD PTR -32[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	initMtx
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -12[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	initCondVar
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, 5
	call	sleep@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	edi, 5
	call	sleep@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	pthread_cond_signal@PLT
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	destroyMutex
	mov	eax, DWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	destroySharedMemory
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -12[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	destroyCondVar
	mov	eax, DWORD PTR -60[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	destroySharedMemory
	mov	eax, DWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	destroySharedMemory
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 15
__PRETTY_FUNCTION__.3:
	.string	"initFileIfNeed"
	.align 16
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 17
__PRETTY_FUNCTION__.2:
	.string	"initSharedMemory"
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 8
__PRETTY_FUNCTION__.1:
	.string	"initMtx"
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 12
__PRETTY_FUNCTION__.0:
	.string	"initCondVar"
	.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	"188895.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"w\000"
	.align	2
.LC1:
	.ascii	"the_stack_data/188895.c\000"
	.align	2
.LC2:
	.ascii	"file != NULL\000"
	.text
	.align	2
	.global	initFileIfNeed
	.syntax unified
	.arm
	.fpu softvfp
	.type	initFileIfNeed, %function
initFileIfNeed:
	@ 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	r1, .L3
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L3+4
	mov	r2, #11
	ldr	r1, .L3+8
	ldr	r0, .L3+12
	bl	__assert_fail
.L2:
	ldr	r0, [fp, #-8]
	bl	fclose
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	__PRETTY_FUNCTION__.6155
	.word	.LC1
	.word	.LC2
	.size	initFileIfNeed, .-initFileIfNeed
	.section	.rodata
	.align	2
.LC3:
	.ascii	"key != -1\000"
	.align	2
.LC4:
	.ascii	"*shmid != -1\000"
	.text
	.align	2
	.global	initSharedMemory
	.syntax unified
	.arm
	.fpu softvfp
	.type	initSharedMemory, %function
initSharedMemory:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	initFileIfNeed
	mov	r1, #65
	ldr	r0, [fp, #-24]
	bl	ftok
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L6
	ldr	r3, .L9
	mov	r2, #18
	ldr	r1, .L9+4
	ldr	r0, .L9+8
	bl	__assert_fail
.L6:
	ldr	r2, .L9+12
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	shmget
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L7
	ldr	r3, .L9
	mov	r2, #21
	ldr	r1, .L9+4
	ldr	r0, .L9+16
	bl	__assert_fail
.L7:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	shmat
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	__PRETTY_FUNCTION__.6162
	.word	.LC1
	.word	.LC3
	.word	1005
	.word	.LC4
	.size	initSharedMemory, .-initSharedMemory
	.section	.rodata
	.align	2
.LC5:
	.ascii	"rc == 0\000"
	.text
	.align	2
	.global	initMtx
	.syntax unified
	.arm
	.fpu softvfp
	.type	initMtx, %function
initMtx:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	pthread_mutexattr_init
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L16
	mov	r2, #29
	ldr	r1, .L16+4
	ldr	r0, .L16+8
	bl	__assert_fail
.L12:
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	pthread_mutexattr_setpshared
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L16
	mov	r2, #32
	ldr	r1, .L16+4
	ldr	r0, .L16+8
	bl	__assert_fail
.L13:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	pthread_mutex_init
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L16
	mov	r2, #35
	ldr	r1, .L16+4
	ldr	r0, .L16+8
	bl	__assert_fail
.L15:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	__PRETTY_FUNCTION__.6168
	.word	.LC1
	.word	.LC5
	.size	initMtx, .-initMtx
	.align	2
	.global	initCondVar
	.syntax unified
	.arm
	.fpu softvfp
	.type	initCondVar, %function
initCondVar:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	pthread_condattr_init
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L23
	mov	r2, #42
	ldr	r1, .L23+4
	ldr	r0, .L23+8
	bl	__assert_fail
.L19:
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	pthread_condattr_setpshared
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L23
	mov	r2, #45
	ldr	r1, .L23+4
	ldr	r0, .L23+8
	bl	__assert_fail
.L20:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	pthread_cond_init
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L22
	ldr	r3, .L23
	mov	r2, #48
	ldr	r1, .L23+4
	ldr	r0, .L23+8
	bl	__assert_fail
.L22:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	__PRETTY_FUNCTION__.6174
	.word	.LC1
	.word	.LC5
	.size	initCondVar, .-initCondVar
	.align	2
	.global	destroyMutex
	.syntax unified
	.arm
	.fpu softvfp
	.type	destroyMutex, %function
destroyMutex:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	pthread_mutexattr_destroy
	ldr	r0, [fp, #-12]
	bl	pthread_mutex_destroy
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	destroyMutex, .-destroyMutex
	.align	2
	.global	destroyCondVar
	.syntax unified
	.arm
	.fpu softvfp
	.type	destroyCondVar, %function
destroyCondVar:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	pthread_condattr_destroy
	ldr	r0, [fp, #-12]
	bl	pthread_cond_destroy
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	destroyCondVar, .-destroyCondVar
	.align	2
	.global	destroySharedMemory
	.syntax unified
	.arm
	.fpu softvfp
	.type	destroySharedMemory, %function
destroySharedMemory:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	shmdt
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	shmctl
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	destroySharedMemory, .-destroySharedMemory
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Hello world\000"
	.align	2
.LC7:
	.ascii	"mtx\000"
	.align	2
.LC8:
	.ascii	"cond\000"
	.align	2
.LC9:
	.ascii	"data\000"
	.align	2
.LC10:
	.ascii	"[Writer] Mutex obtained\000"
	.align	2
.LC11:
	.ascii	"[Writer] Mutex unlocked\000"
	.align	2
.LC12:
	.ascii	"[Writer] Writing data...\000"
	.align	2
.LC13:
	.ascii	"[Writer] Notifying...\000"
	.align	2
.LC14:
	.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, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #1024
	str	r3, [fp, #-24]
	ldr	r3, .L31+4
	str	r3, [fp, #-20]
	sub	r3, fp, #48
	ldr	r2, .L31+8
	mov	r1, #24
	mov	r0, r3
	bl	initSharedMemory
	str	r0, [fp, #-36]
	sub	r3, fp, #44
	ldr	r2, .L31+12
	mov	r1, #48
	mov	r0, r3
	bl	initSharedMemory
	str	r0, [fp, #-32]
	ldr	r1, [fp, #-24]
	sub	r3, fp, #40
	ldr	r2, .L31+16
	mov	r0, r3
	bl	initSharedMemory
	str	r0, [fp, #-28]
	sub	r3, fp, #16
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	initMtx
	sub	r3, fp, #12
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	initCondVar
	ldr	r0, [fp, #-36]
	bl	pthread_mutex_lock
	ldr	r0, .L31+20
	bl	puts
	mov	r0, #5
	bl	sleep
	ldr	r0, [fp, #-36]
	bl	pthread_mutex_unlock
	ldr	r0, .L31+24
	bl	puts
	mov	r0, #5
	bl	sleep
	ldr	r0, .L31+28
	bl	puts
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-28]
	bl	memcpy
	ldr	r0, .L31+32
	bl	puts
	ldr	r0, [fp, #-32]
	bl	pthread_cond_signal
	sub	r3, fp, #16
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	destroyMutex
	ldr	r3, [fp, #-48]
	ldr	r1, [fp, #-36]
	mov	r0, r3
	bl	destroySharedMemory
	sub	r3, fp, #12
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	destroyCondVar
	ldr	r3, [fp, #-44]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	destroySharedMemory
	ldr	r3, [fp, #-40]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	destroySharedMemory
	mov	r3, #0
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC14
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6155, %object
	.size	__PRETTY_FUNCTION__.6155, 15
__PRETTY_FUNCTION__.6155:
	.ascii	"initFileIfNeed\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6162, %object
	.size	__PRETTY_FUNCTION__.6162, 17
__PRETTY_FUNCTION__.6162:
	.ascii	"initSharedMemory\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6168, %object
	.size	__PRETTY_FUNCTION__.6168, 8
__PRETTY_FUNCTION__.6168:
	.ascii	"initMtx\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6174, %object
	.size	__PRETTY_FUNCTION__.6174, 12
__PRETTY_FUNCTION__.6174:
	.ascii	"initCondVar\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
