	.file	"91782.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 32
	.type	cb64, @object
	.size	cb64, 65
cb64:
	.string	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
.LC0:
	.string	"Error at sysconf"
	.align 8
.LC1:
	.string	"Notification: the page size on your hardware system is: %ld bytes.\n"
	.align 8
.LC2:
	.string	"Commandline:  %s source destination\n"
.LC3:
	.string	"Error at open"
.LC4:
	.string	"Error at fstat"
	.align 8
.LC5:
	.string	"Doriti sa se suprascrie fisierul? (y/n): "
.LC6:
	.string	"No overwrite"
.LC7:
	.string	"Error at mmap1"
.LC8:
	.string	"Error at mmap2"
.LC9:
	.string	"Error at close"
.LC10:
	.string	"Error at msync"
.LC11:
	.string	"Error at munmap"
	.text
	.globl	main
	.type	main, @function
main:
.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, 384
	mov	DWORD PTR -372[rbp], edi
	mov	QWORD PTR -384[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 30
	call	sysconf@PLT
	mov	QWORD PTR -344[rbp], rax
	cmp	QWORD PTR -344[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -344[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -372[rbp], 2
	jle	.L3
	cmp	DWORD PTR -372[rbp], 4
	jle	.L4
.L3:
	mov	rax, QWORD PTR -384[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -384[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -348[rbp], eax
	cmp	DWORD PTR -348[rbp], -1
	jne	.L5
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rdx, -304[rbp]
	mov	eax, DWORD PTR -348[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	cmp	eax, -1
	jne	.L6
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -384[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	jne	.L7
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	BYTE PTR -361[rbp], al
	cmp	BYTE PTR -361[rbp], 121
	jne	.L8
	mov	rax, QWORD PTR -384[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	esi, 514
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -360[rbp], eax
	jmp	.L9
.L8:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR -384[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	esi, 578
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -360[rbp], eax
.L9:
	cmp	DWORD PTR -360[rbp], -1
	jne	.L10
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -360[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	cmp	eax, -1
	jne	.L11
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	rax, QWORD PTR -256[rbp]
	mov	rsi, rax
	mov	eax, DWORD PTR -348[rbp]
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 2
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -336[rbp], rax
	cmp	QWORD PTR -336[rbp], -1
	jne	.L12
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	rcx, QWORD PTR -256[rbp]
	movabs	rdx, 6148914691236517206
	mov	rax, rcx
	imul	rdx
	sar	rcx, 63
	mov	rax, rdx
	sub	rax, rcx
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	eax, DWORD PTR -360[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ftruncate@PLT
	mov	rcx, QWORD PTR -256[rbp]
	movabs	rdx, 6148914691236517206
	mov	rax, rcx
	imul	rdx
	sar	rcx, 63
	mov	rax, rdx
	sub	rax, rcx
	add	rax, 1
	sal	rax, 2
	mov	rsi, rax
	mov	eax, DWORD PTR -360[rbp]
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -328[rbp], rax
	cmp	QWORD PTR -328[rbp], -1
	jne	.L13
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	eax, DWORD PTR -348[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L14
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	eax, DWORD PTR -360[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	eax, -1
	jne	.L15
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	edi, 3
	call	malloc@PLT
	mov	QWORD PTR -320[rbp], rax
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR -312[rbp], rax
	mov	DWORD PTR -356[rbp], 0
	mov	DWORD PTR -352[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -356[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -336[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -320[rbp]
	mov	edx, 3
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, eax
	mov	rcx, QWORD PTR -312[rbp]
	mov	rax, QWORD PTR -320[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	encodeblock
	mov	eax, DWORD PTR -352[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -328[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -312[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR [rdx], eax
	add	DWORD PTR -356[rbp], 3
	add	DWORD PTR -352[rbp], 4
.L16:
	mov	eax, DWORD PTR -356[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -256[rbp]
	cmp	rdx, rax
	jl	.L17
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -256[rbp]
	mov	rcx, rax
	mov	rax, QWORD PTR -328[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	msync@PLT
	cmp	eax, -1
	jne	.L18
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	mov	rax, QWORD PTR -256[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -336[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	cmp	eax, -1
	jne	.L19
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	rcx, QWORD PTR -256[rbp]
	movabs	rdx, 6148914691236517206
	mov	rax, rcx
	imul	rdx
	sar	rcx, 63
	mov	rax, rdx
	sub	rax, rcx
	add	rax, 1
	sal	rax, 2
	mov	rdx, rax
	mov	rax, QWORD PTR -328[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	cmp	eax, -1
	jne	.L20
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.type	encodeblock, @function
encodeblock:
.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	shr	al, 2
	movzx	eax, al
	cdqe
	lea	rdx, cb64[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 4
	and	eax, 48
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	movzx	eax, al
	or	eax, edx
	cdqe
	lea	rdx, cb64[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], dl
	cmp	DWORD PTR -20[rbp], 1
	jle	.L23
	mov	rax, QWORD PTR -8[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 -8[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	shr	al, 6
	movzx	eax, al
	or	eax, edx
	cdqe
	lea	rdx, cb64[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	edx, eax
	jmp	.L24
.L23:
	mov	edx, 61
.L24:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 2
	mov	BYTE PTR [rax], dl
	cmp	DWORD PTR -20[rbp], 2
	jle	.L25
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	eax, 63
	cdqe
	lea	rdx, cb64[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	edx, eax
	jmp	.L26
.L25:
	mov	edx, 61
.L26:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 3
	mov	BYTE PTR [rax], dl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	encodeblock, .-encodeblock
	.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	"91782.c"
	.text
	.section	.rodata
	.align	2
	.type	cb64, %object
	.size	cb64, 65
cb64:
	.ascii	"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxy"
	.ascii	"z0123456789+/\000"
	.align	2
.LC0:
	.ascii	"Error at sysconf\000"
	.align	2
.LC1:
	.ascii	"Notification: the page size on your hardware system"
	.ascii	" is: %ld bytes.\012\000"
	.align	2
.LC2:
	.ascii	"Commandline:  %s source destination\012\000"
	.align	2
.LC3:
	.ascii	"Error at open\000"
	.align	2
.LC4:
	.ascii	"Error at fstat\000"
	.align	2
.LC5:
	.ascii	"Doriti sa se suprascrie fisierul? (y/n): \000"
	.align	2
.LC6:
	.ascii	"No overwrite\000"
	.align	2
.LC7:
	.ascii	"Error at mmap1\000"
	.align	2
.LC8:
	.ascii	"Error at mmap2\000"
	.align	2
.LC9:
	.ascii	"Error at close\000"
	.align	2
.LC10:
	.ascii	"Error at msync\000"
	.align	2
.LC11:
	.ascii	"Error at munmap\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #240
	str	r0, [fp, #-232]
	str	r1, [fp, #-236]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #30
	bl	sysconf
	str	r0, [fp, #-212]
	ldr	r3, [fp, #-212]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L22+4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, .L22+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-212]
	ldr	r1, .L22+12
	mov	r0, r3
	bl	fprintf
	ldr	r3, [fp, #-232]
	cmp	r3, #2
	ble	.L3
	ldr	r3, [fp, #-232]
	cmp	r3, #4
	ble	.L4
.L3:
	ldr	r3, .L22+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-236]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L22+16
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-236]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [fp, #-208]
	ldr	r3, [fp, #-208]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L22+20
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #188
	mov	r1, r3
	ldr	r0, [fp, #-208]
	bl	fstat
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L22+24
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-236]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	access
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L22+28
	bl	printf
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-225]
	ldrb	r3, [fp, #-225]	@ zero_extendqisi2
	cmp	r3, #121
	bne	.L8
	ldr	r3, [fp, #-236]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L22+32
	mov	r0, r3
	bl	open
	str	r0, [fp, #-224]
	b	.L9
.L8:
	ldr	r0, .L22+36
	bl	puts
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, [fp, #-236]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L22+40
	mov	r0, r3
	bl	open
	str	r0, [fp, #-224]
.L9:
	ldr	r3, [fp, #-224]
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L22+20
	bl	perror
	mov	r0, #1
	bl	exit
.L10:
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-224]
	bl	fstat
	mov	r3, r0
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L22+24
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	ldr	r3, [fp, #-144]
	mov	r1, r3
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-208]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #2
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-204]
	ldr	r3, [fp, #-204]
	cmn	r3, #1
	bne	.L12
	ldr	r0, .L22+44
	bl	perror
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-144]
	ldr	r2, .L22+48
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-224]
	bl	ftruncate
	ldr	r3, [fp, #-144]
	ldr	r2, .L22+48
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r1, r3
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-224]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-200]
	ldr	r3, [fp, #-200]
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L22+52
	bl	perror
	mov	r0, #1
	bl	exit
.L13:
	ldr	r0, [fp, #-208]
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L14
	ldr	r0, .L22+56
	bl	perror
	mov	r0, #1
	bl	exit
.L14:
	ldr	r0, [fp, #-224]
	bl	close
	mov	r3, r0
	cmn	r3, #1
	bne	.L15
	ldr	r0, .L22+56
	bl	perror
	mov	r0, #1
	bl	exit
.L15:
	mov	r0, #3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-196]
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-192]
	mov	r3, #0
	str	r3, [fp, #-220]
	mov	r3, #0
	str	r3, [fp, #-216]
	b	.L16
.L17:
	ldr	r3, [fp, #-220]
	ldr	r2, [fp, #-204]
	add	r3, r2, r3
	mov	r2, #3
	mov	r1, r3
	ldr	r0, [fp, #-196]
	bl	memcpy
	ldr	r0, [fp, #-196]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-192]
	ldr	r0, [fp, #-196]
	bl	encodeblock
	ldr	r3, [fp, #-216]
	ldr	r2, [fp, #-200]
	add	r3, r2, r3
	mov	r2, #4
	ldr	r1, [fp, #-192]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-220]
	add	r3, r3, #3
	str	r3, [fp, #-220]
	ldr	r3, [fp, #-216]
	add	r3, r3, #4
	str	r3, [fp, #-216]
.L16:
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-220]
	cmp	r2, r3
	blt	.L17
	ldr	r0, [fp, #-196]
	bl	free
	ldr	r0, [fp, #-192]
	bl	free
	ldr	r3, [fp, #-144]
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-200]
	bl	msync
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L22+60
	bl	perror
	mov	r0, #1
	bl	exit
.L18:
	ldr	r3, [fp, #-144]
	mov	r1, r3
	ldr	r0, [fp, #-204]
	bl	munmap
	mov	r3, r0
	cmn	r3, #1
	bne	.L19
	ldr	r0, .L22+64
	bl	perror
	mov	r0, #1
	bl	exit
.L19:
	ldr	r3, [fp, #-144]
	ldr	r2, .L22+48
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r3, r3, #1
	lsl	r3, r3, #2
	mov	r1, r3
	ldr	r0, [fp, #-200]
	bl	munmap
	mov	r3, r0
	cmn	r3, #1
	bne	.L20
	ldr	r0, .L22+64
	bl	perror
	mov	r0, #1
	bl	exit
.L20:
	mov	r0, #0
	bl	exit
.L23:
	.align	2
.L22:
	.word	.LC12
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	514
	.word	.LC6
	.word	578
	.word	.LC7
	.word	1431655766
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	encodeblock, %function
encodeblock:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #2
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, .L29
	ldrb	r2, [r3, r2]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #4
	and	r3, r3, #48
	ldr	r2, [fp, #-8]
	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	r3, r3, #1
	ldr	r1, .L29
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L25
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #2
	and	r3, r3, #60
	ldr	r2, [fp, #-8]
	add	r2, r2, #2
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsr	r2, r2, #6
	and	r2, r2, #255
	orr	r3, r3, r2
	ldr	r2, .L29
	ldrb	r2, [r2, r3]	@ zero_extendqisi2
	b	.L26
.L25:
	mov	r2, #61
.L26:
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	ble	.L27
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #63
	ldr	r2, .L29
	ldrb	r2, [r2, r3]	@ zero_extendqisi2
	b	.L28
.L27:
	mov	r2, #61
.L28:
	ldr	r3, [fp, #-12]
	add	r3, r3, #3
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L30:
	.align	2
.L29:
	.word	cb64
	.size	encodeblock, .-encodeblock
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
