	.file	"extr_Wpc.c_DecodeSafe64.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	DecodeSafe64
	.type	DecodeSafe64, @function
DecodeSafe64:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rdi, rdi
	je	.L4
	mov	r13, rsi
	test	rsi, rsi
	je	.L4
	mov	r14, rdi
	mov	r12d, edx
	test	edx, edx
	je	.L7
.L3:
	lea	edi, 1[r12]
	call	Malloc@PLT
	mov	edx, r12d
	mov	rsi, r13
	mov	rdi, rax
	mov	rbp, rax
	call	Copy@PLT
	movsx	rax, r12d
	mov	rdi, rbp
	mov	BYTE PTR 0[rbp+rax], 0
	call	Safe64ToBase64@PLT
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, r14
	call	B64_Decode@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	Free@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rsi
	call	StrLen@PLT
	mov	r12d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	r12d, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	DecodeSafe64, .-DecodeSafe64
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_Wpc.c_DecodeSafe64.c"
	.text
	.align	2
	.global	DecodeSafe64
	.syntax unified
	.arm
	.fpu softvfp
	.type	DecodeSafe64, %function
DecodeSafe64:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	cmpne	r0, #0
	push	{r4, r5, r6, lr}
	moveq	r4, #0
	beq	.L1
	cmp	r2, #0
	mov	r6, r0
	mov	r5, r1
	mov	r4, r2
	beq	.L7
.L3:
	add	r0, r4, #1
	bl	Malloc
	mov	r1, r5
	mov	r2, r4
	mov	r5, r0
	bl	Copy
	mov	r3, #0
	mov	r0, r5
	strb	r3, [r5, r4]
	bl	Safe64ToBase64
	mov	r2, r4
	mov	r1, r5
	mov	r0, r6
	bl	B64_Decode
	mov	r4, r0
	mov	r0, r5
	bl	Free
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L7:
	mov	r0, r1
	bl	StrLen
	mov	r4, r0
	b	.L3
	.size	DecodeSafe64, .-DecodeSafe64
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
