	.file	"40764187.c"
	.intel_syntax noprefix
	.text
	.globl	errcheck
	.data
	.align 4
	.type	errcheck, @object
	.size	errcheck, 4
errcheck:
	.long	1
	.globl	encode_table
	.section	.rodata
	.align 8
.LC0:
	.string	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
	.section	.data.rel.local,"aw"
	.align 8
	.type	encode_table, @object
	.size	encode_table, 8
encode_table:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"\n"
	.text
	.globl	encode_file
	.type	encode_file, @function
encode_file:
.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	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	lea	rax, .LC1[rip]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L2
.L12:
	mov	BYTE PTR -15[rbp], 0
	mov	BYTE PTR -14[rbp], 0
	mov	BYTE PTR -13[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	jmp	.L3
.L6:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], -1
	jne	.L4
	mov	DWORD PTR -36[rbp], 1
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	mov	BYTE PTR -15[rbp+rax], dl
	add	DWORD PTR -40[rbp], 1
.L3:
	cmp	DWORD PTR -40[rbp], 2
	jle	.L6
.L5:
	cmp	DWORD PTR -40[rbp], 0
	jle	.L2
	mov	rdx, QWORD PTR encode_table[rip]
	movzx	eax, BYTE PTR -15[rbp]
	shr	al, 2
	movzx	eax, al
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -12[rbp], al
	mov	rdx, QWORD PTR encode_table[rip]
	movzx	eax, BYTE PTR -15[rbp]
	movzx	eax, al
	sal	eax, 4
	and	eax, 48
	mov	ecx, eax
	movzx	eax, BYTE PTR -14[rbp]
	shr	al, 4
	movzx	eax, al
	or	eax, ecx
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -11[rbp], al
	mov	rdx, QWORD PTR encode_table[rip]
	movzx	eax, BYTE PTR -14[rbp]
	movzx	eax, al
	sal	eax, 2
	and	eax, 60
	mov	ecx, eax
	movzx	eax, BYTE PTR -13[rbp]
	shr	al, 6
	movzx	eax, al
	or	eax, ecx
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -10[rbp], al
	mov	rdx, QWORD PTR encode_table[rip]
	movzx	eax, BYTE PTR -13[rbp]
	movzx	eax, al
	and	eax, 63
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -9[rbp], al
	cmp	DWORD PTR -40[rbp], 2
	jg	.L7
	mov	BYTE PTR -9[rbp], 61
	cmp	DWORD PTR -40[rbp], 1
	jg	.L7
	mov	BYTE PTR -10[rbp], 61
.L7:
	cmp	DWORD PTR -32[rbp], 71
	jle	.L8
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	cmp	eax, -1
	jne	.L9
	mov	eax, 1
	jmp	.L14
.L9:
	mov	DWORD PTR -32[rbp], 0
.L8:
	mov	rdx, QWORD PTR -64[rbp]
	lea	rax, -12[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fwrite@PLT
	cmp	rax, 1
	je	.L11
	mov	eax, 1
	jmp	.L14
.L11:
	mov	eax, DWORD PTR -32[rbp]
	add	eax, 4
	mov	DWORD PTR -32[rbp], eax
.L2:
	cmp	DWORD PTR -36[rbp], 0
	je	.L12
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	cmp	eax, -1
	jne	.L13
	mov	eax, 1
	jmp	.L14
.L13:
	mov	eax, 0
.L14:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	encode_file, .-encode_file
	.section	.rodata
.LC2:
	.string	"Input file incomplete.\n"
	.align 8
.LC3:
	.string	"Control character '%c' (0x%02x) in input file.\n"
	.align 8
.LC4:
	.string	"Illegal character '%c' (0x%02x) in input file.\n"
	.text
	.globl	decode_file
	.type	decode_file, @function
decode_file:
.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, 320
	mov	QWORD PTR -312[rbp], rdi
	mov	QWORD PTR -320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -300[rbp], 3
	mov	rax, QWORD PTR encode_table[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -292[rbp], eax
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	esi, 128
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -296[rbp], 0
	jmp	.L17
.L18:
	mov	rdx, QWORD PTR encode_table[rip]
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edx, DWORD PTR -296[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], dl
	add	DWORD PTR -296[rbp], 1
.L17:
	mov	eax, DWORD PTR -296[rbp]
	cmp	eax, DWORD PTR -292[rbp]
	jl	.L18
	mov	BYTE PTR -211[rbp], 0
.L38:
	mov	DWORD PTR -304[rbp], 0
	jmp	.L19
.L29:
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -288[rbp], eax
	cmp	DWORD PTR -288[rbp], -1
	jne	.L20
	cmp	DWORD PTR -304[rbp], 0
	jne	.L21
	mov	eax, 0
	jmp	.L39
.L21:
	mov	eax, DWORD PTR errcheck[rip]
	test	eax, eax
	je	.L23
	cmp	DWORD PTR -304[rbp], 0
	jle	.L23
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
.L23:
	mov	eax, 1
	jmp	.L39
.L20:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -288[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L41
	cmp	DWORD PTR -288[rbp], 32
	jg	.L42
	mov	eax, DWORD PTR errcheck[rip]
	test	eax, eax
	je	.L43
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -288[rbp]
	mov	edx, DWORD PTR -288[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L43
.L41:
	nop
	jmp	.L29
.L43:
	nop
	jmp	.L29
.L42:
	nop
	mov	eax, DWORD PTR -288[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -304[rbp]
	cdqe
	mov	BYTE PTR -280[rbp+rax], dl
	mov	eax, DWORD PTR -288[rbp]
	movsx	eax, al
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	movsx	eax, al
	mov	DWORD PTR -288[rbp], eax
	mov	eax, DWORD PTR -288[rbp]
	and	eax, 128
	test	eax, eax
	je	.L30
	mov	eax, DWORD PTR errcheck[rip]
	test	eax, eax
	je	.L31
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -288[rbp]
	mov	edx, DWORD PTR -288[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L31:
	sub	DWORD PTR -304[rbp], 1
	jmp	.L32
.L30:
	mov	eax, DWORD PTR -288[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -304[rbp]
	cdqe
	mov	BYTE PTR -276[rbp+rax], dl
.L32:
	add	DWORD PTR -304[rbp], 1
.L19:
	cmp	DWORD PTR -304[rbp], 3
	jle	.L29
	movzx	eax, BYTE PTR -276[rbp]
	movzx	eax, al
	sal	eax, 2
	mov	edx, eax
	movzx	eax, BYTE PTR -275[rbp]
	shr	al, 4
	or	eax, edx
	mov	BYTE PTR -283[rbp], al
	movzx	eax, BYTE PTR -275[rbp]
	movzx	eax, al
	sal	eax, 4
	mov	edx, eax
	movzx	eax, BYTE PTR -274[rbp]
	shr	al, 2
	or	eax, edx
	mov	BYTE PTR -282[rbp], al
	movzx	eax, BYTE PTR -274[rbp]
	movzx	eax, al
	sal	eax, 6
	mov	edx, eax
	movzx	eax, BYTE PTR -273[rbp]
	or	eax, edx
	mov	BYTE PTR -281[rbp], al
	movzx	eax, BYTE PTR -278[rbp]
	cmp	al, 61
	jne	.L33
	mov	DWORD PTR -300[rbp], 1
	jmp	.L34
.L33:
	movzx	eax, BYTE PTR -277[rbp]
	cmp	al, 61
	jne	.L35
	mov	DWORD PTR -300[rbp], 2
	jmp	.L34
.L35:
	mov	DWORD PTR -300[rbp], 3
.L34:
	mov	eax, DWORD PTR -300[rbp]
	movsx	rsi, eax
	mov	rdx, QWORD PTR -320[rbp]
	lea	rax, -283[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	cmp	rax, 1
	je	.L36
	mov	eax, 1
	jmp	.L39
.L36:
	cmp	DWORD PTR -300[rbp], 2
	jg	.L38
	mov	eax, 0
.L39:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	decode_file, .-decode_file
	.section	.rodata
	.align 8
.LC5:
	.ascii	"\nUsage:   base64 [options] [infile [outfile]]\n  base64 enc"
	.ascii	"odes binary files as text for transmission over text channel"
	.ascii	"s.\n  base64 can also decode these encoded files to restore "
	.ascii	"the original binary.\n  If files are not specified, stdin & "
	.ascii	"stdout are used.\n  Options may appear anywhere on the comma"
	.ascii	"nd line.\n  Encode is the default mode of operation.\n\nOpti"
	.ascii	"ons:\n        -d, --decode      Decode base64 encoded file\n"
	.ascii	"        -e, --encode    "
	.string	"  Encode file into base64\n        -n, --noerrcheck  Do not post error messages when decoding\n        -u, --help        Print this message\n\nReturns 0 if all is well,\n        1 on file I/O error,\n        2 error opening file,\n        3 invalid command line.\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC5[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	usage, .-usage
	.section	.rodata
.LC6:
	.string	"-d"
.LC7:
	.string	"-e"
.LC8:
	.string	"-n"
.LC9:
	.string	"-u"
.LC10:
	.string	"--decode"
.LC11:
	.string	"--encode"
.LC12:
	.string	"--noerrcheck"
.LC13:
	.string	"--help"
.LC14:
	.string	"\nInvalid option: %s\n"
.LC15:
	.string	"rb"
.LC16:
	.string	"Cannot open input file %s\n"
.LC17:
	.string	"wb"
.LC18:
	.string	"Cannot open output file %s\n"
	.align 8
.LC19:
	.string	"Too many file names specified.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -28[rbp], 1
	jmp	.L46
.L63:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L47
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L48
	mov	DWORD PTR -20[rbp], 1
	jmp	.L49
.L48:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L50
	mov	DWORD PTR -20[rbp], 0
	jmp	.L49
.L50:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L51
	mov	DWORD PTR errcheck[rip], 0
	jmp	.L49
.L51:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L52
	call	usage
	mov	eax, 0
	jmp	.L53
.L52:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L54
	mov	DWORD PTR -20[rbp], 1
	jmp	.L49
.L54:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L55
	mov	DWORD PTR -20[rbp], 0
	jmp	.L49
.L55:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L56
	mov	DWORD PTR errcheck[rip], 0
	jmp	.L49
.L56:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L57
	call	usage
	mov	eax, 0
	jmp	.L53
.L57:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	call	usage
	mov	eax, 3
	jmp	.L53
.L47:
	cmp	DWORD PTR -24[rbp], 0
	je	.L58
	cmp	DWORD PTR -24[rbp], 1
	je	.L59
	jmp	.L65
.L58:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L61
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 2
	jmp	.L53
.L61:
	add	DWORD PTR -24[rbp], 1
	jmp	.L49
.L59:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L62
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 2
	jmp	.L53
.L62:
	add	DWORD PTR -24[rbp], 1
	jmp	.L49
.L65:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	call	usage
	mov	eax, 3
	jmp	.L53
.L49:
	add	DWORD PTR -28[rbp], 1
.L46:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L63
	cmp	DWORD PTR -20[rbp], 0
	je	.L64
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	decode_file
	jmp	.L53
.L64:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	encode_file
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"40764187.c"
	.text
	.global	errcheck
	.data
	.align	2
	.type	errcheck, %object
	.size	errcheck, 4
errcheck:
	.word	1
	.global	encode_table
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxy"
	.ascii	"z0123456789+/\000"
	.data
	.align	2
	.type	encode_table, %object
	.size	encode_table, 4
encode_table:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	encode_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	encode_file, %function
encode_file:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, .L16+4
	str	r3, [fp, #-24]
	b	.L2
.L12:
	mov	r3, #0
	strb	r3, [fp, #-16]
	mov	r3, #0
	strb	r3, [fp, #-15]
	mov	r3, #0
	strb	r3, [fp, #-14]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L3
.L6:
	ldr	r0, [fp, #-40]
	bl	fgetc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L4
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L5
.L4:
	ldr	r3, [fp, #-20]
	and	r1, r3, #255
	sub	r2, fp, #16
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L3:
	ldr	r3, [fp, #-36]
	cmp	r3, #2
	ble	.L6
.L5:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	ble	.L2
	ldr	r3, .L16+8
	ldr	r3, [r3]
	ldrb	r2, [fp, #-16]	@ zero_extendqisi2
	lsr	r2, r2, #2
	and	r2, r2, #255
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [fp, #-12]
	ldr	r3, .L16+8
	ldr	r3, [r3]
	ldrb	r2, [fp, #-16]	@ zero_extendqisi2
	lsl	r2, r2, #4
	and	r2, r2, #48
	ldrb	r1, [fp, #-15]	@ zero_extendqisi2
	lsr	r1, r1, #4
	and	r1, r1, #255
	orr	r2, r2, r1
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [fp, #-11]
	ldr	r3, .L16+8
	ldr	r3, [r3]
	ldrb	r2, [fp, #-15]	@ zero_extendqisi2
	lsl	r2, r2, #2
	and	r2, r2, #60
	ldrb	r1, [fp, #-14]	@ zero_extendqisi2
	lsr	r1, r1, #6
	and	r1, r1, #255
	orr	r2, r2, r1
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [fp, #-10]
	ldr	r3, .L16+8
	ldr	r2, [r3]
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	and	r3, r3, #63
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-36]
	cmp	r3, #2
	bgt	.L7
	mov	r3, #61
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-36]
	cmp	r3, #1
	bgt	.L7
	mov	r3, #61
	strb	r3, [fp, #-10]
.L7:
	ldr	r3, [fp, #-28]
	cmp	r3, #71
	ble	.L8
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-24]
	bl	fputs
	mov	r3, r0
	cmn	r3, #1
	bne	.L9
	mov	r3, #1
	b	.L14
.L9:
	mov	r3, #0
	str	r3, [fp, #-28]
.L8:
	sub	r0, fp, #12
	ldr	r3, [fp, #-44]
	mov	r2, #1
	mov	r1, #4
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L11
	mov	r3, #1
	b	.L14
.L11:
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	str	r3, [fp, #-28]
.L2:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L12
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-24]
	bl	fputs
	mov	r3, r0
	cmn	r3, #1
	bne	.L13
	mov	r3, #1
	b	.L14
.L13:
	mov	r3, #0
.L14:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC2
	.word	.LC1
	.word	encode_table
	.size	encode_file, .-encode_file
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Input file incomplete.\012\000"
	.align	2
.LC4:
	.ascii	"Control character '%c' (0x%02x) in input file.\012\000"
	.align	2
.LC5:
	.ascii	"Illegal character '%c' (0x%02x) in input file.\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	decode_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	decode_file, %function
decode_file:
	@ args = 0, pretend = 0, frame = 304
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #304
	str	r0, [fp, #-304]
	str	r1, [fp, #-308]
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #3
	str	r3, [fp, #-292]
	ldr	r3, .L46+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-284]
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, #128
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-288]
	b	.L19
.L20:
	ldr	r3, .L46+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-288]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-288]
	and	r2, r3, #255
	sub	r3, fp, #4
	add	r3, r3, r1
	strb	r2, [r3, #-260]
	ldr	r3, [fp, #-288]
	add	r3, r3, #1
	str	r3, [fp, #-288]
.L19:
	ldr	r2, [fp, #-288]
	ldr	r3, [fp, #-284]
	cmp	r2, r3
	blt	.L20
	mov	r3, #0
	strb	r3, [fp, #-203]
.L40:
	mov	r3, #0
	str	r3, [fp, #-296]
	b	.L21
.L31:
	ldr	r0, [fp, #-304]
	bl	fgetc
	str	r0, [fp, #-280]
	ldr	r3, [fp, #-280]
	cmn	r3, #1
	bne	.L22
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	bne	.L23
	mov	r3, #0
	b	.L41
.L23:
	ldr	r3, .L46+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	ble	.L25
	ldr	r3, .L46+12
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L46+16
	bl	fwrite
.L25:
	mov	r3, #1
	b	.L41
.L22:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-280]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L43
	ldr	r3, [fp, #-280]
	cmp	r3, #32
	bgt	.L44
	ldr	r3, .L46+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L45
	ldr	r3, .L46+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-280]
	ldr	r1, .L46+20
	bl	fprintf
	b	.L45
.L43:
	nop
	b	.L31
.L45:
	nop
	b	.L31
.L44:
	nop
	ldr	r3, [fp, #-280]
	and	r1, r3, #255
	sub	r2, fp, #272
	ldr	r3, [fp, #-296]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-280]
	and	r3, r3, #255
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-260]	@ zero_extendqisi2
	str	r3, [fp, #-280]
	ldr	r3, [fp, #-280]
	and	r3, r3, #128
	cmp	r3, #0
	beq	.L32
	ldr	r3, .L46+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L33
	ldr	r3, .L46+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-280]
	ldr	r1, .L46+24
	bl	fprintf
.L33:
	ldr	r3, [fp, #-296]
	sub	r3, r3, #1
	str	r3, [fp, #-296]
	b	.L34
.L32:
	ldr	r3, [fp, #-280]
	and	r1, r3, #255
	sub	r2, fp, #268
	ldr	r3, [fp, #-296]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
.L34:
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
.L21:
	ldr	r3, [fp, #-296]
	cmp	r3, #3
	ble	.L31
	ldrb	r3, [fp, #-268]	@ zero_extendqisi2
	lsl	r3, r3, #2
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldrb	r3, [fp, #-267]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #255
	strb	r3, [fp, #-276]
	ldrb	r3, [fp, #-267]	@ zero_extendqisi2
	lsl	r3, r3, #4
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldrb	r3, [fp, #-266]	@ zero_extendqisi2
	lsr	r3, r3, #2
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #255
	strb	r3, [fp, #-275]
	ldrb	r3, [fp, #-266]	@ zero_extendqisi2
	lsl	r3, r3, #6
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldrb	r3, [fp, #-265]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #255
	strb	r3, [fp, #-274]
	ldrb	r3, [fp, #-270]	@ zero_extendqisi2
	cmp	r3, #61
	bne	.L35
	mov	r3, #1
	str	r3, [fp, #-292]
	b	.L36
.L35:
	ldrb	r3, [fp, #-269]	@ zero_extendqisi2
	cmp	r3, #61
	bne	.L37
	mov	r3, #2
	str	r3, [fp, #-292]
	b	.L36
.L37:
	mov	r3, #3
	str	r3, [fp, #-292]
.L36:
	ldr	r1, [fp, #-292]
	sub	r0, fp, #276
	ldr	r3, [fp, #-308]
	mov	r2, #1
	bl	fwrite
	mov	r3, r0
	cmp	r3, #1
	beq	.L38
	mov	r3, #1
	b	.L41
.L38:
	ldr	r3, [fp, #-292]
	cmp	r3, #2
	bgt	.L40
	mov	r3, #0
.L41:
	ldr	r2, .L46
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC6
	.word	encode_table
	.word	errcheck
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	decode_file, .-decode_file
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\012Usage:   base64 [options] [infile [outfile]]\012"
	.ascii	"  base64 encodes binary files as text for transmiss"
	.ascii	"ion over text channels.\012  base64 can also decode"
	.ascii	" these encoded files to restore the original binary"
	.ascii	".\012  If files are not specified, stdin & stdout a"
	.ascii	"re used.\012  Options may appear anywhere on the co"
	.ascii	"mmand line.\012  Encode is the default mode of oper"
	.ascii	"ation.\012\012Options:\012        -d, --decode     "
	.ascii	" Decode base64 encoded file\012        -e, --encode"
	.ascii	"      Encode file into base64\012        -n, --noer"
	.ascii	"rcheck  Do not post error messages when decoding\012"
	.ascii	"        -u, --help        Print this message\012\012"
	.ascii	"Returns 0 if all is well,\012        1 on file I/O "
	.ascii	"error,\012        2 error opening file,\012        "
	.ascii	"3 invalid command line.\012\000"
	.text
	.align	2
	.global	usage
	.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, .L49
	bl	puts
	nop
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC7
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC8:
	.ascii	"-d\000"
	.align	2
.LC9:
	.ascii	"-e\000"
	.align	2
.LC10:
	.ascii	"-n\000"
	.align	2
.LC11:
	.ascii	"-u\000"
	.align	2
.LC12:
	.ascii	"--decode\000"
	.align	2
.LC13:
	.ascii	"--encode\000"
	.align	2
.LC14:
	.ascii	"--noerrcheck\000"
	.align	2
.LC15:
	.ascii	"--help\000"
	.align	2
.LC16:
	.ascii	"\012Invalid option: %s\012\000"
	.align	2
.LC17:
	.ascii	"rb\000"
	.align	2
.LC18:
	.ascii	"Cannot open input file %s\012\000"
	.align	2
.LC19:
	.ascii	"wb\000"
	.align	2
.LC20:
	.ascii	"Cannot open output file %s\012\000"
	.align	2
.LC21:
	.ascii	"Too many file names specified.\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #-32]
	str	r1, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, .L72
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, .L72+4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L52
.L69:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L53
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L72+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L55
.L54:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L72+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L56
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L55
.L56:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L72+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L57
	ldr	r3, .L72+20
	mov	r2, #0
	str	r2, [r3]
	b	.L55
.L57:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L72+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L58
	bl	usage
	mov	r3, #0
	b	.L59
.L58:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L72+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L60
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L55
.L60:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L72+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L61
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L55
.L61:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L72+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L62
	ldr	r3, .L72+20
	mov	r2, #0
	str	r2, [r3]
	b	.L55
.L62:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L72+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L63
	bl	usage
	mov	r3, #0
	b	.L59
.L63:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L72+44
	bl	printf
	bl	usage
	mov	r3, #3
	b	.L59
.L53:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L64
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	beq	.L65
	b	.L71
.L64:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L72+48
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L67
	ldr	r3, .L72+52
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L72+56
	bl	fprintf
	mov	r3, #2
	b	.L59
.L67:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L55
.L65:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L72+60
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L68
	ldr	r3, .L72+52
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L72+64
	bl	fprintf
	mov	r3, #2
	b	.L59
.L68:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L55
.L71:
	ldr	r3, .L72+52
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L72+68
	bl	fwrite
	bl	usage
	mov	r3, #3
	b	.L59
.L55:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L52:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L69
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L70
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	decode_file
	mov	r3, r0
	b	.L59
.L70:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	encode_file
	mov	r3, r0
.L59:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L73:
	.align	2
.L72:
	.word	stdin
	.word	stdout
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	errcheck
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	stderr
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
