	.file	"358205.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Error: too few arguments"
	.align 8
.LC1:
	.string	"./primes <get primes below this integer value>"
.LC2:
	.string	"first call child done"
	.align 8
.LC3:
	.string	"first call bout to enter sieve"
.LC4:
	.string	"first call parent done"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -36[rbp], 1
	jg	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -24[rbp], eax
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	mov	DWORD PTR -28[rbp], 2
	call	fork@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L3
	lea	rax, -28[rbp]
	mov	edx, 4
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L4
.L3:
	mov	edi, 0
	call	wait@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, edx
	mov	edi, eax
	call	primeSieve
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
.L4:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	isprime
	.type	isprime, @function
isprime:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 2
	jne	.L8
	mov	eax, 1
	jmp	.L9
.L8:
	mov	DWORD PTR -4[rbp], 2
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -20[rbp]
	cdq
	idiv	DWORD PTR -4[rbp]
	mov	eax, edx
	test	eax, eax
	je	.L11
	mov	eax, 0
	jmp	.L9
.L11:
	add	DWORD PTR -4[rbp], 1
.L10:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L12
	mov	eax, 1
.L9:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	isprime, .-isprime
	.section	.rodata
.LC5:
	.string	"calling sieve on pid = %d\n"
.LC6:
	.string	"preread"
.LC7:
	.string	"postread"
	.align 8
.LC8:
	.string	"read Error in Primeseive, coming from PID = %d\n"
.LC9:
	.string	"pid=%d prime %d\n"
	.text
	.globl	primeSieve
	.type	primeSieve, @function
primeSieve:
.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	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	mov	DWORD PTR -24[rbp], 5
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -16[rbp]
	lea	rcx, -24[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -20[rbp], eax
	lea	rdi, .LC7[rip]
	call	puts@PLT
	cmp	DWORD PTR -20[rbp], 0
	jns	.L14
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L14:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	isprime
	test	eax, eax
	je	.L15
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	call	fork@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], 0
	jne	.L16
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	lea	rcx, -24[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L17
.L16:
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	primeSieve
	mov	edi, 0
	call	wait@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
.L17:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	primeSieve, .-primeSieve
	.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	"358205.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error: too few arguments\000"
	.align	2
.LC1:
	.ascii	"./primes <get primes below this integer value>\000"
	.align	2
.LC2:
	.ascii	"first call child done\000"
	.align	2
.LC3:
	.ascii	"first call bout to enter sieve\000"
	.align	2
.LC4:
	.ascii	"first call parent done\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bgt	.L2
	ldr	r0, .L7+4
	bl	puts
	ldr	r0, .L7+8
	bl	puts
	mov	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-24]
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	mov	r3, #2
	str	r3, [fp, #-28]
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L3
	sub	r3, fp, #28
	mov	r2, #4
	mov	r1, r3
	mov	r0, #1
	bl	write
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	ldr	r0, .L7+12
	bl	puts
	b	.L4
.L3:
	mov	r0, #0
	bl	wait
	ldr	r0, .L7+16
	bl	puts
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	primeSieve
	ldr	r0, .L7+20
	bl	puts
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
.L4:
	mov	r3, #0
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.global	__aeabi_idivmod
	.align	2
	.global	isprime
	.syntax unified
	.arm
	.fpu softvfp
	.type	isprime, %function
isprime:
	@ 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, #2
	bne	.L10
	mov	r3, #1
	b	.L11
.L10:
	mov	r3, #2
	str	r3, [fp, #-8]
	b	.L12
.L14:
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	beq	.L13
	mov	r3, #0
	b	.L11
.L13:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L12:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L14
	mov	r3, #1
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	isprime, .-isprime
	.section	.rodata
	.align	2
.LC6:
	.ascii	"calling sieve on pid = %d\012\000"
	.align	2
.LC7:
	.ascii	"preread\000"
	.align	2
.LC8:
	.ascii	"postread\000"
	.align	2
.LC9:
	.ascii	"read Error in Primeseive, coming from PID = %d\012\000"
	.align	2
.LC10:
	.ascii	"pid=%d prime %d\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	primeSieve
	.syntax unified
	.arm
	.fpu softvfp
	.type	primeSieve, %function
primeSieve:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, [fp, #-36]
	ldr	r0, .L21+4
	bl	printf
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	mov	r3, #5
	str	r3, [fp, #-24]
	ldr	r0, .L21+8
	bl	puts
	ldr	r3, [fp, #-16]
	sub	r1, fp, #24
	mov	r2, #4
	mov	r0, r3
	bl	read
	str	r0, [fp, #-20]
	ldr	r0, .L21+12
	bl	puts
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L16
	ldr	r1, [fp, #-36]
	ldr	r0, .L21+16
	bl	printf
.L16:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	isprime
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-24]
	mov	r2, r3
	ldr	r1, [fp, #-36]
	ldr	r0, .L21+20
	bl	printf
.L17:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-12]
	sub	r1, fp, #24
	mov	r2, #4
	mov	r0, r3
	bl	write
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	b	.L19
.L18:
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	primeSieve
	mov	r0, #0
	bl	wait
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
.L19:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	close
	nop
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC11
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	primeSieve, .-primeSieve
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
