	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_base64_to_base64url            ## -- Begin function base64_to_base64url
	.p2align	4, 0x90
_base64_to_base64url:                   ## @base64_to_base64url
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movb	(%rdi), %al
	testl	%edx, %edx
	setg	%r8b
	xorl	%ecx, %ecx
	testb	%al, %al
	je	LBB0_9
## %bb.1:
	testl	%edx, %edx
	jle	LBB0_9
## %bb.2:
	movl	%edx, %edx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$43, %al
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$47, %al
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$61, %al
	jne	LBB0_7
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	$45, %al
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	$95, %al
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	%al, (%rsi,%rcx)
	movzbl	1(%rdi,%rcx), %eax
	incq	%rcx
	cmpq	%rdx, %rcx
	setb	%r8b
	testb	%al, %al
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdx, %rcx
	jb	LBB0_3
LBB0_9:
	movl	$-1, %eax
	testb	%r8b, %r8b
	je	LBB0_11
LBB0_10:
	movl	%ecx, %eax
	movb	$0, (%rsi,%rax)
	xorl	%eax, %eax
LBB0_11:
	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	_base64_to_base64url            ; -- Begin function base64_to_base64url
	.p2align	2
_base64_to_base64url:                   ; @base64_to_base64url
	.cfi_startproc
; %bb.0:
	ldrb	w8, [x0]
	cmp	w2, #0
	cset	w12, gt
	cmp	w8, #0
	ccmp	w2, #1, #8, ne
	b.ge	LBB0_4
; %bb.1:
	mov	w11, #0
LBB0_2:
	tbnz	w12, #0, LBB0_12
; %bb.3:
	mov	w0, #-1
	ret
LBB0_4:
	mov	x11, #0
	mov	w9, w2
	add	x10, x0, #1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #95
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	strb	w8, [x1, x12]
	add	x11, x12, #1
	ldrb	w8, [x10, x12]
	cmp	x11, x9
	cset	w12, lo
	cmp	w8, #0
	ccmp	x11, x9, #2, ne
	b.hs	LBB0_2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x12, x11
	cmp	w8, #43
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #47
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #61
	b.ne	LBB0_6
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #45
	b	LBB0_6
LBB0_11:
	mov	x11, x12
LBB0_12:
	mov	w0, #0
	strb	wzr, [x1, w11, uxtw]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
