	.file	"926648.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"tuberia1"
.LC1:
	.string	"tuberia2"
.LC2:
	.string	"Error select() %d: %s\n"
.LC3:
	.string	"Lectura tuberia1"
.LC4:
	.string	"Error read() %d: %s\n"
.LC5:
	.string	"Tuber\303\255a1 ha le\303\255do: %s\n"
.LC6:
	.string	"Lectura tuberia2"
.LC7:
	.string	"Tuber\303\255a2 ha le\303\255do: %s\n"
	.align 8
.LC8:
	.string	"Sin datos le\303\255dos en los \303\272ltimmos 10 segundos"
	.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
	push	rbx
	sub	rsp, 472
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	esi, 2048
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -468[rbp], eax
	mov	esi, 2048
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -464[rbp], eax
.L15:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -416[rbp]
	mov	rdi, rdx
#APP
# 24 "the_stack_data/926648.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -460[rbp], edx
	mov	DWORD PTR -456[rbp], eax
	mov	eax, DWORD PTR -468[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -416[rbp+rax*8]
	mov	eax, DWORD PTR -468[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -416[rbp+rax*8], rdx
	mov	eax, DWORD PTR -464[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -416[rbp+rax*8]
	mov	eax, DWORD PTR -464[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -416[rbp+rax*8], rdx
	mov	QWORD PTR -432[rbp], 10
	mov	QWORD PTR -424[rbp], 0
	mov	eax, DWORD PTR -468[rbp]
	cmp	eax, DWORD PTR -464[rbp]
	jle	.L2
	mov	eax, DWORD PTR -468[rbp]
	mov	DWORD PTR -472[rbp], eax
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -464[rbp]
	mov	DWORD PTR -472[rbp], eax
.L3:
	mov	eax, DWORD PTR -472[rbp]
	lea	edi, 1[rax]
	lea	rdx, -432[rbp]
	lea	rax, -416[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -452[rbp], eax
	cmp	DWORD PTR -452[rbp], -1
	jne	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	rdx, rbx
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L16
.L4:
	cmp	DWORD PTR -452[rbp], 0
	je	.L6
	mov	eax, DWORD PTR -468[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -416[rbp+rax*8]
	mov	eax, DWORD PTR -468[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L7
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L8
.L10:
	cmp	DWORD PTR -448[rbp], -1
	jne	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	rdx, rbx
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L16
.L9:
	mov	eax, DWORD PTR -448[rbp]
	cdqe
	mov	BYTE PTR -288[rbp+rax], 0
	lea	rax, -288[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L8:
	lea	rcx, -288[rbp]
	mov	eax, DWORD PTR -468[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -448[rbp], eax
	cmp	DWORD PTR -448[rbp], 0
	jne	.L10
	mov	eax, DWORD PTR -468[rbp]
	mov	edi, eax
	call	close@PLT
	mov	esi, 2048
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -444[rbp], eax
.L7:
	mov	eax, DWORD PTR -464[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -416[rbp+rax*8]
	mov	eax, DWORD PTR -464[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L15
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L12
.L14:
	cmp	DWORD PTR -440[rbp], -1
	jne	.L13
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	rdx, rbx
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L16
.L13:
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	mov	BYTE PTR -288[rbp+rax], 0
	lea	rax, -288[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	lea	rcx, -288[rbp]
	mov	eax, DWORD PTR -464[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -440[rbp], eax
	cmp	DWORD PTR -440[rbp], 0
	jne	.L14
	mov	eax, DWORD PTR -464[rbp]
	mov	edi, eax
	call	close@PLT
	mov	esi, 2048
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -436[rbp], eax
	jmp	.L15
.L6:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L15
.L16:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"926648.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"tuberia1\000"
	.align	2
.LC1:
	.ascii	"tuberia2\000"
	.align	2
.LC2:
	.ascii	"Error select() %d: %s\012\000"
	.align	2
.LC3:
	.ascii	"Lectura tuberia1\000"
	.align	2
.LC4:
	.ascii	"Error read() %d: %s\012\000"
	.align	2
.LC5:
	.ascii	"Tuber\303\255a1 ha le\303\255do: %s\012\000"
	.align	2
.LC6:
	.ascii	"Lectura tuberia2\000"
	.align	2
.LC7:
	.ascii	"Tuber\303\255a2 ha le\303\255do: %s\012\000"
	.align	2
.LC8:
	.ascii	"Sin datos le\303\255dos en los \303\272ltimmos 10 s"
	.ascii	"egundos\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 440
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #452
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r1, #2048
	ldr	r0, .L20+4
	bl	open
	str	r0, [fp, #-440]
	mov	r1, #2048
	ldr	r0, .L20+8
	bl	open
	str	r0, [fp, #-436]
.L17:
	sub	r3, fp, #400
	str	r3, [fp, #-432]
	mov	r3, #0
	str	r3, [fp, #-448]
	b	.L2
.L3:
	ldr	r3, [fp, #-432]
	ldr	r2, [fp, #-448]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-448]
	add	r3, r3, #1
	str	r3, [fp, #-448]
.L2:
	ldr	r3, [fp, #-448]
	cmp	r3, #31
	bls	.L3
	ldr	r3, [fp, #-440]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r1, [r3, #-388]
	ldr	r3, [fp, #-440]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	str	r1, [r3, #-388]
	ldr	r3, [fp, #-436]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r1, [r3, #-388]
	ldr	r3, [fp, #-436]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	str	r1, [r3, #-388]
	mov	r3, #10
	str	r3, [fp, #-408]
	mov	r3, #0
	str	r3, [fp, #-404]
	ldr	r2, [fp, #-440]
	ldr	r3, [fp, #-436]
	cmp	r2, r3
	ble	.L4
	ldr	r3, [fp, #-440]
	str	r3, [fp, #-444]
	b	.L5
.L4:
	ldr	r3, [fp, #-436]
	str	r3, [fp, #-444]
.L5:
	ldr	r3, [fp, #-444]
	add	r0, r3, #1
	sub	r1, fp, #400
	sub	r3, fp, #408
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	str	r0, [fp, #-428]
	ldr	r3, [fp, #-428]
	cmn	r3, #1
	bne	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L20+12
	bl	printf
	mvn	r3, #0
	b	.L18
.L6:
	ldr	r3, [fp, #-428]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-440]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-388]
	ldr	r3, [fp, #-440]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L9
	ldr	r0, .L20+16
	bl	puts
	b	.L10
.L12:
	ldr	r3, [fp, #-424]
	cmn	r3, #1
	bne	.L11
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L20+20
	bl	printf
	mvn	r3, #0
	b	.L18
.L11:
	sub	r2, fp, #272
	ldr	r3, [fp, #-424]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #272
	mov	r1, r3
	ldr	r0, .L20+24
	bl	printf
.L10:
	sub	r3, fp, #272
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-440]
	bl	read
	str	r0, [fp, #-424]
	ldr	r3, [fp, #-424]
	cmp	r3, #0
	bne	.L12
	ldr	r0, [fp, #-440]
	bl	close
	mov	r1, #2048
	ldr	r0, .L20+4
	bl	open
	str	r0, [fp, #-420]
.L9:
	ldr	r3, [fp, #-436]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-388]
	ldr	r3, [fp, #-436]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L17
	ldr	r0, .L20+28
	bl	puts
	b	.L14
.L16:
	ldr	r3, [fp, #-416]
	cmn	r3, #1
	bne	.L15
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L20+20
	bl	printf
	mvn	r3, #0
	b	.L18
.L15:
	sub	r2, fp, #272
	ldr	r3, [fp, #-416]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #272
	mov	r1, r3
	ldr	r0, .L20+32
	bl	printf
.L14:
	sub	r3, fp, #272
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-436]
	bl	read
	str	r0, [fp, #-416]
	ldr	r3, [fp, #-416]
	cmp	r3, #0
	bne	.L16
	ldr	r0, [fp, #-436]
	bl	close
	mov	r1, #2048
	ldr	r0, .L20+8
	bl	open
	str	r0, [fp, #-412]
	b	.L17
.L8:
	ldr	r0, .L20+36
	bl	puts
	b	.L17
.L18:
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
