	.file	"220456149.c"
	.intel_syntax noprefix
	.text
	.globl	pidTlf
	.bss
	.align 4
	.type	pidTlf, @object
	.size	pidTlf, 4
pidTlf:
	.zero	4
	.globl	pidMat
	.align 4
	.type	pidMat, @object
	.size	pidMat, 4
pidMat:
	.zero	4
	.globl	pidNom
	.align 4
	.type	pidNom, @object
	.size	pidNom, 4
pidNom:
	.zero	4
	.globl	fTlf
	.align 4
	.type	fTlf, @object
	.size	fTlf, 4
fTlf:
	.zero	4
	.globl	fMat
	.align 4
	.type	fMat, @object
	.size	fMat, 4
fMat:
	.zero	4
	.globl	fNom
	.align 4
	.type	fNom, @object
	.size	fNom, 4
fNom:
	.zero	4
	.globl	p
	.align 8
	.type	p, @object
	.size	p, 8
p:
	.zero	8
	.text
	.globl	guardaNom
	.type	guardaNom, @function
guardaNom:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR p[rip]
	lea	rcx, -32[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR fNom[rip]
	lea	rcx, -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L2
	call	__stack_chk_fail@PLT
.L2:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	guardaNom, .-guardaNom
	.globl	guardaMatricula
	.type	guardaMatricula, @function
guardaMatricula:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR p[rip]
	lea	rcx, -32[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR fMat[rip]
	lea	rcx, -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	guardaMatricula, .-guardaMatricula
	.globl	guardaTelefon
	.type	guardaTelefon, @function
guardaTelefon:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR p[rip]
	lea	rcx, -32[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR fTlf[rip]
	lea	rcx, -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	guardaTelefon, .-guardaTelefon
	.globl	sortir
	.type	sortir, @function
sortir:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.size	sortir, .-sortir
	.section	.rodata
.LC0:
	.string	"./canal"
.LC1:
	.string	"Error creant la pipe amb nom"
	.align 8
.LC2:
	.string	"Classifica Iniciat: esperant programa entrada...\n"
.LC3:
	.string	"Error obrint la pipe amb nom"
.LC4:
	.string	"Error pipe interna"
.LC5:
	.string	"./Telefons.txt"
.LC6:
	.string	"Error amb fitxer"
.LC7:
	.string	"./Matricules.txt"
.LC8:
	.string	"./Noms.txt"
	.align 8
.LC9:
	.string	"Error al crear processos fills"
.LC10:
	.string	"Canal no eliminat\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 432
	lea	rdi, .LC0[rip]
	call	mkfifo@PLT
	test	eax, eax
	je	.L9
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	edx, 49
	lea	rsi, .LC2[rip]
	mov	edi, 1
	call	write@PLT
	mov	esi, 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L10
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	lea	rdi, p[rip]
	call	pipe@PLT
	test	eax, eax
	jns	.L11
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	call	fork@PLT
	mov	DWORD PTR pidTlf[rip], eax
	mov	eax, DWORD PTR pidTlf[rip]
	test	eax, eax
	jne	.L12
	mov	edx, 384
	mov	esi, 577
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fTlf[rip], eax
	mov	eax, DWORD PTR fTlf[rip]
	test	eax, eax
	jns	.L13
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	lea	rsi, guardaTelefon[rip]
	mov	edi, 10
	call	signal@PLT
	lea	rsi, sortir[rip]
	mov	edi, 12
	call	signal@PLT
.L14:
	call	pause@PLT
	jmp	.L14
.L12:
	call	fork@PLT
	mov	DWORD PTR pidMat[rip], eax
	mov	eax, DWORD PTR pidMat[rip]
	test	eax, eax
	jne	.L15
	mov	edx, 384
	mov	esi, 577
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fMat[rip], eax
	mov	eax, DWORD PTR fMat[rip]
	test	eax, eax
	jns	.L16
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	lea	rsi, guardaMatricula[rip]
	mov	edi, 10
	call	signal@PLT
	lea	rsi, sortir[rip]
	mov	edi, 12
	call	signal@PLT
.L17:
	call	pause@PLT
	jmp	.L17
.L15:
	call	fork@PLT
	mov	DWORD PTR pidNom[rip], eax
	mov	eax, DWORD PTR pidNom[rip]
	test	eax, eax
	jne	.L18
	mov	edx, 384
	mov	esi, 577
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fNom[rip], eax
	mov	eax, DWORD PTR fNom[rip]
	test	eax, eax
	jns	.L19
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	lea	rsi, guardaNom[rip]
	mov	edi, 10
	call	signal@PLT
	lea	rsi, sortir[rip]
	mov	edi, 12
	call	signal@PLT
.L20:
	call	pause@PLT
	jmp	.L20
.L18:
	mov	eax, DWORD PTR pidTlf[rip]
	cmp	eax, -1
	je	.L21
	mov	eax, DWORD PTR pidMat[rip]
	cmp	eax, -1
	je	.L21
	mov	eax, DWORD PTR pidNom[rip]
	cmp	eax, -1
	jne	.L22
.L21:
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -40[rbp], eax
	jmp	.L23
.L27:
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR p[rip+4]
	lea	rcx, -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, 2
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	cmp	al, 57
	jg	.L24
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, 2
	cdqe
	movzx	eax, BYTE PTR -32[rbp+rax]
	test	al, al
	js	.L24
	mov	eax, DWORD PTR pidTlf[rip]
	mov	esi, 10
	mov	edi, eax
	call	kill@PLT
	jmp	.L25
.L24:
	movzx	eax, BYTE PTR -32[rbp]
	cmp	al, 57
	jg	.L26
	movzx	eax, BYTE PTR -32[rbp]
	test	al, al
	js	.L26
	mov	eax, DWORD PTR pidMat[rip]
	mov	esi, 10
	mov	edi, eax
	call	kill@PLT
	jmp	.L25
.L26:
	mov	eax, DWORD PTR pidNom[rip]
	mov	esi, 10
	mov	edi, eax
	call	kill@PLT
.L25:
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -40[rbp], eax
.L23:
	cmp	DWORD PTR -40[rbp], 0
	jg	.L27
	mov	eax, DWORD PTR pidTlf[rip]
	mov	esi, 12
	mov	edi, eax
	call	kill@PLT
	mov	eax, DWORD PTR pidMat[rip]
	mov	esi, 12
	mov	edi, eax
	call	kill@PLT
	mov	eax, DWORD PTR pidNom[rip]
	mov	esi, 12
	mov	edi, eax
	call	kill@PLT
	lea	rax, -52[rbp]
	mov	rdi, rax
	call	wait@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	wait@PLT
	lea	rax, -44[rbp]
	mov	rdi, rax
	call	wait@PLT
	lea	rdi, .LC0[rip]
	call	remove@PLT
	test	eax, eax
	je	.L28
	mov	edx, 15
	lea	rsi, .LC10[rip]
	mov	edi, 1
	call	write@PLT
.L28:
	mov	eax, DWORD PTR p[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR p[rip+4]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"220456149.c"
	.text
	.comm	pidTlf,4,4
	.comm	pidMat,4,4
	.comm	pidNom,4,4
	.comm	fTlf,4,4
	.comm	fMat,4,4
	.comm	fNom,4,4
	.comm	p,8,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	guardaNom
	.syntax unified
	.arm
	.fpu softvfp
	.type	guardaNom, %function
guardaNom:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L3+4
	ldr	r3, [r3]
	sub	r1, fp, #24
	mov	r2, #16
	mov	r0, r3
	bl	read
	str	r0, [fp, #-28]
	ldr	r3, .L3+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	sub	r1, fp, #24
	mov	r0, r3
	bl	write
	nop
	ldr	r3, .L3
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L2
	bl	__stack_chk_fail
.L2:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	p
	.word	fNom
	.size	guardaNom, .-guardaNom
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	guardaMatricula
	.syntax unified
	.arm
	.fpu softvfp
	.type	guardaMatricula, %function
guardaMatricula:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L7+4
	ldr	r3, [r3]
	sub	r1, fp, #24
	mov	r2, #16
	mov	r0, r3
	bl	read
	str	r0, [fp, #-28]
	ldr	r3, .L7+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	sub	r1, fp, #24
	mov	r0, r3
	bl	write
	nop
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.word	p
	.word	fMat
	.size	guardaMatricula, .-guardaMatricula
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	guardaTelefon
	.syntax unified
	.arm
	.fpu softvfp
	.type	guardaTelefon, %function
guardaTelefon:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L11+4
	ldr	r3, [r3]
	sub	r1, fp, #24
	mov	r2, #16
	mov	r0, r3
	bl	read
	str	r0, [fp, #-28]
	ldr	r3, .L11+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	sub	r1, fp, #24
	mov	r0, r3
	bl	write
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC2
	.word	p
	.word	fTlf
	.size	guardaTelefon, .-guardaTelefon
	.align	2
	.global	sortir
	.syntax unified
	.arm
	.fpu softvfp
	.type	sortir, %function
sortir:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #1
	bl	exit
	.size	sortir, .-sortir
	.section	.rodata
	.align	2
.LC3:
	.ascii	"./canal\000"
	.align	2
.LC4:
	.ascii	"Error creant la pipe amb nom\000"
	.align	2
.LC5:
	.ascii	"Classifica Iniciat: esperant programa entrada...\012"
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"Error obrint la pipe amb nom\000"
	.align	2
.LC7:
	.ascii	"Error pipe interna\000"
	.align	2
.LC8:
	.ascii	"./Telefons.txt\000"
	.align	2
.LC9:
	.ascii	"Error amb fitxer\000"
	.align	2
.LC10:
	.ascii	"./Matricules.txt\000"
	.align	2
.LC11:
	.ascii	"./Noms.txt\000"
	.align	2
.LC12:
	.ascii	"Error al crear processos fills\000"
	.align	2
.LC13:
	.ascii	"Canal no eliminat\012\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 = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #432
	ldr	r0, .L37+4
	bl	mkfifo
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r0, .L37+8
	bl	perror
	mov	r0, #1
	bl	exit
.L15:
	mov	r2, #49
	ldr	r1, .L37+12
	mov	r0, #1
	bl	write
	mov	r1, #0
	ldr	r0, .L37+4
	bl	open
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L16
	ldr	r0, .L37+16
	bl	perror
	mov	r0, #1
	bl	exit
.L16:
	ldr	r0, .L37+20
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	ldr	r0, .L37+24
	bl	perror
	mov	r0, #1
	bl	exit
.L17:
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L37+28
	str	r2, [r3]
	ldr	r3, .L37+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L18
	mov	r2, #384
	ldr	r1, .L37+32
	ldr	r0, .L37+36
	bl	open
	mov	r3, r0
	ldr	r2, .L37+40
	str	r3, [r2]
	ldr	r3, .L37+40
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L19
	ldr	r0, .L37+44
	bl	perror
	mov	r0, #1
	bl	exit
.L19:
	ldr	r1, .L37+48
	mov	r0, #10
	bl	signal
	ldr	r1, .L37+52
	mov	r0, #12
	bl	signal
.L20:
	bl	pause
	b	.L20
.L18:
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L37+56
	str	r2, [r3]
	ldr	r3, .L37+56
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L21
	mov	r2, #384
	ldr	r1, .L37+32
	ldr	r0, .L37+60
	bl	open
	mov	r3, r0
	ldr	r2, .L37+64
	str	r3, [r2]
	ldr	r3, .L37+64
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L22
	ldr	r0, .L37+44
	bl	perror
	mov	r0, #1
	bl	exit
.L22:
	ldr	r1, .L37+68
	mov	r0, #10
	bl	signal
	ldr	r1, .L37+52
	mov	r0, #12
	bl	signal
.L23:
	bl	pause
	b	.L23
.L21:
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L37+72
	str	r2, [r3]
	ldr	r3, .L37+72
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L24
	mov	r2, #384
	ldr	r1, .L37+32
	ldr	r0, .L37+76
	bl	open
	mov	r3, r0
	ldr	r2, .L37+80
	str	r3, [r2]
	ldr	r3, .L37+80
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L25
	ldr	r0, .L37+44
	bl	perror
	mov	r0, #1
	bl	exit
.L25:
	ldr	r1, .L37+84
	mov	r0, #10
	bl	signal
	ldr	r1, .L37+52
	mov	r0, #12
	bl	signal
.L26:
	bl	pause
	b	.L26
.L24:
	ldr	r3, .L37+28
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L27
	ldr	r3, .L37+56
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L27
	ldr	r3, .L37+72
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L28
.L27:
	ldr	r0, .L37+88
	bl	perror
	mov	r0, #1
	bl	exit
.L28:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	read
	str	r0, [fp, #-32]
	b	.L29
.L33:
	ldr	r3, .L37+20
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-32]
	sub	r1, fp, #24
	mov	r0, r3
	bl	write
	ldr	r3, [fp, #-32]
	sub	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-20]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L30
	ldr	r3, .L37+28
	ldr	r3, [r3]
	mov	r1, #10
	mov	r0, r3
	bl	kill
	b	.L31
.L30:
	ldrb	r3, [fp, #-24]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L32
	ldr	r3, .L37+56
	ldr	r3, [r3]
	mov	r1, #10
	mov	r0, r3
	bl	kill
	b	.L31
.L32:
	ldr	r3, .L37+72
	ldr	r3, [r3]
	mov	r1, #10
	mov	r0, r3
	bl	kill
.L31:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	read
	str	r0, [fp, #-32]
.L29:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bgt	.L33
	ldr	r3, .L37+28
	ldr	r3, [r3]
	mov	r1, #12
	mov	r0, r3
	bl	kill
	ldr	r3, .L37+56
	ldr	r3, [r3]
	mov	r1, #12
	mov	r0, r3
	bl	kill
	ldr	r3, .L37+72
	ldr	r3, [r3]
	mov	r1, #12
	mov	r0, r3
	bl	kill
	sub	r3, fp, #44
	mov	r0, r3
	bl	wait
	sub	r3, fp, #40
	mov	r0, r3
	bl	wait
	sub	r3, fp, #36
	mov	r0, r3
	bl	wait
	ldr	r0, .L37+4
	bl	remove
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
	mov	r2, #15
	ldr	r1, .L37+92
	mov	r0, #1
	bl	write
.L34:
	ldr	r3, .L37+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L37+20
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
	mov	r3, #0
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L36
	bl	__stack_chk_fail
.L36:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC14
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	p
	.word	.LC7
	.word	pidTlf
	.word	577
	.word	.LC8
	.word	fTlf
	.word	.LC9
	.word	guardaTelefon
	.word	sortir
	.word	pidMat
	.word	.LC10
	.word	fMat
	.word	guardaMatricula
	.word	pidNom
	.word	.LC11
	.word	fNom
	.word	guardaNom
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
