	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptls_base64_decode             ## -- Begin function ptls_base64_decode
	.p2align	4, 0x90
_ptls_base64_decode:                    ## @ptls_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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%ebx, %ebx
	movabsq	$4294977024, %rax               ## imm = 0x100002600
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12,%rbx), %edx
	cmpq	$32, %rdx
	ja	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	btq	%rdx, %rax
	jae	LBB0_3
## %bb.38:                              ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	jmp	LBB0_1
LBB0_3:
	testq	%rdx, %rdx
	jne	LBB0_4
LBB0_31:
	xorl	%eax, %eax
LBB0_36:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_39
## %bb.37:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, 16(%r15)
	movabsq	$12884901888, %rax              ## imm = 0x300000000
	movq	%rax, 8(%r15)
LBB0_35:                                ##   in Loop: Header=BB0_4 Depth=1
	movb	(%r12,%rbx), %dl
	movl	$0, %eax
	testb	%dl, %dl
	je	LBB0_36
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_33 Depth 2
	movq	(%r15), %rcx
	movq	_PTLS_BASE64_DECODE_IN_PROGRESS@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rcx
	jne	LBB0_36
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	-1(%rdx), %ecx
	cmpb	$126, %cl
	jae	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%rbx), %rsi
	movq	_ptls_base64_values@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movzbl	%dl, %edi
	movl	(%rcx,%rdi,4), %edi
	shll	$24, %edi
	cmpl	$-16777216, %edi                ## imm = 0xFF000000
	jne	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r15), %ecx
	cmpl	$2, %ecx
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$61, %dl
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$2, %ecx
	cmpb	$61, (%r12,%rsi)
	jne	LBB0_7
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$4, 8(%r15)
	addq	$2, %rbx
	movl	$12, %ecx
	movl	$1, %edx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r15), %ecx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	sarl	$24, %edi
	movl	8(%r15), %ecx
	movl	16(%r15), %eax
	incl	%ecx
	movl	%ecx, 8(%r15)
	shll	$6, %eax
	orl	%edi, %eax
	movl	%eax, 16(%r15)
	movq	%rsi, %rbx
	jmp	LBB0_22
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$3, %ecx
	jne	LBB0_7
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$61, %dl
	jne	LBB0_7
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$4, 8(%r15)
	movl	$6, %ecx
	movl	$2, %edx
	movq	%rsi, %rbx
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%edx, 12(%r15)
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, 16(%r15)
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=2
	incq	%rbx
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r12,%rbx), %edx
	leal	-9(%rdx), %esi
	cmpb	$5, %sil
	jb	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpb	$32, %dl
	je	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	testb	%dl, %dl
	je	LBB0_36
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, 12(%r15)
	movq	_PTLS_BASE64_DECODE_FAILED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	_PTLS_ERROR_INCORRECT_BASE64@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	LBB0_36
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$4, %ecx
	jne	LBB0_35
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%r15), %edx
	testl	%edx, %edx
	jle	LBB0_28
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	16(%r15), %r10d
	movl	%edx, %r8d
	cmpl	$1, %edx
	jne	LBB0_32
## %bb.25:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edi, %edi
	jmp	LBB0_26
LBB0_32:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r8d, %r9d
	andl	$-2, %r9d
	movl	$8, %eax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	8(%rax), %ecx
	movl	%r10d, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %esi
	movslq	%esi, %rcx
	movq	%rcx, -64(%rbp,%rdi,8)
	movl	%r10d, %esi
	movl	%eax, %ecx
	sarl	%cl, %esi
	movslq	%esi, %rcx
	movq	%rcx, -56(%rbp,%rdi,8)
	addq	$2, %rdi
	addl	$-16, %eax
	cmpq	%rdi, %r9
	jne	LBB0_33
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	testb	$1, %r8b
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_4 Depth=1
	leal	(,%rdi,8), %eax
	movb	$16, %cl
	subb	%al, %cl
	sarl	%cl, %r10d
	movslq	%r10d, %rax
	movq	%rax, -64(%rbp,%rdi,8)
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ptls_buffer__do_pushv
	testl	%eax, %eax
	jne	LBB0_36
## %bb.29:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$2, 12(%r15)
	jg	LBB0_34
## %bb.30:
	movq	_PTLS_BASE64_DECODE_DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	jmp	LBB0_31
LBB0_39:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PTLS_BASE64_DECODE_IN_PROGRESS,8,3 ## @PTLS_BASE64_DECODE_IN_PROGRESS
	.comm	_ptls_base64_values,8,3         ## @ptls_base64_values
	.comm	_PTLS_BASE64_DECODE_FAILED,8,3  ## @PTLS_BASE64_DECODE_FAILED
	.comm	_PTLS_ERROR_INCORRECT_BASE64,4,2 ## @PTLS_ERROR_INCORRECT_BASE64
	.comm	_PTLS_BASE64_DECODE_DONE,8,3    ## @PTLS_BASE64_DECODE_DONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ptls_base64_decode
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
lCPI0_1:
	.long	0                               ; 0x0
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ptls_base64_decode
	.p2align	2
_ptls_base64_decode:                    ; @ptls_base64_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d13, d12, [sp, #32]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #48]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x27, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	w8, #1
	mov	x9, #9728
	movk	x9, #1, lsl #32
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x21, x27]
	cmp	w10, #32
	b.hi	LBB0_8
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	lsl	x11, x8, x10
	tst	x11, x9
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x27, x27, #1
	b	LBB0_1
LBB0_4:
	cbnz	x10, LBB0_8
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_43
; %bb.7:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_8:
	mov	x22, sp
	add	x23, x22, #32
Lloh6:
	adrp	x24, _PTLS_BASE64_DECODE_IN_PROGRESS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _PTLS_BASE64_DECODE_IN_PROGRESS@GOTPAGEOFF]
Lloh8:
	adrp	x25, _ptls_base64_values@GOTPAGE
Lloh9:
	ldr	x25, [x25, _ptls_base64_values@GOTPAGEOFF]
	mov	w26, #-16777216
Lloh10:
	adrp	x8, lCPI0_0@PAGE
Lloh11:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	movi.2s	v9, #16
	mvni.2s	v10, #15
	mvni.2s	v11, #31
	movi.2s	v12, #8
Lloh12:
	adrp	x8, lCPI0_1@PAGE
Lloh13:
	ldr	d13, [x8, lCPI0_1@PAGEOFF]
Lloh14:
	adrp	x28, _PTLS_ERROR_INCORRECT_BASE64@GOTPAGE
Lloh15:
	ldr	x28, [x28, _PTLS_ERROR_INCORRECT_BASE64@GOTPAGEOFF]
                                        ; kill: def $w10 killed $w10 killed $x10 def $x10
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
                                        ;     Child Loop BB0_33 Depth 2
                                        ;     Child Loop BB0_36 Depth 2
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	w8, w10, #1
	cmp	w8, #126
	b.hs	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x9, x27, #1
	ldr	x8, [x25]
	and	x11, x10, #0xff
	ldr	w8, [x8, x11, lsl #2]
	lsl	w11, w8, #24
	cmp	w11, w26
	b.ne	LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.ne	LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w10, #61
	b.ne	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w8, [x21, x9]
	cmp	w8, #61
	b.ne	LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w8, #4
	str	w8, [x19, #8]
	add	x9, x27, #2
	mov	w8, #12
	mov	w2, #1
	b	LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19, #8]
	b	LBB0_24
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	ldr	w10, [x19, #16]
	lsl	w10, w10, #6
	orr	w10, w10, w11, asr #24
	str	w10, [x19, #16]
	mov	x27, x9
	b	LBB0_28
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	w8, #3
	b.ne	LBB0_24
; %bb.19:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w10, #61
	b.ne	LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w8, #4
	str	w8, [x19, #8]
	mov	w8, #6
	mov	w2, #2
LBB0_21:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w10, [x19, #16]
	lsl	w8, w10, w8
	stp	w2, w8, [x19, #12]
	mov	x27, x9
	b	LBB0_30
LBB0_22:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w8, #2
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=2
	add	x27, x27, #1
LBB0_24:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x21, x27]
	sub	w10, w9, #9
	cmp	w10, #5
	b.lo	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	cmp	w9, #32
	b.eq	LBB0_23
; %bb.26:                               ;   in Loop: Header=BB0_9 Depth=1
	cbz	w9, LBB0_5
; %bb.27:                               ;   in Loop: Header=BB0_9 Depth=1
	str	wzr, [x19, #12]
Lloh16:
	adrp	x9, _PTLS_BASE64_DECODE_FAILED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PTLS_BASE64_DECODE_FAILED@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	str	x9, [x19]
	ldr	w0, [x28]
	cbnz	w0, LBB0_6
LBB0_28:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	w8, #4
	b.ne	LBB0_41
; %bb.29:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w2, [x19, #12]
	cmp	w2, #0
	b.le	LBB0_38
LBB0_30:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w8, w2
	ldr	w9, [x19, #16]
	cmp	w2, #8
	b.hs	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x10, #0
	b	LBB0_35
LBB0_32:                                ;   in Loop: Header=BB0_9 Depth=1
	and	x10, x8, #0xfffffff8
	dup.2s	v0, w9
	mov	x11, x10
	mov	x12, x23
	fmov	d1, d8
LBB0_33:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	shl.2s	v2, v1, #3
	sub.2s	v3, v2, v9
	sshl.2s	v3, v0, v3
	sshl.2s	v4, v0, v2
	sub.2s	v5, v2, v10
	sshl.2s	v5, v0, v5
	sub.2s	v2, v2, v11
	sshl.2s	v2, v0, v2
	sshll.2d	v3, v3, #0
	sshll.2d	v4, v4, #0
	sshll.2d	v5, v5, #0
	sshll.2d	v2, v2, #0
	stp	q3, q4, [x12, #-32]
	stp	q5, q2, [x12], #64
	add.2s	v1, v1, v12
	subs	x11, x11, #8
	b.ne	LBB0_33
; %bb.34:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x10, x8
	b.eq	LBB0_37
LBB0_35:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w11, #16
	sub	w11, w11, w10, lsl #3
LBB0_36:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	asr	w12, w9, w11
	sxtw	x12, w12
	str	x12, [x22, x10, lsl #3]
	add	x10, x10, #1
	sub	w11, w11, #8
	cmp	x8, x10
	b.ne	LBB0_36
LBB0_37:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x2, x8
LBB0_38:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x1, sp
	mov	x0, x20
	bl	_ptls_buffer__do_pushv
	cbnz	w0, LBB0_6
; %bb.39:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19, #12]
	cmp	w8, #2
	b.le	LBB0_42
; %bb.40:                               ;   in Loop: Header=BB0_9 Depth=1
	str	wzr, [x19, #16]
	str	d13, [x19, #8]
LBB0_41:                                ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w10, [x21, x27]
	cbnz	w10, LBB0_9
	b	LBB0_5
LBB0_42:
	mov	w0, #0
Lloh19:
	adrp	x8, _PTLS_BASE64_DECODE_DONE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PTLS_BASE64_DECODE_DONE@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_6
LBB0_43:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpAdrp	Lloh10, Lloh12
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PTLS_BASE64_DECODE_IN_PROGRESS,8,3 ; @PTLS_BASE64_DECODE_IN_PROGRESS
	.comm	_ptls_base64_values,8,3         ; @ptls_base64_values
	.comm	_PTLS_BASE64_DECODE_FAILED,8,3  ; @PTLS_BASE64_DECODE_FAILED
	.comm	_PTLS_ERROR_INCORRECT_BASE64,4,2 ; @PTLS_ERROR_INCORRECT_BASE64
	.comm	_PTLS_BASE64_DECODE_DONE,8,3    ; @PTLS_BASE64_DECODE_DONE
.subsections_via_symbols
