	.file	"129506.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"N\303\272mero de parametros invalido."
.LC1:
	.string	"Sintaxis: %s <min> <max>\n"
.LC2:
	.string	"hola"
.LC3:
	.string	"\nError en fork"
.LC4:
	.string	"hijo"
.LC5:
	.string	"esclavo"
.LC6:
	.string	"./esclavo"
.LC7:
	.string	"Error al ejecutar el comando."
.LC8:
	.string	"Primo leido: %d\n"
.LC9:
	.string	"FIN"
	.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, 104
	.cfi_offset 3, -24
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	DWORD PTR -68[rbp], 2
	mov	eax, DWORD PTR -68[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -48[rbp], rdx
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	movsx	rdx, eax
	mov	r8, rdx
	mov	r9d, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ecx, 16
	mov	edx, 0
	div	rcx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -40[rbp], rax
	cmp	DWORD PTR -100[rbp], 3
	je	.L5
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -60[rbp], eax
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	pipe@PLT
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	sub	eax, DWORD PTR -64[rbp]
	cdq
	idiv	DWORD PTR -68[rbp]
	mov	DWORD PTR -56[rbp], eax
	mov	DWORD PTR -76[rbp], 0
	jmp	.L6
.L12:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	je	.L7
	add	DWORD PTR -72[rbp], 1
	mov	eax, DWORD PTR -72[rbp]
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -72[rbp]
.L8:
	mov	DWORD PTR -84[rbp], eax
	mov	edx, DWORD PTR -72[rbp]
	mov	eax, DWORD PTR -56[rbp]
	add	eax, edx
	cmp	DWORD PTR -60[rbp], eax
	cmovle	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	add	DWORD PTR -72[rbp], eax
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -76[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR 4[rax+rdx*8]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	pipe@PLT
	call	fork@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L9
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	cmp	DWORD PTR -52[rbp], 0
	jne	.L10
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -76[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*8]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edx, 0
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	execl@PLT
	test	eax, eax
	jns	.L11
	lea	rdi, .LC7[rip]
	call	perror@PLT
	jmp	.L11
.L10:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -76[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*8]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -76[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR 4[rax+rdx*8]
	lea	rcx, -84[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -76[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR 4[rax+rdx*8]
	lea	rcx, -80[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
.L11:
	add	DWORD PTR -76[rbp], 1
.L6:
	mov	eax, DWORD PTR -76[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L12
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	mov	eax, DWORD PTR -32[rbp]
	lea	rcx, -88[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jne	.L14
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	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	"129506.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"N\303\272mero de parametros invalido.\000"
	.align	2
.LC1:
	.ascii	"Sintaxis: %s <min> <max>\012\000"
	.global	__aeabi_idiv
	.align	2
.LC2:
	.ascii	"hola\000"
	.align	2
.LC3:
	.ascii	"\012Error en fork\000"
	.align	2
.LC4:
	.ascii	"hijo\000"
	.align	2
.LC5:
	.ascii	"esclavo\000"
	.align	2
.LC6:
	.ascii	"./esclavo\000"
	.align	2
.LC7:
	.ascii	"Error al ejecutar el comando.\000"
	.align	2
.LC8:
	.ascii	"Primo leido: %d\012\000"
	.align	2
.LC9:
	.ascii	"FIN\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 = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #76
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	mov	r3, #2
	str	r3, [fp, #-52]
	ldr	ip, [fp, #-52]
	sub	r3, ip, #1
	str	r3, [fp, #-48]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #6
	orr	r3, r3, r0, lsr #26
	lsl	r2, r0, #6
	mov	r3, ip
	lsl	r3, r3, #3
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-80]
	cmp	r3, #3
	beq	.L2
	ldr	r0, .L14+4
	bl	puts
	ldr	r3, [fp, #-84]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L14+8
	bl	printf
	mvn	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-84]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-84]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-36]
	sub	r3, fp, #24
	mov	r0, r3
	bl	pipe
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	ldr	r1, [fp, #-52]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L3
.L9:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	beq	.L4
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	b	.L5
.L4:
	ldr	r3, [fp, #-56]
.L5:
	str	r3, [fp, #-68]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-32]
	add	r2, r2, r3
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	str	r3, [fp, #-64]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-56]
	ldr	r0, .L14+12
	bl	puts
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	mov	r0, r3
	bl	pipe
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L14+16
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L14+20
	bl	puts
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-60]
	ldr	r3, [r3, r2, lsl #3]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-20]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	ldr	r0, .L14+20
	bl	puts
	mov	r2, #0
	ldr	r1, .L14+24
	ldr	r0, .L14+28
	bl	execl
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L14+32
	bl	perror
	b	.L8
.L7:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-60]
	ldr	r3, [r3, r2, lsl #3]
	mov	r0, r3
	bl	close
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	sub	r1, fp, #68
	mov	r2, #4
	mov	r0, r3
	bl	write
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	sub	r1, fp, #64
	mov	r2, #4
	mov	r0, r3
	bl	write
.L8:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L3:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-52]
	cmp	r2, r3
	blt	.L9
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	close
	b	.L10
.L11:
	ldr	r3, [fp, #-72]
	mov	r1, r3
	ldr	r0, .L14+36
	bl	printf
.L10:
	ldr	r3, [fp, #-24]
	sub	r1, fp, #72
	mov	r2, #4
	mov	r0, r3
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L14+40
	bl	puts
	mov	r3, #0
	mov	sp, r4
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
