	.file	"137219.c"
	.intel_syntax noprefix
	.text
	.local	program_name
	.comm	program_name,8,8
	.section	.rodata
.LC0:
	.string	"%s: %s\n"
	.text
	.type	error_exit, @function
error_exit:
.LFB0:
	.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	rdx, QWORD PTR program_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	error_exit, .-error_exit
	.section	.rodata
.LC1:
	.string	"%s: "
	.text
	.type	errno_exit, @function
errno_exit:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rdx, QWORD PTR program_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE1:
	.size	errno_exit, .-errno_exit
	.local	should_set_terminal_size
	.comm	should_set_terminal_size,4,4
	.local	original_mask
	.comm	original_mask,128,32
	.type	receive_sigwinch, @function
receive_sigwinch:
.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 should_set_terminal_size[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	receive_sigwinch, .-receive_sigwinch
	.section	.rodata
.LC2:
	.string	"sigemptyset"
.LC3:
	.string	"sigaddset"
.LC4:
	.string	"sigprocmask"
.LC5:
	.string	"sigaction"
	.text
	.type	install_sigwinch_handler, @function
install_sigwinch_handler:
.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, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	test	eax, eax
	js	.L5
	lea	rdi, original_mask[rip]
	call	sigemptyset@PLT
	test	eax, eax
	jns	.L6
.L5:
	lea	rdi, .LC2[rip]
	call	errno_exit
.L6:
	lea	rax, -160[rbp]
	add	rax, 8
	mov	esi, 28
	mov	rdi, rax
	call	sigaddset@PLT
	test	eax, eax
	jns	.L7
	lea	rdi, .LC3[rip]
	call	errno_exit
.L7:
	lea	rax, -160[rbp]
	add	rax, 8
	lea	rdx, original_mask[rip]
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	test	eax, eax
	jns	.L8
	lea	rdi, .LC4[rip]
	call	errno_exit
.L8:
	mov	DWORD PTR -24[rbp], 0
	lea	rax, receive_sigwinch[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 28
	call	sigaction@PLT
	test	eax, eax
	jns	.L11
	lea	rdi, .LC5[rip]
	call	errno_exit
.L11:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	install_sigwinch_handler, .-install_sigwinch_handler
	.type	restore_sigmask, @function
restore_sigmask:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, 0
	lea	rsi, original_mask[rip]
	mov	edi, 2
	call	sigprocmask@PLT
	test	eax, eax
	jns	.L14
	lea	rdi, .LC4[rip]
	call	errno_exit
.L14:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	restore_sigmask, .-restore_sigmask
	.type	set_terminal_size, @function
set_terminal_size:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR should_set_terminal_size[rip], 0
	lea	rax, -16[rbp]
	mov	rdx, rax
	mov	esi, 21523
	mov	edi, 1
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	js	.L18
	lea	rdx, -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 21524
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
.L18:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	set_terminal_size, .-set_terminal_size
	.section	.rodata
	.align 8
.LC6:
	.string	"cannot open master pseudo-terminal"
	.align 8
.LC7:
	.string	"stdin/stdout/stderr are not open"
	.align 8
.LC8:
	.string	"pseudo-terminal permission not granted"
	.align 8
.LC9:
	.string	"pseudo-terminal permission not unlocked"
	.text
	.type	prepare_master_pseudo_terminal, @function
prepare_master_pseudo_terminal:
.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, 16
	mov	edi, 258
	call	posix_openpt@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L20
	lea	rdi, .LC6[rip]
	call	errno_exit
.L20:
	cmp	DWORD PTR -4[rbp], 2
	jg	.L21
	lea	rdi, .LC7[rip]
	call	error_exit
.L21:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	grantpt@PLT
	test	eax, eax
	jns	.L22
	lea	rdi, .LC8[rip]
	call	errno_exit
.L22:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	unlockpt@PLT
	test	eax, eax
	jns	.L23
	lea	rdi, .LC9[rip]
	call	errno_exit
.L23:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	prepare_master_pseudo_terminal, .-prepare_master_pseudo_terminal
	.section	.rodata
	.align 8
.LC10:
	.string	"cannot name slave pseudo-terminal"
	.text
	.type	slave_pseudo_terminal_name, @function
slave_pseudo_terminal_name:
.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	DWORD PTR -20[rbp], edi
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	ptsname@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L26
	lea	rdi, .LC10[rip]
	call	errno_exit
.L26:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	slave_pseudo_terminal_name, .-slave_pseudo_terminal_name
	.section	.rodata
	.align 8
.LC11:
	.string	"cannot open slave pseudo-terminal"
	.text
	.type	open_noctty, @function
open_noctty:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 258
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L29
	lea	rdi, .LC11[rip]
	call	errno_exit
.L29:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	open_noctty, .-open_noctty
	.local	is_child_process
	.comm	is_child_process,1,1
	.local	original_termios
	.comm	original_termios,60,32
	.type	enable_canonical_io, @function
enable_canonical_io:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movzx	eax, BYTE PTR is_child_process[rip]
	test	al, al
	jne	.L34
	lea	rdx, original_termios[rip]
	mov	esi, 1
	mov	edi, 0
	call	tcsetattr@PLT
	jmp	.L31
.L34:
	nop
.L31:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	enable_canonical_io, .-enable_canonical_io
	.section	.rodata
	.align 8
.LC12:
	.string	"cannot examine current terminal IO mode"
	.align 8
.LC13:
	.string	"cannot disable canonical IO mode"
.LC14:
	.string	"atexit"
	.text
	.type	disable_canonical_io, @function
disable_canonical_io:
.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, original_termios[rip]
	mov	edi, 0
	call	tcgetattr@PLT
	test	eax, eax
	jns	.L36
	lea	rdi, .LC12[rip]
	call	errno_exit
.L36:
	mov	rax, QWORD PTR original_termios[rip]
	mov	rdx, QWORD PTR original_termios[rip+8]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR original_termios[rip+16]
	mov	rdx, QWORD PTR original_termios[rip+24]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR original_termios[rip+32]
	mov	rdx, QWORD PTR original_termios[rip+40]
	mov	QWORD PTR -48[rbp], rax
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR original_termios[rip+48]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR original_termios[rip+56]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	and	eax, -5580
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	and	eax, -2
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	and	eax, -32780
	mov	DWORD PTR -68[rbp], eax
	mov	BYTE PTR -57[rbp], 1
	mov	BYTE PTR -58[rbp], 0
	lea	rax, -80[rbp]
	mov	rdx, rax
	mov	esi, 1
	mov	edi, 0
	call	tcsetattr@PLT
	test	eax, eax
	jns	.L37
	lea	rdi, .LC13[rip]
	call	errno_exit
.L37:
	lea	rdi, enable_canonical_io[rip]
	call	atexit@PLT
	test	eax, eax
	je	.L40
	lea	rdi, .LC14[rip]
	call	error_exit
.L40:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	disable_canonical_io, .-disable_canonical_io
	.type	set_fd_set, @function
set_fd_set:
.LFB11:
	.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	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 2
	je	.L42
	cmp	eax, 2
	ja	.L46
	test	eax, eax
	je	.L47
	cmp	eax, 1
	je	.L45
	jmp	.L46
.L45:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	mov	rax, QWORD PTR -16[rbp]
	movsx	rdx, esi
	mov	rdi, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rcx, rdi
	mov	rax, QWORD PTR -16[rbp]
	movsx	rdx, esi
	mov	QWORD PTR [rax+rdx*8], rcx
	jmp	.L43
.L42:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	mov	rax, QWORD PTR -24[rbp]
	movsx	rdx, esi
	mov	rdi, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	mov	rcx, rdi
	or	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	movsx	rdx, esi
	mov	QWORD PTR [rax+rdx*8], rcx
	jmp	.L43
.L47:
	nop
.L43:
.L46:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	set_fd_set, .-set_fd_set
	.section	.rodata
.LC15:
	.string	"the_stack_data/137219.c"
	.align 8
.LC16:
	.string	"channel->buffer_position < channel->buffer_length"
	.text
	.type	process_buffer, @function
process_buffer:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 2
	je	.L49
	cmp	eax, 2
	ja	.L60
	test	eax, eax
	je	.L61
	cmp	eax, 1
	je	.L52
	jmp	.L60
.L52:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	movsx	rdx, edx
	mov	rsi, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L62
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8208[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, 12[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, 8192
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jg	.L54
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], 0
	jmp	.L50
.L54:
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], 2
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8216[rax], rdx
	jmp	.L50
.L49:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	movsx	rdx, edx
	mov	rsi, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L63
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8208[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8216[rax]
	cmp	rdx, rax
	jb	.L57
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 198
	lea	rsi, .LC15[rip]
	lea	rdi, .LC16[rip]
	call	__assert_fail@PLT
.L57:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8216[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8208[rax]
	sub	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 8208[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	lea	rcx, 12[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	js	.L64
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8208[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8208[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8208[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8216[rax]
	cmp	rdx, rax
	jne	.L65
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], 1
	jmp	.L65
.L61:
	nop
	jmp	.L60
.L62:
	nop
	jmp	.L60
.L63:
	nop
	jmp	.L60
.L64:
	nop
	jmp	.L60
.L65:
	nop
.L50:
.L60:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	process_buffer, .-process_buffer
	.section	.rodata
.LC17:
	.string	"sigdelset"
	.align 8
.LC18:
	.string	"cannot find file descriptor to forward"
	.text
	.type	forward_all_io, @function
forward_all_io:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -16384[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 496
	mov	DWORD PTR -16868[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16464[rbp], 0
	mov	eax, DWORD PTR -16868[rbp]
	mov	DWORD PTR -16460[rbp], eax
	mov	eax, DWORD PTR -16868[rbp]
	mov	DWORD PTR -8240[rbp], eax
	mov	DWORD PTR -8236[rbp], 1
	mov	DWORD PTR -8232[rbp], 1
	mov	eax, DWORD PTR -8232[rbp]
	mov	DWORD PTR -16456[rbp], eax
	mov	rax, QWORD PTR original_mask[rip]
	mov	rdx, QWORD PTR original_mask[rip+8]
	mov	QWORD PTR -16848[rbp], rax
	mov	QWORD PTR -16840[rbp], rdx
	mov	rax, QWORD PTR original_mask[rip+16]
	mov	rdx, QWORD PTR original_mask[rip+24]
	mov	QWORD PTR -16832[rbp], rax
	mov	QWORD PTR -16824[rbp], rdx
	mov	rax, QWORD PTR original_mask[rip+32]
	mov	rdx, QWORD PTR original_mask[rip+40]
	mov	QWORD PTR -16816[rbp], rax
	mov	QWORD PTR -16808[rbp], rdx
	mov	rax, QWORD PTR original_mask[rip+48]
	mov	rdx, QWORD PTR original_mask[rip+56]
	mov	QWORD PTR -16800[rbp], rax
	mov	QWORD PTR -16792[rbp], rdx
	mov	rax, QWORD PTR original_mask[rip+64]
	mov	rdx, QWORD PTR original_mask[rip+72]
	mov	QWORD PTR -16784[rbp], rax
	mov	QWORD PTR -16776[rbp], rdx
	mov	rax, QWORD PTR original_mask[rip+80]
	mov	rdx, QWORD PTR original_mask[rip+88]
	mov	QWORD PTR -16768[rbp], rax
	mov	QWORD PTR -16760[rbp], rdx
	mov	rax, QWORD PTR original_mask[rip+96]
	mov	rdx, QWORD PTR original_mask[rip+104]
	mov	QWORD PTR -16752[rbp], rax
	mov	QWORD PTR -16744[rbp], rdx
	mov	rax, QWORD PTR original_mask[rip+112]
	mov	rdx, QWORD PTR original_mask[rip+120]
	mov	QWORD PTR -16736[rbp], rax
	mov	QWORD PTR -16728[rbp], rdx
	lea	rax, -16848[rbp]
	mov	esi, 28
	mov	rdi, rax
	call	sigdelset@PLT
	test	eax, eax
	jns	.L68
	lea	rdi, .LC17[rip]
	call	errno_exit
	jmp	.L68
.L72:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -16720[rbp]
	mov	rdi, rdx
#APP
# 232 "the_stack_data/137219.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -16864[rbp], edx
	mov	DWORD PTR -16860[rbp], eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -16592[rbp]
	mov	rdi, rdx
#APP
# 233 "the_stack_data/137219.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -16856[rbp], edx
	mov	DWORD PTR -16852[rbp], eax
	lea	rdx, -16592[rbp]
	lea	rcx, -16720[rbp]
	lea	rax, -16464[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	set_fd_set
	lea	rdx, -16592[rbp]
	lea	rcx, -16720[rbp]
	lea	rax, -8240[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	set_fd_set
	mov	eax, DWORD PTR -16868[rbp]
	lea	edi, 1[rax]
	lea	rcx, -16848[rbp]
	lea	rdx, -16592[rbp]
	lea	rax, -16720[rbp]
	mov	r9, rcx
	mov	r8d, 0
	mov	ecx, 0
	mov	rsi, rax
	call	pselect@PLT
	test	eax, eax
	jns	.L69
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L70
	lea	rdi, .LC18[rip]
	call	errno_exit
.L70:
	mov	eax, DWORD PTR should_set_terminal_size[rip]
	test	eax, eax
	je	.L68
	mov	eax, DWORD PTR -16868[rbp]
	mov	edi, eax
	call	set_terminal_size
	jmp	.L68
.L69:
	lea	rdx, -16592[rbp]
	lea	rcx, -16720[rbp]
	lea	rax, -16464[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	process_buffer
	lea	rdx, -16592[rbp]
	lea	rcx, -16720[rbp]
	lea	rax, -8240[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	process_buffer
.L68:
	mov	eax, DWORD PTR -8232[rbp]
	test	eax, eax
	jne	.L72
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L73
	call	__stack_chk_fail@PLT
.L73:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	forward_all_io, .-forward_all_io
	.section	.rodata
.LC19:
	.string	"cannot await child process"
	.text
	.type	await_child, @function
await_child:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rcx, -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	cmp	DWORD PTR -20[rbp], eax
	je	.L75
	lea	rdi, .LC19[rip]
	call	errno_exit
.L75:
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L76
	mov	eax, DWORD PTR -12[rbp]
	sar	eax, 8
	movzx	eax, al
	jmp	.L79
.L76:
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 127
	add	eax, 1
	sar	al
	test	al, al
	jle	.L78
	mov	eax, DWORD PTR -12[rbp]
	movzx	eax, al
	or	al, -128
	jmp	.L79
.L78:
	mov	eax, 1
.L79:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L80
	call	__stack_chk_fail@PLT
.L80:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	await_child, .-await_child
	.section	.rodata
.LC20:
	.string	"cannot create new session"
	.text
	.type	become_session_leader, @function
become_session_leader:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	setsid@PLT
	test	eax, eax
	jns	.L83
	lea	rdi, .LC20[rip]
	call	errno_exit
.L83:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	become_session_leader, .-become_session_leader
	.section	.rodata
.LC21:
	.string	"cannot close old stdin"
	.align 8
.LC22:
	.string	"cannot open slave pseudo-terminal at stdin"
.LC23:
	.string	"cannot close old stdout"
	.align 8
.LC24:
	.string	"cannot open slave pseudo-terminal at stdout"
.LC25:
	.string	"cannot close old stderr"
	.align 8
.LC26:
	.string	"cannot open slave pseudo-terminal at stderr"
	.align 8
.LC27:
	.string	"cannot become controlling process of slave pseudo-terminal"
	.text
	.type	prepare_slave_pseudo_terminal_fds, @function
prepare_slave_pseudo_terminal_fds:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	edi, 0
	call	close@PLT
	test	eax, eax
	jns	.L85
	lea	rdi, .LC21[rip]
	call	errno_exit
.L85:
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L86
	lea	rdi, .LC22[rip]
	call	errno_exit
.L86:
	mov	edi, 1
	call	close@PLT
	test	eax, eax
	jns	.L87
	lea	rdi, .LC23[rip]
	call	errno_exit
.L87:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	dup@PLT
	cmp	eax, 1
	je	.L88
	lea	rdi, .LC24[rip]
	call	errno_exit
.L88:
	mov	edi, 2
	call	close@PLT
	test	eax, eax
	jns	.L89
	lea	rdi, .LC25[rip]
	call	errno_exit
.L89:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	dup@PLT
	cmp	eax, 2
	je	.L90
	lea	rdi, .LC26[rip]
	call	errno_exit
.L90:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, 21518
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	tcgetpgrp@PLT
	mov	ebx, eax
	call	getpgrp@PLT
	cmp	ebx, eax
	je	.L92
	lea	rdi, .LC27[rip]
	call	error_exit
.L92:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	prepare_slave_pseudo_terminal_fds, .-prepare_slave_pseudo_terminal_fds
	.type	exec_command, @function
exec_command:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	errno_exit
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	exec_command, .-exec_command
	.section	.rodata
.LC28:
	.string	"--"
.LC29:
	.string	"operand missing"
.LC30:
	.string	"cannot spawn child process"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	cmp	DWORD PTR -36[rbp], 0
	jg	.L95
	mov	edi, 1
	call	exit@PLT
.L95:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR program_name[rip], rax
	mov	DWORD PTR optind[rip], 1
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -36[rbp], eax
	jle	.L96
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L96
	mov	eax, DWORD PTR optind[rip]
	add	eax, 1
	mov	DWORD PTR optind[rip], eax
.L96:
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -36[rbp], eax
	jne	.L97
	lea	rdi, .LC29[rip]
	call	error_exit
.L97:
	call	install_sigwinch_handler
	call	prepare_master_pseudo_terminal
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	slave_pseudo_terminal_name
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	open_noctty
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	set_terminal_size
	call	disable_canonical_io
	call	fork@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L98
	lea	rdi, .LC30[rip]
	call	errno_exit
.L98:
	cmp	DWORD PTR -12[rbp], 0
	jle	.L99
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	forward_all_io
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	await_child
	jmp	.L100
.L99:
	mov	BYTE PTR is_child_process[rip], 1
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	call	become_session_leader
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	prepare_slave_pseudo_terminal_fds
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	call	restore_sigmask
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	exec_command
	mov	eax, 0
.L100:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 15
__PRETTY_FUNCTION__.0:
	.string	"process_buffer"
	.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	"137219.c"
	.text
	.local	program_name
	.comm	program_name,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	error_exit, %function
error_exit:
	@ 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, .L2
	ldr	r0, [r3]
	ldr	r3, .L2+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r1, .L2+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	program_name
	.word	.LC0
	.size	error_exit, .-error_exit
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%s: \000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	errno_exit, %function
errno_exit:
	@ 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, .L5
	ldr	r3, [r3]
	ldr	r2, .L5+4
	ldr	r2, [r2]
	ldr	r1, .L5+8
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	.align	2
.L5:
	.word	stderr
	.word	program_name
	.word	.LC1
	.size	errno_exit, .-errno_exit
	.local	should_set_terminal_size
	.comm	should_set_terminal_size,4,4
	.local	original_mask
	.comm	original_mask,128,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	receive_sigwinch, %function
receive_sigwinch:
	@ 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]
	ldr	r3, .L8
	mov	r2, #1
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L9:
	.align	2
.L8:
	.word	should_set_terminal_size
	.size	receive_sigwinch, .-receive_sigwinch
	.section	.rodata
	.align	2
.LC2:
	.ascii	"sigemptyset\000"
	.align	2
.LC3:
	.ascii	"sigaddset\000"
	.align	2
.LC4:
	.ascii	"sigprocmask\000"
	.align	2
.LC5:
	.ascii	"sigaction\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	install_sigwinch_handler, %function
install_sigwinch_handler:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, r0
	cmp	r3, #0
	blt	.L11
	ldr	r0, .L18+4
	bl	sigemptyset
	mov	r3, r0
	cmp	r3, #0
	bge	.L12
.L11:
	ldr	r0, .L18+8
	bl	errno_exit
.L12:
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r1, #28
	mov	r0, r3
	bl	sigaddset
	mov	r3, r0
	cmp	r3, #0
	bge	.L13
	ldr	r0, .L18+12
	bl	errno_exit
.L13:
	sub	r3, fp, #148
	add	r3, r3, #4
	ldr	r2, .L18+4
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	mov	r3, r0
	cmp	r3, #0
	bge	.L14
	ldr	r0, .L18+16
	bl	errno_exit
.L14:
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L18+20
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #28
	bl	sigaction
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	ldr	r0, .L18+24
	bl	errno_exit
.L17:
	nop
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC6
	.word	original_mask
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	receive_sigwinch
	.word	.LC5
	.size	install_sigwinch_handler, .-install_sigwinch_handler
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	restore_sigmask, %function
restore_sigmask:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r2, #0
	ldr	r1, .L23
	mov	r0, #2
	bl	sigprocmask
	mov	r3, r0
	cmp	r3, #0
	bge	.L22
	ldr	r0, .L23+4
	bl	errno_exit
.L22:
	nop
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	original_mask
	.word	.LC4
	.size	restore_sigmask, .-restore_sigmask
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_terminal_size, %function
set_terminal_size:
	@ 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, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L29+4
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, .L29+8
	mov	r0, #1
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	blt	.L28
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, .L29+12
	ldr	r0, [fp, #-24]
	bl	ioctl
.L28:
	nop
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC7
	.word	should_set_terminal_size
	.word	21523
	.word	21524
	.size	set_terminal_size, .-set_terminal_size
	.section	.rodata
	.align	2
.LC8:
	.ascii	"cannot open master pseudo-terminal\000"
	.align	2
.LC9:
	.ascii	"stdin/stdout/stderr are not open\000"
	.align	2
.LC10:
	.ascii	"pseudo-terminal permission not granted\000"
	.align	2
.LC11:
	.ascii	"pseudo-terminal permission not unlocked\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prepare_master_pseudo_terminal, %function
prepare_master_pseudo_terminal:
	@ 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	r0, .L37
	bl	posix_openpt
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L32
	ldr	r0, .L37+4
	bl	errno_exit
.L32:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bgt	.L33
	ldr	r0, .L37+8
	bl	error_exit
.L33:
	ldr	r0, [fp, #-8]
	bl	grantpt
	mov	r3, r0
	cmp	r3, #0
	bge	.L34
	ldr	r0, .L37+12
	bl	errno_exit
.L34:
	ldr	r0, [fp, #-8]
	bl	unlockpt
	mov	r3, r0
	cmp	r3, #0
	bge	.L35
	ldr	r0, .L37+16
	bl	errno_exit
.L35:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	258
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	prepare_master_pseudo_terminal, .-prepare_master_pseudo_terminal
	.section	.rodata
	.align	2
.LC12:
	.ascii	"cannot name slave pseudo-terminal\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	slave_pseudo_terminal_name, %function
slave_pseudo_terminal_name:
	@ 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]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-16]
	bl	ptsname
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L40
	ldr	r0, .L42
	bl	errno_exit
.L40:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC12
	.size	slave_pseudo_terminal_name, .-slave_pseudo_terminal_name
	.section	.rodata
	.align	2
.LC13:
	.ascii	"cannot open slave pseudo-terminal\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_noctty, %function
open_noctty:
	@ 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	r1, .L47
	ldr	r0, [fp, #-16]
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L45
	ldr	r0, .L47+4
	bl	errno_exit
.L45:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	258
	.word	.LC13
	.size	open_noctty, .-open_noctty
	.local	is_child_process
	.comm	is_child_process,1,1
	.local	original_termios
	.comm	original_termios,60,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	enable_canonical_io, %function
enable_canonical_io:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L53
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L52
	ldr	r2, .L53+4
	mov	r1, #1
	mov	r0, #0
	bl	tcsetattr
	pop	{fp, pc}
.L52:
	nop
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	is_child_process
	.word	original_termios
	.size	enable_canonical_io, .-enable_canonical_io
	.section	.rodata
	.align	2
.LC14:
	.ascii	"cannot examine current terminal IO mode\000"
	.align	2
.LC15:
	.ascii	"cannot disable canonical IO mode\000"
	.align	2
.LC16:
	.ascii	"atexit\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	disable_canonical_io, %function
disable_canonical_io:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L61+4
	mov	r0, #0
	bl	tcgetattr
	mov	r3, r0
	cmp	r3, #0
	bge	.L56
	ldr	r0, .L61+8
	bl	errno_exit
.L56:
	ldr	r3, .L61+4
	sub	ip, fp, #68
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, [fp, #-68]
	bic	r3, r3, #5568
	bic	r3, r3, #11
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-64]
	bic	r3, r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-56]
	bic	r3, r3, #32768
	bic	r3, r3, #11
	str	r3, [fp, #-56]
	mov	r3, #1
	strb	r3, [fp, #-45]
	mov	r3, #0
	strb	r3, [fp, #-46]
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #1
	mov	r0, #0
	bl	tcsetattr
	mov	r3, r0
	cmp	r3, #0
	bge	.L57
	ldr	r0, .L61+12
	bl	errno_exit
.L57:
	ldr	r0, .L61+16
	bl	atexit
	mov	r3, r0
	cmp	r3, #0
	beq	.L60
	ldr	r0, .L61+20
	bl	error_exit
.L60:
	nop
	ldr	r3, .L61
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L59
	bl	__stack_chk_fail
.L59:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC17
	.word	original_termios
	.word	.LC14
	.word	.LC15
	.word	enable_canonical_io
	.word	.LC16
	.size	disable_canonical_io, .-disable_canonical_io
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_fd_set, %function
set_fd_set:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #2
	beq	.L64
	cmp	r3, #2
	bhi	.L68
	cmp	r3, #0
	beq	.L69
	cmp	r3, #1
	beq	.L67
	b	.L68
.L67:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	ldr	r3, [fp, #-12]
	str	r1, [r3, r2, lsl #2]
	b	.L65
.L64:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	ldr	r3, [fp, #-16]
	str	r1, [r3, r2, lsl #2]
	b	.L65
.L69:
	nop
.L65:
.L68:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	set_fd_set, .-set_fd_set
	.section	.rodata
	.align	2
.LC18:
	.ascii	"the_stack_data/137219.c\000"
	.align	2
.LC19:
	.ascii	"channel->buffer_position < channel->buffer_length\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_buffer, %function
process_buffer:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #2
	beq	.L71
	cmp	r3, #2
	bhi	.L82
	cmp	r3, #0
	beq	.L83
	cmp	r3, #1
	beq	.L74
	b	.L82
.L74:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L84
	ldr	r3, [fp, #-16]
	add	r3, r3, #8192
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #12]
	ldr	r3, [fp, #-16]
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #12
	mov	r2, #8192
	mov	r1, r3
	bl	read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L76
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #8]
	b	.L72
.L76:
	ldr	r3, [fp, #-16]
	mov	r2, #2
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r2, r2, #8192
	str	r3, [r2, #16]
	b	.L72
.L71:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L85
	ldr	r3, [fp, #-16]
	add	r3, r3, #8192
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #8192
	ldr	r3, [r3, #16]
	cmp	r2, r3
	bcc	.L79
	ldr	r3, .L88
	mov	r2, #198
	ldr	r1, .L88+4
	ldr	r0, .L88+8
	bl	__assert_fail
.L79:
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #8192
	ldr	r3, [r3, #12]
	add	r3, r3, #8
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	add	r1, r3, #4
	ldr	r3, [fp, #-16]
	add	r3, r3, #8192
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #8192
	ldr	r3, [r3, #12]
	sub	r3, r2, r3
	mov	r2, r3
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L86
	ldr	r3, [fp, #-16]
	add	r3, r3, #8192
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r2, r2, #8192
	str	r3, [r2, #12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #8192
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #8192
	ldr	r3, [r3, #16]
	cmp	r2, r3
	bne	.L87
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #8]
	b	.L87
.L83:
	nop
	b	.L82
.L84:
	nop
	b	.L82
.L85:
	nop
	b	.L82
.L86:
	nop
	b	.L82
.L87:
	nop
.L72:
.L82:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L89:
	.align	2
.L88:
	.word	__PRETTY_FUNCTION__.6039
	.word	.LC18
	.word	.LC19
	.size	process_buffer, .-process_buffer
	.section	.rodata
	.align	2
.LC20:
	.ascii	"sigdelset\000"
	.align	2
.LC21:
	.ascii	"cannot find file descriptor to forward\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	forward_all_io, %function
forward_all_io:
	@ args = 0, pretend = 0, frame = 16840
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16640
	sub	sp, sp, #208
	sub	r3, fp, #16384
	sub	r3, r3, #4
	str	r0, [r3, #-452]
	ldr	r3, .L102
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-44]
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-452]
	str	r3, [r2, #-40]
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-452]
	str	r3, [r2, #-24]
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-20]
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-16]
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	sub	r2, fp, #16384
	sub	r2, r2, #4
	str	r3, [r2, #-36]
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r2, .L102+4
	sub	r3, r3, #428
	mov	r1, r2
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #16640
	sub	r3, r3, #4
	sub	r3, r3, #172
	mov	r1, #28
	mov	r0, r3
	bl	sigdelset
	mov	r3, r0
	cmp	r3, #0
	bge	.L92
	ldr	r0, .L102+8
	bl	errno_exit
	b	.L92
.L100:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #16640
	sub	r3, r3, #4
	sub	r3, r3, #44
	str	r3, [r2, #-436]
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-444]
	b	.L93
.L94:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-436]
	sub	r2, fp, #16384
	sub	r2, r2, #4
	ldr	r2, [r2, #-444]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-444]
	add	r3, r3, #1
	str	r3, [r2, #-444]
.L93:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-444]
	cmp	r3, #31
	bls	.L94
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	sub	r3, r3, #172
	str	r3, [r2, #-432]
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-440]
	b	.L95
.L96:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-432]
	sub	r2, fp, #16384
	sub	r2, r2, #4
	ldr	r2, [r2, #-440]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #16384
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-440]
	add	r3, r3, #1
	str	r3, [r2, #-440]
.L95:
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-440]
	cmp	r3, #31
	bls	.L96
	sub	r2, fp, #16384
	sub	r2, r2, #4
	sub	r2, r2, #172
	sub	r1, fp, #16640
	sub	r1, r1, #4
	sub	r1, r1, #44
	sub	r3, fp, #16384
	sub	r3, r3, #4
	sub	r3, r3, #44
	mov	r0, r3
	bl	set_fd_set
	sub	r2, fp, #16384
	sub	r2, r2, #4
	sub	r2, r2, #172
	sub	r1, fp, #16640
	sub	r1, r1, #4
	sub	r1, r1, #44
	sub	r3, fp, #8192
	sub	r3, r3, #4
	sub	r3, r3, #24
	mov	r0, r3
	bl	set_fd_set
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r3, [r3, #-452]
	add	r0, r3, #1
	sub	r2, fp, #16384
	sub	r2, r2, #4
	sub	r2, r2, #172
	sub	r1, fp, #16640
	sub	r1, r1, #4
	sub	r1, r1, #44
	sub	r3, fp, #16640
	sub	r3, r3, #4
	sub	r3, r3, #172
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	bl	pselect
	mov	r3, r0
	cmp	r3, #0
	bge	.L97
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L98
	ldr	r0, .L102+12
	bl	errno_exit
.L98:
	ldr	r3, .L102+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L92
	sub	r3, fp, #16384
	sub	r3, r3, #4
	ldr	r0, [r3, #-452]
	bl	set_terminal_size
	b	.L92
.L97:
	sub	r2, fp, #16384
	sub	r2, r2, #4
	sub	r2, r2, #172
	sub	r1, fp, #16640
	sub	r1, r1, #4
	sub	r1, r1, #44
	sub	r3, fp, #16384
	sub	r3, r3, #4
	sub	r3, r3, #44
	mov	r0, r3
	bl	process_buffer
	sub	r2, fp, #16384
	sub	r2, r2, #4
	sub	r2, r2, #172
	sub	r1, fp, #16640
	sub	r1, r1, #4
	sub	r1, r1, #44
	sub	r3, fp, #8192
	sub	r3, r3, #4
	sub	r3, r3, #24
	mov	r0, r3
	bl	process_buffer
.L92:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	bne	.L100
	nop
	ldr	r3, .L102
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L101
	bl	__stack_chk_fail
.L101:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L103:
	.align	2
.L102:
	.word	.LC22
	.word	original_mask
	.word	.LC20
	.word	.LC21
	.word	should_set_terminal_size
	.size	forward_all_io, .-forward_all_io
	.section	.rodata
	.align	2
.LC23:
	.ascii	"cannot await child process\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	await_child, %function
await_child:
	@ 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, .L111
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	waitpid
	mov	r2, r0
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	beq	.L105
	ldr	r0, .L111+4
	bl	errno_exit
.L105:
	ldr	r3, [fp, #-12]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L106
	ldr	r3, [fp, #-12]
	asr	r3, r3, #8
	and	r3, r3, #255
	b	.L109
.L106:
	ldr	r3, [fp, #-12]
	and	r3, r3, #255
	and	r3, r3, #127
	and	r3, r3, #255
	add	r3, r3, #1
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	ble	.L108
	ldr	r3, [fp, #-12]
	and	r3, r3, #255
	orr	r3, r3, #128
	b	.L109
.L108:
	mov	r3, #1
.L109:
	ldr	r2, .L111
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L110
	bl	__stack_chk_fail
.L110:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L112:
	.align	2
.L111:
	.word	.LC24
	.word	.LC23
	.size	await_child, .-await_child
	.section	.rodata
	.align	2
.LC25:
	.ascii	"cannot create new session\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	become_session_leader, %function
become_session_leader:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	setsid
	mov	r3, r0
	cmp	r3, #0
	bge	.L115
	ldr	r0, .L116
	bl	errno_exit
.L115:
	nop
	pop	{fp, pc}
.L117:
	.align	2
.L116:
	.word	.LC25
	.size	become_session_leader, .-become_session_leader
	.section	.rodata
	.align	2
.LC26:
	.ascii	"cannot close old stdin\000"
	.align	2
.LC27:
	.ascii	"cannot open slave pseudo-terminal at stdin\000"
	.align	2
.LC28:
	.ascii	"cannot close old stdout\000"
	.align	2
.LC29:
	.ascii	"cannot open slave pseudo-terminal at stdout\000"
	.align	2
.LC30:
	.ascii	"cannot close old stderr\000"
	.align	2
.LC31:
	.ascii	"cannot open slave pseudo-terminal at stderr\000"
	.align	2
.LC32:
	.ascii	"cannot become controlling process of slave pseudo-t"
	.ascii	"erminal\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prepare_slave_pseudo_terminal_fds, %function
prepare_slave_pseudo_terminal_fds:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	mov	r0, #0
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L119
	ldr	r0, .L127
	bl	errno_exit
.L119:
	mov	r1, #2
	ldr	r0, [fp, #-24]
	bl	open
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L120
	ldr	r0, .L127+4
	bl	errno_exit
.L120:
	mov	r0, #1
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L121
	ldr	r0, .L127+8
	bl	errno_exit
.L121:
	ldr	r0, [fp, #-16]
	bl	dup
	mov	r3, r0
	cmp	r3, #1
	beq	.L122
	ldr	r0, .L127+12
	bl	errno_exit
.L122:
	mov	r0, #2
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L123
	ldr	r0, .L127+16
	bl	errno_exit
.L123:
	ldr	r0, [fp, #-16]
	bl	dup
	mov	r3, r0
	cmp	r3, #2
	beq	.L124
	ldr	r0, .L127+20
	bl	errno_exit
.L124:
	mov	r2, #0
	ldr	r1, .L127+24
	ldr	r0, [fp, #-16]
	bl	ioctl
	ldr	r0, [fp, #-16]
	bl	tcgetpgrp
	mov	r4, r0
	bl	getpgrp
	mov	r3, r0
	cmp	r4, r3
	beq	.L126
	ldr	r0, .L127+28
	bl	error_exit
.L126:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L128:
	.align	2
.L127:
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	21518
	.word	.LC32
	.size	prepare_slave_pseudo_terminal_fds, .-prepare_slave_pseudo_terminal_fds
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	exec_command, %function
exec_command:
	@ 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, [fp, #-8]
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	execvp
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	errno_exit
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	exec_command, .-exec_command
	.section	.rodata
	.align	2
.LC33:
	.ascii	"--\000"
	.align	2
.LC34:
	.ascii	"operand missing\000"
	.align	2
.LC35:
	.ascii	"cannot spawn child process\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bgt	.L131
	mov	r0, #1
	bl	exit
.L131:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, .L137
	str	r3, [r2]
	ldr	r3, .L137+4
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L137+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L132
	ldr	r3, .L137+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L137+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L132
	ldr	r3, .L137+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L137+4
	str	r3, [r2]
.L132:
	ldr	r3, .L137+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L133
	ldr	r0, .L137+12
	bl	error_exit
.L133:
	bl	install_sigwinch_handler
	bl	prepare_master_pseudo_terminal
	str	r0, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	slave_pseudo_terminal_name
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	open_noctty
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-20]
	bl	set_terminal_size
	bl	disable_canonical_io
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L134
	ldr	r0, .L137+16
	bl	errno_exit
.L134:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L135
	ldr	r0, [fp, #-12]
	bl	close
	ldr	r0, [fp, #-20]
	bl	forward_all_io
	ldr	r0, [fp, #-8]
	bl	await_child
	mov	r3, r0
	b	.L136
.L135:
	ldr	r3, .L137+20
	mov	r2, #1
	strb	r2, [r3]
	ldr	r0, [fp, #-20]
	bl	close
	bl	become_session_leader
	ldr	r0, [fp, #-16]
	bl	prepare_slave_pseudo_terminal_fds
	ldr	r0, [fp, #-12]
	bl	close
	bl	restore_sigmask
	ldr	r3, .L137+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	mov	r0, r3
	bl	exec_command
	mov	r3, #0
.L136:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L138:
	.align	2
.L137:
	.word	program_name
	.word	optind
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	is_child_process
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6039, %object
	.size	__PRETTY_FUNCTION__.6039, 15
__PRETTY_FUNCTION__.6039:
	.ascii	"process_buffer\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
