	.file	"104827954.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	": %s"
	.text
	.type	fail_io, @function
fail_io:
.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, 224
	mov	QWORD PTR -216[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L2
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L2:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -208[rbp]
	mov	rcx, QWORD PTR -216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	vfprintf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L3
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L3:
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	putc@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	fail_io, .-fail_io
	.section	.rodata
.LC1:
	.string	"tcgetattr"
.LC2:
	.string	"tcsetattr"
	.text
	.type	make_noncanon, @function
make_noncanon:
.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	DWORD PTR -88[rbp], esi
	mov	DWORD PTR -92[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	isatty@PLT
	test	eax, eax
	je	.L10
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tcgetattr@PLT
	test	eax, eax
	jns	.L7
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	fail_io
.L7:
	mov	eax, DWORD PTR -68[rbp]
	and	eax, -11
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -88[rbp]
	mov	BYTE PTR -57[rbp], al
	mov	eax, DWORD PTR -92[rbp]
	mov	BYTE PTR -58[rbp], al
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcsetattr@PLT
	test	eax, eax
	jns	.L10
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	fail_io
.L10:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	make_noncanon, .-make_noncanon
	.section	.rodata
.LC3:
	.string	"fcntl"
	.text
	.type	make_nonblocking, @function
make_nonblocking:
.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 -20[rbp], edi
	mov	eax, esi
	mov	BYTE PTR -24[rbp], al
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L12
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	fail_io
.L12:
	cmp	BYTE PTR -24[rbp], 0
	je	.L13
	or	DWORD PTR -4[rbp], 2048
	jmp	.L14
.L13:
	and	DWORD PTR -4[rbp], -2049
.L14:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	test	eax, eax
	jns	.L16
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	fail_io
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	make_nonblocking, .-make_nonblocking
	.section	.rodata
.LC4:
	.string	"%s"
	.text
	.type	handle_error, @function
handle_error:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, edx
	mov	QWORD PTR -32[rbp], rcx
	mov	BYTE PTR -20[rbp], al
	cmp	BYTE PTR -20[rbp], 0
	je	.L18
	cmp	QWORD PTR -8[rbp], 0
	jns	.L22
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 5
	jne	.L20
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], -1
	jmp	.L22
.L20:
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	fail_io
.L18:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L21
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], -1
	jmp	.L22
.L21:
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	fail_io
.L22:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	handle_error, .-handle_error
	.section	.rodata
.LC5:
	.string	"select"
.LC6:
	.string	"read"
.LC7:
	.string	"write"
.LC8:
	.string	"zero-length write"
	.text
	.type	relay, @function
relay:
.LFB10:
	.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, 432
	mov	DWORD PTR -16804[rbp], edi
	mov	DWORD PTR -16808[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -16804[rbp]
	mov	esi, 1
	mov	edi, eax
	call	make_nonblocking
	mov	esi, 1
	mov	edi, 0
	call	make_nonblocking
	mov	esi, 1
	mov	edi, 1
	call	make_nonblocking
	mov	eax, DWORD PTR -16804[rbp]
	mov	edx, 1
	mov	esi, 16
	mov	edi, eax
	call	make_noncanon
	mov	edx, 0
	mov	esi, 1
	mov	edi, 0
	call	make_noncanon
	lea	rax, -16464[rbp]
	mov	edx, 16448
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -16464[rbp], 0
	mov	eax, DWORD PTR -16804[rbp]
	mov	DWORD PTR -16460[rbp], eax
	mov	eax, DWORD PTR -16804[rbp]
	mov	DWORD PTR -8240[rbp], eax
	mov	DWORD PTR -8236[rbp], 1
	jmp	.L24
.L41:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -16720[rbp]
	mov	rdi, rdx
#APP
# 147 "the_stack_data/104827954.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -16788[rbp], edx
	mov	DWORD PTR -16784[rbp], eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -16592[rbp]
	mov	rdi, rdx
#APP
# 148 "the_stack_data/104827954.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -16780[rbp], edx
	mov	DWORD PTR -16776[rbp], eax
	mov	DWORD PTR -16792[rbp], 0
	jmp	.L25
.L29:
	lea	rcx, -16464[rbp]
	mov	eax, DWORD PTR -16792[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	add	rax, rcx
	mov	QWORD PTR -16744[rbp], rax
	cmp	DWORD PTR -16792[rbp], 0
	jne	.L26
	movzx	eax, BYTE PTR -24[rbp]
	xor	eax, 1
	test	al, al
	jne	.L52
.L26:
	mov	rax, QWORD PTR -16744[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	je	.L28
	mov	rax, QWORD PTR -16744[rbp]
	mov	rdx, QWORD PTR 8200[rax]
	mov	rax, QWORD PTR -16744[rbp]
	mov	rax, QWORD PTR 8208[rax]
	add	rax, rdx
	cmp	rax, 8191
	ja	.L28
	mov	rax, QWORD PTR -16744[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -16720[rbp+rax*8]
	mov	rax, QWORD PTR -16744[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	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -16720[rbp+rax*8], rdx
.L28:
	mov	rax, QWORD PTR -16744[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, -1
	je	.L27
	mov	rax, QWORD PTR -16744[rbp]
	mov	rax, QWORD PTR 8200[rax]
	test	rax, rax
	je	.L27
	mov	rax, QWORD PTR -16744[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -16592[rbp+rax*8]
	mov	rax, QWORD PTR -16744[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
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -16592[rbp+rax*8], rdx
	jmp	.L27
.L52:
	nop
.L27:
	add	DWORD PTR -16792[rbp], 1
.L25:
	cmp	DWORD PTR -16792[rbp], 1
	jle	.L29
	mov	eax, DWORD PTR -16808[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -16720[rbp+rax*8]
	mov	eax, DWORD PTR -16808[rbp]
	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	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -16720[rbp+rax*8], rdx
.L31:
	lea	rdx, -16592[rbp]
	lea	rax, -16720[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	rsi, rax
	mov	edi, 1024
	call	select@PLT
	mov	DWORD PTR -16772[rbp], eax
	cmp	DWORD PTR -16772[rbp], 0
	jns	.L30
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L31
.L30:
	cmp	DWORD PTR -16772[rbp], 0
	jns	.L32
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	fail_io
.L32:
	mov	eax, DWORD PTR -16808[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -16720[rbp+rax*8]
	mov	eax, DWORD PTR -16808[rbp]
	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
	jne	.L53
	mov	DWORD PTR -16792[rbp], 0
	jmp	.L35
.L40:
	lea	rcx, -16464[rbp]
	mov	eax, DWORD PTR -16792[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	add	rax, rcx
	mov	QWORD PTR -16768[rbp], rax
	mov	rax, QWORD PTR -16768[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	je	.L36
	mov	rax, QWORD PTR -16768[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -16720[rbp+rax*8]
	mov	rax, QWORD PTR -16768[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	.L36
	mov	rax, QWORD PTR -16768[rbp]
	mov	rdx, QWORD PTR 8208[rax]
	mov	rax, QWORD PTR -16768[rbp]
	mov	rax, QWORD PTR 8200[rax]
	add	rax, rdx
	mov	edx, 8192
	sub	rdx, rax
	mov	rax, QWORD PTR -16768[rbp]
	lea	rsi, 8[rax]
	mov	rax, QWORD PTR -16768[rbp]
	mov	rcx, QWORD PTR 8208[rax]
	mov	rax, QWORD PTR -16768[rbp]
	mov	rax, QWORD PTR 8200[rax]
	add	rax, rcx
	lea	rcx, [rsi+rax]
	mov	rax, QWORD PTR -16768[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -16760[rbp], rax
	cmp	QWORD PTR -16760[rbp], 0
	jle	.L37
	mov	rax, QWORD PTR -16768[rbp]
	mov	BYTE PTR 8216[rax], 1
	mov	rax, QWORD PTR -16768[rbp]
	mov	rdx, QWORD PTR 8200[rax]
	mov	rax, QWORD PTR -16760[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -16768[rbp]
	mov	QWORD PTR 8200[rax], rdx
	mov	rax, QWORD PTR -16768[rbp]
	mov	rax, QWORD PTR 8200[rax]
	cmp	rax, 8192
	jne	.L36
	mov	rax, QWORD PTR -16768[rbp]
	mov	rax, QWORD PTR 8208[rax]
	test	rax, rax
	je	.L36
	mov	rax, QWORD PTR -16768[rbp]
	mov	rax, QWORD PTR 8200[rax]
	mov	rdx, QWORD PTR -16768[rbp]
	lea	rcx, 8[rdx]
	mov	rdx, QWORD PTR -16768[rbp]
	mov	rdx, QWORD PTR 8208[rdx]
	lea	rsi, [rcx+rdx]
	mov	rdx, QWORD PTR -16768[rbp]
	lea	rcx, 8[rdx]
	mov	rdx, rax
	mov	rdi, rcx
	call	memmove@PLT
	mov	rax, QWORD PTR -16768[rbp]
	mov	QWORD PTR 8208[rax], 0
	jmp	.L36
.L37:
	mov	rax, QWORD PTR -16768[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -16804[rbp], eax
	sete	al
	movzx	edx, al
	mov	rsi, QWORD PTR -16768[rbp]
	mov	rax, QWORD PTR -16760[rbp]
	lea	rcx, .LC6[rip]
	mov	rdi, rax
	call	handle_error
.L36:
	mov	rax, QWORD PTR -16768[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, -1
	je	.L38
	mov	rax, QWORD PTR -16768[rbp]
	mov	eax, DWORD PTR 4[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -16592[rbp+rax*8]
	mov	rax, QWORD PTR -16768[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	.L38
	mov	rax, QWORD PTR -16768[rbp]
	mov	rdx, QWORD PTR 8200[rax]
	mov	rax, QWORD PTR -16768[rbp]
	lea	rcx, 8[rax]
	mov	rax, QWORD PTR -16768[rbp]
	mov	rax, QWORD PTR 8208[rax]
	add	rcx, rax
	mov	rax, QWORD PTR -16768[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -16752[rbp], rax
	cmp	QWORD PTR -16752[rbp], 0
	jle	.L39
	mov	rax, QWORD PTR -16768[rbp]
	mov	rdx, QWORD PTR 8208[rax]
	mov	rax, QWORD PTR -16752[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -16768[rbp]
	mov	QWORD PTR 8208[rax], rdx
	mov	rax, QWORD PTR -16768[rbp]
	mov	rax, QWORD PTR 8200[rax]
	mov	rcx, QWORD PTR -16752[rbp]
	sub	rax, rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -16768[rbp]
	mov	QWORD PTR 8200[rax], rdx
	mov	rax, QWORD PTR -16768[rbp]
	mov	rax, QWORD PTR 8200[rax]
	test	rax, rax
	jne	.L38
	mov	rax, QWORD PTR -16768[rbp]
	mov	QWORD PTR 8208[rax], 0
	jmp	.L38
.L39:
	mov	rax, QWORD PTR -16768[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -16804[rbp], eax
	sete	al
	movzx	edx, al
	mov	rax, QWORD PTR -16768[rbp]
	lea	rsi, 4[rax]
	mov	rax, QWORD PTR -16752[rbp]
	lea	rcx, .LC7[rip]
	mov	rdi, rax
	call	handle_error
.L38:
	add	DWORD PTR -16792[rbp], 1
.L35:
	cmp	DWORD PTR -16792[rbp], 1
	jle	.L40
.L24:
	mov	eax, DWORD PTR -8240[rbp]
	cmp	eax, -1
	jne	.L41
	jmp	.L34
.L53:
	nop
.L34:
	mov	eax, DWORD PTR -8236[rbp]
	cmp	eax, -1
	je	.L54
	mov	esi, 0
	mov	edi, 1
	call	make_nonblocking
.L49:
	lea	rax, -16464[rbp]
	add	rax, 8224
	mov	QWORD PTR -16736[rbp], rax
	jmp	.L44
.L47:
	mov	rax, QWORD PTR -16736[rbp]
	mov	rdx, QWORD PTR 8200[rax]
	mov	rax, QWORD PTR -16736[rbp]
	lea	rcx, 8[rax]
	mov	rax, QWORD PTR -16736[rbp]
	mov	rax, QWORD PTR 8208[rax]
	add	rcx, rax
	mov	rax, QWORD PTR -16736[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -16728[rbp], rax
	cmp	QWORD PTR -16728[rbp], 0
	jns	.L45
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	fail_io
.L45:
	cmp	QWORD PTR -16728[rbp], 0
	jne	.L46
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	fail_io
.L46:
	mov	rax, QWORD PTR -16736[rbp]
	mov	rdx, QWORD PTR 8208[rax]
	mov	rax, QWORD PTR -16728[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -16736[rbp]
	mov	QWORD PTR 8208[rax], rdx
	mov	rax, QWORD PTR -16736[rbp]
	mov	rax, QWORD PTR 8200[rax]
	mov	rcx, QWORD PTR -16728[rbp]
	sub	rax, rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -16736[rbp]
	mov	QWORD PTR 8200[rax], rdx
.L44:
	mov	rax, QWORD PTR -16736[rbp]
	mov	rax, QWORD PTR 8200[rax]
	test	rax, rax
	jne	.L47
	mov	rax, QWORD PTR -16736[rbp]
	mov	QWORD PTR 8208[rax], 0
	mov	rax, QWORD PTR -16736[rbp]
	lea	rcx, 8[rax]
	mov	rax, QWORD PTR -16736[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, 8192
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -16728[rbp], rax
	mov	rdx, QWORD PTR -16728[rbp]
	mov	rax, QWORD PTR -16736[rbp]
	mov	QWORD PTR 8200[rax], rdx
	cmp	QWORD PTR -16728[rbp], 0
	jle	.L55
	jmp	.L49
.L54:
	nop
	jmp	.L23
.L55:
	nop
.L23:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L51
	call	__stack_chk_fail@PLT
.L51:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	relay, .-relay
	.local	dead_child_fd
	.comm	dead_child_fd,4,4
	.section	.rodata
.LC9:
	.string	""
	.text
	.type	sigchld_handler, @function
sigchld_handler:
.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	eax, DWORD PTR dead_child_fd[rip]
	mov	edx, 1
	lea	rsi, .LC9[rip]
	mov	edi, eax
	call	write@PLT
	test	rax, rax
	jns	.L58
	mov	edi, 1
	call	_exit@PLT
.L58:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	sigchld_handler, .-sigchld_handler
	.section	.rodata
	.align 8
.LC10:
	.string	"usage: squish-pty COMMAND [ARG]...\nSquishes both stdin and stdout into a single pseudoterminal,\nwhich is passed as stdout to run the specified COMMAND.\n"
.LC11:
	.string	"/dev/ptmx"
.LC12:
	.string	"open \"/dev/ptmx\""
.LC13:
	.string	"grantpt"
.LC14:
	.string	"unlockpt"
.LC15:
	.string	"ptsname"
.LC16:
	.string	"open \"%s\""
.LC17:
	.string	"pipe"
.LC18:
	.string	"sigaction"
.LC19:
	.string	"setitimer"
.LC20:
	.string	"fork"
.LC21:
	.string	"setitimer-child"
.LC22:
	.string	"dup2"
.LC23:
	.string	"close"
.LC24:
	.string	"exec"
	.text
	.globl	main
	.type	main, @function
main:
.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, 288
	mov	DWORD PTR -276[rbp], edi
	mov	QWORD PTR -288[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -276[rbp], 1
	jg	.L60
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 152
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L83
.L60:
	mov	esi, 258
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -260[rbp], eax
	cmp	DWORD PTR -260[rbp], 0
	jns	.L62
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	fail_io
.L62:
	mov	eax, DWORD PTR -260[rbp]
	mov	edi, eax
	call	grantpt@PLT
	test	eax, eax
	jns	.L63
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	fail_io
.L63:
	mov	eax, DWORD PTR -260[rbp]
	mov	edi, eax
	call	unlockpt@PLT
	test	eax, eax
	jns	.L64
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	fail_io
.L64:
	mov	eax, DWORD PTR -260[rbp]
	mov	edi, eax
	call	ptsname@PLT
	mov	QWORD PTR -248[rbp], rax
	cmp	QWORD PTR -248[rbp], 0
	jne	.L65
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	fail_io
.L65:
	mov	rax, QWORD PTR -248[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -256[rbp], eax
	cmp	DWORD PTR -256[rbp], 0
	jns	.L66
	mov	rax, QWORD PTR -248[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	fail_io
.L66:
	lea	rax, -168[rbp]
	mov	rdi, rax
	call	pipe@PLT
	test	eax, eax
	jns	.L67
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	fail_io
.L67:
	mov	eax, DWORD PTR -164[rbp]
	mov	DWORD PTR dead_child_fd[rip], eax
	lea	rax, -160[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, sigchld_handler[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -24[rbp], 268435456
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 17
	call	sigaction@PLT
	test	eax, eax
	jns	.L68
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	fail_io
.L68:
	lea	rax, -240[rbp]
	mov	edx, 32
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rdx, -208[rbp]
	lea	rax, -240[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	setitimer@PLT
	test	eax, eax
	jns	.L69
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	fail_io
.L69:
	call	fork@PLT
	mov	DWORD PTR -252[rbp], eax
	cmp	DWORD PTR -252[rbp], 0
	jns	.L70
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	fail_io
.L70:
	cmp	DWORD PTR -252[rbp], 0
	je	.L71
	mov	eax, DWORD PTR -256[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edx, DWORD PTR -168[rbp]
	mov	eax, DWORD PTR -260[rbp]
	mov	esi, edx
	mov	edi, eax
	call	relay
	lea	rcx, -264[rbp]
	mov	eax, DWORD PTR -252[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	test	eax, eax
	jle	.L72
	mov	eax, DWORD PTR -264[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L73
	mov	eax, DWORD PTR -264[rbp]
	sar	eax, 8
	movzx	eax, al
	jmp	.L83
.L73:
	mov	eax, DWORD PTR -264[rbp]
	and	eax, 127
	add	eax, 1
	sar	al
	test	al, al
	jle	.L72
	mov	eax, DWORD PTR -264[rbp]
	and	eax, 127
	mov	edi, eax
	call	raise@PLT
.L72:
	mov	eax, 0
	jmp	.L83
.L71:
	mov	rax, QWORD PTR -184[rbp]
	test	rax, rax
	js	.L75
	mov	rax, QWORD PTR -184[rbp]
	cmp	rax, 999999
	jle	.L76
.L75:
	mov	QWORD PTR -184[rbp], 999999
.L76:
	mov	rax, QWORD PTR -200[rbp]
	test	rax, rax
	js	.L77
	mov	rax, QWORD PTR -200[rbp]
	cmp	rax, 999999
	jle	.L78
.L77:
	mov	QWORD PTR -200[rbp], 999999
.L78:
	lea	rax, -208[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	setitimer@PLT
	test	eax, eax
	jns	.L79
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	fail_io
.L79:
	mov	eax, DWORD PTR -256[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	test	eax, eax
	jns	.L80
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	fail_io
.L80:
	mov	eax, DWORD PTR -168[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	js	.L81
	mov	eax, DWORD PTR -164[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	js	.L81
	mov	eax, DWORD PTR -256[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	js	.L81
	mov	eax, DWORD PTR -260[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jns	.L82
.L81:
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	fail_io
.L82:
	mov	rax, QWORD PTR -288[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -288[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	fail_io
.L83:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L84
	call	__stack_chk_fail@PLT
.L84:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.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	"104827954.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	": %s\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fail_io, %function
fail_io:
	@ args = 4, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	ldr	r3, [fp, #4]
	str	r3, [fp, #-24]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	add	r3, fp, #8
	str	r3, [fp, #-20]
	ldr	r3, .L4+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	vfprintf
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L4+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L4+8
	mov	r0, r4
	bl	fprintf
.L2:
	ldr	r3, .L4+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	putc
	mov	r0, #1
	bl	exit
.L5:
	.align	2
.L4:
	.word	.LC1
	.word	stderr
	.word	.LC0
	.size	fail_io, .-fail_io
	.section	.rodata
	.align	2
.LC2:
	.ascii	"tcgetattr\000"
	.align	2
.LC3:
	.ascii	"tcsetattr\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_noncanon, %function
make_noncanon:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-72]
	bl	isatty
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	tcgetattr
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L12+4
	bl	fail_io
.L8:
	ldr	r3, [fp, #-56]
	bic	r3, r3, #10
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-76]
	and	r3, r3, #255
	strb	r3, [fp, #-45]
	ldr	r3, [fp, #-80]
	and	r3, r3, #255
	strb	r3, [fp, #-46]
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	tcsetattr
	mov	r3, r0
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L12+8
	bl	fail_io
.L11:
	nop
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC4
	.word	.LC2
	.word	.LC3
	.size	make_noncanon, .-make_noncanon
	.section	.rodata
	.align	2
.LC5:
	.ascii	"fcntl\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_nonblocking, %function
make_nonblocking:
	@ 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, r1
	strb	r3, [fp, #-17]
	mov	r1, #3
	ldr	r0, [fp, #-16]
	bl	fcntl
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L20
	bl	fail_io
.L15:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-8]
	orr	r3, r3, #2048
	str	r3, [fp, #-8]
	b	.L17
.L16:
	ldr	r3, [fp, #-8]
	bic	r3, r3, #2048
	str	r3, [fp, #-8]
.L17:
	ldr	r2, [fp, #-8]
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	fcntl
	mov	r3, r0
	cmp	r3, #0
	bge	.L19
	ldr	r0, .L20
	bl	fail_io
.L19:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC5
	.size	make_nonblocking, .-make_nonblocking
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_error, %function
handle_error:
	@ 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	r3, [fp, #-20]
	mov	r3, r2
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L27
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #5
	bne	.L25
	ldr	r3, [fp, #-12]
	mvn	r2, #0
	str	r2, [r3]
	b	.L27
.L25:
	ldr	r1, [fp, #-20]
	ldr	r0, .L28
	bl	fail_io
.L23:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	mvn	r2, #0
	str	r2, [r3]
	b	.L27
.L26:
	ldr	r1, [fp, #-20]
	ldr	r0, .L28
	bl	fail_io
.L27:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC6
	.size	handle_error, .-handle_error
	.section	.rodata
	.align	2
.LC7:
	.ascii	"select\000"
	.align	2
.LC8:
	.ascii	"read\000"
	.align	2
.LC9:
	.ascii	"write\000"
	.align	2
.LC10:
	.ascii	"zero-length write\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	relay, %function
relay:
	@ args = 0, pretend = 0, frame = 16744
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #16640
	sub	sp, sp, #116
	sub	r3, fp, #16384
	sub	r3, r3, #12
	str	r0, [r3, #-356]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	str	r1, [r3, #-360]
	ldr	r3, .L67
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r1, #1
	ldr	r0, [r3, #-356]
	bl	make_nonblocking
	mov	r1, #1
	mov	r0, #0
	bl	make_nonblocking
	mov	r1, #1
	mov	r0, #1
	bl	make_nonblocking
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, #1
	mov	r1, #16
	ldr	r0, [r3, #-356]
	bl	make_noncanon
	mov	r2, #0
	mov	r1, #1
	mov	r0, #0
	bl	make_noncanon
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #44
	ldr	r2, .L67+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-44]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-356]
	str	r3, [r2, #-40]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	add	r3, r3, #4096
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-356]
	str	r3, [r2, #4072]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	add	r3, r3, #4096
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #4076]
	b	.L31
.L52:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16640
	sub	r3, r3, #12
	sub	r3, r3, #44
	str	r3, [r2, #-336]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-344]
	b	.L32
.L33:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-336]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-344]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-344]
	add	r3, r3, #1
	str	r3, [r2, #-344]
.L32:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-344]
	cmp	r3, #31
	bls	.L33
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #172
	str	r3, [r2, #-332]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-340]
	b	.L34
.L35:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-332]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-340]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-340]
	add	r3, r3, #1
	str	r3, [r2, #-340]
.L34:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-340]
	cmp	r3, #31
	bls	.L35
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-348]
	b	.L36
.L40:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r0, r3
	sub	r2, fp, #16384
	sub	r2, r2, #12
	sub	r2, r2, #44
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r1, [r3, #-348]
	mov	r3, r1
	lsl	r3, r3, #9
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [r0, #-312]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-348]
	cmp	r3, #0
	bne	.L37
	sub	r3, fp, #16384
	sub	r3, r3, #12
	add	r3, r3, #12288
	ldrb	r3, [r3, #4088]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L63
.L37:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-312]
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L39
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-312]
	add	r3, r3, #8192
	ldr	r2, [r3, #8]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-312]
	add	r3, r3, #8192
	ldr	r3, [r3, #12]
	add	r3, r2, r3
	cmp	r3, #8192
	bcs	.L39
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-312]
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-300]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-312]
	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
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-300]
.L39:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-312]
	ldr	r3, [r3, #4]
	cmn	r3, #1
	beq	.L38
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-312]
	add	r3, r3, #8192
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L38
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-312]
	ldr	r3, [r3, #4]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-172]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-312]
	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
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-172]
	b	.L38
.L63:
	nop
.L38:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-348]
	add	r3, r3, #1
	str	r3, [r2, #-348]
.L36:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-348]
	cmp	r3, #1
	ble	.L40
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r1, r3
	lsl	r3, r2, #2
	add	r3, r1, r3
	ldr	r1, [r3, #-300]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	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
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r0, r3
	lsl	r3, r2, #2
	add	r3, r0, r3
	str	r1, [r3, #-300]
.L42:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #16384
	sub	r2, r2, #12
	sub	r2, r2, #172
	sub	r1, fp, #16640
	sub	r1, r1, #12
	sub	r1, r1, #44
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r0, #1024
	bl	select
	str	r0, [r4, #-328]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	cmp	r3, #0
	bge	.L41
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L42
.L41:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-328]
	cmp	r3, #0
	bge	.L43
	ldr	r0, .L67+8
	bl	fail_io
.L43:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	sub	r2, fp, #16384
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-300]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-360]
	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
	bne	.L64
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-348]
	b	.L46
.L51:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r0, r3
	sub	r2, fp, #16384
	sub	r2, r2, #12
	sub	r2, r2, #44
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r1, [r3, #-348]
	mov	r3, r1
	lsl	r3, r3, #9
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [r0, #-324]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L47
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	sub	r2, fp, #16384
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-300]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	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	.L47
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	ldr	r0, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r2, r3, #8
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r3, r3, #8192
	ldr	r1, [r3, #12]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r3, r3, #8192
	ldr	r3, [r3, #8]
	add	r3, r1, r3
	add	r1, r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r3, r3, #8192
	ldr	r2, [r3, #12]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r3, r3, #8192
	ldr	r3, [r3, #8]
	add	r3, r2, r3
	rsb	r3, r3, #8192
	sub	r2, fp, #16384
	sub	r2, r2, #12
	mov	r4, r2
	mov	r2, r3
	bl	read
	str	r0, [r4, #-320]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-320]
	cmp	r3, #0
	ble	.L48
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r3, r3, #8192
	mov	r2, #1
	strb	r2, [r3, #16]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r3, r3, #8192
	ldr	r2, [r3, #8]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-320]
	add	r3, r2, r3
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-324]
	add	r2, r2, #8192
	str	r3, [r2, #8]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r3, r3, #8192
	ldr	r3, [r3, #8]
	cmp	r3, #8192
	bne	.L47
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r3, r3, #8192
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L47
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r0, r3, #8
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r2, r3, #8
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r3, r3, #8192
	ldr	r3, [r3, #12]
	add	r1, r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r3, r3, #8192
	ldr	r3, [r3, #8]
	mov	r2, r3
	bl	memmove
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r3, r3, #8192
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #12]
	b	.L47
.L48:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r1, [r3, #-324]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	ldr	r3, [r3]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-356]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r2, r3, #255
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r0, r3
	ldr	r3, .L67+12
	ldr	r0, [r0, #-320]
	bl	handle_error
.L47:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	ldr	r3, [r3, #4]
	cmn	r3, #1
	beq	.L49
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	ldr	r3, [r3, #4]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	sub	r2, fp, #16384
	sub	r2, r2, #12
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #-172]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	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	.L49
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	ldr	r0, [r3, #4]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r2, r3, #8
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r3, r3, #8192
	ldr	r3, [r3, #12]
	add	r1, r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r3, r3, #8192
	ldr	r3, [r3, #8]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	mov	r4, r2
	mov	r2, r3
	bl	write
	str	r0, [r4, #-316]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-316]
	cmp	r3, #0
	ble	.L50
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r3, r3, #8192
	ldr	r2, [r3, #12]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-316]
	add	r3, r2, r3
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-324]
	add	r2, r2, #8192
	str	r3, [r2, #12]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r3, r3, #8192
	ldr	r2, [r3, #8]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-316]
	sub	r3, r2, r3
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-324]
	add	r2, r2, #8192
	str	r3, [r2, #8]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r3, r3, #8192
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L49
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r3, r3, #8192
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #12]
	b	.L49
.L50:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	add	r1, r3, #4
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-324]
	ldr	r3, [r3, #4]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-356]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r2, r3, #255
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r0, r3
	ldr	r3, .L67+16
	ldr	r0, [r0, #-316]
	bl	handle_error
.L49:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-348]
	add	r3, r3, #1
	str	r3, [r2, #-348]
.L46:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-348]
	cmp	r3, #1
	ble	.L51
.L31:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	add	r3, r3, #4096
	ldr	r3, [r3, #4072]
	cmn	r3, #1
	bne	.L52
	b	.L45
.L64:
	nop
.L45:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	add	r3, r3, #4096
	ldr	r3, [r3, #4076]
	cmn	r3, #1
	beq	.L65
	mov	r1, #0
	mov	r0, #1
	bl	make_nonblocking
.L60:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #44
	add	r3, r3, #8192
	add	r3, r3, #20
	str	r3, [r2, #-308]
	b	.L55
.L58:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-308]
	ldr	r0, [r3, #4]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-308]
	add	r2, r3, #8
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-308]
	add	r3, r3, #8192
	ldr	r3, [r3, #12]
	add	r1, r2, r3
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-308]
	add	r3, r3, #8192
	ldr	r3, [r3, #8]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	mov	r4, r2
	mov	r2, r3
	bl	write
	str	r0, [r4, #-304]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-304]
	cmp	r3, #0
	bge	.L56
	ldr	r0, .L67+16
	bl	fail_io
.L56:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-304]
	cmp	r3, #0
	bne	.L57
	ldr	r0, .L67+20
	bl	fail_io
.L57:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-308]
	add	r3, r3, #8192
	ldr	r2, [r3, #12]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-304]
	add	r3, r2, r3
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-308]
	add	r2, r2, #8192
	str	r3, [r2, #12]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-308]
	add	r3, r3, #8192
	ldr	r2, [r3, #8]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-304]
	sub	r3, r2, r3
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-308]
	add	r2, r2, #8192
	str	r3, [r2, #8]
.L55:
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-308]
	add	r3, r3, #8192
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L58
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-308]
	add	r3, r3, #8192
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #12]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-308]
	ldr	r0, [r3]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-308]
	add	r3, r3, #8
	sub	r2, fp, #16384
	sub	r2, r2, #12
	mov	r4, r2
	mov	r2, #8192
	mov	r1, r3
	bl	read
	str	r0, [r4, #-304]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-304]
	sub	r2, fp, #16384
	sub	r2, r2, #12
	ldr	r2, [r2, #-308]
	add	r2, r2, #8192
	str	r3, [r2, #8]
	sub	r3, fp, #16384
	sub	r3, r3, #12
	ldr	r3, [r3, #-304]
	cmp	r3, #0
	ble	.L66
	b	.L60
.L65:
	nop
	b	.L30
.L66:
	nop
.L30:
	ldr	r3, .L67
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L62
	bl	__stack_chk_fail
.L62:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L68:
	.align	2
.L67:
	.word	.LC11
	.word	16424
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	relay, .-relay
	.local	dead_child_fd
	.comm	dead_child_fd,4,4
	.section	.rodata
	.align	2
.LC12:
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigchld_handler, %function
sigchld_handler:
	@ 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, .L72
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, .L72+4
	mov	r0, r3
	bl	write
	mov	r3, r0
	cmp	r3, #0
	bge	.L71
	mov	r0, #1
	bl	_exit
.L71:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L73:
	.align	2
.L72:
	.word	dead_child_fd
	.word	.LC12
	.size	sigchld_handler, .-sigchld_handler
	.section	.rodata
	.align	2
.LC13:
	.ascii	"usage: squish-pty COMMAND [ARG]...\012Squishes both"
	.ascii	" stdin and stdout into a single pseudoterminal,\012"
	.ascii	"which is passed as stdout to run the specified COMM"
	.ascii	"AND.\012\000"
	.align	2
.LC14:
	.ascii	"/dev/ptmx\000"
	.align	2
.LC15:
	.ascii	"open \"/dev/ptmx\"\000"
	.align	2
.LC16:
	.ascii	"grantpt\000"
	.align	2
.LC17:
	.ascii	"unlockpt\000"
	.align	2
.LC18:
	.ascii	"ptsname\000"
	.align	2
.LC19:
	.ascii	"open \"%s\"\000"
	.align	2
.LC20:
	.ascii	"pipe\000"
	.align	2
.LC21:
	.ascii	"sigaction\000"
	.align	2
.LC22:
	.ascii	"setitimer\000"
	.align	2
.LC23:
	.ascii	"fork\000"
	.align	2
.LC24:
	.ascii	"setitimer-child\000"
	.align	2
.LC25:
	.ascii	"dup2\000"
	.align	2
.LC26:
	.ascii	"close\000"
	.align	2
.LC27:
	.ascii	"exec\000"
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #216
	str	r0, [fp, #-216]
	str	r1, [fp, #-220]
	ldr	r3, .L100
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-216]
	cmp	r3, #1
	bgt	.L75
	ldr	r3, .L100+4
	ldr	r3, [r3]
	mov	r2, #152
	mov	r1, #1
	ldr	r0, .L100+8
	bl	fwrite
	mov	r3, #1
	b	.L98
.L75:
	ldr	r1, .L100+12
	ldr	r0, .L100+16
	bl	open
	str	r0, [fp, #-204]
	ldr	r3, [fp, #-204]
	cmp	r3, #0
	bge	.L77
	ldr	r0, .L100+20
	bl	fail_io
.L77:
	ldr	r0, [fp, #-204]
	bl	grantpt
	mov	r3, r0
	cmp	r3, #0
	bge	.L78
	ldr	r0, .L100+24
	bl	fail_io
.L78:
	ldr	r0, [fp, #-204]
	bl	unlockpt
	mov	r3, r0
	cmp	r3, #0
	bge	.L79
	ldr	r0, .L100+28
	bl	fail_io
.L79:
	ldr	r0, [fp, #-204]
	bl	ptsname
	str	r0, [fp, #-200]
	ldr	r3, [fp, #-200]
	cmp	r3, #0
	bne	.L80
	ldr	r0, .L100+32
	bl	fail_io
.L80:
	mov	r1, #2
	ldr	r0, [fp, #-200]
	bl	open
	str	r0, [fp, #-196]
	ldr	r3, [fp, #-196]
	cmp	r3, #0
	bge	.L81
	ldr	r1, [fp, #-200]
	ldr	r0, .L100+36
	bl	fail_io
.L81:
	sub	r3, fp, #156
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	bge	.L82
	ldr	r0, .L100+40
	bl	fail_io
.L82:
	ldr	r3, [fp, #-152]
	ldr	r2, .L100+44
	str	r3, [r2]
	sub	r3, fp, #148
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L100+48
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #268435456
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #17
	bl	sigaction
	mov	r3, r0
	cmp	r3, #0
	bge	.L83
	ldr	r0, .L100+52
	bl	fail_io
.L83:
	sub	r3, fp, #188
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r2, fp, #172
	sub	r3, fp, #188
	mov	r1, r3
	mov	r0, #1
	bl	setitimer
	mov	r3, r0
	cmp	r3, #0
	bge	.L84
	ldr	r0, .L100+56
	bl	fail_io
.L84:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-192]
	ldr	r3, [fp, #-192]
	cmp	r3, #0
	bge	.L85
	ldr	r0, .L100+60
	bl	fail_io
.L85:
	ldr	r3, [fp, #-192]
	cmp	r3, #0
	beq	.L86
	ldr	r0, [fp, #-196]
	bl	close
	ldr	r3, [fp, #-156]
	mov	r1, r3
	ldr	r0, [fp, #-204]
	bl	relay
	sub	r3, fp, #208
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-192]
	bl	waitpid
	mov	r3, r0
	cmp	r3, #0
	ble	.L87
	ldr	r3, [fp, #-208]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L88
	ldr	r3, [fp, #-208]
	asr	r3, r3, #8
	and	r3, r3, #255
	b	.L98
.L88:
	ldr	r3, [fp, #-208]
	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	.L87
	ldr	r3, [fp, #-208]
	and	r3, r3, #127
	mov	r0, r3
	bl	raise
.L87:
	mov	r3, #0
	b	.L98
.L86:
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	blt	.L90
	ldr	r3, [fp, #-160]
	ldr	r2, .L100+64
	cmp	r3, r2
	blt	.L91
.L90:
	ldr	r3, .L100+68
	str	r3, [fp, #-160]
.L91:
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	blt	.L92
	ldr	r3, [fp, #-168]
	ldr	r2, .L100+64
	cmp	r3, r2
	blt	.L93
.L92:
	ldr	r3, .L100+68
	str	r3, [fp, #-168]
.L93:
	sub	r3, fp, #172
	mov	r2, #0
	mov	r1, r3
	mov	r0, #1
	bl	setitimer
	mov	r3, r0
	cmp	r3, #0
	bge	.L94
	ldr	r0, .L100+72
	bl	fail_io
.L94:
	mov	r1, #1
	ldr	r0, [fp, #-196]
	bl	dup2
	mov	r3, r0
	cmp	r3, #0
	bge	.L95
	ldr	r0, .L100+76
	bl	fail_io
.L95:
	ldr	r3, [fp, #-156]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmp	r3, #0
	blt	.L96
	ldr	r3, [fp, #-152]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmp	r3, #0
	blt	.L96
	ldr	r0, [fp, #-196]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	blt	.L96
	ldr	r0, [fp, #-204]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L97
.L96:
	ldr	r0, .L100+80
	bl	fail_io
.L97:
	ldr	r3, [fp, #-220]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-220]
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	execvp
	ldr	r0, .L100+84
	bl	fail_io
.L98:
	ldr	r2, .L100
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L99
	bl	__stack_chk_fail
.L99:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L101:
	.align	2
.L100:
	.word	.LC28
	.word	stderr
	.word	.LC13
	.word	258
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	dead_child_fd
	.word	sigchld_handler
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	1000000
	.word	999999
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
