	.file	"225141984.c"
	.intel_syntax noprefix
	.text
	.local	popen_pid
	.comm	popen_pid,80,32
	.section	.rodata
.LC0:
	.string	"SHELL"
.LC1:
	.string	"/usr/bin/sh"
.LC2:
	.string	"-c"
	.text
	.globl	npopen
	.type	npopen, @function
npopen:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 56
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	value@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L3
.L2:
	lea	rax, .LC1[rip]
	mov	QWORD PTR -56[rbp], rax
.L3:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	pipe@PLT
	test	eax, eax
	jns	.L4
	mov	eax, 0
	jmp	.L12
.L4:
	mov	rax, QWORD PTR -80[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 114
	jne	.L6
	mov	eax, DWORD PTR -48[rbp]
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -44[rbp]
.L7:
	mov	ebx, eax
	mov	rax, QWORD PTR -80[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 114
	jne	.L8
	mov	eax, DWORD PTR -44[rbp]
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -48[rbp]
.L9:
	mov	r12d, eax
	call	fork@PLT
	mov	r13d, eax
	test	r13d, r13d
	jne	.L10
	mov	rax, QWORD PTR -80[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 114
	sete	al
	movzx	eax, al
	mov	DWORD PTR -60[rbp], eax
	mov	edi, ebx
	call	close@PLT
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, eax
	mov	esi, 0
	mov	edi, r12d
	mov	eax, 0
	call	fcntl@PLT
	mov	edi, r12d
	call	close@PLT
	mov	rdx, QWORD PTR -72[rbp]
	mov	rsi, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8d, 0
	mov	rcx, rdx
	lea	rdx, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	execlp@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	_exit@PLT
.L10:
	cmp	r13d, -1
	jne	.L11
	mov	eax, 0
	jmp	.L12
.L11:
	movsx	rax, ebx
	lea	rdx, 0[0+rax*4]
	lea	rax, popen_pid[rip]
	mov	DWORD PTR [rdx+rax], r13d
	mov	edi, r12d
	call	close@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rax
	mov	edi, ebx
	call	fdopen@PLT
.L12:
	mov	rcx, QWORD PTR -40[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	add	rsp, 56
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	npopen, .-npopen
	.globl	npclose
	.type	npclose, @function
npclose:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 48
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fileno@PLT
	mov	r12d, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	esi, 1
	mov	edi, 2
	mov	eax, 0
	call	sigset@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	esi, 1
	mov	edi, 3
	mov	eax, 0
	call	sigset@PLT
	mov	QWORD PTR -32[rbp], rax
	nop
.L16:
	lea	rax, -44[rbp]
	mov	rdi, rax
	call	wait@PLT
	mov	ebx, eax
	movsx	rax, r12d
	lea	rdx, 0[0+rax*4]
	lea	rax, popen_pid[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	ebx, eax
	je	.L15
	cmp	ebx, -1
	jne	.L16
.L15:
	cmp	ebx, -1
	jne	.L17
	mov	DWORD PTR -44[rbp], -1
.L17:
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	mov	edi, 2
	mov	eax, 0
	call	sigset@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	edi, 3
	mov	eax, 0
	call	sigset@PLT
	mov	eax, DWORD PTR -44[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	add	rsp, 48
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	npclose, .-npclose
	.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	"225141984.c"
	.text
	.local	popen_pid
	.comm	popen_pid,80,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"SHELL\000"
	.align	2
.LC1:
	.ascii	"/usr/bin/sh\000"
	.align	2
.LC2:
	.ascii	"-c\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	npopen
	.syntax unified
	.arm
	.fpu softvfp
	.type	npopen, %function
npopen:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r0, .L14+4
	bl	value
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r3, .L14+8
	str	r3, [fp, #-40]
.L3:
	sub	r3, fp, #32
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	mov	r3, #0
	b	.L12
.L4:
	ldr	r3, [fp, #-52]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #114
	bne	.L6
	ldr	r3, [fp, #-32]
	b	.L7
.L6:
	ldr	r3, [fp, #-28]
.L7:
	mov	r5, r3
	ldr	r3, [fp, #-52]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #114
	bne	.L8
	ldr	r3, [fp, #-28]
	b	.L9
.L8:
	ldr	r3, [fp, #-32]
.L9:
	mov	r6, r3
	bl	fork
	mov	r3, r0
	mov	r4, r3
	cmp	r4, #0
	bne	.L10
	ldr	r3, [fp, #-52]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #114
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-36]
	mov	r0, r5
	bl	close
	ldr	r0, [fp, #-36]
	bl	close
	ldr	r2, [fp, #-36]
	mov	r1, #0
	mov	r0, r6
	bl	fcntl
	mov	r0, r6
	bl	close
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, [fp, #-48]
	ldr	r2, .L14+12
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-40]
	bl	execlp
	ldr	r0, [fp, #-40]
	bl	perror
	mov	r0, #1
	bl	_exit
.L10:
	cmn	r4, #1
	bne	.L11
	mov	r3, #0
	b	.L12
.L11:
	ldr	r3, .L14+16
	str	r4, [r3, r5, lsl #2]
	mov	r0, r6
	bl	close
	ldr	r1, [fp, #-52]
	mov	r0, r5
	bl	fdopen
	mov	r3, r0
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	popen_pid
	.size	npopen, .-npopen
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	npclose
	.syntax unified
	.arm
	.fpu softvfp
	.type	npclose, %function
npclose:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, [fp, #-32]
	bl	fileno
	mov	r5, r0
	ldr	r0, [fp, #-32]
	bl	fclose
	mov	r1, #1
	mov	r0, #2
	bl	sigset
	str	r0, [fp, #-24]
	mov	r1, #1
	mov	r0, #3
	bl	sigset
	str	r0, [fp, #-20]
	nop
.L18:
	sub	r3, fp, #28
	mov	r0, r3
	bl	wait
	mov	r4, r0
	ldr	r3, .L22+4
	ldr	r3, [r3, r5, lsl #2]
	cmp	r4, r3
	beq	.L17
	cmn	r4, #1
	bne	.L18
.L17:
	cmn	r4, #1
	bne	.L19
	mvn	r3, #0
	str	r3, [fp, #-28]
.L19:
	ldr	r1, [fp, #-24]
	mov	r0, #2
	bl	sigset
	ldr	r1, [fp, #-20]
	mov	r0, #3
	bl	sigset
	ldr	r3, [fp, #-28]
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC4
	.word	popen_pid
	.size	npclose, .-npclose
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
