	.file	"225144344.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.type	minusone, @object
	.size	minusone, 1
minusone:
	.byte	-1
	.data
	.align 32
	.type	base64_decoder, @object
	.size	base64_decoder, 256
base64_decoder:
	.string	"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377>\377\377\377?456789:;<=\377\377\377\377\377\377\377"
	.ascii	"\001\002\003\004\005\006\007\b\t\n\013\f\r\016\017\020\021\022"
	.ascii	"\023\024\025\026\027\030\031\377\377\377\377\377\377\032\033"
	.ascii	"\034\035\036\037 !\"#$%&'()*+,-./0123\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377"
	.section	.rodata
.LC0:
	.string	"write"
	.text
	.globl	write_block
	.type	write_block, @function
write_block:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L5:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L3
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -4[rbp]
	add	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sub	QWORD PTR -40[rbp], rax
.L2:
	cmp	QWORD PTR -40[rbp], 0
	jne	.L5
	mov	eax, DWORD PTR -8[rbp]
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	write_block, .-write_block
	.section	.rodata
	.align 8
.LC1:
	.string	"%d: Unexpected input size: %d\n  >"
.LC2:
	.string	"%c"
.LC3:
	.string	"<\n"
	.text
	.globl	base64_decode_inplace
	.type	base64_decode_inplace, @function
base64_decode_inplace:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	DWORD PTR -76[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -72[rbp], 0
	je	.L7
	cmp	DWORD PTR -76[rbp], 0
	jne	.L8
.L7:
	mov	eax, 0
	jmp	.L23
.L8:
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	jmp	.L10
.L13:
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 61
	je	.L11
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cdqe
	lea	rdx, base64_decoder[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	edx, -1
	cmp	al, dl
	je	.L12
.L11:
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	lea	rcx, [rdx+rax]
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -52[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR [rcx]
	mov	BYTE PTR [rdx], al
.L12:
	add	DWORD PTR -56[rbp], 1
.L10:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L13
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	and	eax, 3
	test	eax, eax
	je	.L14
	mov	eax, DWORD PTR -76[rbp]
	mov	ecx, eax
	mov	edx, 74
	lea	rsi, .LC1[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	DWORD PTR -56[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edx, eax
	lea	rsi, .LC2[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	add	DWORD PTR -56[rbp], 1
.L15:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L16
	lea	rsi, .LC3[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	eax, -1
	jmp	.L23
.L14:
	mov	DWORD PTR -56[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	jmp	.L17
.L22:
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -56[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cdqe
	lea	rdx, base64_decoder[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	edx, al
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	mov	DWORD PTR -32[rbp+rax*4], edx
	add	DWORD PTR -48[rbp], 1
.L18:
	cmp	DWORD PTR -48[rbp], 3
	jle	.L19
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jne	.L20
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 61
	jne	.L20
	mov	DWORD PTR -44[rbp], 1
	mov	DWORD PTR -20[rbp], 0
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	lea	rdx, -2[rax]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 61
	jne	.L20
	mov	DWORD PTR -40[rbp], 1
	mov	DWORD PTR -24[rbp], 0
.L20:
	mov	eax, DWORD PTR -32[rbp]
	sal	eax, 18
	mov	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	sal	eax, 12
	add	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	sal	eax, 6
	add	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	shr	eax, 16
	mov	ecx, eax
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -52[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	cmp	DWORD PTR -44[rbp], 0
	jne	.L21
	mov	eax, DWORD PTR -36[rbp]
	shr	eax, 8
	mov	ecx, eax
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -52[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
.L21:
	cmp	DWORD PTR -40[rbp], 0
	jne	.L17
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -52[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -36[rbp]
	mov	BYTE PTR [rax], dl
.L17:
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, DWORD PTR -76[rbp]
	jl	.L22
	mov	eax, DWORD PTR -52[rbp]
.L23:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	base64_decode_inplace, .-base64_decode_inplace
	.section	.rodata
	.align 8
.LC4:
	.string	"Usage: base64decode <outout-file>\n"
.LC5:
	.string	"\n"
.LC6:
	.string	"%d: Alloc error\n"
.LC7:
	.string	"%d: read error\n"
.LC8:
	.string	"read"
.LC9:
	.string	"open"
	.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
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -24[rbp], 1024
	mov	DWORD PTR -20[rbp], 0
	mov	edi, 1024
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -16[rbp], -1
	mov	DWORD PTR -12[rbp], -1
	cmp	DWORD PTR -36[rbp], 2
	je	.L26
	lea	rsi, .LC4[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	lea	rsi, .LC5[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	jmp	.L27
.L26:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jne	.L28
	add	DWORD PTR -24[rbp], 1024
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -8[rbp], rax
.L28:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L29
	mov	edx, 134
	lea	rsi, .LC6[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	jmp	.L27
.L29:
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, DWORD PTR -20[rbp]
	cdqe
	mov	edx, DWORD PTR -20[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -8[rbp]
	add	rcx, rdx
	mov	rdx, rax
	mov	rsi, rcx
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jle	.L30
	mov	eax, DWORD PTR -16[rbp]
	add	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 1
	jle	.L26
	jmp	.L41
.L30:
	cmp	DWORD PTR -16[rbp], 0
	je	.L42
	mov	edx, 147
	lea	rsi, .LC7[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	lea	rdi, .LC8[rip]
	call	perror@PLT
	jmp	.L27
.L41:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L35
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, -2[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	je	.L33
.L35:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	jne	.L26
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, -2[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	je	.L33
	jmp	.L26
.L42:
	nop
.L33:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L36
	lea	rdi, .LC9[rip]
	call	perror@PLT
	jmp	.L27
.L36:
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	base64_decode_inplace
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jle	.L37
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write_block
	jmp	.L27
.L37:
	mov	DWORD PTR -16[rbp], 0
.L27:
	cmp	QWORD PTR -8[rbp], 0
	je	.L38
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L38:
	cmp	DWORD PTR -12[rbp], -1
	je	.L39
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
.L39:
	mov	eax, DWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"225144344.c"
	.text
	.section	.rodata
	.type	minusone, %object
	.size	minusone, 1
minusone:
	.byte	-1
	.data
	.align	2
	.type	base64_decoder, %object
	.size	base64_decoder, 256
base64_decoder:
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377>\377\377\377?456789:;<=\377\377\377"
	.ascii	"\377\377\377\377\000\001\002\003\004\005\006\007\010"
	.ascii	"\011\012\013\014\015\016\017\020\021\022\023\024\025"
	.ascii	"\026\027\030\031\377\377\377\377\377\377\032\033\034"
	.ascii	"\035\036\037 !\"#$%&'()*+,-./0123\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377\377\377"
	.ascii	"\377\377\377\377\377\377\377\377\377\377\377"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"write\000"
	.text
	.align	2
	.global	write_block
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_block, %function
write_block:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L5:
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L6
	bl	perror
	mvn	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-24]
.L2:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-12]
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.size	write_block, .-write_block
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d: Unexpected input size: %d\012  >\000"
	.align	2
.LC2:
	.ascii	"%c\000"
	.align	2
.LC3:
	.ascii	"<\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	base64_decode_inplace
	.syntax unified
	.arm
	.fpu softvfp
	.type	base64_decode_inplace, %function
base64_decode_inplace:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L10
.L9:
	mov	r3, #0
	b	.L25
.L10:
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L12
.L15:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #61
	beq	.L13
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L27+4
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	mov	r2, #255
	cmp	r3, r2
	beq	.L14
.L13:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	add	r2, r2, r3
	ldr	r3, [fp, #-44]
	add	r1, r3, #1
	str	r1, [fp, #-44]
	mov	r1, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, r1
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L14:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L12:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L15
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	and	r3, r3, #3
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-60]
	mov	r2, #74
	ldr	r1, .L27+8
	mov	r0, #2
	bl	dprintf
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L17
.L18:
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L27+12
	mov	r0, #2
	bl	dprintf
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L17:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L18
	ldr	r1, .L27+16
	mov	r0, #2
	bl	dprintf
	mvn	r3, #0
	b	.L25
.L16:
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L19
.L24:
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L20
.L21:
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	str	r2, [fp, #-48]
	mov	r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L27+4
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-20]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L20:
	ldr	r3, [fp, #-40]
	cmp	r3, #3
	ble	.L21
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	bne	.L22
	ldr	r3, [fp, #-60]
	sub	r3, r3, #1
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #61
	bne	.L22
	mov	r3, #1
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-60]
	sub	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #61
	bne	.L22
	mov	r3, #1
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]
.L22:
	ldr	r3, [fp, #-24]
	lsl	r2, r3, #18
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #12
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #6
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	lsr	r2, r3, #16
	ldr	r3, [fp, #-44]
	add	r1, r3, #1
	str	r1, [fp, #-44]
	mov	r1, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, r1
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-28]
	lsr	r2, r3, #8
	ldr	r3, [fp, #-44]
	add	r1, r3, #1
	str	r1, [fp, #-44]
	mov	r1, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, r1
	and	r2, r2, #255
	strb	r2, [r3]
.L23:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-44]
	add	r2, r3, #1
	str	r2, [fp, #-44]
	mov	r2, r3
	ldr	r3, [fp, #-56]
	add	r3, r3, r2
	ldr	r2, [fp, #-28]
	and	r2, r2, #255
	strb	r2, [r3]
.L19:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L24
	ldr	r3, [fp, #-44]
.L25:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC4
	.word	base64_decoder
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	base64_decode_inplace, .-base64_decode_inplace
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Usage: base64decode <outout-file>\012\000"
	.align	2
.LC6:
	.ascii	"\012\000"
	.align	2
.LC7:
	.ascii	"%d: Alloc error\012\000"
	.align	2
.LC8:
	.ascii	"%d: read error\012\000"
	.align	2
.LC9:
	.ascii	"read\000"
	.align	2
.LC10:
	.ascii	"open\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, #1024
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mvn	r3, #0
	str	r3, [fp, #-12]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	beq	.L30
	ldr	r1, .L47
	mov	r0, #2
	bl	dprintf
	ldr	r1, .L47+4
	mov	r0, #2
	bl	dprintf
	b	.L31
.L30:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L32
	ldr	r3, [fp, #-24]
	add	r3, r3, #1024
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	realloc
	str	r0, [fp, #-16]
.L32:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L33
	mov	r2, #134
	ldr	r1, .L47+8
	mov	r0, #2
	bl	dprintf
	b	.L31
.L33:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	add	r1, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	mov	r2, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	ble	.L34
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	ble	.L30
	b	.L45
.L34:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L46
	mov	r2, #147
	ldr	r1, .L47+12
	mov	r0, #2
	bl	dprintf
	ldr	r0, .L47+16
	bl	perror
	b	.L31
.L45:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L39
	ldr	r3, [fp, #-20]
	sub	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	beq	.L37
.L39:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L30
	ldr	r3, [fp, #-20]
	sub	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	beq	.L37
	b	.L30
.L46:
	nop
.L37:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L47+20
	mov	r0, r3
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L40
	ldr	r0, .L47+24
	bl	perror
	b	.L31
.L40:
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	base64_decode_inplace
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L41
	ldr	r3, [fp, #-20]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	write_block
	b	.L31
.L41:
	mov	r3, #0
	str	r3, [fp, #-12]
.L31:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L42
	ldr	r0, [fp, #-16]
	bl	free
.L42:
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L43
	ldr	r0, [fp, #-8]
	bl	close
.L43:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	577
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
