	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_base64url_to_base64            ## -- Begin function base64url_to_base64
	.p2align	4, 0x90
_base64url_to_base64:                   ## @base64url_to_base64
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movb	(%rdi), %al
	xorl	%ecx, %ecx
	testb	%al, %al
	je	LBB0_9
## %bb.1:
	testl	%r14d, %r14d
	jle	LBB0_9
## %bb.2:
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$45, %al
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$95, %al
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	$47, %al
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	$43, %al
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	%al, (%rbx,%rcx)
	movzbl	1(%rdi,%rcx), %eax
	incq	%rcx
	testb	%al, %al
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdx, %rcx
	jb	LBB0_3
LBB0_9:
	leal	3(%rcx), %edx
	andl	$2147483644, %edx               ## imm = 0x7FFFFFFC
	movl	$-1, %eax
	cmpl	%r14d, %edx
	jge	LBB0_15
## %bb.10:
	movl	%ecx, %eax
	andl	$3, %eax
	je	LBB0_14
## %bb.11:
	movl	%ecx, %r15d
	leaq	(%rbx,%r15), %rdi
	movl	$4, %edx
	subl	%eax, %edx
	movl	$61, %esi
	callq	_memset
	leaq	1(%r15), %rcx
	testb	$3, %cl
	je	LBB0_14
## %bb.12:
	leaq	2(%r15), %rcx
	testb	$3, %cl
	je	LBB0_14
## %bb.13:
	leaq	3(%r15), %rax
	addq	$4, %r15
	testb	$3, %al
	cmoveq	%rax, %r15
	movq	%r15, %rcx
LBB0_14:
	movl	%ecx, %eax
	movb	$0, (%rbx,%rax)
	xorl	%edi, %edi
	cmpl	%r14d, %ecx
	setl	%dil
	callq	_assert
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_base64url_to_base64            ; -- Begin function base64url_to_base64
	.p2align	2
_base64url_to_base64:                   ; @base64url_to_base64
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x1
	ldrb	w8, [x0]
	cmp	w8, #0
	ccmp	w2, #1, #8, ne
	b.ge	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_4
LBB0_2:
	mov	x21, #0
	add	x9, x0, #1
	mov	w10, #43
	mov	w11, #47
	mov	w12, w19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #95
	csel	w13, w8, w11, ne
	cmp	w8, #45
	csel	w8, w10, w13, eq
	strb	w8, [x20, x21]
	ldrb	w8, [x9, x21]
	add	x21, x21, #1
	cmp	w8, #0
	ccmp	x21, x12, #2, ne
	b.lo	LBB0_3
LBB0_4:
	add	w8, w21, #3
	and	w8, w8, #0x7ffffffc
	cmp	w8, w19
	b.ge	LBB0_8
; %bb.5:
	ands	w8, w21, #0x3
	b.eq	LBB0_7
; %bb.6:
	add	x0, x20, w21, uxtw
	eor	w22, w8, #0x3
	mov	w9, #4
	sub	w2, w9, w8
	mov	w1, #61
	bl	_memset
	add	w8, w21, w22
	add	w21, w8, #1
LBB0_7:
	strb	wzr, [x20, w21, uxtw]
	cmp	w21, w19
	cset	w0, lt
	bl	_assert
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
