	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unbase64                       ## -- Begin function unbase64
	.p2align	4, 0x90
_unbase64:                              ## @unbase64
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$1, %esi
	jg	LBB0_2
## %bb.1:
	movl	$0, (%rdx)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_2:
	movl	%esi, %r14d
	movq	%rdi, %r12
	leal	-1(%r14), %eax
	xorl	%ecx, %ecx
	cmpb	$61, (%rdi,%rax)
	sete	%cl
	leal	-2(%r14), %eax
	cmpb	$61, (%rdi,%rax)
	leal	1(%rcx), %r15d
	cmovnel	%ecx, %r15d
	leal	(%r14,%r14,2), %eax
	leal	(%r14,%r14,2), %edi
	addl	$3, %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$2, %edi
	subl	%r15d, %edi
	movl	%edi, (%rdx)
	callq	_malloc
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	subl	%r15d, %r14d
	addl	$-4, %r14d
	movl	$0, %r10d
	js	LBB0_7
## %bb.5:
	movl	%r14d, %r9d
	xorl	%r13d, %r13d
	movq	_unb64@GOTPCREL(%rip), %r8
	xorl	%r10d, %r10d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r8), %rdi
	movzbl	(%r12,%r13), %esi
	movl	(%rdi,%rsi,4), %esi
	movzbl	1(%r12,%r13), %ebx
	movl	(%rdi,%rbx,4), %edx
	movzbl	2(%r12,%r13), %ecx
	movl	(%rdi,%rcx,4), %ecx
	movzbl	3(%r12,%r13), %r11d
	shll	$2, %esi
	movl	%edx, %ebx
	shrl	$4, %ebx
	orl	%esi, %ebx
	movl	%ecx, %esi
	shll	$6, %esi
	orl	(%rdi,%r11,4), %esi
	movb	%bl, (%rax,%r10)
	shll	$4, %edx
	shrl	$2, %ecx
	orl	%edx, %ecx
	movb	%cl, 1(%rax,%r10)
	movb	%sil, 2(%rax,%r10)
	addq	$3, %r10
	addq	$4, %r13
	cmpq	%r9, %r13
	jbe	LBB0_6
LBB0_7:
	cmpl	$2, %r15d
	je	LBB0_10
## %bb.8:
	cmpl	$1, %r15d
	jne	LBB0_11
## %bb.9:
	movq	_unb64@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r13d, %edx
	movzbl	(%r12,%rdx), %esi
	movl	(%rcx,%rsi,4), %esi
	movq	%rdx, %rdi
	orq	$1, %rdi
	movzbl	(%r12,%rdi), %edi
	movl	(%rcx,%rdi,4), %edi
	orq	$2, %rdx
	movzbl	(%r12,%rdx), %edx
	movl	(%rcx,%rdx,4), %ecx
	shll	$2, %esi
	movl	%edi, %edx
	shrl	$4, %edx
	orl	%esi, %edx
	movl	%r10d, %esi
	movb	%dl, (%rax,%rsi)
	shll	$4, %edi
	shrl	$2, %ecx
	orl	%edi, %ecx
	movb	%cl, 1(%rax,%rsi)
	jmp	LBB0_11
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_10:
	movq	_unb64@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r13d, %edx
	movzbl	(%r12,%rdx), %esi
	movl	(%rcx,%rsi,4), %esi
	orq	$1, %rdx
	movzbl	(%r12,%rdx), %edx
	movl	(%rcx,%rdx,4), %ecx
	shll	$2, %esi
	shrl	$4, %ecx
	orl	%esi, %ecx
	movl	%r10d, %edx
	movb	%cl, (%rax,%rdx)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_unb64,8,3                      ## @unb64
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_unbase64                       ; -- Begin function unbase64
	.p2align	2
_unbase64:                              ; @unbase64
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	subs	w8, w1, #1
	b.gt	LBB0_2
; %bb.1:
	mov	x0, #0
	str	wzr, [x2]
	b	LBB0_11
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	ldrb	w8, [x0, w8, uxtw]
	sub	w9, w1, #2
	cmp	w8, #61
	ldrb	w8, [x0, w9, uxtw]
	cset	w9, eq
	mov	w10, #1
	cinc	w10, w10, eq
	cmp	w8, #61
	csel	w21, w10, w9, eq
	add	w8, w1, w1, lsl #1
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	sub	w0, w8, w21
	str	w0, [x2]
	bl	_malloc
	cbz	x0, LBB0_11
; %bb.3:
	sub	w8, w20, w21
	subs	w10, w8, #4
	b.mi	LBB0_9
; %bb.4:
	mov	x9, #0
	mov	x8, #0
	add	x11, x0, #1
	add	x12, x19, #3
Lloh0:
	adrp	x13, _unb64@GOTPAGE
Lloh1:
	ldr	x13, [x13, _unb64@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x13]
	add	x15, x12, x9
	ldurb	w16, [x15, #-3]
	ldr	w16, [x14, x16, lsl #2]
	ldurb	w17, [x15, #-2]
	ldr	w17, [x14, x17, lsl #2]
	ldurb	w1, [x15, #-1]
	ldr	w1, [x14, x1, lsl #2]
	ldrb	w15, [x15]
	ldr	w14, [x14, x15, lsl #2]
	lsr	w15, w17, #4
	orr	w15, w15, w16, lsl #2
	add	x16, x11, x8
	sturb	w15, [x16, #-1]
	lsr	w15, w1, #2
	orr	w15, w15, w17, lsl #4
	strb	w15, [x16]
	orr	w14, w14, w1, lsl #6
	add	x8, x8, #3
	strb	w14, [x16, #1]
	add	x9, x9, #4
	cmp	x9, x10
	b.ls	LBB0_5
; %bb.6:
	cmp	w21, #2
	b.eq	LBB0_10
LBB0_7:
	cmp	w21, #1
	b.ne	LBB0_11
; %bb.8:
Lloh2:
	adrp	x10, _unb64@GOTPAGE
Lloh3:
	ldr	x10, [x10, _unb64@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	mov	w9, w9
	ldrb	w11, [x19, x9]
	ldr	w11, [x10, x11, lsl #2]
	orr	x12, x9, #0x1
	ldrb	w12, [x19, x12]
	ldr	w12, [x10, x12, lsl #2]
	orr	x9, x9, #0x2
	ldrb	w9, [x19, x9]
	ldr	w9, [x10, x9, lsl #2]
	lsr	w10, w12, #4
	orr	w10, w10, w11, lsl #2
	add	x8, x0, w8, uxtw
	strb	w10, [x8]
	lsr	w9, w9, #2
	orr	w9, w9, w12, lsl #4
	strb	w9, [x8, #1]
	b	LBB0_11
LBB0_9:
	mov	w9, #0
	mov	w8, #0
	cmp	w21, #2
	b.ne	LBB0_7
LBB0_10:
Lloh5:
	adrp	x10, _unb64@GOTPAGE
Lloh6:
	ldr	x10, [x10, _unb64@GOTPAGEOFF]
	mov	w9, w9
	ldrb	w11, [x19, x9]
Lloh7:
	ldr	x10, [x10]
	ldr	w11, [x10, x11, lsl #2]
	orr	x9, x9, #0x1
	ldrb	w9, [x19, x9]
	ldr	w9, [x10, x9, lsl #2]
	lsr	w9, w9, #4
	orr	w9, w9, w11, lsl #2
	strb	w9, [x0, w8, uxtw]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_unb64,8,3                      ; @unb64
.subsections_via_symbols
