	.file	"260791.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.ascii	"Usage:\n  tty-copy [options] text to copy\n  tty-copy [optio"
	.ascii	"ns] < file-to-copy\n  tty-copy (-t | -V | -h)\n\nCopy conten"
	.ascii	"t to the system clipboard from anywhere via terminal that su"
	.ascii	"pports\nANSI OSC 52 sequence.\n\nOptions:\n  -c --clear     "
	.ascii	"    Instead of copying anything, clear the clipboard.\n  -n "
	.ascii	"--trim-newline  Do not copy the trailing newline character.\n"
	.ascii	"  -o --output FILE   Path of the terminal device (defaults t"
	.ascii	"o /dev/tty).\n  -p --primary       Use the \"primary\" clipb"
	.ascii	"oard (selection) instead of the\n                     regula"
	.ascii	"r clipboard.\n  -T --term TERM     Type of the terminal: (de"
	.ascii	"fault), screen, or "
	.string	"tmux.\n  -t --test          Test if your terminal processes OSC 52 sequence.\n  -V --version       Print program name & version and exit.\n  -h --help          Display this message and exit.\n\nPlease report bugs at <https://github.com/jirutka/tty-copy/issues>\n"
	.section	.data.rel.ro.local,"aw"
	.align 8
	.type	help_msg, @object
	.size	help_msg, 8
help_msg:
	.quad	.LC0
	.local	opts
	.comm	opts,16,16
	.text
	.type	str_startswith, @function
str_startswith:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	sete	al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	str_startswith, .-str_startswith
	.type	str_equal, @function
str_equal:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	sete	al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	str_equal, .-str_equal
	.section	.rodata
.LC1:
	.string	"the_stack_data/260791.c"
.LC2:
	.string	"argc > 0 && \"given zero argc\""
.LC3:
	.string	"cno:pT:thV"
	.align 8
.LC4:
	.ascii	"Usage:\n  tty-copy [options] text to copy\n  tty-copy [optio"
	.ascii	"ns] < file-to-copy\n  tty-copy (-t | -V | -h)\n\nCopy conten"
	.ascii	"t to the system clipboard from anywhere via terminal that su"
	.ascii	"pports\nANSI OSC 52 sequence.\n\nOptions:\n  -c --clear     "
	.ascii	"    Instead of copying anything, clear the clipboard.\n  -n "
	.ascii	"--trim-newline  Do not copy the trailing newline character.\n"
	.ascii	"  -o --output FILE   Path of the terminal device (defaults t"
	.ascii	"o /dev/tty).\n  -p --primary       Use the \"primary\" clipb"
	.ascii	"oard (selection) instead of the\n                     regula"
	.ascii	"r clipboard.\n  -T --term TERM     Type of the terminal: (de"
	.ascii	"fault), screen, or"
	.string	" tmux.\n  -t --test          Test if your terminal processes OSC 52 sequence.\n  -V --version       Print program name & version and exit.\n  -h --help          Display this message and exit.\n\nPlease report bugs at <https://github.com/jirutka/tty-copy/issues>"
.LC5:
	.string	"tty-copy 0.2.1"
.LC6:
	.string	"/dev/tty"
.LC7:
	.string	"screen"
.LC8:
	.string	"tmux"
.LC9:
	.string	"TERM"
.LC10:
	.string	"TMUX"
	.text
	.type	parse_opts, @function
parse_opts:
.LFB2:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -52[rbp], 0
	jg	.L6
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 88
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L6:
	lea	rax, .LC3[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -32[rbp], 0
	jmp	.L7
.L19:
	cmp	DWORD PTR -36[rbp], 0
	jne	.L8
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, long_opts.2[rip+24]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -36[rbp], eax
.L8:
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, 84
	cmp	eax, 32
	ja	.L9
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L11[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L11[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L11:
	.long	.L18-.L11
	.long	.L9-.L11
	.long	.L17-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L16-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L15-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L14-.L11
	.long	.L13-.L11
	.long	.L12-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L10-.L11
	.text
.L16:
	mov	BYTE PTR opts[rip], 99
	jmp	.L7
.L14:
	mov	BYTE PTR opts[rip+4], 1
	jmp	.L7
.L13:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR opts[rip+8], rax
	jmp	.L7
.L12:
	mov	BYTE PTR opts[rip+3], 1
	jmp	.L7
.L18:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -32[rbp], rax
	jmp	.L7
.L10:
	mov	BYTE PTR opts[rip], 116
	jmp	.L7
.L15:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L17:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L9:
	mov	edi, 10
	call	exit@PLT
.L7:
	lea	rcx, -40[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	r8, rcx
	lea	rcx, long_opts.2[rip]
	mov	edi, eax
	call	getopt_long@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L19
	movzx	eax, BYTE PTR opts[rip]
	test	al, al
	jne	.L20
	mov	BYTE PTR opts[rip], 119
.L20:
	mov	rax, QWORD PTR opts[rip+8]
	test	rax, rax
	jne	.L21
	lea	rax, .LC6[rip]
	mov	QWORD PTR opts[rip+8], rax
.L21:
	mov	QWORD PTR -16[rbp], 0
	cmp	QWORD PTR -32[rbp], 0
	je	.L22
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	str_equal
	mov	BYTE PTR opts[rip+1], al
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	str_equal
	mov	BYTE PTR opts[rip+2], al
	jmp	.L27
.L22:
	lea	rdi, .LC9[rip]
	call	getenv@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L27
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	str_startswith
	test	al, al
	je	.L24
	lea	rdi, .LC10[rip]
	call	getenv@PLT
	test	rax, rax
	je	.L25
	mov	BYTE PTR opts[rip+2], 1
	jmp	.L27
.L25:
	mov	BYTE PTR opts[rip+1], 1
	jmp	.L27
.L24:
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	str_startswith
	test	al, al
	je	.L27
	mov	BYTE PTR opts[rip+2], 1
.L27:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	parse_opts, .-parse_opts
	.type	base64_encoded_size, @function
base64_encoded_size:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 2
	movabs	rdx, -6148914691236517205
	mul	rdx
	mov	rax, rdx
	shr	rax
	sal	rax, 2
	add	rax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	base64_encoded_size, .-base64_encoded_size
	.section	.rodata
	.align 8
.LC11:
	.string	"dstlen >= base64_encoded_size(srclen) && \"not enough space provided for base64 encode\""
	.text
	.type	base64_encode, @function
base64_encode:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	base64_encoded_size
	cmp	QWORD PTR -64[rbp], rax
	jnb	.L40
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 195
	lea	rsi, .LC1[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L40:
	nop
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L33
.L34:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	shr	al, 2
	movzx	ecx, al
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movsx	rdx, ecx
	lea	rcx, b64_table.0[rip]
	movzx	edx, BYTE PTR [rdx+rcx]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 4
	and	eax, 48
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	movzx	eax, al
	mov	ecx, edx
	or	ecx, eax
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movsx	rdx, ecx
	lea	rcx, b64_table.0[rip]
	movzx	edx, BYTE PTR [rdx+rcx]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 2
	and	eax, 60
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	shr	al, 6
	movzx	eax, al
	mov	ecx, edx
	or	ecx, eax
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movsx	rdx, ecx
	lea	rcx, b64_table.0[rip]
	movzx	edx, BYTE PTR [rdx+rcx]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 63
	mov	ecx, eax
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movsx	rdx, ecx
	lea	rcx, b64_table.0[rip]
	movzx	edx, BYTE PTR [rdx+rcx]
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -24[rbp], 3
.L33:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -24[rbp]
	cmp	rax, 2
	jg	.L34
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -24[rbp]
	je	.L35
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	shr	al, 2
	movzx	ecx, al
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movsx	rdx, ecx
	lea	rcx, b64_table.0[rip]
	movzx	edx, BYTE PTR [rdx+rcx]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -24[rbp]
	cmp	rax, 1
	jne	.L36
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 4
	and	eax, 48
	mov	ecx, eax
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movsx	rdx, ecx
	lea	rcx, b64_table.0[rip]
	movzx	edx, BYTE PTR [rdx+rcx]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 61
	jmp	.L37
.L36:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 4
	and	eax, 48
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	movzx	eax, al
	mov	ecx, edx
	or	ecx, eax
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movsx	rdx, ecx
	lea	rcx, b64_table.0[rip]
	movzx	edx, BYTE PTR [rdx+rcx]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 2
	and	eax, 60
	mov	ecx, eax
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movsx	rdx, ecx
	lea	rcx, b64_table.0[rip]
	movzx	edx, BYTE PTR [rdx+rcx]
	mov	BYTE PTR [rax], dl
.L37:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	BYTE PTR [rax], 61
.L35:
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -56[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	base64_encode, .-base64_encode
	.type	fpeek, @function
fpeek:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ungetc@PLT
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	fpeek, .-fpeek
	.section	.rodata
.LC12:
	.string	"\033[6n"
.LC13:
	.string	"\033[%d;%dR"
	.text
	.type	get_cursor_column, @function
get_cursor_column:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	call	fputs@PLT
	test	eax, eax
	jns	.L44
	mov	eax, -1
	jmp	.L51
.L44:
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L46
.L49:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L47
	mov	eax, -1
	jmp	.L51
.L47:
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	mov	BYTE PTR -32[rbp+rax], dl
	add	DWORD PTR -40[rbp], 1
.L46:
	cmp	DWORD PTR -36[rbp], 82
	je	.L48
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, 14
	jbe	.L49
.L48:
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	lea	rcx, -44[rbp]
	lea	rdx, -48[rbp]
	lea	rax, -32[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 2
	je	.L50
	mov	eax, -1
	jmp	.L51
.L50:
	mov	eax, DWORD PTR -44[rbp]
.L51:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L52
	call	__stack_chk_fail@PLT
.L52:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_cursor_column, .-get_cursor_column
	.type	term_change_local_modes, @function
term_change_local_modes:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tcgetattr@PLT
	test	eax, eax
	jns	.L54
	mov	eax, -1
	jmp	.L56
.L54:
	mov	eax, DWORD PTR -68[rbp]
	and	eax, DWORD PTR -88[rbp]
	mov	DWORD PTR -68[rbp], eax
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcsetattr@PLT
.L56:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	term_change_local_modes, .-term_change_local_modes
	.section	.rodata
.LC14:
	.string	"\033Ptmux;\033"
.LC15:
	.string	""
.LC16:
	.string	"%s\033]52;%c;"
.LC17:
	.string	"\007\033\\"
.LC18:
	.string	"\007"
.LC19:
	.string	"r+"
	.align 8
.LC20:
	.string	"tty-copy: Failed to open %s: %s\n"
.LC21:
	.string	"\0337"
.LC22:
	.string	"%s%s"
.LC23:
	.string	"\0338"
.LC24:
	.string	"%s!%s"
	.align 8
.LC25:
	.string	"tty-copy: Command line is too long (limit is %lu bytes)\n"
.LC26:
	.string	"r"
.LC27:
	.string	"\033P"
.LC28:
	.string	"\033\\"
	.align 8
.LC29:
	.string	"tty-copy: /dev/stdin: read error: %s\n"
	.align 8
.LC30:
	.string	"tty-copy: warning: Input size (%lu kiB) exceeded %d kiB, it may be truncated by some terminals\n"
	.align 8
.LC31:
	.string	"tty-copy: %s: write error: %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	lea	r11, -73728[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 1576
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -75284[rbp], edi
	mov	QWORD PTR -75296[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -75296[rbp]
	mov	eax, DWORD PTR -75284[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	parse_opts
	movzx	eax, BYTE PTR opts[rip+3]
	test	al, al
	je	.L59
	mov	edx, 112
	jmp	.L60
.L59:
	mov	edx, 99
.L60:
	movzx	eax, BYTE PTR opts[rip+2]
	test	al, al
	je	.L61
	lea	rax, .LC14[rip]
	jmp	.L62
.L61:
	lea	rax, .LC15[rip]
.L62:
	lea	rdi, -75088[rbp]
	mov	ecx, edx
	mov	rdx, rax
	lea	rsi, .LC16[rip]
	mov	eax, 0
	call	sprintf@PLT
	movzx	eax, BYTE PTR opts[rip+2]
	test	al, al
	je	.L63
	lea	rax, .LC17[rip]
	jmp	.L64
.L63:
	lea	rax, .LC18[rip]
.L64:
	mov	QWORD PTR -75216[rbp], rax
	mov	QWORD PTR -75208[rbp], 0
	mov	rax, QWORD PTR opts[rip+8]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -75208[rbp], rax
	cmp	QWORD PTR -75208[rbp], 0
	jne	.L65
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR opts[rip+8]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 11
	call	exit@PLT
.L65:
	mov	rax, QWORD PTR -75208[rbp]
	mov	rdi, rax
	call	fileno@PLT
	mov	DWORD PTR -75260[rbp], eax
	mov	eax, DWORD PTR -75260[rbp]
	mov	edi, eax
	call	isatty@PLT
	test	eax, eax
	je	.L66
	lea	rdx, -75152[rbp]
	mov	eax, DWORD PTR -75260[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	tcgetattr@PLT
	mov	eax, DWORD PTR -75260[rbp]
	mov	esi, -139
	mov	edi, eax
	call	term_change_local_modes
.L66:
	mov	DWORD PTR -75264[rbp], 0
	movzx	eax, BYTE PTR opts[rip]
	cmp	al, 116
	jne	.L67
	mov	rax, QWORD PTR -75208[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -75208[rbp]
	mov	rdi, rax
	call	get_cursor_column
	mov	DWORD PTR -75256[rbp], eax
	mov	rcx, QWORD PTR -75216[rbp]
	lea	rdx, -75088[rbp]
	mov	rax, QWORD PTR -75208[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -75208[rbp]
	mov	rdi, rax
	call	get_cursor_column
	mov	DWORD PTR -75252[rbp], eax
	cmp	DWORD PTR -75256[rbp], 0
	js	.L68
	cmp	DWORD PTR -75252[rbp], 0
	js	.L68
	mov	eax, DWORD PTR -75256[rbp]
	cmp	eax, DWORD PTR -75252[rbp]
	je	.L69
.L68:
	mov	rax, QWORD PTR -75208[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC23[rip]
	call	fwrite@PLT
	mov	DWORD PTR -75264[rbp], 1
	jmp	.L69
.L67:
	movzx	eax, BYTE PTR opts[rip]
	cmp	al, 99
	jne	.L70
	mov	rcx, QWORD PTR -75216[rbp]
	lea	rdx, -75088[rbp]
	mov	rax, QWORD PTR -75208[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -75208[rbp]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L69
.L70:
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR -75240[rbp], rax
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -75284[rbp], eax
	jle	.L71
	mov	QWORD PTR -75056[rbp], 0
	mov	QWORD PTR -75048[rbp], 0
	lea	rax, -75040[rbp]
	mov	edx, 74978
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	QWORD PTR -75248[rbp], 0
	mov	eax, DWORD PTR optind[rip]
	mov	DWORD PTR -75268[rbp], eax
	jmp	.L72
.L76:
	mov	eax, DWORD PTR -75268[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -75296[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -75200[rbp], rax
	mov	rdx, QWORD PTR -75248[rbp]
	mov	rax, QWORD PTR -75200[rbp]
	add	rax, rdx
	add	rax, 2
	cmp	rax, 74994
	jbe	.L73
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 74994
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -75264[rbp], 1
	jmp	.L74
.L73:
	cmp	QWORD PTR -75248[rbp], 0
	je	.L75
	mov	rax, QWORD PTR -75248[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -75248[rbp], rdx
	mov	BYTE PTR -75056[rbp+rax], 32
.L75:
	mov	eax, DWORD PTR -75268[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -75296[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rcx, -75056[rbp]
	mov	rdx, QWORD PTR -75248[rbp]
	add	rdx, rcx
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR -75200[rbp]
	add	QWORD PTR -75248[rbp], rax
	lea	rdx, -75056[rbp]
	mov	rax, QWORD PTR -75248[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	add	DWORD PTR -75268[rbp], 1
.L72:
	mov	eax, DWORD PTR -75268[rbp]
	cmp	eax, DWORD PTR -75284[rbp]
	jl	.L76
	mov	rcx, QWORD PTR -75248[rbp]
	lea	rax, -75056[rbp]
	lea	rdx, .LC26[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	fmemopen@PLT
	mov	QWORD PTR -75240[rbp], rax
.L71:
	movzx	eax, BYTE PTR opts[rip+1]
	test	al, al
	je	.L77
	mov	ebx, 762
	jmp	.L78
.L77:
	mov	ebx, 6144
.L78:
	mov	rax, rsp
	mov	r13, rax
	movsx	rax, ebx
	sub	rax, 1
	mov	QWORD PTR -75192[rbp], rax
	movsx	rax, ebx
	mov	QWORD PTR -75312[rbp], rax
	mov	QWORD PTR -75304[rbp], 0
	movsx	rax, ebx
	mov	QWORD PTR -75328[rbp], rax
	mov	QWORD PTR -75320[rbp], 0
	movsx	rax, ebx
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L79:
	cmp	rsp, rdx
	je	.L80
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L79
.L80:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L81
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L81:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -75184[rbp], rax
	movsx	rax, ebx
	mov	rdi, rax
	call	base64_encoded_size
	mov	r12, rax
	mov	rax, r12
	sub	rax, 1
	mov	QWORD PTR -75176[rbp], rax
	mov	QWORD PTR -75344[rbp], r12
	mov	QWORD PTR -75336[rbp], 0
	mov	r14, r12
	mov	r15d, 0
	mov	eax, 16
	sub	rax, 1
	add	rax, r12
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L82:
	cmp	rsp, rdx
	je	.L83
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L82
.L83:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L84
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L84:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -75168[rbp], rax
	mov	BYTE PTR -75269[rbp], 1
	mov	QWORD PTR -75232[rbp], 0
	mov	QWORD PTR -75224[rbp], 0
	jmp	.L85
.L91:
	mov	rax, QWORD PTR -75232[rbp]
	add	QWORD PTR -75224[rbp], rax
	movzx	eax, BYTE PTR opts[rip+4]
	test	al, al
	je	.L86
	mov	rax, QWORD PTR -75240[rbp]
	mov	rdi, rax
	call	fpeek
	cmp	eax, -1
	jne	.L86
	mov	rax, QWORD PTR -75232[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -75184[rbp]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 10
	jne	.L86
	sub	QWORD PTR -75232[rbp], 1
	cmp	QWORD PTR -75232[rbp], 0
	je	.L97
.L86:
	movzx	eax, BYTE PTR opts[rip+1]
	test	al, al
	je	.L88
	mov	rax, QWORD PTR -75208[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC27[rip]
	call	fwrite@PLT
.L88:
	cmp	BYTE PTR -75269[rbp], 0
	je	.L89
	mov	rdx, QWORD PTR -75208[rbp]
	lea	rax, -75088[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	BYTE PTR -75269[rbp], 0
.L89:
	mov	rdx, QWORD PTR -75168[rbp]
	mov	rsi, QWORD PTR -75232[rbp]
	mov	rax, QWORD PTR -75184[rbp]
	mov	rcx, r12
	mov	rdi, rax
	call	base64_encode
	mov	QWORD PTR -75160[rbp], rax
	mov	rcx, QWORD PTR -75208[rbp]
	mov	rdx, QWORD PTR -75160[rbp]
	mov	rax, QWORD PTR -75168[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	cmp	QWORD PTR -75160[rbp], rax
	je	.L90
	mov	DWORD PTR -75264[rbp], 11
	jmp	.L87
.L90:
	movzx	eax, BYTE PTR opts[rip+1]
	test	al, al
	je	.L85
	mov	rax, QWORD PTR -75208[rbp]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC28[rip]
	call	fwrite@PLT
.L85:
	movsx	rdx, ebx
	mov	rcx, QWORD PTR -75240[rbp]
	mov	rax, QWORD PTR -75184[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -75232[rbp], rax
	cmp	QWORD PTR -75232[rbp], 0
	jne	.L91
	jmp	.L87
.L97:
	nop
.L87:
	mov	rdx, QWORD PTR -75208[rbp]
	mov	rax, QWORD PTR -75216[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -75208[rbp]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -75240[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L92
	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, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -75264[rbp], 11
.L92:
	cmp	QWORD PTR -75224[rbp], 74994
	jbe	.L93
	mov	rax, QWORD PTR -75224[rbp]
	shr	rax, 10
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 73
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L93:
	mov	rsp, r13
.L69:
	mov	rax, QWORD PTR -75208[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L98
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR opts[rip+8]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -75264[rbp], 11
	jmp	.L74
.L98:
	nop
.L74:
	mov	eax, DWORD PTR -75260[rbp]
	mov	edi, eax
	call	isatty@PLT
	test	eax, eax
	je	.L94
	lea	rdx, -75152[rbp]
	mov	eax, DWORD PTR -75260[rbp]
	mov	esi, 0
	mov	edi, eax
	call	tcsetattr@PLT
.L94:
	mov	eax, DWORD PTR -75264[rbp]
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L96
	call	__stack_chk_fail@PLT
.L96:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 11
__PRETTY_FUNCTION__.3:
	.string	"parse_opts"
.LC32:
	.string	"clear"
.LC33:
	.string	"output"
.LC34:
	.string	"primary"
.LC35:
	.string	"term"
.LC36:
	.string	"test"
.LC37:
	.string	"trim-newline"
.LC38:
	.string	"help"
.LC39:
	.string	"version"
	.section	.data.rel.local,"aw"
	.align 32
	.type	long_opts.2, @object
	.size	long_opts.2, 288
long_opts.2:
	.quad	.LC32
	.long	0
	.zero	4
	.quad	0
	.long	99
	.zero	4
	.quad	.LC33
	.long	1
	.zero	4
	.quad	0
	.long	111
	.zero	4
	.quad	.LC34
	.long	0
	.zero	4
	.quad	0
	.long	112
	.zero	4
	.quad	.LC35
	.long	1
	.zero	4
	.quad	0
	.long	84
	.zero	4
	.quad	.LC36
	.long	0
	.zero	4
	.quad	0
	.long	116
	.zero	4
	.quad	.LC37
	.long	0
	.zero	4
	.quad	0
	.long	110
	.zero	4
	.quad	.LC38
	.long	0
	.zero	4
	.quad	0
	.long	104
	.zero	4
	.quad	.LC39
	.long	0
	.zero	4
	.quad	0
	.long	86
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 14
__PRETTY_FUNCTION__.1:
	.string	"base64_encode"
	.align 32
	.type	b64_table.0, @object
	.size	b64_table.0, 65
b64_table.0:
	.string	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
	.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	"260791.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage:\012  tty-copy [options] text to copy\012  tt"
	.ascii	"y-copy [options] < file-to-copy\012  tty-copy (-t |"
	.ascii	" -V | -h)\012\012Copy content to the system clipboa"
	.ascii	"rd from anywhere via terminal that supports\012ANSI"
	.ascii	" OSC 52 sequence.\012\012Options:\012  -c --clear  "
	.ascii	"       Instead of copying anything, clear the clipb"
	.ascii	"oard.\012  -n --trim-newline  Do not copy the trail"
	.ascii	"ing newline character.\012  -o --output FILE   Path"
	.ascii	" of the terminal device (defaults to /dev/tty).\012"
	.ascii	"  -p --primary       Use the \"primary\" clipboard "
	.ascii	"(selection) instead of the\012                     "
	.ascii	"regular clipboard.\012  -T --term TERM     Type of "
	.ascii	"the terminal: (default), screen, or tmux.\012  -t -"
	.ascii	"-test          Test if your terminal processes OSC "
	.ascii	"52 sequence.\012  -V --version       Print program "
	.ascii	"name & version and exit.\012  -h --help          Di"
	.ascii	"splay this message and exit.\012\012Please report b"
	.ascii	"ugs at <https://github.com/jirutka/tty-copy/issues>"
	.ascii	"\012\000"
	.align	2
	.type	help_msg, %object
	.size	help_msg, 4
help_msg:
	.word	.LC0
	.local	opts
	.comm	opts,12,4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	str_startswith, %function
str_startswith:
	@ 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	r0, [fp, #-12]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	str_startswith, .-str_startswith
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	str_equal, %function
str_equal:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	str_equal, .-str_equal
	.section	.rodata
	.align	2
.LC1:
	.ascii	"the_stack_data/260791.c\000"
	.align	2
.LC2:
	.ascii	"argc > 0 && \"given zero argc\"\000"
	.align	2
.LC3:
	.ascii	"cno:pT:thV\000"
	.align	2
.LC4:
	.ascii	"Usage:\012  tty-copy [options] text to copy\012  tt"
	.ascii	"y-copy [options] < file-to-copy\012  tty-copy (-t |"
	.ascii	" -V | -h)\012\012Copy content to the system clipboa"
	.ascii	"rd from anywhere via terminal that supports\012ANSI"
	.ascii	" OSC 52 sequence.\012\012Options:\012  -c --clear  "
	.ascii	"       Instead of copying anything, clear the clipb"
	.ascii	"oard.\012  -n --trim-newline  Do not copy the trail"
	.ascii	"ing newline character.\012  -o --output FILE   Path"
	.ascii	" of the terminal device (defaults to /dev/tty).\012"
	.ascii	"  -p --primary       Use the \"primary\" clipboard "
	.ascii	"(selection) instead of the\012                     "
	.ascii	"regular clipboard.\012  -T --term TERM     Type of "
	.ascii	"the terminal: (default), screen, or tmux.\012  -t -"
	.ascii	"-test          Test if your terminal processes OSC "
	.ascii	"52 sequence.\012  -V --version       Print program "
	.ascii	"name & version and exit.\012  -h --help          Di"
	.ascii	"splay this message and exit.\012\012Please report b"
	.ascii	"ugs at <https://github.com/jirutka/tty-copy/issues>"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"tty-copy 0.2.1\000"
	.align	2
.LC6:
	.ascii	"/dev/tty\000"
	.align	2
.LC7:
	.ascii	"screen\000"
	.align	2
.LC8:
	.ascii	"tmux\000"
	.align	2
.LC9:
	.ascii	"TERM\000"
	.align	2
.LC10:
	.ascii	"TMUX\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_opts, %function
parse_opts:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bgt	.L6
	ldr	r3, .L28+4
	mov	r2, #88
	ldr	r1, .L28+8
	ldr	r0, .L28+12
	bl	__assert_fail
.L6:
	ldr	r3, .L28+16
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L7
.L19:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-28]
	ldr	r2, .L28+20
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	str	r3, [fp, #-20]
.L8:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #84
	cmp	r3, #32
	ldrls	pc, [pc, r3, asl #2]
	b	.L9
.L11:
	.word	.L18
	.word	.L9
	.word	.L17
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L16
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L15
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L10
.L16:
	ldr	r3, .L28+24
	mov	r2, #99
	strb	r2, [r3]
	b	.L7
.L14:
	ldr	r3, .L28+24
	mov	r2, #1
	strb	r2, [r3, #4]
	b	.L7
.L13:
	ldr	r3, .L28+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L28+24
	str	r2, [r3, #8]
	b	.L7
.L12:
	ldr	r3, .L28+24
	mov	r2, #1
	strb	r2, [r3, #3]
	b	.L7
.L18:
	ldr	r3, .L28+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-24]
	b	.L7
.L10:
	ldr	r3, .L28+24
	mov	r2, #116
	strb	r2, [r3]
	b	.L7
.L15:
	ldr	r0, .L28+32
	bl	puts
	mov	r0, #0
	bl	exit
.L17:
	ldr	r0, .L28+36
	bl	puts
	mov	r0, #0
	bl	exit
.L9:
	mov	r0, #10
	bl	exit
.L7:
	sub	r3, fp, #28
	str	r3, [sp]
	ldr	r3, .L28+20
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	getopt_long
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L19
	ldr	r3, .L28+24
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L28+24
	mov	r2, #119
	strb	r2, [r3]
.L20:
	ldr	r3, .L28+24
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L28+24
	ldr	r2, .L28+40
	str	r2, [r3, #8]
.L21:
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L22
	ldr	r1, .L28+44
	ldr	r0, [fp, #-24]
	bl	str_equal
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L28+24
	strb	r2, [r3, #1]
	ldr	r1, .L28+48
	ldr	r0, [fp, #-24]
	bl	str_equal
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L28+24
	strb	r2, [r3, #2]
	b	.L27
.L22:
	ldr	r0, .L28+52
	bl	getenv
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L27
	ldr	r1, .L28+44
	ldr	r0, [fp, #-12]
	bl	str_startswith
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r0, .L28+56
	bl	getenv
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r3, .L28+24
	mov	r2, #1
	strb	r2, [r3, #2]
	b	.L27
.L25:
	ldr	r3, .L28+24
	mov	r2, #1
	strb	r2, [r3, #1]
	b	.L27
.L24:
	ldr	r1, .L28+48
	ldr	r0, [fp, #-12]
	bl	str_startswith
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r3, .L28+24
	mov	r2, #1
	strb	r2, [r3, #2]
.L27:
	nop
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC11
	.word	__PRETTY_FUNCTION__.5463
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	long_opts.5465
	.word	opts
	.word	optarg
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	parse_opts, .-parse_opts
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	base64_encoded_size, %function
base64_encoded_size:
	@ 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]
	add	r3, r3, #2
	ldr	r2, .L32
	umull	r1, r3, r2, r3
	lsr	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L33:
	.align	2
.L32:
	.word	-1431655765
	.size	base64_encoded_size, .-base64_encoded_size
	.section	.rodata
	.align	2
.LC12:
	.ascii	"dstlen >= base64_encoded_size(srclen) && \"not enou"
	.ascii	"gh space provided for base64 encode\"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	base64_encode, %function
base64_encode:
	@ 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]
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-28]
	bl	base64_encoded_size
	mov	r2, r0
	ldr	r3, [fp, #-36]
	cmp	r3, r2
	bcs	.L44
	ldr	r3, .L45
	mov	r2, #195
	ldr	r1, .L45+4
	ldr	r0, .L45+8
	bl	__assert_fail
.L44:
	nop
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-12]
	b	.L37
.L38:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #2
	and	r3, r3, #255
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	ldr	r2, .L45+12
	ldrb	r2, [r2, r1]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #4
	and	r3, r3, #48
	ldr	r2, [fp, #-16]
	add	r2, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsr	r2, r2, #4
	and	r2, r2, #255
	orr	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	str	r1, [fp, #-12]
	ldr	r1, .L45+12
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	and	r3, r3, #60
	ldr	r2, [fp, #-16]
	add	r2, r2, #2
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsr	r2, r2, #6
	and	r2, r2, #255
	orr	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	str	r1, [fp, #-12]
	ldr	r1, .L45+12
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #63
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	str	r1, [fp, #-12]
	ldr	r1, .L45+12
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	str	r3, [fp, #-16]
.L37:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	cmp	r3, #2
	bgt	.L38
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	beq	.L39
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #2
	and	r3, r3, #255
	mov	r1, r3
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	ldr	r2, .L45+12
	ldrb	r2, [r2, r1]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	cmp	r3, #1
	bne	.L40
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #4
	and	r2, r3, #48
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	str	r1, [fp, #-12]
	ldr	r1, .L45+12
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #61
	strb	r2, [r3]
	b	.L41
.L40:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #4
	and	r3, r3, #48
	ldr	r2, [fp, #-16]
	add	r2, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsr	r2, r2, #4
	and	r2, r2, #255
	orr	r2, r3, r2
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	str	r1, [fp, #-12]
	ldr	r1, .L45+12
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	and	r2, r3, #60
	ldr	r3, [fp, #-12]
	add	r1, r3, #1
	str	r1, [fp, #-12]
	ldr	r1, .L45+12
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L41:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	str	r2, [fp, #-12]
	mov	r2, #61
	strb	r2, [r3]
.L39:
	ldr	r3, [fp, #-12]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L46:
	.align	2
.L45:
	.word	__PRETTY_FUNCTION__.5493
	.word	.LC1
	.word	.LC12
	.word	b64_table.5492
	.size	base64_encode, .-base64_encode
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fpeek, %function
fpeek:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	fgetc
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	ungetc
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	fpeek, .-fpeek
	.section	.rodata
	.align	2
.LC13:
	.ascii	"\033[6n\000"
	.align	2
.LC14:
	.ascii	"\033[%d;%dR\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_cursor_column, %function
get_cursor_column:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	sub	r3, fp, #20
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	ldr	r1, [fp, #-48]
	ldr	r0, .L59+4
	bl	fputs
	mov	r3, r0
	cmp	r3, #0
	bge	.L50
	mvn	r3, #0
	b	.L57
.L50:
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L52
.L55:
	ldr	r0, [fp, #-48]
	bl	fgetc
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L53
	mvn	r3, #0
	b	.L57
.L53:
	ldr	r3, [fp, #-28]
	and	r1, r3, #255
	sub	r2, fp, #24
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L52:
	ldr	r3, [fp, #-28]
	cmp	r3, #82
	beq	.L54
	ldr	r3, [fp, #-32]
	cmp	r3, #14
	bls	.L55
.L54:
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	sub	r3, fp, #36
	sub	r2, fp, #40
	sub	r0, fp, #24
	ldr	r1, .L59+8
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #2
	beq	.L56
	mvn	r3, #0
	b	.L57
.L56:
	ldr	r3, [fp, #-36]
.L57:
	ldr	r2, .L59
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC15
	.word	.LC13
	.word	.LC14
	.size	get_cursor_column, .-get_cursor_column
	.section	.rodata
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	term_change_local_modes, %function
term_change_local_modes:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L66
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, [fp, #-72]
	bl	tcgetattr
	mov	r3, r0
	cmp	r3, #0
	bge	.L62
	mvn	r3, #0
	b	.L64
.L62:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-76]
	and	r3, r3, r2
	str	r3, [fp, #-56]
	sub	r3, fp, #68
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	tcsetattr
	mov	r3, r0
.L64:
	ldr	r2, .L66
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L65
	bl	__stack_chk_fail
.L65:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	.LC16
	.size	term_change_local_modes, .-term_change_local_modes
	.section	.rodata
	.align	2
.LC17:
	.ascii	"\033Ptmux;\033\000"
	.align	2
.LC18:
	.ascii	"\000"
	.align	2
.LC19:
	.ascii	"%s\033]52;%c;\000"
	.align	2
.LC20:
	.ascii	"\007\033\\\000"
	.align	2
.LC21:
	.ascii	"\007\000"
	.align	2
.LC22:
	.ascii	"r+\000"
	.align	2
.LC23:
	.ascii	"tty-copy: Failed to open %s: %s\012\000"
	.align	2
.LC24:
	.ascii	"\0337\000"
	.align	2
.LC25:
	.ascii	"%s%s\000"
	.align	2
.LC26:
	.ascii	"\0338\000"
	.align	2
.LC27:
	.ascii	"%s!%s\000"
	.align	2
.LC28:
	.ascii	"tty-copy: Command line is too long (limit is %lu by"
	.ascii	"tes)\012\000"
	.align	2
.LC29:
	.ascii	"r\000"
	.align	2
.LC30:
	.ascii	"\033P\000"
	.align	2
.LC31:
	.ascii	"\033\\\000"
	.align	2
.LC32:
	.ascii	"tty-copy: /dev/stdin: read error: %s\012\000"
	.align	2
.LC33:
	.ascii	"tty-copy: warning: Input size (%lu kiB) exceeded %d"
	.ascii	" kiB, it may be truncated by some terminals\012\000"
	.align	2
.LC34:
	.ascii	"tty-copy: %s: write error: %s\012\000"
	.align	2
.LC35:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 75176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #74752
	sub	sp, sp, #424
	sub	r3, fp, #73728
	sub	r3, r3, #20
	str	r0, [r3, #-1444]
	sub	r3, fp, #73728
	sub	r3, r3, #20
	str	r1, [r3, #-1448]
	ldr	r3, .L103
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r1, [r2, #-1448]
	ldr	r0, [r3, #-1444]
	bl	parse_opts
	ldr	r3, .L103+4
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L69
	ldr	r2, .L103+8
	b	.L70
.L69:
	ldr	r2, .L103+12
.L70:
	ldr	r3, .L103+4
	ldrb	r3, [r3, #3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L71
	mov	r3, #112
	b	.L72
.L71:
	mov	r3, #99
.L72:
	sub	r0, fp, #74752
	sub	r0, r0, #20
	sub	r0, r0, #280
	ldr	r1, .L103+16
	bl	sprintf
	ldr	r3, .L103+4
	ldrb	r3, [r3, #2]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L73
	ldr	r3, .L103+20
	b	.L74
.L73:
	ldr	r3, .L103+24
.L74:
	sub	r2, fp, #73728
	sub	r2, r2, #20
	str	r3, [r2, #-1408]
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1404]
	ldr	r3, .L103+4
	ldr	r3, [r3, #8]
	sub	r2, fp, #73728
	sub	r2, r2, #20
	mov	r4, r2
	ldr	r1, .L103+28
	mov	r0, r3
	bl	fopen
	str	r0, [r4, #-1404]
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1404]
	cmp	r3, #0
	bne	.L75
	ldr	r3, .L103+32
	ldr	r4, [r3]
	ldr	r3, .L103+4
	ldr	r5, [r3, #8]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L103+36
	mov	r0, r4
	bl	fprintf
	mov	r0, #11
	bl	exit
.L75:
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r4, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r0, [r3, #-1404]
	bl	fileno
	str	r0, [r4, #-1400]
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r0, [r3, #-1400]
	bl	isatty
	mov	r3, r0
	cmp	r3, #0
	beq	.L76
	sub	r3, fp, #74752
	sub	r3, r3, #20
	sub	r3, r3, #340
	sub	r2, fp, #73728
	sub	r2, r2, #20
	mov	r1, r3
	ldr	r0, [r2, #-1400]
	bl	tcgetattr
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mvn	r1, #138
	ldr	r0, [r3, #-1400]
	bl	term_change_local_modes
.L76:
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1420]
	ldr	r3, .L103+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #116
	bne	.L77
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1404]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L103+40
	bl	fwrite
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r4, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r0, [r3, #-1404]
	bl	get_cursor_column
	str	r0, [r4, #-1372]
	sub	r3, fp, #73728
	sub	r3, r3, #20
	sub	r2, fp, #74752
	sub	r2, r2, #20
	sub	r2, r2, #280
	sub	r1, fp, #73728
	sub	r1, r1, #20
	mov	r0, r1
	ldr	r3, [r3, #-1408]
	ldr	r1, .L103+44
	ldr	r0, [r0, #-1404]
	bl	fprintf
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r4, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r0, [r3, #-1404]
	bl	get_cursor_column
	str	r0, [r4, #-1368]
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1372]
	cmp	r3, #0
	blt	.L78
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1368]
	cmp	r3, #0
	blt	.L78
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r2, [r2, #-1372]
	ldr	r3, [r3, #-1368]
	cmp	r2, r3
	beq	.L79
.L78:
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1404]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L103+48
	bl	fwrite
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-1420]
	b	.L79
.L77:
	ldr	r3, .L103+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #99
	bne	.L80
	sub	r3, fp, #73728
	sub	r3, r3, #20
	sub	r2, fp, #74752
	sub	r2, r2, #20
	sub	r2, r2, #280
	sub	r1, fp, #73728
	sub	r1, r1, #20
	mov	r0, r1
	ldr	r3, [r3, #-1408]
	ldr	r1, .L103+52
	ldr	r0, [r0, #-1404]
	bl	fprintf
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r0, [r3, #-1404]
	bl	fflush
	b	.L79
.L80:
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	ldr	r3, .L103+56
	ldr	r3, [r3]
	str	r3, [r2, #-1424]
	ldr	r3, .L103+60
	ldr	r3, [r3]
	sub	r2, fp, #73728
	sub	r2, r2, #20
	ldr	r2, [r2, #-1444]
	cmp	r2, r3
	ble	.L81
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, #0
	str	r2, [r3, #-1272]
	sub	r3, r3, #1264
	sub	r3, r3, #4
	ldr	r2, .L103+64
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1428]
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	ldr	r3, .L103+60
	ldr	r3, [r3]
	str	r3, [r2, #-1432]
	b	.L82
.L86:
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1432]
	lsl	r3, r3, #2
	sub	r2, fp, #73728
	sub	r2, r2, #20
	ldr	r2, [r2, #-1448]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #73728
	sub	r2, r2, #20
	mov	r4, r2
	mov	r0, r3
	bl	strlen
	str	r0, [r4, #-1396]
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r2, [r2, #-1428]
	ldr	r3, [r3, #-1396]
	add	r3, r2, r3
	add	r3, r3, #2
	ldr	r2, .L103+68
	cmp	r3, r2
	bls	.L83
	ldr	r3, .L103+32
	ldr	r3, [r3]
	ldr	r2, .L103+68
	ldr	r1, .L103+72
	mov	r0, r3
	bl	fprintf
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-1420]
	b	.L84
.L83:
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1428]
	cmp	r3, #0
	beq	.L85
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1428]
	sub	r2, fp, #73728
	sub	r2, r2, #20
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-1428]
	sub	r2, fp, #73728
	sub	r2, r2, #20
	add	r3, r2, r3
	mov	r2, #32
	strb	r2, [r3, #-1272]
.L85:
	sub	r3, fp, #74752
	sub	r3, r3, #20
	sub	r3, r3, #248
	sub	r2, fp, #73728
	sub	r2, r2, #20
	ldr	r2, [r2, #-1428]
	add	r0, r3, r2
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1432]
	lsl	r3, r3, #2
	sub	r2, fp, #73728
	sub	r2, r2, #20
	ldr	r2, [r2, #-1448]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	bl	strcpy
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r1, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r2, [r2, #-1428]
	ldr	r3, [r3, #-1396]
	add	r3, r2, r3
	str	r3, [r1, #-1428]
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1428]
	add	r3, r2, r3
	sub	r3, r3, #1264
	sub	r3, r3, #8
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1432]
	add	r3, r3, #1
	str	r3, [r2, #-1432]
.L82:
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r2, [r2, #-1432]
	ldr	r3, [r3, #-1444]
	cmp	r2, r3
	blt	.L86
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r4, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r1, r3
	sub	r3, fp, #74752
	sub	r3, r3, #20
	sub	r3, r3, #248
	ldr	r2, .L103+76
	ldr	r1, [r1, #-1428]
	mov	r0, r3
	bl	fmemopen
	str	r0, [r4, #-1424]
.L81:
	ldr	r3, .L103+4
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L87
	ldr	r5, .L103+80
	b	.L88
.L87:
	mov	r5, #6144
.L88:
	mov	r3, sp
	mov	r7, r3
	sub	r3, r5, #1
	sub	r2, fp, #73728
	sub	r2, r2, #20
	str	r3, [r2, #-1392]
	mov	r3, r5
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, r5
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, r5
	sub	r2, fp, #73728
	sub	r2, r2, #20
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [r2, #-1388]
	mov	r3, r5
	mov	r0, r3
	bl	base64_encoded_size
	mov	r4, r0
	mov	r3, r4
	sub	r3, r3, #1
	sub	r2, fp, #73728
	sub	r2, r2, #20
	str	r3, [r2, #-1384]
	mov	r0, r4
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r0, r4
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	add	r3, r4, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [r2, #-1380]
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, #1
	strb	r2, [r3, #-1433]
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1416]
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1412]
	b	.L89
.L95:
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r1, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r2, [r2, #-1412]
	ldr	r3, [r3, #-1416]
	add	r3, r2, r3
	str	r3, [r1, #-1412]
	ldr	r3, .L103+4
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L90
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r0, [r3, #-1424]
	bl	fpeek
	mov	r3, r0
	cmn	r3, #1
	bne	.L90
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1416]
	sub	r3, r3, #1
	sub	r2, fp, #73728
	sub	r2, r2, #20
	ldr	r2, [r2, #-1388]
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L90
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1416]
	sub	r3, r3, #1
	str	r3, [r2, #-1416]
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1416]
	cmp	r3, #0
	beq	.L101
.L90:
	ldr	r3, .L103+4
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L92
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1404]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L103+84
	bl	fwrite
.L92:
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldrb	r3, [r3, #-1433]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L93
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #74752
	sub	r3, r3, #20
	sub	r3, r3, #280
	ldr	r1, [r2, #-1404]
	mov	r0, r3
	bl	fputs
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, #0
	strb	r2, [r3, #-1433]
.L93:
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r6, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r1, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r0, r3
	mov	r3, r4
	ldr	r2, [r2, #-1380]
	ldr	r1, [r1, #-1416]
	ldr	r0, [r0, #-1388]
	bl	base64_encode
	str	r0, [r6, #-1376]
	sub	r3, fp, #73728
	sub	r3, r3, #20
	sub	r2, fp, #73728
	sub	r2, r2, #20
	sub	r1, fp, #73728
	sub	r1, r1, #20
	mov	r0, r1
	ldr	r3, [r3, #-1404]
	ldr	r2, [r2, #-1376]
	mov	r1, #1
	ldr	r0, [r0, #-1380]
	bl	fwrite
	mov	r2, r0
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1376]
	cmp	r3, r2
	beq	.L94
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #11
	str	r3, [r2, #-1420]
	b	.L91
.L94:
	ldr	r3, .L103+4
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L89
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1404]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L103+88
	bl	fwrite
.L89:
	mov	r1, r5
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r6, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	sub	r2, fp, #73728
	sub	r2, r2, #20
	mov	r0, r2
	ldr	r3, [r3, #-1424]
	mov	r2, r1
	mov	r1, #1
	ldr	r0, [r0, #-1388]
	bl	fread
	str	r0, [r6, #-1416]
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1416]
	cmp	r3, #0
	bne	.L95
	b	.L91
.L101:
	nop
.L91:
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r1, [r2, #-1404]
	ldr	r0, [r3, #-1408]
	bl	fputs
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r0, [r3, #-1404]
	bl	fflush
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r0, [r3, #-1424]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L96
	ldr	r3, .L103+32
	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, .L103+92
	mov	r0, r4
	bl	fprintf
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #11
	str	r3, [r2, #-1420]
.L96:
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1412]
	ldr	r2, .L103+68
	cmp	r3, r2
	bls	.L97
	ldr	r3, .L103+32
	ldr	r0, [r3]
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1412]
	lsr	r2, r3, #10
	mov	r3, #73
	ldr	r1, .L103+96
	bl	fprintf
.L97:
	mov	sp, r7
.L79:
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r0, [r3, #-1404]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L102
	ldr	r3, .L103+32
	ldr	r4, [r3]
	ldr	r3, .L103+4
	ldr	r5, [r3, #8]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L103+100
	mov	r0, r4
	bl	fprintf
	sub	r3, fp, #73728
	sub	r3, r3, #20
	mov	r2, r3
	mov	r3, #11
	str	r3, [r2, #-1420]
	b	.L84
.L102:
	nop
.L84:
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r0, [r3, #-1400]
	bl	isatty
	mov	r3, r0
	cmp	r3, #0
	beq	.L98
	sub	r3, fp, #74752
	sub	r3, r3, #20
	sub	r3, r3, #340
	sub	r2, fp, #73728
	sub	r2, r2, #20
	mov	r0, r2
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [r0, #-1400]
	bl	tcsetattr
.L98:
	sub	r3, fp, #73728
	sub	r3, r3, #20
	ldr	r3, [r3, #-1420]
	ldr	r2, .L103
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L100
	bl	__stack_chk_fail
.L100:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L104:
	.align	2
.L103:
	.word	.LC35
	.word	opts
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	stderr
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	stdin
	.word	optind
	.word	74990
	.word	74994
	.word	.LC28
	.word	.LC29
	.word	762
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5463, %object
	.size	__PRETTY_FUNCTION__.5463, 11
__PRETTY_FUNCTION__.5463:
	.ascii	"parse_opts\000"
	.align	2
.LC36:
	.ascii	"clear\000"
	.align	2
.LC37:
	.ascii	"output\000"
	.align	2
.LC38:
	.ascii	"primary\000"
	.align	2
.LC39:
	.ascii	"term\000"
	.align	2
.LC40:
	.ascii	"test\000"
	.align	2
.LC41:
	.ascii	"trim-newline\000"
	.align	2
.LC42:
	.ascii	"help\000"
	.align	2
.LC43:
	.ascii	"version\000"
	.data
	.align	2
	.type	long_opts.5465, %object
	.size	long_opts.5465, 144
long_opts.5465:
	.word	.LC36
	.word	0
	.word	0
	.word	99
	.word	.LC37
	.word	1
	.word	0
	.word	111
	.word	.LC38
	.word	0
	.word	0
	.word	112
	.word	.LC39
	.word	1
	.word	0
	.word	84
	.word	.LC40
	.word	0
	.word	0
	.word	116
	.word	.LC41
	.word	0
	.word	0
	.word	110
	.word	.LC42
	.word	0
	.word	0
	.word	104
	.word	.LC43
	.word	0
	.word	0
	.word	86
	.word	0
	.word	0
	.word	0
	.word	0
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5493, %object
	.size	__PRETTY_FUNCTION__.5493, 14
__PRETTY_FUNCTION__.5493:
	.ascii	"base64_encode\000"
	.align	2
	.type	b64_table.5492, %object
	.size	b64_table.5492, 65
b64_table.5492:
	.ascii	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxy"
	.ascii	"z0123456789+/\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
