	.file	"extr_hexdecoct.c_base64mem.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	base64mem
	.type	base64mem, @function
base64mem:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movabs	rbp, -6148914691236517205
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	rdi, rdi
	setne	dil
	test	rsi, rsi
	sete	al
	or	edi, eax
	movzx	edi, dil
	call	assert@PLT
	mov	rdi, r15
	call	assert@PLT
	lea	rdx, 8[0+r13*4]
	mov	rax, rdx
	mul	rbp
	shr	rdx
	lea	edi, 1[rdx]
	call	malloc@PLT
	test	rax, rax
	je	.L2
	mov	r14, rax
	mov	rax, r13
	mul	rbp
	mov	rbp, rdx
	mov	rax, rdx
	shr	rax
	and	rbp, -2
	add	rbp, rax
	lea	r12, [rbx+rbp*4]
	mov	rbp, r14
	cmp	rbx, r12
	jnb	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR [rbx]
	add	rbp, 4
	add	rbx, 12
	sar	edi, 2
	call	base64char@PLT
	mov	BYTE PTR -4[rbp], al
	mov	edi, DWORD PTR -12[rbx]
	mov	eax, DWORD PTR -8[rbx]
	sal	edi, 4
	sar	eax, 4
	and	edi, 48
	or	edi, eax
	call	base64char@PLT
	mov	BYTE PTR -3[rbp], al
	mov	eax, DWORD PTR -8[rbx]
	lea	edi, 0[0+rax*4]
	mov	eax, DWORD PTR -4[rbx]
	and	edi, 60
	sar	eax, 6
	or	edi, eax
	call	base64char@PLT
	mov	BYTE PTR -2[rbp], al
	mov	edi, DWORD PTR -4[rbx]
	and	edi, 63
	call	base64char@PLT
	mov	BYTE PTR -1[rbp], al
	cmp	rbx, r12
	jb	.L3
.L4:
	movabs	rdx, -6148914691236517205
	mov	rax, r13
	mul	rdx
	mov	rax, rdx
	and	rdx, -2
	shr	rax
	add	rdx, rax
	mov	rax, r13
	sub	rax, rdx
	cmp	rax, 1
	je	.L6
	cmp	rax, 2
	je	.L13
.L7:
	mov	BYTE PTR 0[rbp], 0
	mov	eax, ebp
	mov	QWORD PTR [r15], r14
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	sub	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	add	rbp, 4
	sar	edi, 2
	call	base64char@PLT
	mov	BYTE PTR -4[rbp], al
	mov	edi, DWORD PTR [rbx]
	mov	eax, DWORD PTR 4[rbx]
	sal	edi, 4
	sar	eax, 4
	and	edi, 48
	or	edi, eax
	call	base64char@PLT
	mov	BYTE PTR -3[rbp], al
	mov	edi, DWORD PTR 4[rbx]
	sal	edi, 2
	and	edi, 60
	call	base64char@PLT
	mov	BYTE PTR -1[rbp], 61
	mov	BYTE PTR -2[rbp], al
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR [rbx]
	add	rbp, 4
	sar	edi, 2
	call	base64char@PLT
	mov	BYTE PTR -4[rbp], al
	mov	edi, DWORD PTR [rbx]
	sal	edi, 4
	and	edi, 48
	call	base64char@PLT
	mov	BYTE PTR -3[rbp], al
	mov	eax, 15677
	mov	WORD PTR -2[rbp], ax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	base64mem, .-base64mem
	.comm	ENOMEM,4,4
	.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_hexdecoct.c_base64mem.c"
	.text
	.align	2
	.global	base64mem
	.syntax unified
	.arm
	.fpu softvfp
	.type	base64mem, %function
base64mem:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	clz	r3, r1
	mov	r9, r2
	mov	r7, r1
	cmp	r0, #0
	lsr	r3, r3, #5
	mov	r10, r0
	moveq	r0, r3
	movne	r0, #1
	bl	assert
	mov	r0, r9
	bl	assert
	ldr	r6, .L13
	add	r0, r7, #2
	lsl	r0, r0, #2
	umull	r3, r0, r6, r0
	lsr	r0, r0, #1
	add	r0, r0, #1
	bl	malloc
	subs	r8, r0, #0
	beq	.L2
	umull	r3, r6, r7, r6
	bic	r3, r6, #1
	add	r6, r3, r6, lsr #1
	add	r6, r10, r6, lsl #2
	cmp	r10, r6
	movcs	fp, r8
	bcs	.L4
	add	r4, r10, #12
	add	r5, r8, #4
.L6:
	ldr	r0, [r4, #-12]
	mov	r10, r4
	asr	r0, r0, #2
	bl	base64char
	ldr	r3, [r4, #-12]
	ldr	r2, [r4, #-8]
	lsl	r3, r3, #4
	and	r3, r3, #48
	strb	r0, [r5, #-4]
	orr	r0, r3, r2, asr #4
	bl	base64char
	ldr	r3, [r4, #-8]
	ldr	r2, [r4, #-4]
	lsl	r3, r3, #2
	and	r3, r3, #60
	strb	r0, [r5, #-3]
	orr	r0, r3, r2, asr #6
	bl	base64char
	ldr	r3, [r4, #-4]
	strb	r0, [r5, #-2]
	and	r0, r3, #63
	bl	base64char
	cmp	r6, r4
	mov	fp, r5
	strb	r0, [r5, #-1]
	add	r4, r4, #12
	add	r5, r5, #4
	bhi	.L6
.L4:
	ldr	r3, .L13
	umull	r2, r3, r7, r3
	bic	r2, r3, #1
	add	r3, r2, r3, lsr #1
	sub	r7, r7, r3
	cmp	r7, #1
	beq	.L7
	cmp	r7, #2
	beq	.L12
.L8:
	mov	r3, #0
	str	r8, [r9]
	sub	r0, fp, r8
	strb	r3, [fp]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	ldr	r0, [r10]
	add	fp, fp, #4
	asr	r0, r0, #2
	bl	base64char
	ldr	r3, [r10]
	ldr	r2, [r10, #4]
	lsl	r3, r3, #4
	and	r3, r3, #48
	strb	r0, [fp, #-4]
	orr	r0, r3, r2, asr #4
	bl	base64char
	ldr	r3, [r10, #4]
	strb	r0, [fp, #-3]
	lsl	r0, r3, #2
	and	r0, r0, #60
	bl	base64char
	mov	r3, #61
	strb	r0, [fp, #-2]
	strb	r3, [fp, #-1]
	b	.L8
.L7:
	ldr	r0, [r10]
	add	fp, fp, #4
	asr	r0, r0, #2
	bl	base64char
	ldr	r3, [r10]
	strb	r0, [fp, #-4]
	lsl	r0, r3, #4
	and	r0, r0, #48
	bl	base64char
	ldr	r3, .L13+4
	strb	r0, [fp, #-3]
	strh	r3, [fp, #-2]	@ movhi
	b	.L8
.L2:
	ldr	r3, .L13+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	.align	2
.L13:
	.word	-1431655765
	.word	15677
	.word	ENOMEM
	.size	base64mem, .-base64mem
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
