	.file	"170453552.c"
	.intel_syntax noprefix
	.text
	.globl	gnu_dev_major
	.type	gnu_dev_major, @function
gnu_dev_major:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 8
	and	eax, 4095
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 32
	and	eax, -4096
	or	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	gnu_dev_major, .-gnu_dev_major
	.globl	gnu_dev_minor
	.type	gnu_dev_minor, @function
gnu_dev_minor:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, al
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 12
	mov	al, 0
	or	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	gnu_dev_minor, .-gnu_dev_minor
	.globl	gnu_dev_makedev
	.type	gnu_dev_makedev, @function
gnu_dev_makedev:
.LFB2:
	.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 -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	eax, DWORD PTR -8[rbp]
	movzx	edx, al
	mov	eax, DWORD PTR -4[rbp]
	sal	eax, 8
	and	eax, 1048320
	or	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	sal	rax, 12
	mov	rdx, rax
	movabs	rax, 17592184995840
	and	rax, rdx
	or	rcx, rax
	mov	rdx, rcx
	mov	eax, DWORD PTR -4[rbp]
	sal	rax, 32
	mov	rcx, rax
	movabs	rax, -17592186044416
	and	rax, rcx
	or	rax, rdx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	gnu_dev_makedev, .-gnu_dev_makedev
	.globl	stat
	.type	stat, @function
stat:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	__xstat@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	stat, .-stat
	.globl	lstat
	.type	lstat, @function
lstat:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	__lxstat@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	lstat, .-lstat
	.globl	fstat
	.type	fstat, @function
fstat:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	mov	edi, 1
	call	__fxstat@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	fstat, .-fstat
	.globl	fstatat
	.type	fstatat, @function
fstatat:
.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, 32
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -8[rbp], ecx
	mov	esi, DWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	r8d, esi
	mov	esi, eax
	mov	edi, 1
	call	__fxstatat@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fstatat, .-fstatat
	.globl	mknod
	.type	mknod, @function
mknod:
.LFB7:
	.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 -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	lea	rcx, -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	__xmknod@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	mknod, .-mknod
	.globl	mknodat
	.type	mknodat, @function
mknodat:
.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, 32
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -8[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	lea	rsi, -24[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	r8, rsi
	mov	esi, eax
	mov	edi, 0
	call	__xmknodat@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	mknodat, .-mknodat
	.globl	stat64
	.type	stat64, @function
stat64:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	__xstat64@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	stat64, .-stat64
	.globl	lstat64
	.type	lstat64, @function
lstat64:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	__lxstat64@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	lstat64, .-lstat64
	.globl	fstat64
	.type	fstat64, @function
fstat64:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	mov	edi, 1
	call	__fxstat64@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	fstat64, .-fstat64
	.globl	fstatat64
	.type	fstatat64, @function
fstatat64:
.LFB12:
	.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -8[rbp], ecx
	mov	esi, DWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	r8d, esi
	mov	esi, eax
	mov	edi, 1
	call	__fxstatat64@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	fstatat64, .-fstatat64
	.local	ptycmds
	.comm	ptycmds,8,8
	.type	ptynonblock, @function
ptynonblock:
.LFB13:
	.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	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	cdqe
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	je	.L28
	mov	rax, QWORD PTR -8[rbp]
	and	eax, 2048
	test	rax, rax
	jne	.L28
	mov	rax, QWORD PTR -8[rbp]
	or	ah, 8
	mov	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	test	eax, eax
	jne	.L28
	mov	eax, 1
	jmp	.L29
.L28:
	mov	eax, 0
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	ptynonblock, .-ptynonblock
	.type	ptygettyinfo, @function
ptygettyinfo:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], -1
	je	.L31
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tcgetattr@PLT
	cmp	eax, -1
	jne	.L32
	mov	eax, 1
	jmp	.L33
.L32:
	mov	eax, 0
	jmp	.L33
.L31:
	mov	eax, 1
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	ptygettyinfo, .-ptygettyinfo
	.type	ptysettyinfo, @function
ptysettyinfo:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], -1
	je	.L36
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 1
	mov	edi, eax
	call	tcsetattr@PLT
.L36:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	ptysettyinfo, .-ptysettyinfo
	.type	getptycmd, @function
getptycmd:
.LFB16:
	.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	rax, QWORD PTR ptycmds[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L38
.L41:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L39
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L40
.L39:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
.L38:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L41
	mov	eax, 0
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	getptycmd, .-getptycmd
	.section	.rodata
.LC0:
	.string	"/dev/ptmx"
	.text
	.type	get_pty, @function
get_pty:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 0
	je	.L43
	mov	esi, 258
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR mfd.2[rip], eax
	mov	eax, DWORD PTR mfd.2[rip]
	test	eax, eax
	jns	.L44
	mov	eax, 1
	jmp	.L45
.L44:
	mov	eax, DWORD PTR mfd.2[rip]
	mov	edi, eax
	call	grantpt@PLT
	test	eax, eax
	jne	.L46
	mov	eax, DWORD PTR mfd.2[rip]
	mov	edi, eax
	call	unlockpt@PLT
	test	eax, eax
	jne	.L46
	mov	eax, DWORD PTR mfd.2[rip]
	mov	edi, eax
	call	ptsname@PLT
	mov	QWORD PTR name.1[rip], rax
	mov	rax, QWORD PTR name.1[rip]
	test	rax, rax
	jne	.L47
.L46:
	mov	eax, DWORD PTR mfd.2[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L45
.L47:
	mov	edx, DWORD PTR mfd.2[rip]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 0
	jmp	.L45
.L43:
	mov	rax, QWORD PTR name.1[rip]
	mov	esi, 258
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR sfd.0[rip], eax
	mov	eax, DWORD PTR sfd.0[rip]
	test	eax, eax
	jns	.L48
	mov	eax, DWORD PTR mfd.2[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L45
.L48:
	mov	edx, DWORD PTR sfd.0[rip]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 0
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	get_pty, .-get_pty
	.section	.rodata
.LC1:
	.string	"(zpty)"
	.align 8
.LC2:
	.string	"can't open pseudo terminal: %e"
	.align 8
.LC3:
	.string	"can't create pty command %s: %e"
	.align 8
.LC4:
	.string	"failed to create new session: %e"
.LC5:
	.string	"%e"
.LC6:
	.string	"TTY"
.LC7:
	.string	"zpty"
.LC8:
	.string	"cannot duplicate fd %d: %e"
	.text
	.type	newptycmd, @function
newptycmd:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	QWORD PTR -136[rbp], rdi
	mov	QWORD PTR -144[rbp], rsi
	mov	QWORD PTR -152[rbp], rdx
	mov	DWORD PTR -156[rbp], ecx
	mov	DWORD PTR -160[rbp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR ineval[rip]
	mov	DWORD PTR -112[rbp], eax
	mov	rax, QWORD PTR scriptname[rip]
	mov	QWORD PTR -104[rbp], rax
	movzx	eax, BYTE PTR opts[rip+52]
	test	al, al
	sete	al
	movzx	eax, al
	mov	DWORD PTR ineval[rip], eax
	mov	eax, DWORD PTR ineval[rip]
	test	eax, eax
	jne	.L50
	lea	rax, .LC1[rip]
	mov	QWORD PTR scriptname[rip], rax
.L50:
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, 1
	mov	esi, 32
	mov	rdi, rax
	call	zjoin@PLT
	mov	esi, 0
	mov	rdi, rax
	call	parse_string@PLT
	mov	QWORD PTR -96[rbp], rax
	cmp	QWORD PTR -96[rbp], 0
	jne	.L51
	mov	DWORD PTR errflag[rip], 0
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR scriptname[rip], rax
	mov	eax, DWORD PTR -112[rbp]
	mov	DWORD PTR ineval[rip], eax
	mov	eax, 1
	jmp	.L65
.L51:
	lea	rax, -120[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	get_pty
	test	eax, eax
	je	.L53
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	zwarnnam@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR scriptname[rip], rax
	mov	eax, DWORD PTR -112[rbp]
	mov	DWORD PTR ineval[rip], eax
	mov	eax, 1
	jmp	.L65
.L53:
	call	fork@PLT
	mov	DWORD PTR -108[rbp], eax
	cmp	DWORD PTR -108[rbp], -1
	jne	.L54
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	zwarnnam@PLT
	mov	eax, DWORD PTR -120[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR scriptname[rip], rax
	mov	eax, DWORD PTR -112[rbp]
	mov	DWORD PTR ineval[rip], eax
	mov	eax, 1
	jmp	.L65
.L54:
	cmp	DWORD PTR -108[rbp], 0
	jne	.L55
	mov	edi, 0
	call	clearjobtab@PLT
	call	getppid@PLT
	cdqe
	mov	QWORD PTR ppid[rip], rax
	call	getpid@PLT
	cdqe
	mov	QWORD PTR mypid[rip], rax
	call	setsid@PLT
	movsx	rdx, eax
	mov	rax, QWORD PTR mypid[rip]
	cmp	rdx, rax
	je	.L56
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	zwarnnam@PLT
	mov	eax, DWORD PTR SHTTY[rip]
	mov	edx, 0
	mov	esi, 21538
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	je	.L57
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	zwarnnam@PLT
.L57:
	mov	rax, QWORD PTR mypid[rip]
	mov	esi, eax
	mov	edi, 0
	call	setpgid@PLT
.L56:
	lea	rax, -116[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	get_pty
	test	eax, eax
	je	.L58
	mov	edi, 1
	call	exit@PLT
.L58:
	movzx	eax, BYTE PTR opts[rip+87]
	test	al, al
	je	.L59
	mov	eax, DWORD PTR -116[rbp]
	lea	rdx, -80[rbp]
	add	rdx, 60
	mov	esi, 21523
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jne	.L59
	mov	rax, QWORD PTR zterm_lines[rip]
	mov	WORD PTR -20[rbp], ax
	mov	rax, QWORD PTR zterm_columns[rip]
	mov	WORD PTR -18[rbp], ax
	mov	eax, DWORD PTR -116[rbp]
	lea	rdx, -80[rbp]
	add	rdx, 60
	mov	esi, 21524
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
.L59:
	cmp	DWORD PTR -156[rbp], 0
	jne	.L61
	mov	eax, DWORD PTR -116[rbp]
	lea	rdx, -80[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ptygettyinfo
	test	eax, eax
	jne	.L61
	mov	eax, DWORD PTR -68[rbp]
	and	eax, -9
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -116[rbp]
	lea	rdx, -80[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ptysettyinfo
.L61:
	mov	eax, DWORD PTR -116[rbp]
	mov	edx, 0
	mov	esi, 21518
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	edi, 0
	call	close@PLT
	mov	edi, 1
	call	close@PLT
	mov	edi, 2
	call	close@PLT
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, 2
	mov	edi, eax
	call	dup2@PLT
	mov	edi, 0
	call	closem@PLT
	mov	eax, DWORD PTR -116[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -120[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR coprocin[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR coprocout[rip]
	mov	edi, eax
	call	close@PLT
	call	init_io@PLT
	mov	rax, QWORD PTR ttystrname[rip]
	mov	rdi, rax
	call	ztrdup@PLT
	mov	edx, 0
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	call	assignsparam@PLT
	mov	BYTE PTR opts[rip+87], 0
	mov	rax, QWORD PTR -96[rbp]
	lea	rcx, .LC7[rip]
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	execode@PLT
	mov	DWORD PTR stopmsg[rip], 2
	mov	rax, QWORD PTR lastval[rip]
	mov	esi, 0
	mov	edi, eax
	call	zexit@PLT
.L55:
	mov	eax, DWORD PTR -120[rbp]
	mov	edi, eax
	call	movefd@PLT
	mov	DWORD PTR -120[rbp], eax
	mov	eax, DWORD PTR -120[rbp]
	cmp	eax, -1
	jne	.L63
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	mov	edx, DWORD PTR -120[rbp]
	mov	rax, QWORD PTR -136[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	zerrnam@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR scriptname[rip], rax
	mov	eax, DWORD PTR -112[rbp]
	mov	DWORD PTR ineval[rip], eax
	mov	eax, 1
	jmp	.L65
.L63:
	mov	edi, 64
	call	zalloc@PLT
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	ztrdup@PLT
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	zarrdup@PLT
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	edx, DWORD PTR -120[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -108[rbp]
	mov	DWORD PTR 28[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -156[rbp]
	mov	DWORD PTR 32[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -160[rbp]
	mov	DWORD PTR 36[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 40[rax], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 44[rax], -1
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR 48[rax], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 56[rax], 0
	mov	rdx, QWORD PTR ptycmds[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR ptycmds[rip], rax
	cmp	DWORD PTR -160[rbp], 0
	je	.L64
	mov	eax, DWORD PTR -120[rbp]
	mov	edi, eax
	call	ptynonblock
.L64:
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR scriptname[rip], rax
	mov	eax, DWORD PTR -112[rbp]
	mov	DWORD PTR ineval[rip], eax
	mov	eax, 0
.L65:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L66
	call	__stack_chk_fail@PLT
.L66:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	newptycmd, .-newptycmd
	.type	deleteptycmd, @function
deleteptycmd:
.LFB19:
	.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 -8[rbp], 0
	mov	rax, QWORD PTR ptycmds[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L68
.L69:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
.L68:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jne	.L69
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jne	.L74
	cmp	QWORD PTR -8[rbp], 0
	je	.L72
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L73
.L72:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR ptycmds[rip], rax
.L73:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	zsfree@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	freearray@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	edi, eax
	call	zclose@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 28[rax]
	neg	eax
	mov	esi, 1
	mov	edi, eax
	call	kill@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	zfree@PLT
	jmp	.L67
.L74:
	nop
.L67:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	deleteptycmd, .-deleteptycmd
	.type	deleteallptycmds, @function
deleteallptycmds:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR ptycmds[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L76
.L77:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	deleteptycmd
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
.L76:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L77
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	deleteallptycmds, .-deleteallptycmds
	.type	checkptycmd, @function
checkptycmd:
.LFB21:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 44[rax]
	cmp	eax, -1
	jne	.L87
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 40[rax]
	test	eax, eax
	jne	.L87
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	lea	rcx, -13[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L82
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	esi, 0
	mov	edi, eax
	call	kill@PLT
	test	eax, eax
	jns	.L88
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 40[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	edi, eax
	call	zclose@PLT
	jmp	.L88
.L82:
	cmp	DWORD PTR -12[rbp], 0
	je	.L78
	movzx	eax, BYTE PTR -13[rbp]
	movsx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 44[rax], edx
	jmp	.L78
.L87:
	nop
	jmp	.L78
.L88:
	nop
.L78:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L86
	call	__stack_chk_fail@PLT
.L86:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	checkptycmd, .-checkptycmd
	.section	.rodata
.LC9:
	.string	"too many arguments"
.LC10:
	.string	"bad pattern: %s"
	.text
	.type	ptyread, @function
ptyread:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 272
	mov	QWORD PTR -248[rbp], rdi
	mov	QWORD PTR -256[rbp], rsi
	mov	QWORD PTR -264[rbp], rdx
	mov	DWORD PTR -268[rbp], ecx
	mov	DWORD PTR -272[rbp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -220[rbp], 0
	mov	DWORD PTR -216[rbp], 0
	mov	DWORD PTR -212[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	rax, QWORD PTR -264[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L90
	mov	rax, QWORD PTR -264[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L90
	mov	rax, QWORD PTR -264[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L91
	mov	rax, QWORD PTR -248[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	zwarnnam@PLT
	mov	eax, 1
	jmp	.L92
.L91:
	mov	rax, QWORD PTR -264[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	dupstring@PLT
	mov	QWORD PTR -176[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	tokenize@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	rdi, rax
	call	remnulargs@PLT
	mov	rax, QWORD PTR -176[rbp]
	mov	edx, 0
	mov	esi, 64
	mov	rdi, rax
	call	patcompile@PLT
	mov	QWORD PTR -184[rbp], rax
	cmp	QWORD PTR -184[rbp], 0
	jne	.L120
	mov	rax, QWORD PTR -264[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -248[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	zwarnnam@PLT
	mov	eax, 1
	jmp	.L92
.L90:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L94
.L120:
	nop
.L94:
	mov	rax, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	je	.L95
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 56[rax]
	mov	DWORD PTR -224[rbp], eax
	mov	eax, DWORD PTR -224[rbp]
	add	eax, 256
	mov	DWORD PTR -228[rbp], eax
	mov	eax, DWORD PTR -228[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	zhalloc@PLT
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 56[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -256[rbp]
	mov	rcx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -256[rbp]
	mov	edx, DWORD PTR 56[rax]
	mov	rax, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	esi, edx
	mov	rdi, rax
	call	zfree@PLT
	mov	rax, QWORD PTR -256[rbp]
	mov	QWORD PTR 48[rax], 0
	mov	rax, QWORD PTR -256[rbp]
	mov	DWORD PTR 56[rax], 0
	jmp	.L96
.L95:
	mov	DWORD PTR -224[rbp], 0
	mov	DWORD PTR -228[rbp], 256
	mov	eax, DWORD PTR -228[rbp]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	zhalloc@PLT
	mov	QWORD PTR -192[rbp], rax
.L96:
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 44[rax]
	cmp	eax, -1
	je	.L113
	mov	rax, QWORD PTR -256[rbp]
	mov	edx, DWORD PTR 44[rax]
	mov	eax, DWORD PTR -224[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -224[rbp], 1
	mov	eax, DWORD PTR -224[rbp]
	mov	DWORD PTR -220[rbp], eax
	mov	rax, QWORD PTR -256[rbp]
	mov	DWORD PTR 44[rax], -1
.L113:
	cmp	DWORD PTR -268[rbp], 0
	je	.L98
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 44[rax]
	cmp	eax, -1
	jne	.L98
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	lea	rax, -144[rbp]
	mov	QWORD PTR -168[rbp], rax
	mov	DWORD PTR -204[rbp], 0
	jmp	.L99
.L100:
	mov	rax, QWORD PTR -168[rbp]
	mov	edx, DWORD PTR -204[rbp]
	mov	QWORD PTR [rax+rdx*8], 0
	add	DWORD PTR -204[rbp], 1
.L99:
	cmp	DWORD PTR -204[rbp], 15
	jbe	.L100
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 24[rax]
	cdqe
	shr	rax, 6
	mov	rsi, QWORD PTR -144[rbp+rax*8]
	mov	rdx, QWORD PTR -256[rbp]
	mov	edx, DWORD PTR 24[rdx]
	and	edx, 63
	mov	edi, 1
	mov	ecx, edx
	sal	rdi, cl
	mov	rdx, rdi
	or	rdx, rsi
	mov	QWORD PTR -144[rbp+rax*8], rdx
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 24[rax]
	lea	edi, 1[rax]
	lea	rdx, -160[rbp]
	lea	rax, -144[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -208[rbp], eax
	cmp	DWORD PTR -208[rbp], 0
	jns	.L101
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 24[rax]
	lea	rdx, -200[rbp]
	mov	esi, eax
	mov	edi, 0
	call	setblock_fd@PLT
	test	eax, eax
	je	.L102
	mov	rax, QWORD PTR -256[rbp]
	lea	rcx, 44[rax]
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -208[rbp], eax
.L102:
	mov	rax, QWORD PTR -200[rbp]
	cmp	rax, -1
	je	.L101
	mov	rdx, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
.L101:
	cmp	DWORD PTR -208[rbp], 0
	je	.L121
.L98:
	cmp	DWORD PTR -216[rbp], 0
	jne	.L106
	mov	rax, QWORD PTR -256[rbp]
	mov	rdi, rax
	call	checkptycmd
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 40[rax]
	test	eax, eax
	jne	.L122
.L106:
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 44[rax]
	cmp	eax, -1
	jne	.L107
	mov	eax, DWORD PTR -224[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -192[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -216[rbp], eax
	cmp	DWORD PTR -216[rbp], 1
	jne	.L108
.L107:
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 44[rax]
	cmp	eax, -1
	je	.L109
	mov	DWORD PTR -216[rbp], 1
	mov	rax, QWORD PTR -256[rbp]
	mov	edx, DWORD PTR 44[rax]
	mov	eax, DWORD PTR -224[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -256[rbp]
	mov	DWORD PTR 44[rax], -1
.L109:
	mov	DWORD PTR -220[rbp], 1
	add	DWORD PTR -224[rbp], 1
	mov	eax, DWORD PTR -224[rbp]
	cmp	eax, DWORD PTR -228[rbp]
	jne	.L108
	mov	rax, QWORD PTR -264[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L110
	mov	eax, DWORD PTR -224[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write_loop@PLT
	mov	DWORD PTR -224[rbp], 0
	jmp	.L108
.L110:
	mov	eax, DWORD PTR -228[rbp]
	add	eax, eax
	movsx	rdx, eax
	mov	eax, DWORD PTR -228[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	hrealloc@PLT
	mov	QWORD PTR -192[rbp], rax
	sal	DWORD PTR -228[rbp]
.L108:
	mov	eax, DWORD PTR -224[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	cmp	QWORD PTR -184[rbp], 0
	jne	.L111
	cmp	DWORD PTR -216[rbp], 0
	jle	.L105
	mov	rax, QWORD PTR -264[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L112
	mov	eax, DWORD PTR -224[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L105
	jmp	.L112
.L111:
	cmp	DWORD PTR -216[rbp], 0
	jns	.L112
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L123
.L112:
	mov	eax, DWORD PTR errflag[rip]
	test	eax, eax
	jne	.L105
	mov	eax, DWORD PTR breaks[rip]
	test	eax, eax
	jne	.L105
	mov	eax, DWORD PTR retflag[rip]
	test	eax, eax
	jne	.L105
	mov	eax, DWORD PTR contflag[rip]
	test	eax, eax
	jne	.L105
	cmp	DWORD PTR -224[rbp], 1048575
	jg	.L105
	cmp	QWORD PTR -184[rbp], 0
	je	.L113
	cmp	DWORD PTR -216[rbp], 0
	je	.L113
	mov	rdx, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pattry@PLT
	mov	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -212[rbp], 0
	je	.L113
	jmp	.L105
.L121:
	nop
	jmp	.L105
.L122:
	nop
	jmp	.L105
.L123:
	nop
.L105:
	cmp	QWORD PTR -184[rbp], 0
	je	.L114
	cmp	DWORD PTR -216[rbp], 0
	jns	.L114
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L114
	mov	rax, QWORD PTR -256[rbp]
	mov	edx, DWORD PTR -224[rbp]
	mov	DWORD PTR 56[rax], edx
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 56[rax]
	cdqe
	mov	rdi, rax
	call	zalloc@PLT
	mov	rdx, QWORD PTR -256[rbp]
	mov	QWORD PTR 48[rdx], rax
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 56[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rcx, QWORD PTR -192[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, 1
	jmp	.L92
.L114:
	mov	rax, QWORD PTR -264[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L115
	mov	ecx, DWORD PTR -224[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	edx, 7
	mov	esi, ecx
	mov	rdi, rax
	call	metafy@PLT
	mov	rdi, rax
	call	ztrdup@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR -264[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	assignsparam@PLT
	jmp	.L116
.L115:
	cmp	DWORD PTR -224[rbp], 0
	je	.L116
	mov	eax, DWORD PTR -224[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -192[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write_loop@PLT
.L116:
	cmp	DWORD PTR -220[rbp], 0
	je	.L117
	cmp	QWORD PTR -184[rbp], 0
	je	.L118
	cmp	DWORD PTR -212[rbp], 0
	jne	.L118
	cmp	DWORD PTR -272[rbp], 0
	jne	.L117
.L118:
	mov	eax, 0
	jmp	.L92
.L117:
	mov	rax, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR 40[rax]
	add	eax, 1
.L92:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L119
	call	__stack_chk_fail@PLT
.L119:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	ptyread, .-ptyread
	.type	ptywritestr, @function
ptywritestr:
.LFB23:
	.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	DWORD PTR -4[rbp], 0
	jmp	.L125
.L132:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jns	.L126
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 36[rax]
	test	eax, eax
	je	.L126
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L126
	cmp	DWORD PTR -4[rbp], 0
	sete	al
	movzx	eax, al
	jmp	.L127
.L126:
	cmp	DWORD PTR -8[rbp], 0
	jns	.L128
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	checkptycmd
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 40[rax]
	test	eax, eax
	jne	.L135
	mov	DWORD PTR -8[rbp], 0
.L128:
	cmp	DWORD PTR -8[rbp], 0
	jle	.L131
	mov	eax, DWORD PTR -8[rbp]
	add	DWORD PTR -4[rbp], eax
.L131:
	mov	eax, DWORD PTR -8[rbp]
	sub	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	add	QWORD PTR -32[rbp], rax
.L125:
	mov	eax, DWORD PTR errflag[rip]
	test	eax, eax
	jne	.L130
	mov	eax, DWORD PTR breaks[rip]
	test	eax, eax
	jne	.L130
	mov	eax, DWORD PTR retflag[rip]
	test	eax, eax
	jne	.L130
	mov	eax, DWORD PTR contflag[rip]
	test	eax, eax
	jne	.L130
	cmp	DWORD PTR -36[rbp], 0
	jne	.L132
	jmp	.L130
.L135:
	nop
.L130:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L133
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 40[rax]
	add	eax, 1
	jmp	.L127
.L133:
	mov	eax, 0
.L127:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	ptywritestr, .-ptywritestr
	.type	ptywrite, @function
ptywrite:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 80
	mov	QWORD PTR -8248[rbp], rdi
	mov	QWORD PTR -8256[rbp], rsi
	mov	DWORD PTR -8260[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -8256[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L145
	mov	BYTE PTR -8225[rbp], 32
	jmp	.L138
.L141:
	mov	rax, QWORD PTR -8256[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	dupstring@PLT
	mov	QWORD PTR -8216[rbp], rax
	lea	rdx, -8224[rbp]
	mov	rax, QWORD PTR -8216[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	unmetafy@PLT
	mov	edx, DWORD PTR -8224[rbp]
	mov	rcx, QWORD PTR -8216[rbp]
	mov	rax, QWORD PTR -8248[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	ptywritestr
	test	eax, eax
	jne	.L139
	add	QWORD PTR -8256[rbp], 8
	mov	rax, QWORD PTR -8256[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L138
	lea	rcx, -8225[rbp]
	mov	rax, QWORD PTR -8248[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	ptywritestr
	test	eax, eax
	je	.L138
.L139:
	mov	eax, 1
	jmp	.L144
.L138:
	mov	rax, QWORD PTR -8256[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L141
	cmp	DWORD PTR -8260[rbp], 0
	jne	.L143
	mov	BYTE PTR -8225[rbp], 10
	lea	rcx, -8225[rbp]
	mov	rax, QWORD PTR -8248[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	ptywritestr
	test	eax, eax
	je	.L143
	mov	eax, 1
	jmp	.L144
.L146:
	mov	edx, DWORD PTR -8220[rbp]
	lea	rcx, -8208[rbp]
	mov	rax, QWORD PTR -8248[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	ptywritestr
	test	eax, eax
	je	.L145
	mov	eax, 1
	jmp	.L144
.L145:
	lea	rax, -8208[rbp]
	mov	edx, 8192
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -8220[rbp], eax
	cmp	DWORD PTR -8220[rbp], 0
	jg	.L146
.L143:
	mov	eax, 0
.L144:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L147
	call	__stack_chk_fail@PLT
.L147:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	ptywrite, .-ptywrite
	.section	.rodata
.LC11:
	.string	"illegal option combination"
.LC12:
	.string	"missing pty command name"
.LC13:
	.string	"no such pty command: %s"
.LC14:
	.string	"missing command"
	.align 8
.LC15:
	.string	"pty command name already used: %s"
.LC16:
	.string	"-b "
.LC17:
	.string	""
.LC18:
	.string	"-e "
.LC19:
	.string	"%s %s%s%s "
.LC20:
	.string	"(finished) %s: "
.LC21:
	.string	"(%d) %s: "
	.text
	.type	bin_zpty, @function
bin_zpty:
.LFB25:
	.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 -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	DWORD PTR -76[rbp], ecx
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 114[rax]
	test	al, al
	je	.L149
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 119[rax]
	test	al, al
	jne	.L150
.L149:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 114[rax]
	test	al, al
	jne	.L151
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 119[rax]
	test	al, al
	je	.L152
.L151:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 100[rax]
	test	al, al
	jne	.L150
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 101[rax]
	test	al, al
	jne	.L150
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 98[rax]
	test	al, al
	jne	.L150
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 76[rax]
	test	al, al
	jne	.L150
.L152:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 119[rax]
	test	al, al
	je	.L153
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 116[rax]
	test	al, al
	jne	.L150
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 109[rax]
	test	al, al
	jne	.L150
.L153:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 110[rax]
	test	al, al
	je	.L154
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 98[rax]
	test	al, al
	jne	.L150
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 101[rax]
	test	al, al
	jne	.L150
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 114[rax]
	test	al, al
	jne	.L150
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 116[rax]
	test	al, al
	jne	.L150
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 100[rax]
	test	al, al
	jne	.L150
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 76[rax]
	test	al, al
	jne	.L150
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 109[rax]
	test	al, al
	jne	.L150
.L154:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 100[rax]
	test	al, al
	je	.L155
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 98[rax]
	test	al, al
	jne	.L150
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 101[rax]
	test	al, al
	jne	.L150
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 76[rax]
	test	al, al
	jne	.L150
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 116[rax]
	test	al, al
	jne	.L150
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 109[rax]
	test	al, al
	jne	.L150
.L155:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 76[rax]
	test	al, al
	je	.L156
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 98[rax]
	test	al, al
	jne	.L150
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 101[rax]
	test	al, al
	jne	.L150
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 109[rax]
	test	al, al
	je	.L156
.L150:
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	zwarnnam@PLT
	mov	eax, 1
	jmp	.L157
.L156:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 114[rax]
	test	al, al
	jne	.L158
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 119[rax]
	test	al, al
	je	.L159
.L158:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L160
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	zwarnnam@PLT
	mov	eax, 1
	jmp	.L157
.L160:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	getptycmd
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L161
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	zwarnnam@PLT
	mov	eax, 1
	jmp	.L157
.L161:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 40[rax]
	test	eax, eax
	je	.L162
	mov	eax, 2
	jmp	.L157
.L162:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 114[rax]
	test	al, al
	je	.L163
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 109[rax]
	test	al, al
	setne	al
	movzx	ecx, al
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 116[rax]
	test	al, al
	setne	al
	movzx	edx, al
	mov	rax, QWORD PTR -64[rbp]
	lea	rdi, 8[rax]
	mov	rsi, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	rdx, rdi
	mov	rdi, rax
	call	ptyread
	jmp	.L157
.L163:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 110[rax]
	test	al, al
	setne	al
	movzx	edx, al
	mov	rax, QWORD PTR -64[rbp]
	lea	rcx, 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	ptywrite
	jmp	.L157
.L159:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 100[rax]
	test	al, al
	je	.L165
	mov	DWORD PTR -44[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L166
	jmp	.L167
.L169:
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -64[rbp], rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	getptycmd
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L168
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	deleteptycmd
	jmp	.L167
.L168:
	mov	rax, QWORD PTR -64[rbp]
	sub	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	zwarnnam@PLT
	mov	DWORD PTR -44[rbp], 1
.L167:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L169
	jmp	.L170
.L166:
	call	deleteallptycmds
.L170:
	mov	eax, DWORD PTR -44[rbp]
	jmp	.L157
.L165:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 116[rax]
	test	al, al
	je	.L171
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L172
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	zwarnnam@PLT
	mov	eax, 1
	jmp	.L157
.L172:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	getptycmd
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L173
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	zwarnnam@PLT
	mov	eax, 1
	jmp	.L157
.L173:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	checkptycmd
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 40[rax]
	jmp	.L157
.L171:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L174
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L175
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	zwarnnam@PLT
	mov	eax, 1
	jmp	.L157
.L175:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	getptycmd
	test	rax, rax
	je	.L176
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	zwarnnam@PLT
	mov	eax, 1
	jmp	.L157
.L176:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 98[rax]
	test	al, al
	setne	al
	movzx	ecx, al
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 101[rax]
	test	al, al
	setne	al
	movzx	edx, al
	mov	rax, QWORD PTR -64[rbp]
	lea	rdi, 8[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	mov	rdx, rdi
	mov	rdi, rax
	call	newptycmd
	jmp	.L157
.L174:
	mov	rax, QWORD PTR ptycmds[rip]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L177
.L187:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	checkptycmd
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR 76[rax]
	test	al, al
	je	.L178
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 36[rax]
	test	eax, eax
	je	.L179
	lea	rdx, .LC16[rip]
	jmp	.L180
.L179:
	lea	rdx, .LC17[rip]
.L180:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 32[rax]
	test	eax, eax
	je	.L181
	lea	rax, .LC18[rip]
	jmp	.L182
.L181:
	lea	rax, .LC17[rip]
.L182:
	mov	rsi, QWORD PTR -56[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L183
.L178:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 40[rax]
	test	eax, eax
	je	.L184
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L183
.L184:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
.L183:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L185
.L186:
	mov	rdx, QWORD PTR stdout[rip]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, 8[rax]
	mov	QWORD PTR -32[rbp], rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	quotedzputs@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L185
	mov	edi, 32
	call	putchar@PLT
.L185:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L186
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -40[rbp], rax
.L177:
	cmp	QWORD PTR -40[rbp], 0
	jne	.L187
	mov	eax, 0
.L157:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	bin_zpty, .-bin_zpty
	.type	ptyhook, @function
ptyhook:
.LFB26:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	call	deleteallptycmds
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	ptyhook, .-ptyhook
	.section	.rodata
.LC22:
	.string	"ebdmrwLnt"
	.section	.data.rel.local,"aw"
	.align 32
	.type	bintab, @object
	.size	bintab, 64
bintab:
	.quad	0
	.quad	.LC7
	.long	0
	.zero	4
	.quad	bin_zpty
	.long	0
	.long	-1
	.long	0
	.zero	4
	.quad	.LC22
	.quad	0
	.align 32
	.type	module_features, @object
	.size	module_features, 64
module_features:
	.quad	bintab
	.long	1
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.long	0
	.text
	.globl	setup_
	.type	setup_, @function
setup_:
.LFB27:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	setup_, .-setup_
	.globl	features_
	.type	features_, @function
features_:
.LFB28:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, module_features[rip]
	mov	rdi, rax
	call	featuresarray@PLT
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	features_, .-features_
	.globl	enables_
	.type	enables_, @function
enables_:
.LFB29:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rsi, module_features[rip]
	mov	rdi, rax
	call	handlefeatures@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	enables_, .-enables_
	.section	.rodata
.LC23:
	.string	"exit"
	.text
	.globl	boot_
	.type	boot_, @function
boot_:
.LFB30:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR ptycmds[rip], 0
	lea	rsi, ptyhook[rip]
	lea	rdi, .LC23[rip]
	call	addhookfunc@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE30:
	.size	boot_, .-boot_
	.globl	cleanup_
	.type	cleanup_, @function
cleanup_:
.LFB31:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rsi, ptyhook[rip]
	lea	rdi, .LC23[rip]
	call	deletehookfunc@PLT
	call	deleteallptycmds
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	lea	rsi, module_features[rip]
	mov	rdi, rax
	call	setfeatureenables@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE31:
	.size	cleanup_, .-cleanup_
	.globl	finish_
	.type	finish_, @function
finish_:
.LFB32:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE32:
	.size	finish_, .-finish_
	.local	mfd.2
	.comm	mfd.2,4,4
	.local	name.1
	.comm	name.1,8,8
	.local	sfd.0
	.comm	sfd.0,4,4
	.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	"170453552.c"
	.text
	.align	2
	.global	gnu_dev_major
	.syntax unified
	.arm
	.fpu softvfp
	.type	gnu_dev_major, %function
gnu_dev_major:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, fp}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r0, #8
	orr	r2, r2, r1, lsl #24
	lsr	r3, r1, #8
	mov	r3, r2
	lsl	r1, r3, #20
	lsr	r1, r1, #20
	sub	r5, fp, #20
	ldmia	r5, {r4-r5}
	mov	r2, #0
	mov	r3, #0
	mov	r2, r5
	mov	r3, #0
	mov	r3, r2
	bic	r3, r3, #4080
	bic	r3, r3, #15
	orr	r3, r1, r3
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, r5, fp}
	bx	lr
	.size	gnu_dev_major, .-gnu_dev_major
	.align	2
	.global	gnu_dev_minor
	.syntax unified
	.arm
	.fpu softvfp
	.type	gnu_dev_minor, %function
gnu_dev_minor:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	ldr	r3, [fp, #-12]
	and	ip, r3, #255
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r0, #12
	orr	r2, r2, r1, lsl #20
	lsr	r3, r1, #12
	mov	r3, r2
	bic	r3, r3, #255
	orr	r3, ip, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	gnu_dev_minor, .-gnu_dev_minor
	.align	2
	.global	gnu_dev_makedev
	.syntax unified
	.arm
	.fpu softvfp
	.type	gnu_dev_makedev, %function
gnu_dev_makedev:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, r8, r9, fp}
	add	fp, sp, #24
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-36]
	and	r2, r3, #255
	ldr	r3, [fp, #-32]
	lsl	r1, r3, #8
	ldr	r3, .L7+8
	and	r3, r3, r1
	orr	r3, r2, r3
	mov	r0, r3
	mov	r1, #0
	ldr	r3, [fp, #-36]
	mov	r2, r3
	mov	r3, #0
	lsr	ip, r2, #20
	str	ip, [fp, #-40]
	lsl	r3, r2, #12
	str	r3, [fp, #-44]
	adr	r3, .L7
	ldmia	r3, {r2-r3}
	ldr	ip, [fp, #-44]
	and	r8, ip, r2
	ldr	ip, [fp, #-40]
	and	ip, ip, r3
	mov	r9, ip
	orr	r6, r0, r8
	orr	r7, r1, r9
	ldr	r3, [fp, #-32]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	mov	r3, r0
	mov	r2, #0
	mov	r0, #0
	ldr	r1, .L7+12
	and	r4, r2, r0
	and	r5, r3, r1
	orr	r3, r6, r4
	str	r3, [fp, #-52]
	orr	r3, r7, r5
	str	r3, [fp, #-48]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp}
	bx	lr
.L8:
	.align	3
.L7:
	.word	-1048576
	.word	4095
	.word	1048320
	.word	-4096
	.size	gnu_dev_makedev, .-gnu_dev_makedev
	.align	2
	.global	stat
	.syntax unified
	.arm
	.fpu softvfp
	.type	stat, %function
stat:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, #1
	bl	__xstat
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	stat, .-stat
	.align	2
	.global	lstat
	.syntax unified
	.arm
	.fpu softvfp
	.type	lstat, %function
lstat:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, #1
	bl	__lxstat
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	lstat, .-lstat
	.align	2
	.global	fstat
	.syntax unified
	.arm
	.fpu softvfp
	.type	fstat, %function
fstat:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, #1
	bl	__fxstat
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	fstat, .-fstat
	.align	2
	.global	fstatat
	.syntax unified
	.arm
	.fpu softvfp
	.type	fstatat, %function
fstatat:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, #1
	bl	__fxstatat
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	fstatat, .-fstatat
	.align	2
	.global	mknod
	.syntax unified
	.arm
	.fpu softvfp
	.type	mknod, %function
mknod:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	sub	r3, fp, #16
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, #0
	bl	__xmknod
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mknod, .-mknod
	.align	2
	.global	mknodat
	.syntax unified
	.arm
	.fpu softvfp
	.type	mknodat, %function
mknodat:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	sub	r3, fp, #20
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, #0
	bl	__xmknodat
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mknodat, .-mknodat
	.align	2
	.global	stat64
	.syntax unified
	.arm
	.fpu softvfp
	.type	stat64, %function
stat64:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, #1
	bl	__xstat64
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	stat64, .-stat64
	.align	2
	.global	lstat64
	.syntax unified
	.arm
	.fpu softvfp
	.type	lstat64, %function
lstat64:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, #1
	bl	__lxstat64
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	lstat64, .-lstat64
	.align	2
	.global	fstat64
	.syntax unified
	.arm
	.fpu softvfp
	.type	fstat64, %function
fstat64:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, #1
	bl	__fxstat64
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	fstat64, .-fstat64
	.align	2
	.global	fstatat64
	.syntax unified
	.arm
	.fpu softvfp
	.type	fstatat64, %function
fstatat64:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	mov	r0, #1
	bl	__fxstatat64
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	fstatat64, .-fstatat64
	.local	ptycmds
	.comm	ptycmds,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ptynonblock, %function
ptynonblock:
	@ 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]
	mov	r2, #0
	mov	r1, #3
	ldr	r0, [fp, #-16]
	bl	fcntl
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L30
	ldr	r3, [fp, #-8]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-8]
	orr	r3, r3, #2048
	mov	r2, r3
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	fcntl
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	mov	r3, #1
	b	.L31
.L30:
	mov	r3, #0
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ptynonblock, .-ptynonblock
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ptygettyinfo, %function
ptygettyinfo:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L33
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	tcgetattr
	mov	r3, r0
	cmn	r3, #1
	bne	.L34
	mov	r3, #1
	b	.L35
.L34:
	mov	r3, #0
	b	.L35
.L33:
	mov	r3, #1
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ptygettyinfo, .-ptygettyinfo
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ptysettyinfo, %function
ptysettyinfo:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L38
	ldr	r3, [fp, #-12]
	mov	r2, r3
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	tcsetattr
.L38:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ptysettyinfo, .-ptysettyinfo
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	getptycmd, %function
getptycmd:
	@ 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, .L44
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L40
.L43:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L41
	ldr	r3, [fp, #-8]
	b	.L42
.L41:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L40:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L43
	mov	r3, #0
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	ptycmds
	.size	getptycmd, .-getptycmd
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/ptmx\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_pty, %function
get_pty:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L47
	ldr	r1, .L53
	ldr	r0, .L53+4
	bl	open
	mov	r3, r0
	ldr	r2, .L53+8
	str	r3, [r2]
	ldr	r3, .L53+8
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L48
	mov	r3, #1
	b	.L49
.L48:
	ldr	r3, .L53+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	grantpt
	mov	r3, r0
	cmp	r3, #0
	bne	.L50
	ldr	r3, .L53+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	unlockpt
	mov	r3, r0
	cmp	r3, #0
	bne	.L50
	ldr	r3, .L53+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	ptsname
	mov	r3, r0
	ldr	r2, .L53+12
	str	r3, [r2]
	ldr	r3, .L53+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L51
.L50:
	ldr	r3, .L53+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r3, #1
	b	.L49
.L51:
	ldr	r3, .L53+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	mov	r3, #0
	b	.L49
.L47:
	ldr	r3, .L53+12
	ldr	r3, [r3]
	ldr	r1, .L53
	mov	r0, r3
	bl	open
	mov	r3, r0
	ldr	r2, .L53+16
	str	r3, [r2]
	ldr	r3, .L53+16
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L52
	ldr	r3, .L53+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r3, #1
	b	.L49
.L52:
	ldr	r3, .L53+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	mov	r3, #0
.L49:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	258
	.word	.LC0
	.word	mfd.13277
	.word	name.13276
	.word	sfd.13278
	.size	get_pty, .-get_pty
	.section	.rodata
	.align	2
.LC1:
	.ascii	"(zpty)\000"
	.align	2
.LC2:
	.ascii	"can't open pseudo terminal: %e\000"
	.align	2
.LC3:
	.ascii	"can't create pty command %s: %e\000"
	.align	2
.LC4:
	.ascii	"failed to create new session: %e\000"
	.align	2
.LC5:
	.ascii	"%e\000"
	.align	2
.LC6:
	.ascii	"TTY\000"
	.align	2
.LC7:
	.ascii	"zpty\000"
	.align	2
.LC8:
	.ascii	"cannot duplicate fd %d: %e\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	newptycmd, %function
newptycmd:
	@ args = 4, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #124
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	str	r2, [fp, #-128]
	str	r3, [fp, #-132]
	ldr	r3, .L73
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L73+4
	ldr	r3, [r3]
	str	r3, [fp, #-104]
	ldr	r3, .L73+8
	ldr	r3, [r3]
	str	r3, [fp, #-100]
	ldr	r3, .L73+12
	ldrb	r3, [r3, #52]	@ zero_extendqisi2
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, .L73+4
	str	r2, [r3]
	ldr	r3, .L73+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L56
	ldr	r3, .L73+8
	ldr	r2, .L73+16
	str	r2, [r3]
.L56:
	mov	r2, #1
	mov	r1, #32
	ldr	r0, [fp, #-128]
	bl	zjoin
	mov	r3, r0
	mov	r1, #0
	mov	r0, r3
	bl	parse_string
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bne	.L57
	ldr	r3, .L73+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r2, .L73+8
	ldr	r3, [fp, #-100]
	str	r3, [r2]
	ldr	r2, .L73+4
	ldr	r3, [fp, #-104]
	str	r3, [r2]
	mov	r3, #1
	b	.L71
.L57:
	sub	r3, fp, #112
	mov	r1, r3
	mov	r0, #1
	bl	get_pty
	mov	r3, r0
	cmp	r3, #0
	beq	.L59
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L73+24
	ldr	r0, [fp, #-120]
	bl	zwarnnam
	ldr	r2, .L73+8
	ldr	r3, [fp, #-100]
	str	r3, [r2]
	ldr	r2, .L73+4
	ldr	r3, [fp, #-104]
	str	r3, [r2]
	mov	r3, #1
	b	.L71
.L59:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmn	r3, #1
	bne	.L60
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, [fp, #-124]
	ldr	r1, .L73+28
	ldr	r0, [fp, #-120]
	bl	zwarnnam
	ldr	r3, [fp, #-112]
	mov	r0, r3
	bl	close
	ldr	r2, .L73+8
	ldr	r3, [fp, #-100]
	str	r3, [r2]
	ldr	r2, .L73+4
	ldr	r3, [fp, #-104]
	str	r3, [r2]
	mov	r3, #1
	b	.L71
.L60:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L61
	mov	r0, #0
	bl	clearjobtab
	bl	getppid
	mov	r3, r0
	ldr	r2, .L73+32
	str	r3, [r2]
	bl	getpid
	mov	r3, r0
	ldr	r2, .L73+36
	str	r3, [r2]
	bl	setsid
	mov	r2, r0
	ldr	r3, .L73+36
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L62
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L73+40
	ldr	r0, [fp, #-120]
	bl	zwarnnam
	ldr	r3, .L73+44
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, .L73+48
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L63
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L73+52
	ldr	r0, [fp, #-120]
	bl	zwarnnam
.L63:
	ldr	r3, .L73+36
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #0
	bl	setpgid
.L62:
	sub	r3, fp, #108
	mov	r1, r3
	mov	r0, #0
	bl	get_pty
	mov	r3, r0
	cmp	r3, #0
	beq	.L64
	mov	r0, #1
	bl	exit
.L64:
	ldr	r3, .L73+12
	ldrb	r3, [r3, #87]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L65
	ldr	r0, [fp, #-108]
	sub	r3, fp, #84
	add	r3, r3, #60
	mov	r2, r3
	ldr	r1, .L73+56
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bne	.L65
	ldr	r3, .L73+60
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, .L73+64
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-22]	@ movhi
	ldr	r0, [fp, #-108]
	sub	r3, fp, #84
	add	r3, r3, #60
	mov	r2, r3
	ldr	r1, .L73+68
	bl	ioctl
.L65:
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	bne	.L67
	ldr	r3, [fp, #-108]
	sub	r2, fp, #84
	mov	r1, r2
	mov	r0, r3
	bl	ptygettyinfo
	mov	r3, r0
	cmp	r3, #0
	bne	.L67
	ldr	r3, [fp, #-72]
	bic	r3, r3, #8
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-108]
	sub	r2, fp, #84
	mov	r1, r2
	mov	r0, r3
	bl	ptysettyinfo
.L67:
	ldr	r3, [fp, #-108]
	mov	r2, #0
	ldr	r1, .L73+72
	mov	r0, r3
	bl	ioctl
	mov	r0, #0
	bl	close
	mov	r0, #1
	bl	close
	mov	r0, #2
	bl	close
	ldr	r3, [fp, #-108]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-108]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-108]
	mov	r1, #2
	mov	r0, r3
	bl	dup2
	mov	r0, #0
	bl	closem
	ldr	r3, [fp, #-108]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-112]
	mov	r0, r3
	bl	close
	ldr	r3, .L73+76
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, .L73+80
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	bl	init_io
	ldr	r3, .L73+84
	ldr	r3, [r3]
	mov	r0, r3
	bl	ztrdup
	mov	r3, r0
	mov	r2, #0
	mov	r1, r3
	ldr	r0, .L73+88
	bl	assignsparam
	ldr	r3, .L73+12
	mov	r2, #0
	strb	r2, [r3, #87]
	ldr	r3, .L73+92
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [fp, #-96]
	bl	execode
	ldr	r3, .L73+96
	mov	r2, #2
	str	r2, [r3]
	ldr	r3, .L73+100
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	zexit
.L61:
	ldr	r3, [fp, #-112]
	mov	r0, r3
	bl	movefd
	mov	r3, r0
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmn	r3, #1
	bne	.L69
	ldr	r4, [fp, #-112]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r4
	ldr	r1, .L73+104
	ldr	r0, [fp, #-120]
	bl	zerrnam
	ldr	r2, .L73+8
	ldr	r3, [fp, #-100]
	str	r3, [r2]
	ldr	r2, .L73+4
	ldr	r3, [fp, #-104]
	str	r3, [r2]
	mov	r3, #1
	b	.L71
.L69:
	mov	r0, #44
	bl	zalloc
	str	r0, [fp, #-88]
	ldr	r0, [fp, #-124]
	bl	ztrdup
	mov	r2, r0
	ldr	r3, [fp, #-88]
	str	r2, [r3, #4]
	ldr	r0, [fp, #-128]
	bl	zarrdup
	mov	r2, r0
	ldr	r3, [fp, #-88]
	str	r2, [r3, #8]
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-88]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-92]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-132]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #4]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-88]
	mov	r2, #0
	str	r2, [r3, #28]
	ldr	r3, [fp, #-88]
	mvn	r2, #0
	str	r2, [r3, #32]
	ldr	r3, [fp, #-88]
	mov	r2, #0
	str	r2, [r3, #36]
	ldr	r3, [fp, #-88]
	mov	r2, #0
	str	r2, [r3, #40]
	ldr	r3, .L73+108
	ldr	r2, [r3]
	ldr	r3, [fp, #-88]
	str	r2, [r3]
	ldr	r2, .L73+108
	ldr	r3, [fp, #-88]
	str	r3, [r2]
	ldr	r3, [fp, #4]
	cmp	r3, #0
	beq	.L70
	ldr	r3, [fp, #-112]
	mov	r0, r3
	bl	ptynonblock
.L70:
	ldr	r2, .L73+8
	ldr	r3, [fp, #-100]
	str	r3, [r2]
	ldr	r2, .L73+4
	ldr	r3, [fp, #-104]
	str	r3, [r2]
	mov	r3, #0
.L71:
	ldr	r2, .L73
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L72
	bl	__stack_chk_fail
.L72:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L74:
	.align	2
.L73:
	.word	.LC9
	.word	ineval
	.word	scriptname
	.word	opts
	.word	.LC1
	.word	errflag
	.word	.LC2
	.word	.LC3
	.word	ppid
	.word	mypid
	.word	.LC4
	.word	SHTTY
	.word	21538
	.word	.LC5
	.word	21523
	.word	zterm_lines
	.word	zterm_columns
	.word	21524
	.word	21518
	.word	coprocin
	.word	coprocout
	.word	ttystrname
	.word	.LC6
	.word	.LC7
	.word	stopmsg
	.word	lastval
	.word	.LC8
	.word	ptycmds
	.size	newptycmd, .-newptycmd
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	deleteptycmd, %function
deleteptycmd:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L83
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L76
.L77:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
.L76:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L77
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L82
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L80
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	b	.L81
.L80:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r2, .L83
	str	r3, [r2]
.L81:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	zsfree
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	freearray
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	zclose
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #16]
	rsb	r3, r3, #0
	mov	r1, #1
	mov	r0, r3
	bl	kill
	mov	r1, #44
	ldr	r0, [fp, #-12]
	bl	zfree
	b	.L75
.L82:
	nop
.L75:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L84:
	.align	2
.L83:
	.word	ptycmds
	.size	deleteptycmd, .-deleteptycmd
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	deleteallptycmds, %function
deleteallptycmds:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L88
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L86
.L87:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	deleteptycmd
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
.L86:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L87
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L89:
	.align	2
.L88:
	.word	ptycmds
	.size	deleteallptycmds, .-deleteallptycmds
	.section	.rodata
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkptycmd, %function
checkptycmd:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L101
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #32]
	cmn	r3, #1
	bne	.L99
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	bne	.L99
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	sub	r1, fp, #13
	mov	r2, #1
	mov	r0, r3
	bl	read
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L94
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	mov	r1, #0
	mov	r0, r3
	bl	kill
	mov	r3, r0
	cmp	r3, #0
	bge	.L100
	ldr	r3, [fp, #-24]
	mov	r2, #1
	str	r2, [r3, #28]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	zclose
	b	.L100
.L94:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L90
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #32]
	b	.L90
.L99:
	nop
	b	.L90
.L100:
	nop
.L90:
	ldr	r3, .L101
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L98
	bl	__stack_chk_fail
.L98:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L102:
	.align	2
.L101:
	.word	.LC10
	.size	checkptycmd, .-checkptycmd
	.section	.rodata
	.align	2
.LC11:
	.ascii	"too many arguments\000"
	.align	2
.LC12:
	.ascii	"bad pattern: %s\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ptyread, %function
ptyread:
	@ args = 4, pretend = 0, frame = 208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #220
	str	r0, [fp, #-208]
	str	r1, [fp, #-212]
	str	r2, [fp, #-216]
	str	r3, [fp, #-220]
	ldr	r3, .L138
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-188]
	mov	r3, #0
	str	r3, [fp, #-184]
	mov	r3, #0
	str	r3, [fp, #-180]
	mov	r3, #0
	str	r3, [fp, #-172]
	ldr	r3, [fp, #-216]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L104
	ldr	r3, [fp, #-216]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L104
	ldr	r3, [fp, #-216]
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L105
	ldr	r1, .L138+4
	ldr	r0, [fp, #-208]
	bl	zwarnnam
	mov	r3, #1
	b	.L106
.L105:
	ldr	r3, [fp, #-216]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	dupstring
	str	r0, [fp, #-160]
	ldr	r0, [fp, #-160]
	bl	tokenize
	ldr	r0, [fp, #-160]
	bl	remnulargs
	mov	r2, #0
	mov	r1, #64
	ldr	r0, [fp, #-160]
	bl	patcompile
	str	r0, [fp, #-172]
	ldr	r3, [fp, #-172]
	cmp	r3, #0
	bne	.L134
	ldr	r3, [fp, #-216]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L138+8
	ldr	r0, [fp, #-208]
	bl	zwarnnam
	mov	r3, #1
	b	.L106
.L104:
	ldr	r3, .L138+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L108
.L134:
	nop
.L108:
	ldr	r3, [fp, #-212]
	ldr	r3, [r3, #36]
	cmp	r3, #0
	beq	.L109
	ldr	r3, [fp, #-212]
	ldr	r3, [r3, #40]
	str	r3, [fp, #-192]
	ldr	r3, [fp, #-192]
	add	r3, r3, #256
	str	r3, [fp, #-196]
	ldr	r3, [fp, #-196]
	add	r3, r3, #1
	mov	r0, r3
	bl	zhalloc
	str	r0, [fp, #-176]
	ldr	r3, [fp, #-212]
	ldr	r1, [r3, #36]
	ldr	r3, [fp, #-212]
	ldr	r3, [r3, #40]
	mov	r2, r3
	ldr	r0, [fp, #-176]
	bl	memcpy
	ldr	r3, [fp, #-212]
	ldr	r2, [r3, #36]
	ldr	r3, [fp, #-212]
	ldr	r3, [r3, #40]
	mov	r1, r3
	mov	r0, r2
	bl	zfree
	ldr	r3, [fp, #-212]
	mov	r2, #0
	str	r2, [r3, #36]
	ldr	r3, [fp, #-212]
	mov	r2, #0
	str	r2, [r3, #40]
	b	.L110
.L109:
	mov	r3, #0
	str	r3, [fp, #-192]
	mov	r3, #256
	str	r3, [fp, #-196]
	ldr	r3, [fp, #-196]
	add	r3, r3, #1
	mov	r0, r3
	bl	zhalloc
	str	r0, [fp, #-176]
.L110:
	ldr	r3, [fp, #-212]
	ldr	r3, [r3, #32]
	cmn	r3, #1
	beq	.L127
	ldr	r3, [fp, #-212]
	ldr	r2, [r3, #32]
	ldr	r3, [fp, #-192]
	ldr	r1, [fp, #-176]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-192]
	add	r3, r3, #1
	ldr	r2, [fp, #-176]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-192]
	ldr	r3, [fp, #-192]
	str	r3, [fp, #-188]
	ldr	r3, [fp, #-212]
	mvn	r2, #0
	str	r2, [r3, #32]
.L127:
	ldr	r3, [fp, #-220]
	cmp	r3, #0
	beq	.L112
	ldr	r3, [fp, #-212]
	ldr	r3, [r3, #32]
	cmn	r3, #1
	bne	.L112
	mov	r3, #0
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-148]
	sub	r3, fp, #144
	str	r3, [fp, #-156]
	mov	r3, #0
	str	r3, [fp, #-164]
	b	.L113
.L114:
	ldr	r3, [fp, #-156]
	ldr	r2, [fp, #-164]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-164]
	add	r3, r3, #1
	str	r3, [fp, #-164]
.L113:
	ldr	r3, [fp, #-164]
	cmp	r3, #31
	bls	.L114
	ldr	r3, [fp, #-212]
	ldr	r3, [r3, #12]
	lsr	r2, r3, #5
	lsl	r3, r2, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	ldr	r3, [fp, #-212]
	ldr	r3, [r3, #12]
	and	r3, r3, #31
	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, #-132]
	ldr	r3, [fp, #-212]
	ldr	r3, [r3, #12]
	add	r0, r3, #1
	sub	r1, fp, #144
	sub	r3, fp, #152
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	str	r0, [fp, #-168]
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	bge	.L115
	ldr	r3, [fp, #-212]
	ldr	r3, [r3, #12]
	sub	r2, fp, #200
	mov	r1, r3
	mov	r0, #0
	bl	setblock_fd
	mov	r3, r0
	cmp	r3, #0
	beq	.L116
	ldr	r3, [fp, #-212]
	ldr	r0, [r3, #12]
	ldr	r3, [fp, #-212]
	add	r3, r3, #32
	mov	r2, #1
	mov	r1, r3
	bl	read
	str	r0, [fp, #-168]
.L116:
	ldr	r3, [fp, #-200]
	cmn	r3, #1
	beq	.L115
	ldr	r3, [fp, #-212]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-200]
	mov	r1, #4
	mov	r0, r3
	bl	fcntl
.L115:
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	beq	.L135
.L112:
	ldr	r3, [fp, #-184]
	cmp	r3, #0
	bne	.L120
	ldr	r0, [fp, #-212]
	bl	checkptycmd
	ldr	r3, [fp, #-212]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	bne	.L136
.L120:
	ldr	r3, [fp, #-212]
	ldr	r3, [r3, #32]
	cmn	r3, #1
	bne	.L121
	ldr	r3, [fp, #-212]
	ldr	r0, [r3, #12]
	ldr	r3, [fp, #-192]
	ldr	r2, [fp, #-176]
	add	r3, r2, r3
	mov	r2, #1
	mov	r1, r3
	bl	read
	str	r0, [fp, #-184]
	ldr	r3, [fp, #-184]
	cmp	r3, #1
	bne	.L122
.L121:
	ldr	r3, [fp, #-212]
	ldr	r3, [r3, #32]
	cmn	r3, #1
	beq	.L123
	mov	r3, #1
	str	r3, [fp, #-184]
	ldr	r3, [fp, #-212]
	ldr	r2, [r3, #32]
	ldr	r3, [fp, #-192]
	ldr	r1, [fp, #-176]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-212]
	mvn	r2, #0
	str	r2, [r3, #32]
.L123:
	mov	r3, #1
	str	r3, [fp, #-188]
	ldr	r3, [fp, #-192]
	add	r3, r3, #1
	str	r3, [fp, #-192]
	ldr	r2, [fp, #-192]
	ldr	r3, [fp, #-196]
	cmp	r2, r3
	bne	.L122
	ldr	r3, [fp, #-216]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L124
	ldr	r3, [fp, #-192]
	mov	r2, r3
	ldr	r1, [fp, #-176]
	mov	r0, #1
	bl	write_loop
	mov	r3, #0
	str	r3, [fp, #-192]
	b	.L122
.L124:
	ldr	r1, [fp, #-196]
	ldr	r3, [fp, #-196]
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r0, [fp, #-176]
	bl	hrealloc
	str	r0, [fp, #-176]
	ldr	r3, [fp, #-196]
	lsl	r3, r3, #1
	str	r3, [fp, #-196]
.L122:
	ldr	r3, [fp, #-192]
	ldr	r2, [fp, #-176]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-172]
	cmp	r3, #0
	bne	.L125
	ldr	r3, [fp, #-184]
	cmp	r3, #0
	ble	.L119
	ldr	r3, [fp, #-216]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L126
	ldr	r3, [fp, #-192]
	sub	r3, r3, #1
	ldr	r2, [fp, #-176]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L119
	b	.L126
.L125:
	ldr	r3, [fp, #-184]
	cmp	r3, #0
	bge	.L126
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L137
.L126:
	ldr	r3, .L138+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L119
	ldr	r3, .L138+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L119
	ldr	r3, .L138+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L119
	ldr	r3, .L138+28
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L119
	ldr	r3, [fp, #-192]
	cmp	r3, #1048576
	bge	.L119
	ldr	r3, [fp, #-172]
	cmp	r3, #0
	beq	.L127
	ldr	r3, [fp, #-184]
	cmp	r3, #0
	beq	.L127
	ldr	r1, [fp, #-176]
	ldr	r0, [fp, #-172]
	bl	pattry
	str	r0, [fp, #-180]
	ldr	r3, [fp, #-180]
	cmp	r3, #0
	beq	.L127
	b	.L119
.L135:
	nop
	b	.L119
.L136:
	nop
	b	.L119
.L137:
	nop
.L119:
	ldr	r3, [fp, #-172]
	cmp	r3, #0
	beq	.L128
	ldr	r3, [fp, #-184]
	cmp	r3, #0
	bge	.L128
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L128
	ldr	r3, [fp, #-212]
	ldr	r2, [fp, #-192]
	str	r2, [r3, #40]
	ldr	r3, [fp, #-212]
	ldr	r3, [r3, #40]
	mov	r0, r3
	bl	zalloc
	mov	r2, r0
	ldr	r3, [fp, #-212]
	str	r2, [r3, #36]
	ldr	r3, [fp, #-212]
	ldr	r0, [r3, #36]
	ldr	r3, [fp, #-212]
	ldr	r3, [r3, #40]
	mov	r2, r3
	ldr	r1, [fp, #-176]
	bl	memcpy
	mov	r3, #1
	b	.L106
.L128:
	ldr	r3, [fp, #-216]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L129
	ldr	r3, [fp, #-216]
	ldr	r4, [r3]
	mov	r2, #7
	ldr	r1, [fp, #-192]
	ldr	r0, [fp, #-176]
	bl	metafy
	mov	r3, r0
	mov	r0, r3
	bl	ztrdup
	mov	r3, r0
	mov	r2, #0
	mov	r1, r3
	mov	r0, r4
	bl	assignsparam
	b	.L130
.L129:
	ldr	r3, [fp, #-192]
	cmp	r3, #0
	beq	.L130
	ldr	r3, [fp, #-192]
	mov	r2, r3
	ldr	r1, [fp, #-176]
	mov	r0, #1
	bl	write_loop
.L130:
	ldr	r3, [fp, #-188]
	cmp	r3, #0
	beq	.L131
	ldr	r3, [fp, #-172]
	cmp	r3, #0
	beq	.L132
	ldr	r3, [fp, #-180]
	cmp	r3, #0
	bne	.L132
	ldr	r3, [fp, #4]
	cmp	r3, #0
	bne	.L131
.L132:
	mov	r3, #0
	b	.L106
.L131:
	ldr	r3, [fp, #-212]
	ldr	r3, [r3, #28]
	add	r3, r3, #1
.L106:
	ldr	r2, .L138
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L133
	bl	__stack_chk_fail
.L133:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L139:
	.align	2
.L138:
	.word	.LC13
	.word	.LC11
	.word	.LC12
	.word	stdout
	.word	errflag
	.word	breaks
	.word	retflag
	.word	contflag
	.size	ptyread, .-ptyread
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ptywritestr, %function
ptywritestr:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L141
.L148:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	write
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L142
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	beq	.L142
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L142
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	b	.L143
.L142:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L144
	ldr	r0, [fp, #-16]
	bl	checkptycmd
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	bne	.L151
	mov	r3, #0
	str	r3, [fp, #-12]
.L144:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L147
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-8]
.L147:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
.L141:
	ldr	r3, .L152
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L146
	ldr	r3, .L152+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L146
	ldr	r3, .L152+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L146
	ldr	r3, .L152+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L146
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L148
	b	.L146
.L151:
	nop
.L146:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L149
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	add	r3, r3, #1
	b	.L143
.L149:
	mov	r3, #0
.L143:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L153:
	.align	2
.L152:
	.word	errflag
	.word	breaks
	.word	retflag
	.word	contflag
	.size	ptywritestr, .-ptywritestr
	.section	.rodata
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ptywrite, %function
ptywrite:
	@ args = 0, pretend = 0, frame = 8232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8192
	sub	sp, sp, #44
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-28]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-32]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r2, [r3, #-36]
	ldr	r3, .L166
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L163
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #32
	strb	r2, [r3, #-17]
	b	.L156
.L159:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	dupstring
	str	r0, [r4, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #16
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-8]
	bl	unmetafy
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-8]
	ldr	r0, [r0, #-28]
	bl	ptywritestr
	mov	r3, r0
	cmp	r3, #0
	bne	.L157
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	add	r3, r3, #4
	str	r3, [r2, #-32]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L156
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #17
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [r0, #-28]
	bl	ptywritestr
	mov	r3, r0
	cmp	r3, #0
	beq	.L156
.L157:
	mov	r3, #1
	b	.L162
.L156:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L159
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	cmp	r3, #0
	bne	.L161
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #10
	strb	r2, [r3, #-17]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #17
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [r0, #-28]
	bl	ptywritestr
	mov	r3, r0
	cmp	r3, #0
	beq	.L161
	mov	r3, #1
	b	.L162
.L164:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r2, [r2, #-12]
	mov	r1, r3
	ldr	r0, [r0, #-28]
	bl	ptywritestr
	mov	r3, r0
	cmp	r3, #0
	beq	.L163
	mov	r3, #1
	b	.L162
.L163:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #8192
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [r4, #-12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	bgt	.L164
.L161:
	mov	r3, #0
.L162:
	ldr	r2, .L166
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L165
	bl	__stack_chk_fail
.L165:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L167:
	.align	2
.L166:
	.word	.LC14
	.size	ptywrite, .-ptywrite
	.section	.rodata
	.align	2
.LC15:
	.ascii	"illegal option combination\000"
	.align	2
.LC16:
	.ascii	"missing pty command name\000"
	.align	2
.LC17:
	.ascii	"no such pty command: %s\000"
	.align	2
.LC18:
	.ascii	"missing command\000"
	.align	2
.LC19:
	.ascii	"pty command name already used: %s\000"
	.align	2
.LC20:
	.ascii	"-e \000"
	.align	2
.LC21:
	.ascii	"\000"
	.align	2
.LC22:
	.ascii	"-b \000"
	.align	2
.LC23:
	.ascii	"%s %s%s%s \000"
	.align	2
.LC24:
	.ascii	"(finished) %s: \000"
	.align	2
.LC25:
	.ascii	"(%d) %s: \000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bin_zpty, %function
bin_zpty:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #114]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L169
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #119]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
.L169:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #114]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L171
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #119]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L172
.L171:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #100]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #101]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #98]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #76]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
.L172:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #119]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L173
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #116]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #109]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
.L173:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #110]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L174
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #98]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #101]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #114]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #116]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #100]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #76]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #109]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
.L174:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #100]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L175
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #98]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #101]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #76]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #116]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #109]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
.L175:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #76]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L176
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #98]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #101]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L170
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #109]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L176
.L170:
	ldr	r1, .L208
	ldr	r0, [fp, #-32]
	bl	zwarnnam
	mov	r3, #1
	b	.L177
.L176:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #114]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L178
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #119]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L179
.L178:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L180
	ldr	r1, .L208+4
	ldr	r0, [fp, #-32]
	bl	zwarnnam
	mov	r3, #1
	b	.L177
.L180:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	getptycmd
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L181
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L208+8
	ldr	r0, [fp, #-32]
	bl	zwarnnam
	mov	r3, #1
	b	.L177
.L181:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	beq	.L182
	mov	r3, #2
	b	.L177
.L182:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #114]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L183
	ldr	r3, [fp, #-36]
	add	r2, r3, #4
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #116]	@ zero_extendqisi2
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #109]	@ zero_extendqisi2
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-32]
	bl	ptyread
	mov	r3, r0
	b	.L177
.L183:
	ldr	r3, [fp, #-36]
	add	r1, r3, #4
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #110]	@ zero_extendqisi2
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r0, [fp, #-8]
	bl	ptywrite
	mov	r3, r0
	b	.L177
.L179:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #100]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L185
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L186
	b	.L187
.L189:
	ldr	r3, [fp, #-36]
	add	r2, r3, #4
	str	r2, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	getptycmd
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L188
	ldr	r0, [fp, #-12]
	bl	deleteptycmd
	b	.L187
.L188:
	ldr	r3, [fp, #-36]
	sub	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L208+8
	ldr	r0, [fp, #-32]
	bl	zwarnnam
	mov	r3, #1
	str	r3, [fp, #-28]
.L187:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L189
	b	.L190
.L186:
	bl	deleteallptycmds
.L190:
	ldr	r3, [fp, #-28]
	b	.L177
.L185:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #116]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L191
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L192
	ldr	r1, .L208+4
	ldr	r0, [fp, #-32]
	bl	zwarnnam
	mov	r3, #1
	b	.L177
.L192:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	getptycmd
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L193
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L208+8
	ldr	r0, [fp, #-32]
	bl	zwarnnam
	mov	r3, #1
	b	.L177
.L193:
	ldr	r0, [fp, #-16]
	bl	checkptycmd
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	b	.L177
.L191:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L194
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L195
	ldr	r1, .L208+12
	ldr	r0, [fp, #-32]
	bl	zwarnnam
	mov	r3, #1
	b	.L177
.L195:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r0, r3
	bl	getptycmd
	mov	r3, r0
	cmp	r3, #0
	beq	.L196
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L208+16
	ldr	r0, [fp, #-32]
	bl	zwarnnam
	mov	r3, #1
	b	.L177
.L196:
	ldr	r3, [fp, #-36]
	ldr	r1, [r3]
	ldr	r3, [fp, #-36]
	add	r2, r3, #4
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #101]	@ zero_extendqisi2
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #98]	@ zero_extendqisi2
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-32]
	bl	newptycmd
	mov	r3, r0
	b	.L177
.L194:
	ldr	r3, .L208+20
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	b	.L197
.L207:
	ldr	r0, [fp, #-24]
	bl	checkptycmd
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #76]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L198
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L199
	ldr	r2, .L208+24
	b	.L200
.L199:
	ldr	r2, .L208+28
.L200:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	beq	.L201
	ldr	r1, .L208+32
	b	.L202
.L201:
	ldr	r1, .L208+28
.L202:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-32]
	ldr	r0, .L208+36
	bl	printf
	b	.L203
.L198:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #28]
	cmp	r3, #0
	beq	.L204
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L208+40
	bl	printf
	b	.L203
.L204:
	ldr	r3, [fp, #-24]
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L208+44
	bl	printf
.L203:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-20]
	b	.L205
.L206:
	ldr	r3, [fp, #-20]
	add	r2, r3, #4
	str	r2, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, .L208+48
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	quotedzputs
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L205
	mov	r0, #32
	bl	putchar
.L205:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L206
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
.L197:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L207
	mov	r3, #0
.L177:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L209:
	.align	2
.L208:
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	ptycmds
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	stdout
	.size	bin_zpty, .-bin_zpty
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ptyhook, %function
ptyhook:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	bl	deleteallptycmds
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ptyhook, .-ptyhook
	.section	.rodata
	.align	2
.LC26:
	.ascii	"ebdmrwLnt\000"
	.data
	.align	2
	.type	bintab, %object
	.size	bintab, 36
bintab:
	.word	0
	.word	.LC7
	.word	0
	.word	bin_zpty
	.word	0
	.word	-1
	.word	0
	.word	.LC26
	.word	0
	.align	2
	.type	module_features, %object
	.size	module_features, 36
module_features:
	.word	bintab
	.word	1
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.text
	.align	2
	.global	setup_
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_, %function
setup_:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	setup_, .-setup_
	.align	2
	.global	features_
	.syntax unified
	.arm
	.fpu softvfp
	.type	features_, %function
features_:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r1, .L216
	ldr	r0, [fp, #-8]
	bl	featuresarray
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L217:
	.align	2
.L216:
	.word	module_features
	.size	features_, .-features_
	.align	2
	.global	enables_
	.syntax unified
	.arm
	.fpu softvfp
	.type	enables_, %function
enables_:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, .L220
	ldr	r0, [fp, #-8]
	bl	handlefeatures
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L221:
	.align	2
.L220:
	.word	module_features
	.size	enables_, .-enables_
	.section	.rodata
	.align	2
.LC27:
	.ascii	"exit\000"
	.text
	.align	2
	.global	boot_
	.syntax unified
	.arm
	.fpu softvfp
	.type	boot_, %function
boot_:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L224
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L224+4
	ldr	r0, .L224+8
	bl	addhookfunc
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L225:
	.align	2
.L224:
	.word	ptycmds
	.word	ptyhook
	.word	.LC27
	.size	boot_, .-boot_
	.align	2
	.global	cleanup_
	.syntax unified
	.arm
	.fpu softvfp
	.type	cleanup_, %function
cleanup_:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r1, .L228
	ldr	r0, .L228+4
	bl	deletehookfunc
	bl	deleteallptycmds
	mov	r2, #0
	ldr	r1, .L228+8
	ldr	r0, [fp, #-8]
	bl	setfeatureenables
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L229:
	.align	2
.L228:
	.word	ptyhook
	.word	.LC27
	.word	module_features
	.size	cleanup_, .-cleanup_
	.align	2
	.global	finish_
	.syntax unified
	.arm
	.fpu softvfp
	.type	finish_, %function
finish_:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	finish_, .-finish_
	.local	mfd.13277
	.comm	mfd.13277,4,4
	.local	name.13276
	.comm	name.13276,4,4
	.local	sfd.13278
	.comm	sfd.13278,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
