	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_base64_decode          ## -- Begin function mbedtls_base64_decode
	.p2align	4, 0x90
_mbedtls_base64_decode:                 ## @mbedtls_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
	movq	%rdx, %r15
	testq	%r8, %r8
	je	LBB0_25
## %bb.1:
	movq	%rdi, %r14
	movq	_base64_dec_map@GOTPCREL(%rip), %r9
	movq	(%r9), %r12
	xorl	%r10d, %r10d
	xorl	%r11d, %r11d
	xorl	%eax, %eax
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	xorl	%edx, %edx
	cmpq	%r8, %rax
	jae	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$32, (%rcx,%rax)
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	incq	%rax
	incl	%edx
	cmpq	%rax, %r8
	jne	LBB0_5
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r8, %rax
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r8, %rdi
	subq	%rax, %rdi
	movb	(%rcx,%rax), %bl
	cmpq	$2, %rdi
	jb	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$13, %bl
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$10, 1(%rax,%rcx)
	je	LBB0_23
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movb	$13, %bl
	testl	%edx, %edx
	je	LBB0_19
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$10, %bl
	je	LBB0_23
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%edx, %edx
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$61, %bl
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, %r10d
	jge	LBB0_14
## %bb.17:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	%r10d
	movb	$61, %bl
	jmp	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	%bl, %bl
	js	LBB0_14
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	%bl, %edx
	movl	(%r12,%rdx,4), %edx
	cmpl	$127, %edx
	je	LBB0_14
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$63, %edx
	jg	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	testl	%r10d, %r10d
	jne	LBB0_14
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r11
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	cmpq	%r8, %rax
	jb	LBB0_2
	jmp	LBB0_24
LBB0_7:
	movq	%r8, %rax
LBB0_24:
	testq	%r11, %r11
	je	LBB0_25
LBB0_26:
	movq	%r11, %rdx
	shrq	$2, %rdx
	andq	$-2, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	andl	$7, %r11d
	leaq	(%r11,%r11,2), %rdi
	addq	%rdi, %rdi
	addq	$7, %rdi
	shrq	$3, %rdi
	movslq	%r10d, %rbx
	subq	%rbx, %rdx
	addq	%rdi, %rdx
	testq	%r14, %r14
	je	LBB0_45
## %bb.27:
	cmpq	%rsi, %rdx
	ja	LBB0_45
## %bb.28:
	movq	%r14, %r12
	testq	%rax, %rax
	je	LBB0_42
## %bb.29:
	movl	$3, %r10d
	xorl	%ebx, %ebx
	movabsq	$4294976512, %r8                ## imm = 0x100002400
	movq	%r14, %r12
	xorl	%edx, %edx
	xorl	%r11d, %r11d
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_30 Depth=1
	movl	%edx, %edi
LBB0_41:                                ##   in Loop: Header=BB0_30 Depth=1
	incq	%rbx
	movl	%edi, %edx
	cmpq	%rbx, %rax
	je	LBB0_42
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx,%rbx), %edi
	cmpq	$32, %rdi
	ja	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	btq	%rdi, %r8
	jb	LBB0_32
LBB0_33:                                ##   in Loop: Header=BB0_30 Depth=1
	movq	(%r9), %rsi
	movl	(%rsi,%rdi,4), %edi
	xorl	%esi, %esi
	cmpl	$64, %edi
	sete	%sil
	subl	%esi, %r10d
	shll	$6, %edx
	andl	$63, %edi
	orl	%edx, %edi
	incq	%r11
	cmpq	$4, %r11
	jne	LBB0_41
## %bb.34:                              ##   in Loop: Header=BB0_30 Depth=1
	testl	%r10d, %r10d
	jle	LBB0_40
## %bb.35:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	%edx, %esi
	shrl	$16, %esi
	movb	%sil, (%r12)
	movq	%r12, %rsi
	cmpl	$1, %r10d
	jne	LBB0_37
## %bb.36:                              ##   in Loop: Header=BB0_30 Depth=1
	incq	%rsi
	movq	%rsi, %r12
	movl	$1, %r10d
	jmp	LBB0_40
LBB0_37:                                ##   in Loop: Header=BB0_30 Depth=1
	movb	%dh, 1(%rsi)
	cmpl	$3, %r10d
	movq	%rsi, %r12
	jb	LBB0_38
## %bb.39:                              ##   in Loop: Header=BB0_30 Depth=1
	movb	%dil, 2(%r12)
	addq	$3, %r12
	jmp	LBB0_40
LBB0_38:                                ##   in Loop: Header=BB0_30 Depth=1
	addq	$2, %r12
	movl	$2, %r10d
LBB0_40:                                ##   in Loop: Header=BB0_30 Depth=1
	xorl	%r11d, %r11d
	jmp	LBB0_41
LBB0_45:
	movq	%rdx, (%r15)
	movq	_MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_44
LBB0_42:
	subq	%r14, %r12
	movq	%r12, (%r15)
	jmp	LBB0_43
LBB0_14:
	movq	_MBEDTLS_ERR_BASE64_INVALID_CHARACTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_44
LBB0_4:
	movq	%r8, %rax
	testq	%r11, %r11
	jne	LBB0_26
LBB0_25:
	movq	$0, (%r15)
LBB0_43:
	xorl	%eax, %eax
LBB0_44:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_BASE64_INVALID_CHARACTER,4,2 ## @MBEDTLS_ERR_BASE64_INVALID_CHARACTER
	.comm	_base64_dec_map,8,3             ## @base64_dec_map
	.comm	_MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL,4,2 ## @MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_base64_decode          ; -- Begin function mbedtls_base64_decode
	.p2align	2
_mbedtls_base64_decode:                 ; @mbedtls_base64_decode
	.cfi_startproc
; %bb.0:
	cbz	x4, LBB0_43
; %bb.1:
	mov	w10, #0
	mov	x11, #0
	mov	x9, #0
Lloh0:
	adrp	x8, _base64_dec_map@GOTPAGE
Lloh1:
	ldr	x8, [x8, _base64_dec_map@GOTPAGEOFF]
	ldr	x12, [x8]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	cmp	x9, x4
	b.hs	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w13, #0
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w14, [x3, x9]
	cmp	w14, #32
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x9, x9, #1
	add	w13, w13, #1
	cmp	x4, x9
	b.ne	LBB0_4
	b	LBB0_23
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w13, #0
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	x9, x4
	b.eq	LBB0_42
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x15, x4, x9
	ldrb	w14, [x3, x9]
	cmp	x15, #2
	b.lo	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w14, #13
	b.ne	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x14, x9, x3
	ldrb	w14, [x14, #1]
	cmp	w14, #10
	b.eq	LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w13, LBB0_41
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	w14, #13
	b	LBB0_19
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w14, #10
	b.eq	LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w13, LBB0_41
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w14, #61
	b.ne	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w10, #2
	b.ge	LBB0_41
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	add	w10, w10, #1
	mov	w14, #61
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w14, #7, LBB0_41
LBB0_19:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w13, [x12, w14, uxtw #2]
	cmp	w13, #127
	b.eq	LBB0_41
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w13, #63
	ccmp	w10, #0, #4, le
	b.ne	LBB0_41
; %bb.21:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x11, x11, #1
LBB0_22:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	cmp	x9, x4
	b.lo	LBB0_2
	b	LBB0_24
LBB0_23:
	mov	x9, x4
LBB0_24:
	cbz	x11, LBB0_43
LBB0_25:
	lsr	x12, x11, #3
	mov	w13, #6
	mul	x12, x12, x13
	and	x11, x11, #0x7
	orr	x14, xzr, #0x7
	madd	x11, x11, x13, x14
	sub	x10, x12, w10, sxtw
	add	x10, x10, x11, lsr #3
	cbz	x0, LBB0_29
; %bb.26:
	cmp	x10, x1
	b.hi	LBB0_29
; %bb.27:
	mov	x14, x0
	cbz	x9, LBB0_40
; %bb.28:
	mov	w10, #0
	mov	x15, #0
	mov	w12, #3
	mov	w11, #1
	mov	x13, #9216
	movk	x13, #1, lsl #32
	mov	x14, x0
	b	LBB0_32
LBB0_29:
	str	x10, [x2]
Lloh2:
	adrp	x8, _MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ret
LBB0_30:                                ;   in Loop: Header=BB0_32 Depth=1
	mov	x15, #0
LBB0_31:                                ;   in Loop: Header=BB0_32 Depth=1
	add	x3, x3, #1
	subs	x9, x9, #1
	b.eq	LBB0_40
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w16, [x3]
	cmp	w16, #32
	lsl	x17, x11, x16
	and	x17, x17, x13
	ccmp	x17, #0, #4, ls
	b.ne	LBB0_31
; %bb.33:                               ;   in Loop: Header=BB0_32 Depth=1
	ldr	x17, [x8]
	ldr	w17, [x17, x16, lsl #2]
	cmp	w17, #64
	cset	w16, eq
	sub	w12, w12, w16
	lsl	w16, w10, #6
	mov	x10, x16
	bfxil	w10, w17, #0, #6
	add	x15, x15, #1
	cmp	x15, #4
	b.ne	LBB0_31
; %bb.34:                               ;   in Loop: Header=BB0_32 Depth=1
	cmp	w12, #1
	b.lt	LBB0_30
; %bb.35:                               ;   in Loop: Header=BB0_32 Depth=1
	lsr	w15, w16, #16
	mov	x17, x14
	strb	w15, [x17], #1
	cmp	w12, #1
	b.ne	LBB0_37
; %bb.36:                               ;   in Loop: Header=BB0_32 Depth=1
	mov	x15, #0
	mov	x14, x17
	b	LBB0_31
LBB0_37:                                ;   in Loop: Header=BB0_32 Depth=1
	lsr	w15, w16, #8
	strb	w15, [x14, #1]
	cmp	w12, #3
	b.lo	LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_32 Depth=1
	mov	x15, #0
	strb	w10, [x14, #2]
	add	x14, x14, #3
	b	LBB0_31
LBB0_39:                                ;   in Loop: Header=BB0_32 Depth=1
	mov	x15, #0
	add	x14, x14, #2
	mov	w12, #2
	b	LBB0_31
LBB0_40:
	sub	x9, x14, x0
	str	x9, [x2]
	mov	w0, #0
	ret
LBB0_41:
Lloh5:
	adrp	x8, _MBEDTLS_ERR_BASE64_INVALID_CHARACTER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MBEDTLS_ERR_BASE64_INVALID_CHARACTER@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ret
LBB0_42:
	mov	x9, x4
	cbnz	x11, LBB0_25
LBB0_43:
	str	xzr, [x2]
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_BASE64_INVALID_CHARACTER,4,2 ; @MBEDTLS_ERR_BASE64_INVALID_CHARACTER
	.comm	_base64_dec_map,8,3             ; @base64_dec_map
	.comm	_MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL,4,2 ; @MBEDTLS_ERR_BASE64_BUFFER_TOO_SMALL
.subsections_via_symbols
