	.file	"93997.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"fichero1"
	.section	.data.rel.local,"aw"
	.align 8
	.type	FIFO_FILE_NAME, @object
	.size	FIFO_FILE_NAME, 8
FIFO_FILE_NAME:
	.quad	.LC0
	.section	.rodata
	.align 8
.LC1:
	.string	"Error haciendo fork al proceso"
.LC2:
	.string	"Ej3"
.LC3:
	.string	"./Ej3"
	.align 8
.LC4:
	.string	"Error abriendo el semaforo: %s\n"
.LC5:
	.string	"Error: %s\n"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -4112[rbp]
	mov	rdi, rax
	call	saveMesageInBuffer
	mov	rax, QWORD PTR FIFO_FILE_NAME[rip]
	mov	rdi, rax
	call	getKeyForFile
	mov	DWORD PTR -4148[rbp], eax
	cmp	DWORD PTR -4148[rbp], -1
	je	.L2
	mov	eax, DWORD PTR -4148[rbp]
	mov	edi, eax
	call	createSharedMemoryId
	mov	DWORD PTR -4144[rbp], eax
	mov	eax, DWORD PTR -4148[rbp]
	mov	edi, eax
	call	createSemaphoreId
	mov	DWORD PTR -4140[rbp], eax
	cmp	DWORD PTR -4144[rbp], -1
	je	.L3
	cmp	DWORD PTR -4140[rbp], -1
	je	.L3
	cmp	DWORD PTR -4136[rbp], 0
	jne	.L3
	mov	eax, DWORD PTR -4144[rbp]
	mov	edi, eax
	call	shareContentInMemoryId
	mov	QWORD PTR -4128[rbp], rax
	call	fork@PLT
	mov	DWORD PTR -4132[rbp], eax
	cmp	DWORD PTR -4132[rbp], -1
	je	.L4
	cmp	DWORD PTR -4132[rbp], 0
	je	.L5
	jmp	.L13
.L4:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L5:
	mov	edx, 0
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	execl@PLT
	jmp	.L7
.L13:
	mov	edi, 1
	call	sleep@PLT
	lea	rdx, -4112[rbp]
	mov	rax, QWORD PTR -4128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	writeMessageInSharedVariable
	lea	rdx, -4118[rbp]
	mov	eax, DWORD PTR -4140[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	V
	mov	DWORD PTR -4136[rbp], eax
	cmp	DWORD PTR -4136[rbp], 0
	je	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	call	pause@PLT
	nop
.L7:
	jmp	.L10
.L3:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L2:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	applySemaphoreOperation
	.type	applySemaphoreOperation, @function
applySemaphoreOperation:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	semop@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	applySemaphoreOperation, .-applySemaphoreOperation
	.globl	P
	.type	P, @function
P:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	WORD PTR [rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	WORD PTR 2[rax], -1
	mov	rax, QWORD PTR -16[rbp]
	mov	WORD PTR 4[rax], 0
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	applySemaphoreOperation
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	P, .-P
	.globl	V
	.type	V, @function
V:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	WORD PTR [rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	WORD PTR 2[rax], 1
	mov	rax, QWORD PTR -16[rbp]
	mov	WORD PTR 4[rax], 0
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	applySemaphoreOperation
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	V, .-V
	.section	.rodata
	.align 8
.LC6:
	.string	"El proceso P2 (PID=%d, Ej2) transmite un mensaje al proceso P3 a traves de una variable en memoria compartida\n"
	.text
	.globl	writeMessageInSharedVariable
	.type	writeMessageInSharedVariable, @function
writeMessageInSharedVariable:
.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
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4095
	mov	BYTE PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	writeMessageInSharedVariable, .-writeMessageInSharedVariable
	.globl	createSharedMemoryId
	.type	createSharedMemoryId, @function
createSharedMemoryId:
.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	edx, 896
	mov	esi, 4096
	mov	edi, eax
	call	shmget@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	createSharedMemoryId, .-createSharedMemoryId
	.globl	shareContentInMemoryId
	.type	shareContentInMemoryId, @function
shareContentInMemoryId:
.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	eax, DWORD PTR -4[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	shareContentInMemoryId, .-shareContentInMemoryId
	.globl	createSemaphoreId
	.type	createSemaphoreId, @function
createSemaphoreId:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 896
	mov	esi, 3
	mov	edi, eax
	call	semget@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	createSemaphoreId, .-createSemaphoreId
	.globl	getKeyForFile
	.type	getKeyForFile, @function
getKeyForFile:
.LFB14:
	.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	rax, QWORD PTR -8[rbp]
	mov	esi, 511
	mov	rdi, rax
	call	ftok@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	getKeyForFile, .-getKeyForFile
	.section	.rodata
.LC7:
	.string	"Error abriendo FIFO: %s\n"
.LC8:
	.string	"Error leyendo FIFO: %s\n"
	.text
	.globl	saveMesageInBuffer
	.type	saveMesageInBuffer, @function
saveMesageInBuffer:
.LFB15:
	.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 FIFO_FILE_NAME[rip]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	js	.L29
	cmp	DWORD PTR -8[rbp], 0
	jne	.L30
.L29:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L28
.L30:
	mov	rcx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	js	.L32
	cmp	DWORD PTR -4[rbp], 0
	jne	.L33
.L32:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L28
.L33:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	close@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	saveMesageInBuffer, .-saveMesageInBuffer
	.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	"93997.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"fichero1\000"
	.data
	.align	2
	.type	FIFO_FILE_NAME, %object
	.size	FIFO_FILE_NAME, 4
FIFO_FILE_NAME:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Error haciendo fork al proceso\000"
	.align	2
.LC2:
	.ascii	"Ej3\000"
	.align	2
.LC3:
	.ascii	"./Ej3\000"
	.align	2
.LC4:
	.ascii	"Error abriendo el semaforo: %s\012\000"
	.align	2
.LC5:
	.ascii	"Error: %s\012\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 = 4136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #44
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	saveMesageInBuffer
	ldr	r3, .L14+4
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	getKeyForFile
	str	r0, [r4, #-36]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	cmn	r3, #1
	beq	.L2
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-36]
	bl	createSharedMemoryId
	str	r0, [r4, #-32]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-36]
	bl	createSemaphoreId
	str	r0, [r4, #-28]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmn	r3, #1
	beq	.L3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmn	r3, #1
	beq	.L3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	cmp	r3, #0
	bne	.L3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-32]
	bl	shareContentInMemoryId
	str	r0, [r4, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	bl	fork
	mov	r3, r0
	str	r3, [r4, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmn	r3, #1
	beq	.L4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	beq	.L5
	b	.L13
.L4:
	ldr	r0, .L14+8
	bl	printf
	b	.L7
.L5:
	mov	r2, #0
	ldr	r1, .L14+12
	ldr	r0, .L14+16
	bl	execl
	b	.L7
.L13:
	mov	r0, #1
	bl	sleep
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-20]
	bl	writeMessageInSharedVariable
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-28]
	bl	V
	str	r0, [r4, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	cmp	r3, #0
	beq	.L8
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L14+20
	bl	printf
.L8:
	bl	pause
	nop
.L7:
	b	.L10
.L3:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L14+24
	bl	printf
	b	.L10
.L2:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L14+24
	bl	printf
.L10:
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC6
	.word	FIFO_FILE_NAME
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.align	2
	.global	applySemaphoreOperation
	.syntax unified
	.arm
	.fpu softvfp
	.type	applySemaphoreOperation, %function
applySemaphoreOperation:
	@ 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	r2, #1
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	semop
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	applySemaphoreOperation, .-applySemaphoreOperation
	.align	2
	.global	P
	.syntax unified
	.arm
	.fpu softvfp
	.type	P, %function
P:
	@ 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	r3, [fp, #-12]
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-12]
	mvn	r2, #0
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-12]
	mov	r2, #0
	strh	r2, [r3, #4]	@ movhi
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	applySemaphoreOperation
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	P, .-P
	.align	2
	.global	V
	.syntax unified
	.arm
	.fpu softvfp
	.type	V, %function
V:
	@ 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	r3, [fp, #-12]
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-12]
	mov	r2, #1
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-12]
	mov	r2, #0
	strh	r2, [r3, #4]	@ movhi
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	applySemaphoreOperation
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	V, .-V
	.section	.rodata
	.align	2
.LC7:
	.ascii	"El proceso P2 (PID=%d, Ej2) transmite un mensaje al"
	.ascii	" proceso P3 a traves de una variable en memoria com"
	.ascii	"partida\012\000"
	.text
	.align	2
	.global	writeMessageInSharedVariable
	.syntax unified
	.arm
	.fpu softvfp
	.type	writeMessageInSharedVariable, %function
writeMessageInSharedVariable:
	@ 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]
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L22
	bl	printf
	mov	r2, #4096
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	strncpy
	ldr	r3, [fp, #-8]
	add	r3, r3, #4080
	add	r3, r3, #15
	mov	r2, #0
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC7
	.size	writeMessageInSharedVariable, .-writeMessageInSharedVariable
	.align	2
	.global	createSharedMemoryId
	.syntax unified
	.arm
	.fpu softvfp
	.type	createSharedMemoryId, %function
createSharedMemoryId:
	@ 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	r2, #896
	mov	r1, #4096
	ldr	r0, [fp, #-8]
	bl	shmget
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	createSharedMemoryId, .-createSharedMemoryId
	.align	2
	.global	shareContentInMemoryId
	.syntax unified
	.arm
	.fpu softvfp
	.type	shareContentInMemoryId, %function
shareContentInMemoryId:
	@ 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	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	shmat
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	shareContentInMemoryId, .-shareContentInMemoryId
	.align	2
	.global	createSemaphoreId
	.syntax unified
	.arm
	.fpu softvfp
	.type	createSemaphoreId, %function
createSemaphoreId:
	@ 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	r2, #896
	mov	r1, #3
	ldr	r0, [fp, #-8]
	bl	semget
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	createSemaphoreId, .-createSemaphoreId
	.align	2
	.global	getKeyForFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	getKeyForFile, %function
getKeyForFile:
	@ 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	r1, .L32
	ldr	r0, [fp, #-8]
	bl	ftok
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	511
	.size	getKeyForFile, .-getKeyForFile
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Error abriendo FIFO: %s\012\000"
	.align	2
.LC9:
	.ascii	"Error leyendo FIFO: %s\012\000"
	.text
	.align	2
	.global	saveMesageInBuffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	saveMesageInBuffer, %function
saveMesageInBuffer:
	@ 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, .L40
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L35
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L36
.L35:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L40+4
	bl	printf
	b	.L34
.L36:
	mov	r2, #4
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L38
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L39
.L38:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L40+8
	bl	printf
	b	.L34
.L39:
	ldr	r0, [fp, #-12]
	bl	close
.L34:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	FIFO_FILE_NAME
	.word	.LC8
	.word	.LC9
	.size	saveMesageInBuffer, .-saveMesageInBuffer
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
