	.file	"957810.c"
	.intel_syntax noprefix
	.text
	.local	g_verbose
	.comm	g_verbose,4,4
	.local	g_force_no_thrash
	.comm	g_force_no_thrash,1,1
	.section	.rodata
.LC0:
	.string	"%s: %s\n"
	.text
	.type	perrorv, @function
perrorv:
.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	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	perrorv, .-perrorv
	.section	.rodata
.LC1:
	.string	"posix_fadvise"
	.text
	.type	fadvise, @function
fadvise:
.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
	mov	DWORD PTR -24[rbp], esi
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, edx
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	posix_fadvise@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L4
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	call	perrorv
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fadvise, .-fadvise
	.type	spliceall, @function
spliceall:
.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	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	jmp	.L6
.L9:
	mov	rcx, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	r9d, 5
	mov	r8, rcx
	mov	ecx, 0
	mov	esi, 0
	mov	edi, eax
	call	splice@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jg	.L7
	mov	eax, 0
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -8[rbp]
	sub	QWORD PTR -32[rbp], rax
.L6:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L9
	mov	eax, 1
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	spliceall, .-spliceall
	.section	.rodata
	.align 8
.LC2:
	.string	"Usage: utee [OPTION]... [FILE]...\n\n  -v\tbe verbose\n  -c\tforce pagecache cleansing (even if write performance suffers a little)"
	.text
	.type	usage, @function
usage:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.size	usage, .-usage
	.type	mode, @function
mode:
.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, 176
	mov	DWORD PTR -164[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	cmp	eax, -1
	jne	.L12
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	eax, DWORD PTR -136[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	mode, .-mode
	.section	.rodata
.LC3:
	.string	"pipe"
.LC4:
	.string	"file"
.LC5:
	.string	"dir"
.LC6:
	.string	"special block file (device)"
.LC7:
	.string	"tty"
.LC8:
	.string	"socket"
.LC9:
	.string	"unknown"
	.text
	.type	typestr, @function
typestr:
.LFB11:
	.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	eax, DWORD PTR -4[rbp]
	and	eax, 61440
	cmp	eax, 4096
	jne	.L16
	lea	rax, .LC3[rip]
	jmp	.L17
.L16:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 61440
	cmp	eax, 32768
	jne	.L18
	lea	rax, .LC4[rip]
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L19
	lea	rax, .LC5[rip]
	jmp	.L17
.L19:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 61440
	cmp	eax, 24576
	jne	.L20
	lea	rax, .LC6[rip]
	jmp	.L17
.L20:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 61440
	cmp	eax, 8192
	jne	.L21
	lea	rax, .LC7[rip]
	jmp	.L17
.L21:
	mov	eax, DWORD PTR -4[rbp]
	and	eax, 61440
	cmp	eax, 49152
	jne	.L22
	lea	rax, .LC8[rip]
	jmp	.L17
.L22:
	lea	rax, .LC9[rip]
.L17:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	typestr, .-typestr
	.type	writeout, @function
writeout:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, 2
	mov	edi, eax
	call	sync_file_range@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	writeout, .-writeout
	.section	.rodata
.LC10:
	.string	"fcntl(F_SETPIPE_SZ)"
	.text
	.type	pipesize, @function
pipesize:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 1031
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	cmp	eax, -1
	jne	.L26
	lea	rdi, .LC10[rip]
	call	perror@PLT
.L26:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	pipesize, .-pipesize
	.type	discard, @function
discard:
.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 -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, 7
	mov	edi, eax
	call	sync_file_range@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, 4
	mov	edi, eax
	call	posix_fadvise@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	discard, .-discard
	.type	swapwindow, @function
swapwindow:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	writeout
	cmp	QWORD PTR -16[rbp], 0
	je	.L30
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, 1
	imul	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	discard
.L30:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	swapwindow, .-swapwindow
	.section	.rodata
.LC11:
	.string	"tee()"
	.text
	.type	muxpipe, @function
muxpipe:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	movabs	rax, 9223372036854775807
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	jmp	.L32
.L38:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	esi, DWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	mov	ecx, 2
	mov	edx, 2147483647
	mov	edi, eax
	call	tee@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L33
	mov	eax, 0
	jmp	.L34
.L33:
	cmp	QWORD PTR -8[rbp], -1
	jne	.L35
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	jne	.L36
	mov	edi, 1000
	call	usleep@PLT
	jmp	.L32
.L36:
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	rax, -1
	jmp	.L34
.L35:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	jge	.L37
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
.L37:
	add	QWORD PTR -16[rbp], 1
.L32:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -56[rbp]
	jb	.L38
	movabs	rax, 9223372036854775807
	cmp	QWORD PTR -24[rbp], rax
	je	.L39
	mov	rax, QWORD PTR -24[rbp]
	jmp	.L34
.L39:
	mov	eax, 0
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	muxpipe, .-muxpipe
	.type	drain, @function
drain:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	QWORD PTR -8[rbp], 0
	jmp	.L42
.L43:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -48[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	spliceall
	add	QWORD PTR -8[rbp], 1
.L42:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jb	.L43
	mov	rax, QWORD PTR -48[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	drain, .-drain
	.section	.rodata
.LC12:
	.string	"pipe()"
	.text
	.type	xpipe, @function
xpipe:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	test	eax, eax
	jns	.L46
	lea	rdi, .LC12[rip]
	call	perror@PLT
	lea	rax, -16[rbp]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -16[rbp]
	jmp	.L48
.L46:
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, 1048576
	mov	edi, eax
	call	pipesize
	mov	rax, QWORD PTR -16[rbp]
.L48:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	xpipe, .-xpipe
	.section	.rodata
	.align 8
.LC13:
	.string	"input is not a pipe, using an intermediate\n"
	.align 8
.LC14:
	.string	"tee'ing directly from the input pipe\n"
.LC15:
	.string	"input splice()"
.LC16:
	.string	"push -> %zd bytes\n"
.LC17:
	.string	"mux 1 -> %zu, %zd bytes\n"
.LC18:
	.string	"drain %zu -> %zu, %zd bytes\n"
	.text
	.type	utee, @function
utee:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	QWORD PTR -200[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -166[rbp], 0
	mov	DWORD PTR -164[rbp], 0
	mov	eax, DWORD PTR -180[rbp]
	mov	edi, eax
	call	mode
	and	eax, 61440
	cmp	eax, 4096
	setne	al
	mov	BYTE PTR -165[rbp], al
	cmp	BYTE PTR -165[rbp], 0
	je	.L51
	mov	eax, DWORD PTR g_verbose[rip]
	test	eax, eax
	jle	.L52
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
.L52:
	lea	rax, -24[rbp]
	mov	rdi, rax
	call	pipe@PLT
	test	eax, eax
	jns	.L53
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	rax, -1
	jmp	.L90
.L53:
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -164[rbp], eax
	jmp	.L55
.L51:
	mov	eax, DWORD PTR g_verbose[rip]
	test	eax, eax
	jle	.L56
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 37
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
.L56:
	mov	eax, DWORD PTR -180[rbp]
	mov	DWORD PTR -164[rbp], eax
.L55:
	mov	eax, DWORD PTR -164[rbp]
	mov	esi, 1048576
	mov	edi, eax
	call	pipesize
	mov	rax, QWORD PTR -200[rbp]
	add	rax, 1
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -200[rbp]
	add	rax, 1
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -200[rbp]
	add	rax, 1
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	jmp	.L57
.L59:
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	mode
	and	eax, 61440
	cmp	eax, 4096
	je	.L58
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -192[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -152[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -152[rbp], rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR [rcx]
	mov	DWORD PTR [rdx], eax
.L58:
	add	QWORD PTR -144[rbp], 1
.L57:
	mov	rax, QWORD PTR -144[rbp]
	cmp	rax, QWORD PTR -200[rbp]
	jb	.L59
	cmp	QWORD PTR -152[rbp], 0
	jne	.L60
	mov	rax, QWORD PTR -200[rbp]
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -192[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -152[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -152[rbp], rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR [rcx]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -200[rbp]
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, 1048576
	mov	edi, eax
	call	pipesize
	sub	QWORD PTR -200[rbp], 1
.L60:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -164[rbp]
	mov	DWORD PTR [rax], edx
	mov	QWORD PTR -136[rbp], 1
	jmp	.L61
.L64:
	mov	eax, 0
	call	xpipe
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	je	.L92
	mov	rax, QWORD PTR -160[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -160[rbp], rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -136[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR [rdx], eax
	add	QWORD PTR -136[rbp], 1
.L61:
	mov	rax, QWORD PTR -136[rbp]
	cmp	rax, QWORD PTR -152[rbp]
	jb	.L64
	mov	QWORD PTR -128[rbp], 0
	jmp	.L65
.L67:
	mov	rax, QWORD PTR -128[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	mode
	and	eax, 61440
	cmp	eax, 4096
	jne	.L66
	mov	rax, QWORD PTR -128[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -192[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -160[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -160[rbp], rdx
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR [rcx]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -128[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, 1048576
	mov	edi, eax
	call	pipesize
.L66:
	add	QWORD PTR -128[rbp], 1
.L65:
	mov	rax, QWORD PTR -128[rbp]
	cmp	rax, QWORD PTR -200[rbp]
	jb	.L67
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
.L81:
	cmp	BYTE PTR -165[rbp], 0
	je	.L68
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	r9d, 5
	mov	r8d, 2147483647
	mov	ecx, 0
	mov	esi, 0
	mov	edi, eax
	call	splice@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], -1
	jne	.L69
	lea	rdi, .LC15[rip]
	call	perror@PLT
	jmp	.L63
.L69:
	cmp	QWORD PTR -48[rbp], 0
	je	.L93
	mov	eax, DWORD PTR g_verbose[rip]
	test	eax, eax
	jle	.L68
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -48[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L68:
	mov	rdx, QWORD PTR -160[rbp]
	mov	rcx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	muxpipe
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], -1
	je	.L94
	cmp	QWORD PTR -40[rbp], 0
	je	.L95
	mov	eax, DWORD PTR g_verbose[rip]
	test	eax, eax
	jle	.L74
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -160[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L74:
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	mov	rsi, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	drain
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], -1
	je	.L96
	mov	eax, DWORD PTR g_verbose[rip]
	test	eax, eax
	jle	.L76
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -152[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	mov	r8, rsi
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L76:
	cmp	QWORD PTR -112[rbp], 8388607
	jbe	.L77
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rcx, QWORD PTR -104[rbp]
	mov	edx, 8388608
	mov	rsi, rcx
	mov	edi, eax
	call	swapwindow
	movzx	eax, BYTE PTR g_force_no_thrash[rip]
	test	al, al
	je	.L78
	mov	QWORD PTR -96[rbp], 1
	jmp	.L79
.L80:
	mov	rax, QWORD PTR -96[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	rcx, QWORD PTR -104[rbp]
	mov	edx, 8388608
	mov	rsi, rcx
	mov	edi, eax
	call	swapwindow
	add	QWORD PTR -96[rbp], 1
.L79:
	mov	rax, QWORD PTR -96[rbp]
	cmp	rax, QWORD PTR -152[rbp]
	jb	.L80
.L78:
	mov	QWORD PTR -112[rbp], 0
	add	QWORD PTR -104[rbp], 1
.L77:
	mov	rax, QWORD PTR -40[rbp]
	add	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	add	QWORD PTR -112[rbp], rax
	jmp	.L81
.L93:
	nop
	jmp	.L71
.L95:
	nop
.L71:
	cmp	QWORD PTR -104[rbp], 0
	je	.L82
	mov	rax, QWORD PTR -112[rbp]
	lea	rdx, 8388608[rax]
	mov	rax, QWORD PTR -104[rbp]
	sub	rax, 1
	sal	rax, 23
	mov	rcx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rsi, rcx
	mov	edi, eax
	call	discard
	movzx	eax, BYTE PTR g_force_no_thrash[rip]
	test	al, al
	je	.L82
	mov	QWORD PTR -88[rbp], 1
	jmp	.L83
.L84:
	mov	rax, QWORD PTR -112[rbp]
	lea	rdx, 8388608[rax]
	mov	rax, QWORD PTR -104[rbp]
	sub	rax, 1
	sal	rax, 23
	mov	rcx, rax
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rsi
	mov	eax, DWORD PTR [rax]
	mov	rsi, rcx
	mov	edi, eax
	call	discard
	add	QWORD PTR -88[rbp], 1
.L83:
	mov	rax, QWORD PTR -88[rbp]
	cmp	rax, QWORD PTR -152[rbp]
	jb	.L84
.L82:
	mov	BYTE PTR -166[rbp], 1
	jmp	.L63
.L92:
	nop
	jmp	.L63
.L94:
	nop
	jmp	.L63
.L96:
	nop
.L63:
	cmp	BYTE PTR -165[rbp], 0
	je	.L85
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
.L85:
	mov	QWORD PTR -80[rbp], 1
	jmp	.L86
.L87:
	mov	rax, QWORD PTR -80[rbp]
	sal	rax, 2
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	add	QWORD PTR -80[rbp], 1
.L86:
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -152[rbp]
	jb	.L87
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	BYTE PTR -166[rbp], 0
	je	.L88
	mov	rax, QWORD PTR -120[rbp]
	jmp	.L90
.L88:
	mov	rax, -1
.L90:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L91
	call	__stack_chk_fail@PLT
.L91:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	utee, .-utee
	.section	.rodata
.LC19:
	.string	"vc"
	.text
	.type	parseopts, @function
parseopts:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L98
.L102:
	cmp	DWORD PTR -4[rbp], 99
	je	.L99
	cmp	DWORD PTR -4[rbp], 118
	jne	.L100
	mov	DWORD PTR g_verbose[rip], 1
	jmp	.L98
.L99:
	mov	BYTE PTR g_force_no_thrash[rip], 1
	jmp	.L98
.L100:
	mov	eax, -1
	jmp	.L101
.L98:
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, .LC19[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L102
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -20[rbp], eax
	jg	.L103
	mov	eax, -1
	jmp	.L101
.L103:
	mov	eax, DWORD PTR optind[rip]
.L101:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	parseopts, .-parseopts
	.section	.rodata
	.align 8
.LC20:
	.string	"Welcome to utee version unknown\n"
	.align 8
.LC21:
	.string	"can't output to an append-mode file, use regular tee\n"
.LC22:
	.string	"couldn't create file"
.LC23:
	.string	"STDIN is a %s!\n"
.LC24:
	.string	"STDOUT is a %s!\n"
.LC25:
	.string	"wrote %zd bytes\n"
.LC26:
	.string	"close()"
	.text
	.globl	main
	.type	main, @function
main:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	parseopts
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], -1
	jne	.L105
	mov	eax, 0
	call	usage
.L105:
	mov	eax, DWORD PTR g_verbose[rip]
	test	eax, eax
	jle	.L106
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
.L106:
	mov	esi, 3
	mov	edi, 1
	mov	eax, 0
	call	fcntl@PLT
	and	eax, 1024
	test	eax, eax
	je	.L107
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 53
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L107:
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 1
	mov	DWORD PTR -40[rbp], 1
	jmp	.L108
.L110:
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -40[rbp]
	add	eax, edx
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 420
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jns	.L109
	lea	rdi, .LC22[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L109:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -40[rbp], 1
.L108:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jge	.L110
	mov	edi, 0
	call	mode
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR g_verbose[rip]
	test	eax, eax
	jle	.L111
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	typestr
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L111:
	mov	eax, DWORD PTR g_verbose[rip]
	test	eax, eax
	jle	.L112
	mov	edi, 1
	call	mode
	mov	edi, eax
	call	typestr
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L112:
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 61440
	cmp	eax, 32768
	jne	.L113
	mov	esi, 2
	mov	edi, 0
	call	fadvise
.L113:
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	utee
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	je	.L114
	mov	eax, DWORD PTR g_verbose[rip]
	test	eax, eax
	jle	.L114
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L114:
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 61440
	cmp	eax, 32768
	jne	.L115
	mov	esi, 0
	mov	edi, 0
	call	fadvise
.L115:
	mov	DWORD PTR -36[rbp], 1
	jmp	.L116
.L118:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L117
	lea	rdi, .LC26[rip]
	call	perror@PLT
.L117:
	add	DWORD PTR -36[rbp], 1
.L116:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jge	.L118
	mov	edi, 0
	call	close@PLT
	cmp	eax, -1
	jne	.L119
	lea	rdi, .LC26[rip]
	call	perror@PLT
.L119:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	cmp	QWORD PTR -8[rbp], -1
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE21:
	.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	"957810.c"
	.text
	.local	g_verbose
	.comm	g_verbose,4,4
	.local	g_force_no_thrash
	.comm	g_force_no_thrash,1,1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	perrorv, %function
perrorv:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L2
	ldr	r4, [r3]
	ldr	r0, [fp, #-20]
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-16]
	ldr	r1, .L2+4
	mov	r0, r4
	bl	fprintf
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	perrorv, .-perrorv
	.section	.rodata
	.align	2
.LC1:
	.ascii	"posix_fadvise\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fadvise, %function
fadvise:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	posix_fadvise
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L6
	ldr	r1, [fp, #-8]
	ldr	r0, .L7
	bl	perrorv
.L6:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.size	fadvise, .-fadvise
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	spliceall, %function
spliceall:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	b	.L10
.L13:
	mov	r3, #5
	str	r3, [sp, #4]
	ldr	r3, [fp, #-24]
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, [fp, #-20]
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	splice
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L11
	mov	r3, #0
	b	.L12
.L11:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-24]
.L10:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L13
	mov	r3, #1
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	spliceall, .-spliceall
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Usage: utee [OPTION]... [FILE]...\012\012  -v\011be"
	.ascii	" verbose\012  -c\011force pagecache cleansing (even"
	.ascii	" if write performance suffers a little)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L15
	bl	puts
	mov	r0, #1
	bl	exit
.L16:
	.align	2
.L15:
	.word	.LC2
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mode, %function
mode:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	fstat
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	mov	r0, #1
	bl	exit
.L18:
	ldr	r3, [fp, #-84]
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC3
	.size	mode, .-mode
	.section	.rodata
	.align	2
.LC4:
	.ascii	"pipe\000"
	.align	2
.LC5:
	.ascii	"file\000"
	.align	2
.LC6:
	.ascii	"dir\000"
	.align	2
.LC7:
	.ascii	"special block file (device)\000"
	.align	2
.LC8:
	.ascii	"tty\000"
	.align	2
.LC9:
	.ascii	"socket\000"
	.align	2
.LC10:
	.ascii	"unknown\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	typestr, %function
typestr:
	@ 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, [fp, #-8]
	and	r3, r3, #61440
	cmp	r3, #4096
	bne	.L24
	ldr	r3, .L31
	b	.L25
.L24:
	ldr	r3, [fp, #-8]
	and	r3, r3, #61440
	cmp	r3, #32768
	bne	.L26
	ldr	r3, .L31+4
	b	.L25
.L26:
	ldr	r3, [fp, #-8]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L27
	ldr	r3, .L31+8
	b	.L25
.L27:
	ldr	r3, [fp, #-8]
	and	r3, r3, #61440
	cmp	r3, #24576
	bne	.L28
	ldr	r3, .L31+12
	b	.L25
.L28:
	ldr	r3, [fp, #-8]
	and	r3, r3, #61440
	cmp	r3, #8192
	bne	.L29
	ldr	r3, .L31+16
	b	.L25
.L29:
	ldr	r3, [fp, #-8]
	and	r3, r3, #61440
	cmp	r3, #49152
	bne	.L30
	ldr	r3, .L31+20
	b	.L25
.L30:
	ldr	r3, .L31+24
.L25:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L32:
	.align	2
.L31:
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	typestr, .-typestr
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	writeout, %function
writeout:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	mov	r1, #0
	ldr	r3, [fp, #-16]
	mov	r2, r3
	mov	r3, #0
	mov	ip, #2
	str	ip, [sp, #8]
	stm	sp, {r2-r3}
	mov	r2, r0
	mov	r3, r1
	ldr	r0, [fp, #-8]
	bl	sync_file_range
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	writeout, .-writeout
	.section	.rodata
	.align	2
.LC11:
	.ascii	"fcntl(F_SETPIPE_SZ)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pipesize, %function
pipesize:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-12]
	ldr	r1, .L37
	ldr	r0, [fp, #-8]
	bl	fcntl
	mov	r3, r0
	cmn	r3, #1
	bne	.L36
	ldr	r0, .L37+4
	bl	perror
.L36:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	1031
	.word	.LC11
	.size	pipesize, .-pipesize
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	discard, %function
discard:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	mov	r1, #0
	ldr	r3, [fp, #-16]
	mov	r2, r3
	mov	r3, #0
	mov	ip, #7
	str	ip, [sp, #8]
	stm	sp, {r2-r3}
	mov	r2, r0
	mov	r3, r1
	ldr	r0, [fp, #-8]
	bl	sync_file_range
	ldr	r1, [fp, #-12]
	ldr	r2, [fp, #-16]
	mov	r3, #4
	ldr	r0, [fp, #-8]
	bl	posix_fadvise
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	discard, .-discard
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	swapwindow, %function
swapwindow:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	writeout
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	discard
.L42:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	swapwindow, .-swapwindow
	.section	.rodata
	.align	2
.LC12:
	.ascii	"tee()\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	muxpipe, %function
muxpipe:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mvn	r3, #-2147483648
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L44
.L50:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r1, [r3]
	mov	r3, #2
	mvn	r2, #-2147483648
	ldr	r0, [fp, #-24]
	bl	tee
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L45
	mov	r3, #0
	b	.L46
.L45:
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L47
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	bne	.L48
	mov	r0, #1000
	bl	usleep
	b	.L44
.L48:
	ldr	r0, .L53
	bl	perror
	mvn	r3, #0
	b	.L46
.L47:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bge	.L49
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-16]
.L49:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L44:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bcc	.L50
	ldr	r3, [fp, #-16]
	cmn	r3, #-2147483647
	beq	.L51
	ldr	r3, [fp, #-16]
	b	.L46
.L51:
	mov	r3, #0
.L46:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC12
	.size	muxpipe, .-muxpipe
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	drain, %function
drain:
	@ 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]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L56
.L57:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	mov	r1, r3
	bl	spliceall
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L56:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcc	.L57
	ldr	r3, [fp, #-28]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	drain, .-drain
	.section	.rodata
	.align	2
.LC13:
	.ascii	"pipe()\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xpipe, %function
xpipe:
	@ 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, .L64
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	bge	.L60
	ldr	r0, .L64+4
	bl	perror
	sub	r3, fp, #16
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-24]
	mov	r2, r3
	sub	r3, fp, #16
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	b	.L59
.L60:
	ldr	r3, [fp, #-16]
	mov	r1, #1048576
	mov	r0, r3
	bl	pipesize
	ldr	r3, [fp, #-24]
	mov	r2, r3
	sub	r3, fp, #16
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
.L59:
	ldr	r3, .L64
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L63
	bl	__stack_chk_fail
.L63:
	ldr	r0, [fp, #-24]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	.LC14
	.word	.LC13
	.size	xpipe, .-xpipe
	.section	.rodata
	.align	2
.LC15:
	.ascii	"input is not a pipe, using an intermediate\012\000"
	.align	2
.LC16:
	.ascii	"tee'ing directly from the input pipe\012\000"
	.align	2
.LC17:
	.ascii	"input splice()\000"
	.align	2
.LC18:
	.ascii	"push -> %zd bytes\012\000"
	.align	2
.LC19:
	.ascii	"mux 1 -> %zu, %zd bytes\012\000"
	.align	2
.LC20:
	.ascii	"drain %zu -> %zu, %zd bytes\012\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	utee, %function
utee:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	str	r2, [fp, #-112]
	ldr	r3, .L113
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-98]
	mov	r3, #0
	str	r3, [fp, #-96]
	ldr	r0, [fp, #-104]
	bl	mode
	mov	r3, r0
	and	r3, r3, #61440
	cmp	r3, #4096
	movne	r3, #1
	moveq	r3, #0
	strb	r3, [fp, #-97]
	ldrb	r3, [fp, #-97]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L67
	ldr	r3, .L113+4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L68
	ldr	r3, .L113+8
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L113+12
	bl	fwrite
.L68:
	sub	r3, fp, #24
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	bge	.L69
	ldr	r0, .L113+16
	bl	perror
	mvn	r3, #0
	b	.L106
.L69:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-96]
	b	.L71
.L67:
	ldr	r3, .L113+4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L72
	ldr	r3, .L113+8
	ldr	r3, [r3]
	mov	r2, #37
	mov	r1, #1
	ldr	r0, .L113+20
	bl	fwrite
.L72:
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-96]
.L71:
	mov	r1, #1048576
	ldr	r0, [fp, #-96]
	bl	pipesize
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-88]
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L73
.L75:
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-108]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	mode
	mov	r3, r0
	and	r3, r3, #61440
	cmp	r3, #4096
	beq	.L74
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-108]
	add	r2, r2, r3
	ldr	r3, [fp, #-88]
	add	r1, r3, #1
	str	r1, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-40]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
.L74:
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L73:
	ldr	r2, [fp, #-84]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	bcc	.L75
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bne	.L76
	ldr	r3, [fp, #-112]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-108]
	add	r2, r2, r3
	ldr	r3, [fp, #-88]
	add	r1, r3, #1
	str	r1, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-40]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-112]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-108]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #1048576
	mov	r0, r3
	bl	pipesize
	ldr	r3, [fp, #-112]
	sub	r3, r3, #1
	str	r3, [fp, #-112]
.L76:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-96]
	str	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-80]
	b	.L77
.L80:
	sub	r3, fp, #16
	mov	r0, r3
	bl	xpipe
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L108
	ldr	r3, [fp, #-92]
	add	r2, r3, #1
	str	r2, [fp, #-92]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
.L77:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-88]
	cmp	r2, r3
	bcc	.L80
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L81
.L83:
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-108]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	mode
	mov	r3, r0
	and	r3, r3, #61440
	cmp	r3, #4096
	bne	.L82
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-108]
	add	r2, r2, r3
	ldr	r3, [fp, #-92]
	add	r1, r3, #1
	str	r1, [fp, #-92]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-48]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-108]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #1048576
	mov	r0, r3
	bl	pipesize
.L82:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L81:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-112]
	cmp	r2, r3
	bcc	.L83
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-68]
	mov	r3, #0
	str	r3, [fp, #-64]
.L97:
	ldrb	r3, [fp, #-97]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L84
	ldr	r2, [fp, #-20]
	mov	r3, #5
	str	r3, [sp, #4]
	mvn	r3, #-2147483648
	str	r3, [sp]
	mov	r3, #0
	mov	r1, #0
	ldr	r0, [fp, #-104]
	bl	splice
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	bne	.L85
	ldr	r0, .L113+24
	bl	perror
	b	.L79
.L85:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L109
	ldr	r3, .L113+4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L84
	ldr	r3, .L113+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	ldr	r1, .L113+28
	mov	r0, r3
	bl	fprintf
.L84:
	ldr	r2, [fp, #-92]
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-96]
	bl	muxpipe
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	beq	.L110
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L111
	ldr	r3, .L113+4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L90
	ldr	r3, .L113+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-92]
	ldr	r1, .L113+32
	bl	fprintf
.L90:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-88]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-44]
	bl	drain
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	beq	.L112
	ldr	r3, .L113+4
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L92
	ldr	r3, .L113+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	ldr	r3, [fp, #-88]
	ldr	r2, [fp, #-88]
	ldr	r1, .L113+36
	bl	fprintf
.L92:
	ldr	r3, [fp, #-68]
	cmp	r3, #8388608
	bcc	.L93
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	mov	r2, #8388608
	ldr	r1, [fp, #-64]
	mov	r0, r3
	bl	swapwindow
	ldr	r3, .L113+40
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L94
	mov	r3, #1
	str	r3, [fp, #-60]
	b	.L95
.L96:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #8388608
	ldr	r1, [fp, #-64]
	mov	r0, r3
	bl	swapwindow
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L95:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-88]
	cmp	r2, r3
	bcc	.L96
.L94:
	mov	r3, #0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L93:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-68]
	add	r3, r2, r3
	str	r3, [fp, #-68]
	b	.L97
.L109:
	nop
	b	.L87
.L111:
	nop
.L87:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L98
	ldr	r3, [fp, #-40]
	ldr	r0, [r3]
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	lsl	r1, r3, #23
	ldr	r3, [fp, #-68]
	add	r3, r3, #8388608
	mov	r2, r3
	bl	discard
	ldr	r3, .L113+40
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L98
	mov	r3, #1
	str	r3, [fp, #-56]
	b	.L99
.L100:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-64]
	sub	r3, r3, #1
	lsl	r1, r3, #23
	ldr	r3, [fp, #-68]
	add	r3, r3, #8388608
	mov	r2, r3
	bl	discard
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L99:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-88]
	cmp	r2, r3
	bcc	.L100
.L98:
	mov	r3, #1
	strb	r3, [fp, #-98]
	b	.L79
.L108:
	nop
	b	.L79
.L110:
	nop
	b	.L79
.L112:
	nop
.L79:
	ldrb	r3, [fp, #-97]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L101
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	close
.L101:
	mov	r3, #1
	str	r3, [fp, #-52]
	b	.L102
.L103:
	ldr	r3, [fp, #-52]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L102:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-88]
	cmp	r2, r3
	bcc	.L103
	ldr	r0, [fp, #-44]
	bl	free
	ldr	r0, [fp, #-40]
	bl	free
	ldr	r0, [fp, #-48]
	bl	free
	ldrb	r3, [fp, #-98]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L104
	ldr	r3, [fp, #-72]
	b	.L106
.L104:
	mvn	r3, #0
.L106:
	ldr	r2, .L113
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L107
	bl	__stack_chk_fail
.L107:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L114:
	.align	2
.L113:
	.word	.LC21
	.word	g_verbose
	.word	stderr
	.word	.LC15
	.word	.LC13
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	g_force_no_thrash
	.size	utee, .-utee
	.section	.rodata
	.align	2
.LC22:
	.ascii	"vc\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parseopts, %function
parseopts:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L116
.L120:
	ldr	r3, [fp, #-8]
	cmp	r3, #99
	beq	.L117
	ldr	r3, [fp, #-8]
	cmp	r3, #118
	bne	.L118
	ldr	r3, .L122
	mov	r2, #1
	str	r2, [r3]
	b	.L116
.L117:
	ldr	r3, .L122+4
	mov	r2, #1
	strb	r2, [r3]
	b	.L116
.L118:
	mvn	r3, #0
	b	.L119
.L116:
	ldr	r2, .L122+8
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	getopt
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L120
	ldr	r3, .L122+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bgt	.L121
	mvn	r3, #0
	b	.L119
.L121:
	ldr	r3, .L122+12
	ldr	r3, [r3]
.L119:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L123:
	.align	2
.L122:
	.word	g_verbose
	.word	g_force_no_thrash
	.word	.LC22
	.word	optind
	.size	parseopts, .-parseopts
	.section	.rodata
	.align	2
.LC23:
	.ascii	"Welcome to utee version unknown\012\000"
	.align	2
.LC24:
	.ascii	"can't output to an append-mode file, use regular te"
	.ascii	"e\012\000"
	.align	2
.LC25:
	.ascii	"couldn't create file\000"
	.align	2
.LC26:
	.ascii	"STDIN is a %s!\012\000"
	.align	2
.LC27:
	.ascii	"STDOUT is a %s!\012\000"
	.align	2
.LC28:
	.ascii	"wrote %zd bytes\012\000"
	.align	2
.LC29:
	.ascii	"close()\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	parseopts
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	bne	.L125
	bl	usage
.L125:
	ldr	r3, .L140
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L126
	ldr	r3, .L140+4
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L140+8
	bl	fwrite
.L126:
	mov	r1, #3
	mov	r0, #1
	bl	fcntl
	mov	r3, r0
	and	r3, r3, #1024
	cmp	r3, #0
	beq	.L127
	ldr	r3, .L140+4
	ldr	r3, [r3]
	mov	r2, #53
	mov	r1, #1
	ldr	r0, .L140+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L127:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-36]
	sub	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L128
.L130:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #420
	ldr	r1, .L140+16
	mov	r0, r3
	bl	open
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L129
	ldr	r0, .L140+20
	bl	perror
	mov	r0, #1
	bl	exit
.L129:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L128:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bge	.L130
	mov	r0, #0
	bl	mode
	str	r0, [fp, #-24]
	ldr	r3, .L140
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L131
	ldr	r3, .L140+4
	ldr	r4, [r3]
	ldr	r0, [fp, #-24]
	bl	typestr
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L140+24
	mov	r0, r4
	bl	fprintf
.L131:
	ldr	r3, .L140
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L132
	ldr	r3, .L140+4
	ldr	r4, [r3]
	mov	r0, #1
	bl	mode
	mov	r3, r0
	mov	r0, r3
	bl	typestr
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L140+28
	mov	r0, r4
	bl	fprintf
.L132:
	ldr	r3, [fp, #-24]
	and	r3, r3, #61440
	cmp	r3, #32768
	bne	.L133
	mov	r1, #2
	mov	r0, #0
	bl	fadvise
.L133:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-28]
	mov	r0, #0
	bl	utee
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	beq	.L134
	ldr	r3, .L140
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L134
	ldr	r3, .L140+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, .L140+32
	mov	r0, r3
	bl	fprintf
.L134:
	ldr	r3, [fp, #-24]
	and	r3, r3, #61440
	cmp	r3, #32768
	bne	.L135
	mov	r1, #0
	mov	r0, #0
	bl	fadvise
.L135:
	mov	r3, #1
	str	r3, [fp, #-40]
	b	.L136
.L138:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L137
	ldr	r0, .L140+36
	bl	perror
.L137:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L136:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	bge	.L138
	mov	r0, #0
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L139
	ldr	r0, .L140+36
	bl	perror
.L139:
	ldr	r0, [fp, #-28]
	bl	free
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	exit
.L141:
	.align	2
.L140:
	.word	g_verbose
	.word	stderr
	.word	.LC23
	.word	.LC24
	.word	577
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
