	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_base64url_decode               ## -- Begin function base64url_decode
	.p2align	4, 0x90
_base64url_decode:                      ## @base64url_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	callq	_strlen
	movl	%eax, %r15d
	cmpb	$0, _base64url_decode.tbl_url_symbols64_initialized(%rip)
	jne	LBB0_4
## %bb.1:
	leaq	_base64url_decode.tbl_url_symbols64(%rip), %rbx
	movq	%rbx, %rdi
	movl	$255, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	_url_symbols64@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%rax,%rcx,8), %rdx
	movb	%cl, (%rdx,%rbx)
	movslq	8(%rax,%rcx,8), %rdx
	leal	1(%rcx), %esi
	movb	%sil, (%rdx,%rbx)
	movslq	16(%rax,%rcx,8), %rdx
	leal	2(%rcx), %esi
	movb	%sil, (%rdx,%rbx)
	movslq	24(%rax,%rcx,8), %rdx
	leal	3(%rcx), %esi
	movb	%sil, (%rdx,%rbx)
	addq	$4, %rcx
	cmpq	$64, %rcx
	jne	LBB0_2
## %bb.3:
	movb	$1, _base64url_decode.tbl_url_symbols64_initialized(%rip)
LBB0_4:
	testl	%r15d, %r15d
	jle	LBB0_19
## %bb.5:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%r15d, %ebx
	xorl	%r8d, %r8d
	movl	$3, %r15d
	leaq	_base64url_decode.tbl_url_symbols64(%rip), %rdi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-3(%r15), %r12
	movl	$-4, %r13d
	cmpq	%rbx, %r12
	jge	LBB0_24
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	-3(%r14,%r15), %ecx
	movzbl	(%rcx,%rdi), %ecx
	testb	%cl, %cl
	js	LBB0_23
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	cmpq	%rbx, %r12
	jge	LBB0_24
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	-2(%r14,%r15), %edx
	movzbl	(%rdx,%rdi), %edx
	testb	%dl, %dl
	js	LBB0_23
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	shll	$6, %ecx
	orl	%edx, %ecx
	incq	%r12
	cmpq	%rbx, %r12
	jge	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movzbl	-1(%r14,%r15), %edx
	movzbl	(%rdx,%rdi), %edx
	testb	%dl, %dl
	js	LBB0_23
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	shll	$6, %ecx
	orl	%edx, %ecx
	cmpq	%rbx, %r15
	jge	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	movzbl	(%r14,%r15), %edx
	movzbl	(%rdx,%rdi), %edx
	movl	$-3, %r13d
	testb	%dl, %dl
	js	LBB0_24
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	shll	$6, %ecx
	orl	%edx, %ecx
	movl	$3, %edx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	shll	$12, %ecx
	movl	$1, %edx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	shll	$6, %ecx
	movl	$2, %edx
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ecx, %esi
	rolw	$8, %si
	movw	%si, -42(%rbp)
	shrl	$16, %ecx
	movb	%cl, -43(%rbp)
	leal	(%rdx,%r8), %r13d
	cmpl	-52(%rbp), %r13d                ## 4-byte Folded Reload
	jg	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rdi, %r14
	movl	%r8d, %edi
	addq	-72(%rbp), %rdi                 ## 8-byte Folded Reload
	leaq	-43(%rbp), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movq	%r14, %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	addq	$4, %r15
	addl	$2, %r12d
	movl	%r13d, %r8d
	cmpl	%r12d, -48(%rbp)                ## 4-byte Folded Reload
	jg	LBB0_6
	jmp	LBB0_24
LBB0_19:
	xorl	%r13d, %r13d
	jmp	LBB0_24
LBB0_23:
	movl	$-3, %r13d
	jmp	LBB0_24
LBB0_22:
	movl	$-1, %r13d
LBB0_24:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_base64url_decode.tbl_url_symbols64_initialized,1,2 ## @base64url_decode.tbl_url_symbols64_initialized
.zerofill __DATA,__bss,_base64url_decode.tbl_url_symbols64,256,4 ## @base64url_decode.tbl_url_symbols64
	.comm	_url_symbols64,8,3              ## @url_symbols64
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_base64url_decode               ; -- Begin function base64url_decode
	.p2align	2
_base64url_decode:                      ; @base64url_decode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_strlen
	mov	x22, x0
	adrp	x24, _base64url_decode.tbl_url_symbols64_initialized@PAGE
	ldrb	w8, [x24, _base64url_decode.tbl_url_symbols64_initialized@PAGEOFF]
Lloh0:
	adrp	x23, _base64url_decode.tbl_url_symbols64@PAGE
Lloh1:
	add	x23, x23, _base64url_decode.tbl_url_symbols64@PAGEOFF
	tbnz	w8, #0, LBB0_4
; %bb.1:
	mov	x0, x23
	mov	w1, #255
	mov	w2, #256
	bl	_memset
	mov	x8, #0
Lloh2:
	adrp	x9, _url_symbols64@GOTPAGE
Lloh3:
	ldr	x9, [x9, _url_symbols64@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #3
	ldrsw	x10, [x9, x10]
	strb	w8, [x23, x10]
	add	x8, x8, #1
	cmp	x8, #64
	b.ne	LBB0_2
; %bb.3:
	mov	w8, #1
	strb	w8, [x24, _base64url_decode.tbl_url_symbols64_initialized@PAGEOFF]
LBB0_4:
	cmp	w22, #1
	b.lt	LBB0_19
; %bb.5:
	mov	x9, #0
	mov	w8, #0
	mov	w25, w22
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x25
	b.ge	LBB0_21
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w10, [x21, x9]
	ldrsb	w10, [x23, x10]
	tbnz	w10, #31, LBB0_20
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x11, x9, #1
	cmp	x11, x25
	b.ge	LBB0_21
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x12, x21, x9
	ldrb	w12, [x12, #1]
	ldrsb	w12, [x23, x12]
	tbnz	w12, #31, LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	and	w10, w10, #0xff
	and	w12, w12, #0xff
	orr	w10, w12, w10, lsl #6
	add	x26, x11, #1
	cmp	x26, x25
	b.ge	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x11, x21, x9
	ldrb	w11, [x11, #2]
	ldrsb	w11, [x23, x11]
	tbnz	w11, #31, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	and	w11, w11, #0xff
	orr	w10, w11, w10, lsl #6
	add	x11, x9, #3
	cmp	x11, x25
	b.ge	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x21, x9
	ldrb	w9, [x9, #3]
	ldrsb	w9, [x23, x9]
	tbnz	w9, #31, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	and	w9, w9, #0xff
	orr	w9, w9, w10, lsl #6
	mov	w2, #3
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	lsl	w9, w10, #12
	mov	w2, #1
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	lsl	w9, w10, #6
	mov	w2, #2
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	rev	w10, w9
	lsr	w10, w10, #16
	sturh	w10, [sp, #14]
	lsr	w9, w9, #16
	strb	w9, [sp, #13]
	add	w24, w2, w8
	cmp	w24, w19
	b.gt	LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x20, w8, uxtw
	add	x1, sp, #13
	bl	_memcpy
	add	x9, x26, #2
	mov	x8, x24
	cmp	w22, w9
	b.gt	LBB0_6
	b	LBB0_23
LBB0_19:
	mov	w24, #0
	b	LBB0_23
LBB0_20:
	mov	w24, #-3
	b	LBB0_23
LBB0_21:
	mov	w24, #-4
	b	LBB0_23
LBB0_22:
	mov	w24, #-1
LBB0_23:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_base64url_decode.tbl_url_symbols64_initialized,1,2 ; @base64url_decode.tbl_url_symbols64_initialized
.zerofill __DATA,__bss,_base64url_decode.tbl_url_symbols64,256,0 ; @base64url_decode.tbl_url_symbols64
	.comm	_url_symbols64,8,3              ; @url_symbols64
.subsections_via_symbols
