	.file	"690994.c"
	.intel_syntax noprefix
	.text
	.local	p_state
	.comm	p_state,320,32
	.type	popenv, @function
popenv:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 72
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	QWORD PTR -104[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -104[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 114
	je	.L2
	mov	rax, QWORD PTR -104[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 119
	je	.L2
	mov	eax, 0
	jmp	.L25
.L2:
	lea	rax, -64[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	pipe@PLT
	test	eax, eax
	jns	.L4
	mov	eax, 0
	jmp	.L25
.L4:
	mov	rax, QWORD PTR -104[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 114
	jne	.L5
	mov	eax, DWORD PTR -64[rbp]
	mov	r12d, eax
	mov	eax, DWORD PTR -60[rbp]
	mov	r13d, eax
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -60[rbp]
	mov	r12d, eax
	mov	eax, DWORD PTR -64[rbp]
	mov	r13d, eax
.L6:
	call	fork@PLT
	movsx	rbx, eax
	test	rbx, rbx
	jne	.L7
	movsx	eax, r12w
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	r15d, 0
	mov	rax, QWORD PTR -104[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 114
	jne	.L8
	mov	rax, QWORD PTR -104[rbp]
	lea	rbx, 1[rax]
	jmp	.L9
.L19:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 47
	jle	.L10
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 57
	jle	.L11
.L10:
	add	rbx, 1
	jmp	.L9
.L11:
	mov	r12d, 0
	jmp	.L12
.L14:
	mov	edx, r12d
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	rax, rbx
	lea	rbx, 1[rax]
	movzx	eax, BYTE PTR [rax]
	cbw
	add	eax, edx
	sub	eax, 48
	mov	r12d, eax
.L12:
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 47
	jle	.L13
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 57
	jle	.L14
.L13:
	cmp	r12w, 19
	jg	.L9
	cmp	r12w, r13w
	jne	.L16
	jmp	.L9
.L16:
	movsx	eax, r12w
	mov	edx, 0
	mov	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	r14d, eax
	cmp	r14w, -1
	je	.L9
	movsx	eax, r14w
	and	eax, 3
	test	eax, eax
	jne	.L18
	jmp	.L9
.L18:
	movsx	eax, r12w
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	movsx	edx, r12w
	movsx	eax, r13w
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	movsx	eax, r12w
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+8]
	mov	QWORD PTR [rdx+rax], 0
	mov	r15d, 1
.L9:
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L19
.L8:
	test	r15w, r15w
	jne	.L20
	mov	rax, QWORD PTR -104[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 114
	sete	al
	movzx	eax, al
	mov	WORD PTR -66[rbp], ax
	cmp	WORD PTR -66[rbp], r13w
	je	.L20
	movsx	eax, WORD PTR -66[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	movsx	edx, WORD PTR -66[rbp]
	movsx	eax, r13w
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
.L20:
	movsx	eax, r13w
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	ebx, 0
	jmp	.L21
.L23:
	movsx	eax, bx
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L22
	movsx	eax, bx
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
.L22:
	mov	eax, ebx
	add	eax, 1
	mov	ebx, eax
.L21:
	cmp	bx, 19
	jle	.L23
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	edi, 1
	call	_exit@PLT
.L7:
	cmp	rbx, -1
	jne	.L24
	mov	eax, 0
	jmp	.L25
.L24:
	movsx	eax, r12w
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+8]
	mov	QWORD PTR [rdx+rax], rbx
	movsx	eax, r12w
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip]
	mov	WORD PTR [rdx+rax], 1
	movsx	eax, r13w
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	movsx	eax, r12w
	mov	rdx, QWORD PTR -104[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fdopen@PLT
.L25:
	mov	rcx, QWORD PTR -56[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	add	rsp, 72
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	popenv, .-popenv
	.section	.rodata
.LC0:
	.string	"/bin/sh"
.LC1:
	.string	"-c"
	.text
	.globl	popen
	.type	popen, @function
popen:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	basename@PLT
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], 0
	mov	rdx, QWORD PTR -80[rbp]
	lea	rcx, -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	popenv
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	popen, .-popen
	.globl	pclose
	.type	pclose, @function
pclose:
.LFB2:
	.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, 72
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	fileno@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	fclose@PLT
	movsx	eax, bx
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip]
	movzx	eax, WORD PTR [rdx+rax]
	cmp	ax, 2
	jne	.L31
	movsx	eax, bx
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+8]
	mov	QWORD PTR [rdx+rax], 0
	movsx	eax, bx
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip]
	mov	WORD PTR [rdx+rax], 0
	movsx	eax, bx
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+2]
	movzx	eax, WORD PTR [rdx+rax]
	cwde
	jmp	.L40
.L31:
	mov	esi, 1
	mov	edi, 2
	call	signal@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	esi, 1
	mov	edi, 3
	call	signal@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	esi, 1
	mov	edi, 1
	call	signal@PLT
	mov	QWORD PTR -48[rbp], rax
	jmp	.L33
.L38:
	cmp	r13, -1
	je	.L33
	mov	r12d, 0
	jmp	.L34
.L36:
	movsx	eax, r12w
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	cmp	r13, rax
	jne	.L35
	movsx	eax, r12w
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip]
	movzx	eax, WORD PTR [rdx+rax]
	cmp	ax, 1
	jne	.L35
	movsx	eax, r12w
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip]
	mov	WORD PTR [rdx+rax], 2
	mov	edx, DWORD PTR -68[rbp]
	movsx	eax, r12w
	mov	ecx, edx
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+2]
	mov	WORD PTR [rdx+rax], cx
	jmp	.L33
.L35:
	mov	eax, r12d
	add	eax, 1
	mov	r12d, eax
.L34:
	cmp	r12w, 19
	jle	.L36
.L33:
	lea	rax, -68[rbp]
	mov	rdi, rax
	call	wait@PLT
	movsx	r13, eax
	movsx	eax, bx
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	cmp	r13, rax
	je	.L37
	cmp	r13, -1
	jne	.L38
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L38
.L37:
	cmp	r13, -1
	jne	.L39
	mov	DWORD PTR -68[rbp], -1
.L39:
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	signal@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	mov	edi, 3
	call	signal@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	signal@PLT
	movsx	eax, bx
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+8]
	mov	QWORD PTR [rdx+rax], 0
	movsx	eax, bx
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip]
	mov	WORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -68[rbp]
.L40:
	mov	rcx, QWORD PTR -40[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	add	rsp, 72
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	pclose, .-pclose
	.section	.rodata
.LC2:
	.string	"/dev/null"
	.text
	.globl	packedopen
	.type	packedopen, @function
packedopen:
.LFB3:
	.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, 72
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	basename@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	QWORD PTR -48[rbp], 0
	lea	rax, -72[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	pipe@PLT
	test	eax, eax
	jns	.L43
	mov	eax, -1
	jmp	.L52
.L43:
	mov	eax, DWORD PTR -72[rbp]
	mov	r12d, eax
	mov	eax, DWORD PTR -68[rbp]
	mov	r13d, eax
	call	fork@PLT
	movsx	rbx, eax
	test	rbx, rbx
	jne	.L45
	movsx	eax, r12w
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	cmp	r13w, 1
	je	.L46
	mov	edi, 1
	mov	eax, 0
	call	close@PLT
	movsx	eax, r13w
	mov	edx, 1
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	movsx	eax, r13w
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
.L46:
	mov	esi, 0
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	ebx, eax
	test	ebx, ebx
	je	.L47
	mov	edi, 0
	mov	eax, 0
	call	close@PLT
	mov	edx, 0
	mov	esi, 0
	mov	edi, ebx
	mov	eax, 0
	call	fcntl@PLT
	mov	edi, ebx
	mov	eax, 0
	call	close@PLT
.L47:
	mov	QWORD PTR p_state[rip+8], 0
	mov	QWORD PTR p_state[rip+24], 0
	mov	ebx, 0
	jmp	.L48
.L50:
	movsx	rax, ebx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L49
	mov	edi, ebx
	mov	eax, 0
	call	close@PLT
.L49:
	add	ebx, 1
.L48:
	cmp	ebx, 19
	jle	.L50
	lea	rdx, -64[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	edi, 1
	call	_exit@PLT
.L45:
	cmp	rbx, -1
	jne	.L51
	mov	eax, -1
	jmp	.L52
.L51:
	movsx	eax, r12w
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+8]
	mov	QWORD PTR [rdx+rax], rbx
	movsx	eax, r12w
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip]
	mov	WORD PTR [rdx+rax], 1
	movsx	eax, r13w
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	movsx	eax, r12w
.L52:
	mov	rcx, QWORD PTR -40[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	add	rsp, 72
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	packedopen, .-packedopen
	.globl	packedclose
	.type	packedclose, @function
packedclose:
.LFB4:
	.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	ebx, edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	edi, ebx
	mov	eax, 0
	call	close@PLT
	test	ebx, ebx
	js	.L55
	cmp	ebx, 19
	jle	.L56
.L55:
	mov	eax, -1
	jmp	.L68
.L56:
	movsx	rax, ebx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip]
	movzx	eax, WORD PTR [rdx+rax]
	cmp	ax, 2
	jne	.L58
	movsx	rax, ebx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+8]
	mov	QWORD PTR [rdx+rax], 0
	movsx	rax, ebx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip]
	mov	WORD PTR [rdx+rax], 0
	movsx	rax, ebx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+2]
	movzx	eax, WORD PTR [rdx+rax]
	cwde
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L59
	mov	eax, DWORD PTR -68[rbp]
	sar	eax, 8
	movzx	eax, al
	test	eax, eax
	jne	.L59
	mov	eax, 0
	jmp	.L68
.L59:
	mov	eax, 1
	jmp	.L68
.L58:
	mov	esi, 1
	mov	edi, 2
	call	signal@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	esi, 1
	mov	edi, 3
	call	signal@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	esi, 1
	mov	edi, 1
	call	signal@PLT
	mov	QWORD PTR -48[rbp], rax
	jmp	.L60
.L65:
	cmp	r13, -1
	je	.L60
	mov	r12d, 0
	jmp	.L61
.L63:
	movsx	eax, r12w
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	cmp	r13, rax
	jne	.L62
	movsx	eax, r12w
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip]
	movzx	eax, WORD PTR [rdx+rax]
	cmp	ax, 1
	jne	.L62
	movsx	eax, r12w
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip]
	mov	WORD PTR [rdx+rax], 2
	mov	edx, DWORD PTR -68[rbp]
	movsx	eax, r12w
	mov	ecx, edx
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+2]
	mov	WORD PTR [rdx+rax], cx
	jmp	.L60
.L62:
	mov	eax, r12d
	add	eax, 1
	mov	r12d, eax
.L61:
	cmp	r12w, 19
	jle	.L63
.L60:
	lea	rax, -68[rbp]
	mov	rdi, rax
	call	wait@PLT
	movsx	r13, eax
	movsx	rax, ebx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	cmp	r13, rax
	je	.L64
	cmp	r13, -1
	jne	.L65
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L65
.L64:
	cmp	r13, -1
	jne	.L66
	mov	DWORD PTR -68[rbp], -1
.L66:
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	signal@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	mov	edi, 3
	call	signal@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	signal@PLT
	movsx	rax, ebx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+8]
	mov	QWORD PTR [rdx+rax], 0
	movsx	rax, ebx
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip]
	mov	WORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -68[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L67
	mov	eax, DWORD PTR -68[rbp]
	sar	eax, 8
	movzx	eax, al
	test	eax, eax
	jne	.L67
	mov	eax, 0
	jmp	.L68
.L67:
	mov	eax, 1
.L68:
	mov	rcx, QWORD PTR -40[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L69
	call	__stack_chk_fail@PLT
.L69:
	add	rsp, 56
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	packedclose, .-packedclose
	.section	.rodata
.LC3:
	.string	"r"
	.text
	.globl	packfpopen
	.type	packfpopen, @function
packfpopen:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	packedopen
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L71
	mov	eax, 0
	jmp	.L72
.L71:
	mov	eax, DWORD PTR -12[rbp]
	lea	rsi, .LC3[rip]
	mov	edi, eax
	call	fdopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L73
	cmp	DWORD PTR -12[rbp], 19
	jg	.L74
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+8]
	mov	QWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+2]
	mov	WORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip]
	mov	WORD PTR [rdx+rax], 0
.L74:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, 0
	jmp	.L72
.L73:
	mov	rax, QWORD PTR -8[rbp]
.L72:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	packfpopen, .-packfpopen
	.globl	pkclose
	.type	pkclose, @function
pkclose:
.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, 24
	.cfi_offset 3, -24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fileno@PLT
	mov	ebx, eax
	test	bx, bx
	js	.L76
	cmp	bx, 19
	jg	.L76
	movsx	eax, bx
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L76
	movsx	eax, bx
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, p_state[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
.L76:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pclose
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	pkclose, .-pkclose
	.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	"690994.c"
	.text
	.local	p_state
	.comm	p_state,160,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	popenv, %function
popenv:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #36
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldr	r3, [fp, #-56]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #114
	beq	.L2
	ldr	r3, [fp, #-56]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #119
	beq	.L2
	mov	r3, #0
	b	.L25
.L2:
	sub	r3, fp, #40
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	mov	r3, #0
	b	.L25
.L4:
	ldr	r3, [fp, #-56]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #114
	bne	.L5
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #16
	asr	r5, r3, #16
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #16
	asr	r6, r3, #16
	b	.L6
.L5:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #16
	asr	r5, r3, #16
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #16
	asr	r6, r3, #16
.L6:
	bl	fork
	mov	r3, r0
	mov	r4, r3
	cmp	r4, #0
	bne	.L7
	mov	r3, r5
	mov	r0, r3
	bl	close
	mov	r8, #0
	ldr	r3, [fp, #-56]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #114
	bne	.L8
	ldr	r3, [fp, #-56]
	add	r4, r3, #1
	b	.L9
.L19:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L10
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L11
.L10:
	add	r4, r4, #1
	b	.L9
.L11:
	mov	r5, #0
	b	.L12
.L14:
	lsl	r3, r5, #16
	lsr	r3, r3, #16
	mov	r2, r3	@ movhi
	lsl	r2, r2, #2
	add	r3, r2, r3
	lsl	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	mov	r3, r4
	add	r4, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	sub	r3, r3, #48
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r5, r3, #16
.L12:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L13
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L14
.L13:
	cmp	r5, #19
	bgt	.L9
	cmp	r5, r6
	bne	.L16
	b	.L9
.L16:
	mov	r3, r5
	mov	r2, #0
	mov	r1, #3
	mov	r0, r3
	bl	fcntl
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r7, r3, #16
	cmn	r7, #1
	beq	.L9
	lsl	r3, r7, #16
	lsr	r3, r3, #16
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L18
	b	.L9
.L18:
	mov	r3, r5
	mov	r0, r3
	bl	close
	mov	r3, r6
	mov	r2, r5
	mov	r1, #0
	mov	r0, r3
	bl	fcntl
	mov	r3, r5
	ldr	r2, .L27+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	mov	r8, #1
.L9:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L19
.L8:
	cmp	r8, #0
	bne	.L20
	ldr	r3, [fp, #-56]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #114
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	strh	r3, [fp, #-42]	@ movhi
	ldrsh	r3, [fp, #-42]
	cmp	r3, r6
	beq	.L20
	ldrsh	r3, [fp, #-42]
	mov	r0, r3
	bl	close
	mov	r0, r6
	ldrsh	r3, [fp, #-42]
	mov	r2, r3
	mov	r1, #0
	bl	fcntl
.L20:
	mov	r3, r6
	mov	r0, r3
	bl	close
	mov	r4, #0
	b	.L21
.L23:
	mov	r3, r4
	ldr	r2, .L27+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L22
	mov	r3, r4
	mov	r0, r3
	bl	close
.L22:
	mov	r3, r4
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r4, r3, #16
.L21:
	cmp	r4, #19
	ble	.L23
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	execvp
	mov	r0, #1
	bl	_exit
.L7:
	cmn	r4, #1
	bne	.L24
	mov	r3, #0
	b	.L25
.L24:
	mov	r3, r5
	ldr	r2, .L27+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	str	r4, [r3, #4]
	mov	r3, r5
	ldr	r2, .L27+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	mov	r3, r6
	mov	r0, r3
	bl	close
	mov	r3, r5
	ldr	r1, [fp, #-56]
	mov	r0, r3
	bl	fdopen
	mov	r3, r0
.L25:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC0
	.word	p_state
	.size	popenv, .-popenv
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/bin/sh\000"
	.align	2
.LC2:
	.ascii	"-c\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	popen
	.syntax unified
	.arm
	.fpu softvfp
	.type	popen, %function
popen:
	@ 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, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L32+4
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-28]
	bl	basename
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, .L32+8
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #24
	ldr	r2, [fp, #-36]
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	popenv
	mov	r3, r0
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	popen, .-popen
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pclose
	.syntax unified
	.arm
	.fpu softvfp
	.type	pclose, %function
pclose:
	@ 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, #36
	str	r0, [fp, #-48]
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r0, [fp, #-48]
	bl	fileno
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r6, r3, #16
	ldr	r0, [fp, #-48]
	bl	fclose
	mov	r3, r6
	ldr	r2, .L46+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldrsh	r3, [r3]
	cmp	r3, #2
	bne	.L35
	mov	r3, r6
	ldr	r2, .L46+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	mov	r3, r6
	ldr	r2, .L46+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	mov	r3, r6
	ldr	r2, .L46+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r3, r3, #2
	ldrsh	r3, [r3]
	b	.L44
.L35:
	mov	r1, #1
	mov	r0, #2
	bl	signal
	str	r0, [fp, #-36]
	mov	r1, #1
	mov	r0, #3
	bl	signal
	str	r0, [fp, #-32]
	mov	r1, #1
	mov	r0, #1
	bl	signal
	str	r0, [fp, #-28]
	b	.L37
.L42:
	cmn	r4, #1
	beq	.L37
	mov	r5, #0
	b	.L38
.L40:
	mov	r3, r5
	ldr	r2, .L46+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r4, r3
	bne	.L39
	mov	r3, r5
	ldr	r2, .L46+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldrsh	r3, [r3]
	cmp	r3, #1
	bne	.L39
	mov	r3, r5
	ldr	r2, .L46+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-40]
	mov	r0, r5
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r1, .L46+4
	lsl	r3, r0, #3
	add	r3, r1, r3
	add	r3, r3, #2
	strh	r2, [r3]	@ movhi
	b	.L37
.L39:
	mov	r3, r5
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r5, r3, #16
.L38:
	cmp	r5, #19
	ble	.L40
.L37:
	sub	r3, fp, #40
	mov	r0, r3
	bl	wait
	mov	r4, r0
	mov	r3, r6
	ldr	r2, .L46+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r4, r3
	beq	.L41
	cmn	r4, #1
	bne	.L42
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L42
.L41:
	cmn	r4, #1
	bne	.L43
	mvn	r3, #0
	str	r3, [fp, #-40]
.L43:
	ldr	r1, [fp, #-36]
	mov	r0, #2
	bl	signal
	ldr	r1, [fp, #-32]
	mov	r0, #3
	bl	signal
	ldr	r1, [fp, #-28]
	mov	r0, #1
	bl	signal
	mov	r3, r6
	ldr	r2, .L46+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	mov	r3, r6
	ldr	r2, .L46+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-40]
.L44:
	ldr	r2, .L46
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L45
	bl	__stack_chk_fail
.L45:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC4
	.word	p_state
	.size	pclose, .-pclose
	.section	.rodata
	.align	2
.LC5:
	.ascii	"/dev/null\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	packedopen
	.syntax unified
	.arm
	.fpu softvfp
	.type	packedopen, %function
packedopen:
	@ 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, #36
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L60
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r0, [fp, #-48]
	bl	basename
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	sub	r3, fp, #44
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	bge	.L49
	mvn	r3, #0
	b	.L58
.L49:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #16
	asr	r6, r3, #16
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #16
	asr	r5, r3, #16
	bl	fork
	mov	r3, r0
	mov	r4, r3
	cmp	r4, #0
	bne	.L51
	mov	r3, r6
	mov	r0, r3
	bl	close
	cmp	r5, #1
	beq	.L52
	mov	r0, #1
	bl	close
	mov	r3, r5
	mov	r2, #1
	mov	r1, #0
	mov	r0, r3
	bl	fcntl
	mov	r3, r5
	mov	r0, r3
	bl	close
.L52:
	mov	r1, #0
	ldr	r0, .L60+4
	bl	open
	mov	r4, r0
	cmp	r4, #0
	beq	.L53
	mov	r0, #0
	bl	close
	mov	r2, #0
	mov	r1, #0
	mov	r0, r4
	bl	fcntl
	mov	r0, r4
	bl	close
.L53:
	ldr	r3, .L60+8
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L60+8
	mov	r2, #0
	str	r2, [r3, #12]
	mov	r4, #0
	b	.L54
.L56:
	ldr	r2, .L60+8
	lsl	r3, r4, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L55
	mov	r0, r4
	bl	close
.L55:
	add	r4, r4, #1
.L54:
	cmp	r4, #19
	ble	.L56
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	execvp
	mov	r0, #1
	bl	_exit
.L51:
	cmn	r4, #1
	bne	.L57
	mvn	r3, #0
	b	.L58
.L57:
	mov	r3, r6
	ldr	r2, .L60+8
	lsl	r3, r3, #3
	add	r3, r2, r3
	str	r4, [r3, #4]
	mov	r3, r6
	ldr	r2, .L60+8
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	mov	r3, r5
	mov	r0, r3
	bl	close
	mov	r3, r6
.L58:
	ldr	r2, .L60
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L59
	bl	__stack_chk_fail
.L59:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L61:
	.align	2
.L60:
	.word	.LC6
	.word	.LC5
	.word	p_state
	.size	packedopen, .-packedopen
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	packedclose
	.syntax unified
	.arm
	.fpu softvfp
	.type	packedclose, %function
packedclose:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #28
	mov	r4, r0
	ldr	r3, .L78
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r0, r4
	bl	close
	cmp	r4, #0
	blt	.L63
	cmp	r4, #19
	ble	.L64
.L63:
	mvn	r3, #0
	b	.L76
.L64:
	ldr	r2, .L78+4
	lsl	r3, r4, #3
	add	r3, r2, r3
	ldrsh	r3, [r3]
	cmp	r3, #2
	bne	.L66
	ldr	r2, .L78+4
	lsl	r3, r4, #3
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r2, .L78+4
	lsl	r3, r4, #3
	add	r3, r2, r3
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r2, .L78+4
	lsl	r3, r4, #3
	add	r3, r2, r3
	add	r3, r3, #2
	ldrsh	r3, [r3]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L67
	ldr	r3, [fp, #-40]
	asr	r3, r3, #8
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L67
	mov	r3, #0
	b	.L76
.L67:
	mov	r3, #1
	b	.L76
.L66:
	mov	r1, #1
	mov	r0, #2
	bl	signal
	str	r0, [fp, #-36]
	mov	r1, #1
	mov	r0, #3
	bl	signal
	str	r0, [fp, #-32]
	mov	r1, #1
	mov	r0, #1
	bl	signal
	str	r0, [fp, #-28]
	b	.L68
.L73:
	cmn	r5, #1
	beq	.L68
	mov	r6, #0
	b	.L69
.L71:
	mov	r3, r6
	ldr	r2, .L78+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r5, r3
	bne	.L70
	mov	r3, r6
	ldr	r2, .L78+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldrsh	r3, [r3]
	cmp	r3, #1
	bne	.L70
	mov	r3, r6
	ldr	r2, .L78+4
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-40]
	mov	r0, r6
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r1, .L78+4
	lsl	r3, r0, #3
	add	r3, r1, r3
	add	r3, r3, #2
	strh	r2, [r3]	@ movhi
	b	.L68
.L70:
	mov	r3, r6
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r6, r3, #16
.L69:
	cmp	r6, #19
	ble	.L71
.L68:
	sub	r3, fp, #40
	mov	r0, r3
	bl	wait
	mov	r5, r0
	ldr	r2, .L78+4
	lsl	r3, r4, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r5, r3
	beq	.L72
	cmn	r5, #1
	bne	.L73
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L73
.L72:
	cmn	r5, #1
	bne	.L74
	mvn	r3, #0
	str	r3, [fp, #-40]
.L74:
	ldr	r1, [fp, #-36]
	mov	r0, #2
	bl	signal
	ldr	r1, [fp, #-32]
	mov	r0, #3
	bl	signal
	ldr	r1, [fp, #-28]
	mov	r0, #1
	bl	signal
	ldr	r2, .L78+4
	lsl	r3, r4, #3
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r2, .L78+4
	lsl	r3, r4, #3
	add	r3, r2, r3
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-40]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L75
	ldr	r3, [fp, #-40]
	asr	r3, r3, #8
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L75
	mov	r3, #0
	b	.L76
.L75:
	mov	r3, #1
.L76:
	ldr	r2, .L78
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L77
	bl	__stack_chk_fail
.L77:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L79:
	.align	2
.L78:
	.word	.LC7
	.word	p_state
	.size	packedclose, .-packedclose
	.section	.rodata
	.align	2
.LC8:
	.ascii	"r\000"
	.text
	.align	2
	.global	packfpopen
	.syntax unified
	.arm
	.fpu softvfp
	.type	packfpopen, %function
packfpopen:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	packedopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L81
	mov	r3, #0
	b	.L82
.L81:
	ldr	r1, .L85
	ldr	r0, [fp, #-12]
	bl	fdopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L83
	ldr	r3, [fp, #-12]
	cmp	r3, #19
	bgt	.L84
	ldr	r2, .L85+4
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r1, #9
	mov	r0, r3
	bl	kill
	ldr	r2, .L85+4
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r2, .L85+4
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r3, r3, #2
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r2, .L85+4
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, #0
	strh	r2, [r3]	@ movhi
.L84:
	ldr	r0, [fp, #-12]
	bl	close
	mov	r3, #0
	b	.L82
.L83:
	ldr	r3, [fp, #-8]
.L82:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L86:
	.align	2
.L85:
	.word	.LC8
	.word	p_state
	.size	packfpopen, .-packfpopen
	.align	2
	.global	pkclose
	.syntax unified
	.arm
	.fpu softvfp
	.type	pkclose, %function
pkclose:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	fileno
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r4, r3, #16
	cmp	r4, #0
	blt	.L88
	cmp	r4, #19
	bgt	.L88
	mov	r3, r4
	ldr	r2, .L90
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L88
	mov	r3, r4
	ldr	r2, .L90
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r1, #9
	mov	r0, r3
	bl	kill
.L88:
	ldr	r0, [fp, #-16]
	bl	pclose
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L91:
	.align	2
.L90:
	.word	p_state
	.size	pkclose, .-pkclose
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
