	.file	"13807.c"
	.intel_syntax noprefix
	.text
	.globl	get_bitvalue
	.type	get_bitvalue, @function
get_bitvalue:
.LFB6:
	.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	eax, DWORD PTR -28[rbp]
	sar	eax, 3
	mov	DWORD PTR -4[rbp], eax
	mov	BYTE PTR -5[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	esi, al
	movsx	edx, BYTE PTR -5[rbp]
	mov	eax, DWORD PTR -28[rbp]
	not	eax
	and	eax, 7
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	and	eax, esi
	test	eax, eax
	setne	al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_bitvalue, .-get_bitvalue
	.globl	set_bitvalue
	.type	set_bitvalue, @function
set_bitvalue:
.LFB7:
	.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	eax, edx
	mov	BYTE PTR -32[rbp], al
	mov	eax, DWORD PTR -28[rbp]
	sar	eax, 3
	mov	DWORD PTR -4[rbp], eax
	mov	BYTE PTR -5[rbp], 1
	movsx	edx, BYTE PTR -5[rbp]
	mov	eax, DWORD PTR -28[rbp]
	not	eax
	and	eax, 7
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	BYTE PTR -5[rbp], al
	cmp	BYTE PTR -32[rbp], 0
	jne	.L4
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	movzx	eax, BYTE PTR -5[rbp]
	not	eax
	mov	esi, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	and	edx, esi
	mov	BYTE PTR [rax], dl
	jmp	.L6
.L4:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	or	al, BYTE PTR -5[rbp]
	mov	BYTE PTR [rdx], al
.L6:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	set_bitvalue, .-set_bitvalue
	.globl	base64_encode
	.type	base64_encode, @function
base64_encode:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -33[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	eax, DWORD PTR -60[rbp]
	sal	eax, 3
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	sal	eax, 2
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	add	eax, 4
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	jmp	.L8
.L11:
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_bitvalue
	movsx	edx, al
	mov	eax, DWORD PTR -32[rbp]
	lea	ecx, 2[rax]
	lea	rax, -33[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	set_bitvalue
	cmp	DWORD PTR -32[rbp], 5
	je	.L9
	add	DWORD PTR -32[rbp], 1
	jmp	.L10
.L9:
	movzx	eax, BYTE PTR -33[rbp]
	movsx	ecx, al
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -28[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	movsx	rax, ecx
	lea	rcx, conv_table.0[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	mov	BYTE PTR [rdx], al
	mov	BYTE PTR -33[rbp], 0
	mov	DWORD PTR -32[rbp], 0
.L10:
	add	DWORD PTR -24[rbp], 1
.L8:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L11
	cmp	DWORD PTR -32[rbp], 0
	je	.L13
	movzx	eax, BYTE PTR -33[rbp]
	movsx	ecx, al
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -28[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	movsx	rax, ecx
	lea	rcx, conv_table.0[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	mov	BYTE PTR [rdx], al
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -28[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 61
.L13:
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L14
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	base64_encode, .-base64_encode
	.globl	invconv_table
	.type	invconv_table, @function
invconv_table:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 64
	jle	.L18
	cmp	BYTE PTR -4[rbp], 90
	jg	.L18
	movzx	eax, BYTE PTR -4[rbp]
	sub	eax, 65
	mov	BYTE PTR -4[rbp], al
	jmp	.L19
.L18:
	cmp	BYTE PTR -4[rbp], 96
	jle	.L20
	cmp	BYTE PTR -4[rbp], 122
	jg	.L20
	movzx	eax, BYTE PTR -4[rbp]
	sub	eax, 71
	mov	BYTE PTR -4[rbp], al
	jmp	.L19
.L20:
	cmp	BYTE PTR -4[rbp], 47
	jle	.L21
	cmp	BYTE PTR -4[rbp], 57
	jg	.L21
	movzx	eax, BYTE PTR -4[rbp]
	add	eax, 4
	mov	BYTE PTR -4[rbp], al
	jmp	.L19
.L21:
	cmp	BYTE PTR -4[rbp], 43
	jne	.L22
	mov	BYTE PTR -4[rbp], 62
	jmp	.L19
.L22:
	cmp	BYTE PTR -4[rbp], 47
	jne	.L19
	mov	BYTE PTR -4[rbp], 63
.L19:
	movzx	eax, BYTE PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	invconv_table, .-invconv_table
	.globl	base64_decode
	.type	base64_decode, @function
base64_decode:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -60[rbp], 0
	mov	BYTE PTR -61[rbp], 0
	mov	DWORD PTR -56[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -52[rbp], eax
	mov	DWORD PTR -48[rbp], 0
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -44[rbp], 0
	mov	eax, DWORD PTR -52[rbp]
	sub	eax, 1
	mov	DWORD PTR -40[rbp], eax
	jmp	.L25
.L29:
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 61
	jne	.L39
	mov	eax, DWORD PTR -40[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	sub	DWORD PTR -52[rbp], 1
	sub	DWORD PTR -40[rbp], 1
.L25:
	cmp	DWORD PTR -40[rbp], 0
	jns	.L29
	jmp	.L28
.L39:
	nop
.L28:
	mov	eax, DWORD PTR -52[rbp]
	sal	eax, 3
	mov	DWORD PTR -36[rbp], eax
	mov	DWORD PTR -60[rbp], 0
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edx, DWORD PTR -60[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -72[rbp]
	lea	rbx, [rcx+rdx]
	mov	edi, eax
	call	invconv_table
	mov	BYTE PTR [rbx], al
	add	DWORD PTR -60[rbp], 1
.L30:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jl	.L31
	mov	DWORD PTR -60[rbp], 0
	jmp	.L32
.L36:
	mov	eax, DWORD PTR -60[rbp]
	and	eax, 6
	test	eax, eax
	jne	.L33
	add	DWORD PTR -60[rbp], 1
	jmp	.L34
.L33:
	mov	edx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	get_bitvalue
	movsx	edx, al
	mov	ecx, DWORD PTR -56[rbp]
	lea	rax, -61[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	set_bitvalue
	cmp	DWORD PTR -56[rbp], 7
	je	.L35
	add	DWORD PTR -56[rbp], 1
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -44[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -61[rbp]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -48[rbp], 1
	mov	BYTE PTR -61[rbp], 0
	mov	DWORD PTR -56[rbp], 0
.L34:
	add	DWORD PTR -60[rbp], 1
.L32:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L36
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	base64_decode, .-base64_decode
	.globl	get_filesize
	.type	get_filesize, @function
get_filesize:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	cmp	eax, -1
	jne	.L41
	mov	rax, -1
	jmp	.L43
.L41:
	mov	rax, QWORD PTR -112[rbp]
.L43:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	get_filesize, .-get_filesize
	.section	.rodata
.LC0:
	.string	"text:%s\n"
.LC1:
	.string	"size:%d\n"
.LC2:
	.string	"Encoded text:%s\n"
.LC3:
	.string	"Decoded text:%s\n"
.LC4:
	.string	"rb"
.LC5:
	.string	"./sample.jpg"
.LC6:
	.string	"Encoded binary:%s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 6061956614857777491
	mov	QWORD PTR -21[rbp], rax
	mov	DWORD PTR -13[rbp], 7632997
	mov	BYTE PTR -9[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	lea	rax, -21[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -21[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -21[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	lea	rax, -21[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	base64_encode
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -68[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	base64_decode
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	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	QWORD PTR -48[rbp], 0
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	je	.L46
	lea	rdi, .LC5[rip]
	call	get_filesize
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	base64_encode
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L46:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.section	.rodata
	.align 32
	.type	conv_table.0, @object
	.size	conv_table.0, 65
conv_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	"13807.c"
	.text
	.align	2
	.global	get_bitvalue
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_bitvalue, %function
get_bitvalue:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	asr	r3, r3, #3
	str	r3, [fp, #-8]
	mov	r3, #1
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	ldr	r3, [fp, #-20]
	mvn	r3, r3
	and	r3, r3, #7
	lsl	r3, r2, r3
	and	r3, r3, r1
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_bitvalue, .-get_bitvalue
	.align	2
	.global	set_bitvalue
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_bitvalue, %function
set_bitvalue:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, r2
	strb	r3, [fp, #-21]
	ldr	r3, [fp, #-20]
	asr	r3, r3, #3
	str	r3, [fp, #-8]
	mov	r3, #1
	strb	r3, [fp, #-9]
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	ldr	r3, [fp, #-20]
	mvn	r3, r3
	and	r3, r3, #7
	lsl	r3, r2, r3
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldrsb	r3, [fp, #-9]
	mvn	r3, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, r2
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-8]
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L6
.L4:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r2, [fp, #-9]
	orr	r2, r1, r2
	and	r2, r2, #255
	strb	r2, [r3]
.L6:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	set_bitvalue, .-set_bitvalue
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	base64_encode
	.syntax unified
	.arm
	.fpu softvfp
	.type	base64_encode, %function
base64_encode:
	@ 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	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-37]
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	ldr	r2, .L17+4
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r3, r3, #4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L8
.L11:
	ldr	r3, [fp, #-36]
	add	r4, r3, #2
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-48]
	bl	get_bitvalue
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #37
	mov	r1, r4
	mov	r0, r3
	bl	set_bitvalue
	ldr	r3, [fp, #-36]
	cmp	r3, #5
	beq	.L9
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	b	.L10
.L9:
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, .L17+8
	ldrb	r2, [r2, r1]	@ zero_extendqisi2
	strb	r2, [r3]
	mov	r3, #0
	strb	r3, [fp, #-37]
	mov	r3, #0
	str	r3, [fp, #-36]
.L10:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L8:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L13
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldr	r2, .L17+8
	ldrb	r2, [r2, r1]	@ zero_extendqisi2
	strb	r2, [r3]
	b	.L13
.L14:
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	mov	r2, #61
	strb	r2, [r3]
.L13:
	ldr	r3, [fp, #-32]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	1431655766
	.word	conv_table.5437
	.size	base64_encode, .-base64_encode
	.align	2
	.global	invconv_table
	.syntax unified
	.arm
	.fpu softvfp
	.type	invconv_table, %function
invconv_table:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L20
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L20
	ldrb	r3, [fp, #-5]
	sub	r3, r3, #65
	strb	r3, [fp, #-5]
	b	.L21
.L20:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L22
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #122
	bhi	.L22
	ldrb	r3, [fp, #-5]
	sub	r3, r3, #71
	strb	r3, [fp, #-5]
	b	.L21
.L22:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L23
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L23
	ldrb	r3, [fp, #-5]
	add	r3, r3, #4
	strb	r3, [fp, #-5]
	b	.L21
.L23:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L24
	mov	r3, #62
	strb	r3, [fp, #-5]
	b	.L21
.L24:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L21
	mov	r3, #63
	strb	r3, [fp, #-5]
.L21:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	invconv_table, .-invconv_table
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	base64_decode
	.syntax unified
	.arm
	.fpu softvfp
	.type	base64_decode, %function
base64_decode:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	strb	r3, [fp, #-49]
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r0, [fp, #-56]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-40]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L27
.L31:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #61
	bne	.L41
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
.L27:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L31
	b	.L30
.L41:
	nop
.L30:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L32
.L33:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	add	r4, r2, r3
	mov	r0, r1
	bl	invconv_table
	mov	r3, r0
	strb	r3, [r4]
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L32:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L33
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L34
.L38:
	ldr	r3, [fp, #-48]
	and	r3, r3, #6
	cmp	r3, #0
	bne	.L35
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	b	.L36
.L35:
	ldr	r1, [fp, #-48]
	ldr	r0, [fp, #-56]
	bl	get_bitvalue
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #49
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	set_bitvalue
	ldr	r3, [fp, #-44]
	cmp	r3, #7
	beq	.L37
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L36
.L37:
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldrb	r2, [fp, #-49]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	mov	r3, #0
	strb	r3, [fp, #-49]
	mov	r3, #0
	str	r3, [fp, #-44]
.L36:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L34:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L38
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, .L42
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC1
	.size	base64_decode, .-base64_decode
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_filesize
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_filesize, %function
get_filesize:
	@ 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, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-104]
	bl	stat
	mov	r3, r0
	cmn	r3, #1
	bne	.L45
	mvn	r3, #0
	b	.L47
.L45:
	ldr	r3, [fp, #-56]
.L47:
	ldr	r2, .L49
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC2
	.size	get_filesize, .-get_filesize
	.section	.rodata
	.align	2
.LC4:
	.ascii	"text:%s\012\000"
	.align	2
.LC5:
	.ascii	"size:%d\012\000"
	.align	2
.LC6:
	.ascii	"Encoded text:%s\012\000"
	.align	2
.LC7:
	.ascii	"Decoded text:%s\012\000"
	.align	2
.LC8:
	.ascii	"rb\000"
	.align	2
.LC9:
	.ascii	"./sample.jpg\000"
	.align	2
.LC10:
	.ascii	"Encoded binary:%s\012\000"
	.align	2
.LC3:
	.ascii	"Sample Text\000\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L55+4
	sub	ip, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strb	r3, [ip]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L55+8
	bl	printf
	sub	r3, fp, #24
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L55+12
	bl	printf
	sub	r3, fp, #24
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	base64_encode
	str	r0, [fp, #-44]
	ldr	r1, [fp, #-44]
	ldr	r0, .L55+16
	bl	printf
	ldr	r0, [fp, #-44]
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L55+12
	bl	printf
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, [fp, #-44]
	bl	base64_decode
	str	r0, [fp, #-40]
	ldr	r1, [fp, #-40]
	ldr	r0, .L55+20
	bl	printf
	ldr	r3, [fp, #-48]
	mov	r1, r3
	ldr	r0, .L55+12
	bl	printf
	ldr	r0, [fp, #-44]
	bl	free
	ldr	r0, [fp, #-40]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r1, .L55+24
	ldr	r0, .L55+28
	bl	fopen
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L52
	ldr	r0, .L55+28
	bl	get_filesize
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	mov	r1, #1
	ldr	r0, [fp, #-36]
	bl	fread
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-36]
	bl	base64_encode
	str	r0, [fp, #-44]
	ldr	r1, [fp, #-44]
	ldr	r0, .L55+32
	bl	printf
	ldr	r0, [fp, #-32]
	bl	fclose
.L52:
	mov	r3, #0
	ldr	r2, .L55
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L54
	bl	__stack_chk_fail
.L54:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC11
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	conv_table.5437, %object
	.size	conv_table.5437, 65
conv_table.5437:
	.ascii	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxy"
	.ascii	"z0123456789+/\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
