	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_base64url_encode               ## -- Begin function base64url_encode
	.p2align	4, 0x90
_base64url_encode:                      ## @base64url_encode
	.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	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movl	%esi, %r15d
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r15d, %esi
	leaq	-44(%rbp), %r14
	movq	%r14, %rdx
	callq	_next_input_uchar
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_next_input_uchar
	movl	%eax, %r14d
	shll	$16, %ebx
	shll	$8, %r14d
	orl	%ebx, %r14d
	movq	%r12, %rdi
	movl	%r15d, %esi
	leaq	-44(%rbp), %rdx
	callq	_next_input_uchar
	movl	%eax, %ebx
	orl	%eax, %r14d
	movl	%r15d, %r12d
	movl	-44(%rbp), %r15d
	subl	%r13d, %r15d
	leal	-1(%r15), %eax
	xorl	%edi, %edi
	cmpl	$3, %eax
	setb	%dil
	callq	_assert
	movq	_url_symbols64@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andl	$63, %ebx
	movzbl	(%rax,%rbx), %ecx
	movb	%cl, -45(%rbp)
	movl	%r14d, %ecx
	shrl	$6, %ecx
	andl	$63, %ecx
	movzbl	(%rax,%rcx), %ecx
	movb	%cl, -46(%rbp)
	movl	%r14d, %ecx
	shrl	$12, %ecx
	andl	$63, %ecx
	movzbl	(%rax,%rcx), %ecx
	movb	%cl, -47(%rbp)
	shrl	$18, %r14d
	andl	$63, %r14d
	movzbl	(%rax,%r14), %eax
	movb	%al, -48(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leal	(%r15,%rax), %ebx
	incl	%ebx
	cmpl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	jge	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	movslq	%eax, %rdi
	addq	-64(%rbp), %rdi                 ## 8-byte Folded Reload
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movl	-44(%rbp), %r13d
	movl	%ebx, %eax
	cmpl	%r12d, %r13d
	movl	%r12d, %r15d
	jl	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	movl	$-1, %eax
	cmpl	-52(%rbp), %ebx                 ## 4-byte Folded Reload
	jge	LBB0_8
## %bb.7:
	movslq	%ebx, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movb	$0, (%rcx,%rax)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movl	$-1, %eax
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_encode               ; -- Begin function base64url_encode
	.p2align	2
_base64url_encode:                      ; @base64url_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x3
	mov	x19, x2
	str	wzr, [sp, #12]
	cmp	w1, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x21, x1
	mov	x22, x0
	mov	w26, #0
	mov	w25, #0
Lloh0:
	adrp	x24, _url_symbols64@GOTPAGE
Lloh1:
	ldr	x24, [x24, _url_symbols64@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_next_input_uchar
	mov	x23, x0
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_next_input_uchar
	lsl	w8, w0, #8
	orr	w27, w8, w23, lsl #16
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_next_input_uchar
	mov	x23, x0
	orr	w27, w27, w0
	ldr	w8, [sp, #12]
	sub	w26, w8, w26
	sub	w8, w26, #1
	cmp	w8, #3
	cset	w0, lo
	bl	_assert
	ldr	x8, [x24]
	and	x9, x23, #0x3f
	ldrb	w9, [x8, x9]
	strb	w9, [sp, #11]
	ubfx	x9, x27, #6, #6
	ldrb	w9, [x8, x9]
	strb	w9, [sp, #10]
	ubfx	x9, x27, #12, #6
	ldrb	w9, [x8, x9]
	strb	w9, [sp, #9]
	ubfx	x9, x27, #18, #6
	ldrb	w8, [x8, x9]
	strb	w8, [sp, #8]
	add	w2, w26, #1
	add	w23, w2, w25
	cmp	w23, w20
	b.ge	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x19, w25, sxtw
	add	x1, sp, #8
	bl	_memcpy
	ldr	w26, [sp, #12]
	mov	x25, x23
	cmp	w26, w21
	b.lt	LBB0_2
; %bb.4:
	cmp	w23, w20
	b.ge	LBB0_7
LBB0_5:
	mov	w0, #0
	strb	wzr, [x19, w23, sxtw]
	b	LBB0_8
LBB0_6:
	mov	w23, #0
	cmp	w23, w20
	b.lt	LBB0_5
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_url_symbols64,8,3              ; @url_symbols64
.subsections_via_symbols
