	.file	"815600.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Welcome to the ChatBot, please enter 'quit' to exit.\nYou can type in your messages when >> is displayed.\nHappy Chatting!\n\n"
	.align 8
.LC1:
	.string	"You\342\200\231re user one. Shared memory id is: %d\n"
.LC2:
	.string	"Waiting for user two..."
.LC3:
	.string	""
	.align 8
.LC4:
	.string	"You\342\200\231re user two. Signalling to user one..."
.LC5:
	.string	"quit\n"
	.align 8
.LC6:
	.string	"The other User has quit the chat, thank you for using Chatbot!"
.LC7:
	.string	"Reply: %s"
.LC8:
	.string	">> "
	.align 8
.LC9:
	.string	"You have quit the chat, thank you for using Chatbot!"
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	cmp	DWORD PTR -52[rbp], 1
	jg	.L2
	mov	edi, 8192
	call	AllocateSharedMemory
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	MapSharedMemory
	mov	QWORD PTR -24[rbp], rax
	mov	WORD PTR -12[rbp], 0
	mov	WORD PTR -10[rbp], 0
	lea	rax, -12[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	CreateSemaphoreSet
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 1
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L8
.L2:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	MapSharedMemory
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -40[rbp], eax
	mov	DWORD PTR -36[rbp], 1
	mov	DWORD PTR -32[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	UnlockSemaphore
.L8:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	LockSemaphore
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L6
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 8192
	mov	rdi, rax
	call	fgets@PLT
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, edx
	mov	edi, eax
	call	UnlockSemaphore
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	lea	rdi, .LC9[rip]
	call	puts@PLT
.L5:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L9
	mov	eax, DWORD PTR -40[rbp]
	mov	edi, eax
	call	DeleteSemaphoreSet
.L9:
	mov	eax, 0
	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
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC10:
	.string	"the_stack_data/815600.c"
.LC11:
	.string	"n > 0"
	.text
	.globl	AllocateSharedMemory
	.type	AllocateSharedMemory, @function
AllocateSharedMemory:
.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], edi
	cmp	DWORD PTR -4[rbp], 0
	jg	.L13
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 127
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L13:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	edx, 896
	mov	rsi, rax
	mov	edi, 0
	call	shmget@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	AllocateSharedMemory, .-AllocateSharedMemory
	.section	.rodata
.LC12:
	.string	"id != 0"
	.text
	.globl	MapSharedMemory
	.type	MapSharedMemory, @function
MapSharedMemory:
.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	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	jne	.L16
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 135
	lea	rsi, .LC10[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L16:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmctl@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	MapSharedMemory, .-MapSharedMemory
	.section	.rodata
.LC13:
	.string	"vals != NULL"
	.text
	.globl	SetAllSemaphores
	.type	SetAllSemaphores, @function
SetAllSemaphores:
.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	QWORD PTR -32[rbp], 0
	jne	.L19
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 144
	lea	rsi, .LC10[rip]
	lea	rdi, .LC13[rip]
	call	__assert_fail@PLT
.L19:
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rcx, rdx
	mov	edx, 17
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	semctl@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	SetAllSemaphores, .-SetAllSemaphores
	.globl	CreateSemaphoreSet
	.type	CreateSemaphoreSet, @function
CreateSemaphoreSet:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 0
	jg	.L21
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 154
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L21:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L22
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 155
	lea	rsi, .LC10[rip]
	lea	rdi, .LC13[rip]
	call	__assert_fail@PLT
.L22:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 384
	mov	esi, eax
	mov	edi, 0
	call	semget@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	rcx, rdx
	mov	edx, 17
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	semctl@PLT
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	CreateSemaphoreSet, .-CreateSemaphoreSet
	.section	.rodata
.LC14:
	.string	"Error releasing semaphore!"
	.text
	.globl	DeleteSemaphoreSet
	.type	DeleteSemaphoreSet, @function
DeleteSemaphoreSet:
.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	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	semctl@PLT
	cmp	eax, -1
	jne	.L26
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	DeleteSemaphoreSet, .-DeleteSemaphoreSet
	.globl	LockSemaphore
	.type	LockSemaphore, @function
LockSemaphore:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -24[rbp]
	mov	WORD PTR -14[rbp], ax
	mov	WORD PTR -12[rbp], -1
	mov	WORD PTR -10[rbp], 4096
	lea	rcx, -14[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	semop@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	LockSemaphore, .-LockSemaphore
	.globl	UnlockSemaphore
	.type	UnlockSemaphore, @function
UnlockSemaphore:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -24[rbp]
	mov	WORD PTR -14[rbp], ax
	mov	WORD PTR -12[rbp], 1
	mov	WORD PTR -10[rbp], 4096
	lea	rcx, -14[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	semop@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	UnlockSemaphore, .-UnlockSemaphore
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 21
__PRETTY_FUNCTION__.3:
	.string	"AllocateSharedMemory"
	.align 16
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 16
__PRETTY_FUNCTION__.2:
	.string	"MapSharedMemory"
	.align 16
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 17
__PRETTY_FUNCTION__.1:
	.string	"SetAllSemaphores"
	.align 16
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 19
__PRETTY_FUNCTION__.0:
	.string	"CreateSemaphoreSet"
	.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	"815600.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Welcome to the ChatBot, please enter 'quit' to exit"
	.ascii	".\012You can type in your messages when >> is displ"
	.ascii	"ayed.\012Happy Chatting!\012\012\000"
	.align	2
.LC1:
	.ascii	"You\342\200\231re user one. Shared memory id is: %d"
	.ascii	"\012\000"
	.align	2
.LC2:
	.ascii	"Waiting for user two...\000"
	.align	2
.LC3:
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"You\342\200\231re user two. Signalling to user one."
	.ascii	"..\000"
	.align	2
.LC5:
	.ascii	"quit\012\000"
	.align	2
.LC6:
	.ascii	"The other User has quit the chat, thank you for usi"
	.ascii	"ng Chatbot!\000"
	.align	2
.LC7:
	.ascii	"Reply: %s\000"
	.align	2
.LC8:
	.ascii	">> \000"
	.align	2
.LC9:
	.ascii	"You have quit the chat, thank you for using Chatbot"
	.ascii	"!\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L12+4
	bl	puts
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	bgt	.L2
	mov	r0, #8192
	bl	AllocateSharedMemory
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	MapSharedMemory
	str	r0, [fp, #-28]
	mov	r3, #0
	strh	r3, [fp, #-12]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-10]	@ movhi
	sub	r3, fp, #12
	mov	r1, r3
	mov	r0, #2
	bl	CreateSemaphoreSet
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-32]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-16]
	ldr	r0, .L12+8
	bl	printf
	ldr	r0, .L12+12
	bl	puts
	b	.L8
.L2:
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	MapSharedMemory
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r1, .L12+16
	ldr	r0, [fp, #-28]
	bl	sprintf
	ldr	r0, .L12+20
	bl	puts
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-32]
	bl	UnlockSemaphore
.L8:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-32]
	bl	LockSemaphore
	ldr	r1, .L12+24
	ldr	r0, [fp, #-28]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L12+28
	bl	puts
	b	.L5
.L4:
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L6
	ldr	r1, [fp, #-28]
	ldr	r0, .L12+32
	bl	printf
.L6:
	ldr	r0, .L12+36
	bl	printf
	ldr	r3, .L12+40
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #8192
	ldr	r0, [fp, #-28]
	bl	fgets
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-32]
	bl	UnlockSemaphore
	ldr	r1, .L12+24
	ldr	r0, [fp, #-28]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L12+44
	bl	puts
.L5:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L9
	ldr	r0, [fp, #-32]
	bl	DeleteSemaphoreSet
.L9:
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	stdin
	.word	.LC9
	.size	main, .-main
	.section	.rodata
	.align	2
.LC11:
	.ascii	"the_stack_data/815600.c\000"
	.align	2
.LC12:
	.ascii	"n > 0\000"
	.text
	.align	2
	.global	AllocateSharedMemory
	.syntax unified
	.arm
	.fpu softvfp
	.type	AllocateSharedMemory, %function
AllocateSharedMemory:
	@ 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, [fp, #-8]
	cmp	r3, #0
	bgt	.L15
	ldr	r3, .L17
	mov	r2, #127
	ldr	r1, .L17+4
	ldr	r0, .L17+8
	bl	__assert_fail
.L15:
	ldr	r3, [fp, #-8]
	mov	r2, #896
	mov	r1, r3
	mov	r0, #0
	bl	shmget
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	__PRETTY_FUNCTION__.6067
	.word	.LC11
	.word	.LC12
	.size	AllocateSharedMemory, .-AllocateSharedMemory
	.section	.rodata
	.align	2
.LC13:
	.ascii	"id != 0\000"
	.text
	.align	2
	.global	MapSharedMemory
	.syntax unified
	.arm
	.fpu softvfp
	.type	MapSharedMemory, %function
MapSharedMemory:
	@ 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]
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L22
	mov	r2, #135
	ldr	r1, .L22+4
	ldr	r0, .L22+8
	bl	__assert_fail
.L20:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	shmat
	str	r0, [fp, #-8]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	shmctl
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	__PRETTY_FUNCTION__.6072
	.word	.LC11
	.word	.LC13
	.size	MapSharedMemory, .-MapSharedMemory
	.section	.rodata
	.align	2
.LC14:
	.ascii	"vals != NULL\000"
	.text
	.align	2
	.global	SetAllSemaphores
	.syntax unified
	.arm
	.fpu softvfp
	.type	SetAllSemaphores, %function
SetAllSemaphores:
	@ 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]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L25
	ldr	r3, .L26
	mov	r2, #144
	ldr	r1, .L26+4
	ldr	r0, .L26+8
	bl	__assert_fail
.L25:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #17
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	semctl
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	__PRETTY_FUNCTION__.6078
	.word	.LC11
	.word	.LC14
	.size	SetAllSemaphores, .-SetAllSemaphores
	.align	2
	.global	CreateSemaphoreSet
	.syntax unified
	.arm
	.fpu softvfp
	.type	CreateSemaphoreSet, %function
CreateSemaphoreSet:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L29
	ldr	r3, .L32
	mov	r2, #154
	ldr	r1, .L32+4
	ldr	r0, .L32+8
	bl	__assert_fail
.L29:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L30
	ldr	r3, .L32
	mov	r2, #155
	ldr	r1, .L32+4
	ldr	r0, .L32+12
	bl	__assert_fail
.L30:
	mov	r2, #384
	ldr	r1, [fp, #-16]
	mov	r0, #0
	bl	semget
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	mov	r2, #17
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	semctl
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	__PRETTY_FUNCTION__.6085
	.word	.LC11
	.word	.LC12
	.word	.LC14
	.size	CreateSemaphoreSet, .-CreateSemaphoreSet
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Error releasing semaphore!\000"
	.text
	.align	2
	.global	DeleteSemaphoreSet
	.syntax unified
	.arm
	.fpu softvfp
	.type	DeleteSemaphoreSet, %function
DeleteSemaphoreSet:
	@ 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]
	mov	r3, #0
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	semctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L36
	ldr	r0, .L37
	bl	perror
	mov	r0, #1
	bl	exit
.L36:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC15
	.size	DeleteSemaphoreSet, .-DeleteSemaphoreSet
	.section	.rodata
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	LockSemaphore
	.syntax unified
	.arm
	.fpu softvfp
	.type	LockSemaphore, %function
LockSemaphore:
	@ 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, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-16]	@ movhi
	mvn	r3, #0
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, #4096
	strh	r3, [fp, #-12]	@ movhi
	sub	r3, fp, #16
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	semop
	nop
	ldr	r3, .L41
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC16
	.size	LockSemaphore, .-LockSemaphore
	.section	.rodata
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	UnlockSemaphore
	.syntax unified
	.arm
	.fpu softvfp
	.type	UnlockSemaphore, %function
UnlockSemaphore:
	@ 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, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L45
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-16]	@ movhi
	mov	r3, #1
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, #4096
	strh	r3, [fp, #-12]	@ movhi
	sub	r3, fp, #16
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	semop
	nop
	ldr	r3, .L45
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L44
	bl	__stack_chk_fail
.L44:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	.LC17
	.size	UnlockSemaphore, .-UnlockSemaphore
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6067, %object
	.size	__PRETTY_FUNCTION__.6067, 21
__PRETTY_FUNCTION__.6067:
	.ascii	"AllocateSharedMemory\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6072, %object
	.size	__PRETTY_FUNCTION__.6072, 16
__PRETTY_FUNCTION__.6072:
	.ascii	"MapSharedMemory\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6078, %object
	.size	__PRETTY_FUNCTION__.6078, 17
__PRETTY_FUNCTION__.6078:
	.ascii	"SetAllSemaphores\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6085, %object
	.size	__PRETTY_FUNCTION__.6085, 19
__PRETTY_FUNCTION__.6085:
	.ascii	"CreateSemaphoreSet\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
