	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_base64_decode                  ## -- Begin function base64_decode
	.p2align	4, 0x90
_base64_decode:                         ## @base64_decode
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rcx, %rcx
	je	LBB0_34
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r10
	movq	%rdi, %r9
	movq	_base64_dec_map@GOTPCREL(%rip), %r8
	movq	(%r8), %r11
	leaq	1(%rdx), %rdi
	xorl	%r14d, %r14d
	movq	%rcx, %rax
	xorl	%esi, %esi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rsi
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdi
	decq	%rax
	je	LBB0_16
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rdi), %ebx
	cmpq	$2, %rax
	jb	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$13, %bl
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movb	$13, %bl
	cmpb	$10, (%rdi)
	je	LBB0_3
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$10, %bl
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$61, %bl
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$2, %r14d
	jge	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	incl	%r14d
	movb	$61, %bl
	jmp	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	testb	%bl, %bl
	js	LBB0_15
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movzbl	%bl, %ebx
	movl	(%r11,%rbx,4), %ebx
	cmpl	$127, %ebx
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$63, %ebx
	jg	LBB0_2
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%r14d, %r14d
	je	LBB0_2
LBB0_15:
	movq	_POLARSSL_ERR_BASE64_INVALID_CHARACTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_35
LBB0_16:
	testq	%rsi, %rsi
	je	LBB0_34
## %bb.17:
	leaq	(%rsi,%rsi,2), %rax
	addq	%rax, %rax
	addq	$7, %rax
	shrq	$3, %rax
	cmpq	%rax, (%r10)
	jae	LBB0_19
## %bb.18:
	movq	%rax, (%r10)
	movq	_POLARSSL_ERR_BASE64_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_35
LBB0_19:
	movl	$3, %r11d
	xorl	%eax, %eax
	movq	%r9, %rdx
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	%ebx, %edi
LBB0_21:                                ##   in Loop: Header=BB0_22 Depth=1
	incq	%rax
	movl	%edi, %ebx
	cmpq	%rax, %rcx
	je	LBB0_33
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12,%rax), %edi
	cmpq	$10, %rdi
	je	LBB0_20
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	cmpb	$13, %dil
	je	LBB0_20
## %bb.25:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	(%r8), %rsi
	movl	(%rsi,%rdi,4), %edi
	xorl	%esi, %esi
	cmpl	$64, %edi
	sete	%sil
	subl	%esi, %r11d
	shll	$6, %ebx
	andl	$63, %edi
	orl	%ebx, %edi
	incq	%r14
	cmpq	$4, %r14
	jne	LBB0_21
## %bb.26:                              ##   in Loop: Header=BB0_22 Depth=1
	testl	%r11d, %r11d
	jle	LBB0_32
## %bb.27:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	%ebx, %esi
	shrl	$16, %esi
	movb	%sil, (%rdx)
	cmpl	$1, %r11d
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_22 Depth=1
	incq	%rdx
	movl	$1, %r11d
	jmp	LBB0_32
LBB0_29:                                ##   in Loop: Header=BB0_22 Depth=1
	movb	%bh, 1(%rdx)
	cmpl	$3, %r11d
	movq	%rdx, %r15
	jb	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_22 Depth=1
	movb	%dil, 2(%r15)
	addq	$3, %r15
	movq	%r15, %rdx
	jmp	LBB0_32
LBB0_31:                                ##   in Loop: Header=BB0_22 Depth=1
	addq	$2, %r15
	movq	%r15, %rdx
	movl	$2, %r11d
LBB0_32:                                ##   in Loop: Header=BB0_22 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_21
LBB0_33:
	subq	%r9, %rdx
	movq	%rdx, (%r10)
LBB0_34:
	xorl	%eax, %eax
LBB0_35:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLARSSL_ERR_BASE64_INVALID_CHARACTER,4,2 ## @POLARSSL_ERR_BASE64_INVALID_CHARACTER
	.comm	_base64_dec_map,8,3             ## @base64_dec_map
	.comm	_POLARSSL_ERR_BASE64_BUFFER_TOO_SMALL,4,2 ## @POLARSSL_ERR_BASE64_BUFFER_TOO_SMALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_base64_decode                  ; -- Begin function base64_decode
	.p2align	2
_base64_decode:                         ; @base64_decode
	.cfi_startproc
; %bb.0:
	cbz	x3, LBB0_19
; %bb.1:
	mov	w10, #0
	mov	x9, #0
Lloh0:
	adrp	x8, _base64_dec_map@GOTPAGE
Lloh1:
	ldr	x8, [x8, _base64_dec_map@GOTPAGEOFF]
	ldr	x11, [x8]
	add	x12, x2, #1
	mov	x13, x3
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x12, x12, #1
	subs	x13, x13, #1
	b.eq	LBB0_16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w14, [x12, #-1]
	cmp	x13, #2
	b.lo	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w14, #13
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w14, [x12]
	cmp	w14, #10
	b.eq	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w14, #13
	b	LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w14, #10
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w14, #61
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w10, #2
	b.ge	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	add	w10, w10, #1
	mov	w14, #61
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	tbnz	w14, #7, LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w14, [x11, w14, uxtw #2]
	cmp	w14, #127
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w14, #63
	ccmp	w10, #0, #4, le
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	b	LBB0_2
LBB0_15:
Lloh2:
	adrp	x8, _POLARSSL_ERR_BASE64_INVALID_CHARACTER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _POLARSSL_ERR_BASE64_INVALID_CHARACTER@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ret
LBB0_16:
	cbz	x9, LBB0_19
; %bb.17:
	mov	w10, #6
	orr	x11, xzr, #0x7
	madd	x9, x9, x10, x11
	lsr	x9, x9, #3
	ldr	x10, [x1]
	cmp	x10, x9
	b.hs	LBB0_20
; %bb.18:
	str	x9, [x1]
Lloh5:
	adrp	x8, _POLARSSL_ERR_BASE64_BUFFER_TOO_SMALL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _POLARSSL_ERR_BASE64_BUFFER_TOO_SMALL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ret
LBB0_19:
	mov	w0, #0
	ret
LBB0_20:
	mov	w9, #0
	mov	x11, #0
	mov	w10, #3
	mov	x12, x0
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x11, #0
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x2, x2, #1
	subs	x3, x3, #1
	b.eq	LBB0_31
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w13, [x2]
	cmp	w13, #10
	ccmp	w13, #13, #4, ne
	b.eq	LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x14, [x8]
	ldr	w14, [x14, x13, lsl #2]
	cmp	w14, #64
	cset	w13, eq
	sub	w10, w10, w13
	lsl	w13, w9, #6
	mov	x9, x13
	bfxil	w9, w14, #0, #6
	add	x11, x11, #1
	cmp	x11, #4
	b.ne	LBB0_22
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=1
	cmp	w10, #1
	b.lt	LBB0_21
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=1
	lsr	w11, w13, #16
	mov	x14, x12
	strb	w11, [x14], #1
	cmp	w10, #1
	b.ne	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x11, #0
	mov	x12, x14
	b	LBB0_22
LBB0_28:                                ;   in Loop: Header=BB0_23 Depth=1
	lsr	w11, w13, #8
	strb	w11, [x12, #1]
	cmp	w10, #3
	b.lo	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x11, #0
	strb	w9, [x12, #2]
	add	x12, x12, #3
	b	LBB0_22
LBB0_30:                                ;   in Loop: Header=BB0_23 Depth=1
	mov	x11, #0
	add	x12, x12, #2
	mov	w10, #2
	b	LBB0_22
LBB0_31:
	sub	x9, x12, x0
	str	x9, [x1]
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_POLARSSL_ERR_BASE64_INVALID_CHARACTER,4,2 ; @POLARSSL_ERR_BASE64_INVALID_CHARACTER
	.comm	_base64_dec_map,8,3             ; @base64_dec_map
	.comm	_POLARSSL_ERR_BASE64_BUFFER_TOO_SMALL,4,2 ; @POLARSSL_ERR_BASE64_BUFFER_TOO_SMALL
.subsections_via_symbols
