	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_uri_parse                   ## -- Begin function vc_uri_parse
	.p2align	4, 0x90
_vc_uri_parse:                          ## @vc_uri_parse
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_23
## %bb.2:
	movq	%rdi, %r14
	callq	_vc_uri_clear
	movq	_SCHEME_DELIMITERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_vc_uri_find_delimiter
	cmpb	$58, (%rax)
	jne	LBB0_9
## %bb.3:
	movq	%rax, %r15
	movl	%r15d, %ebx
	subl	%r12d, %ebx
	movsbl	(%r12), %edi
	callq	_isalpha
	cmpl	$1, %ebx
	jne	LBB0_7
## %bb.4:
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	cmpb	$92, 1(%r15)
	jne	LBB0_7
## %bb.6:
	leaq	8(%r14), %rsi
	movq	%r12, %rdi
	callq	_duplicate_string
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_vc_uri_set_path_extension
	jmp	LBB0_23
LBB0_7:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_create_unescaped_string
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_22
## %bb.8:
	movq	%rax, %rdi
	callq	_to_lower_string
	incq	%r15
	movq	%r15, %r12
LBB0_9:
	cmpb	$47, (%r12)
	jne	LBB0_15
## %bb.10:
	cmpb	$47, 1(%r12)
	jne	LBB0_15
## %bb.11:
	addq	$2, %r12
	movq	_NETWORK_DELIMITERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_vc_uri_find_delimiter
	movq	%rax, %rbx
	cmpb	$64, (%rax)
	jne	LBB0_12
## %bb.13:
	movq	%rbx, %rdi
	incq	%rdi
	movq	_HOST_PORT_DELIMITERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vc_uri_find_delimiter
	movq	%rax, %r15
	jmp	LBB0_14
LBB0_12:
	movq	%rbx, %r15
	xorl	%ebx, %ebx
LBB0_14:
	movl	%r15d, %edx
	subl	%r12d, %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rcx
	callq	_parse_authority
	movq	%r15, %r12
	testl	%eax, %eax
	je	LBB0_22
LBB0_15:
	movq	_PATH_DELIMITERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_vc_uri_find_delimiter
	movq	%rax, %r15
	movl	%r15d, %esi
	subl	%r12d, %esi
	je	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	callq	_create_unescaped_string
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	callq	_vc_uri_set_path_extension
	cmpq	$0, 8(%r14)
	je	LBB0_22
LBB0_17:
	movb	(%r15), %al
	cmpb	$63, %al
	jne	LBB0_20
## %bb.18:
	incq	%r15
	movq	_QUERY_DELIMITERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_vc_uri_find_delimiter
	movq	%rax, %rbx
	movl	%ebx, %edx
	subl	%r15d, %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_parse_query
	testl	%eax, %eax
	je	LBB0_22
## %bb.19:
	movb	(%rbx), %al
	movq	%rbx, %r15
LBB0_20:
	movl	$1, %ebx
	cmpb	$35, %al
	jne	LBB0_23
## %bb.21:
	incq	%r15
	movq	%r15, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_create_unescaped_string
	movq	%rax, (%r14)
	testq	%rax, %rax
	jne	LBB0_23
LBB0_22:
	movq	%r14, %rdi
	callq	_vc_uri_clear
	xorl	%ebx, %ebx
LBB0_23:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCHEME_DELIMITERS,4,2          ## @SCHEME_DELIMITERS
	.comm	_NETWORK_DELIMITERS,4,2         ## @NETWORK_DELIMITERS
	.comm	_HOST_PORT_DELIMITERS,4,2       ## @HOST_PORT_DELIMITERS
	.comm	_PATH_DELIMITERS,4,2            ## @PATH_DELIMITERS
	.comm	_QUERY_DELIMITERS,4,2           ## @QUERY_DELIMITERS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_uri_parse                   ; -- Begin function vc_uri_parse
	.p2align	2
_vc_uri_parse:                          ; @vc_uri_parse
	.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, x0
	mov	w0, #0
	cbz	x19, LBB0_23
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_23
; %bb.2:
	mov	x0, x19
	bl	_vc_uri_clear
Lloh0:
	adrp	x8, _SCHEME_DELIMITERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCHEME_DELIMITERS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_vc_uri_find_delimiter
	ldrb	w8, [x0]
	cmp	w8, #58
	b.ne	LBB0_8
; %bb.3:
	mov	x21, x0
	sub	w22, w21, w20
	ldrsb	w0, [x20]
	bl	_isalpha
	cmp	w22, #1
	ccmp	x0, #0, #4, eq
	b.eq	LBB0_6
; %bb.4:
	ldrb	w8, [x21, #1]
	cmp	w8, #92
	b.ne	LBB0_6
; %bb.5:
	add	x1, x19, #8
	mov	x0, x20
	bl	_duplicate_string
	mov	x20, x0
	mov	x0, x19
	bl	_vc_uri_set_path_extension
	mov	x0, x20
	b	LBB0_23
LBB0_6:
	mov	x0, x20
	mov	x1, x22
	bl	_create_unescaped_string
	str	x0, [x19, #16]
	cbz	x0, LBB0_22
; %bb.7:
	bl	_to_lower_string
	add	x20, x21, #1
LBB0_8:
	ldrb	w8, [x20]
	cmp	w8, #47
	b.ne	LBB0_14
; %bb.9:
	ldrb	w8, [x20, #1]
	cmp	w8, #47
	b.ne	LBB0_14
; %bb.10:
	add	x21, x20, #2
Lloh3:
	adrp	x8, _NETWORK_DELIMITERS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETWORK_DELIMITERS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_vc_uri_find_delimiter
	mov	x22, x0
	ldrb	w8, [x0]
	cmp	w8, #64
	b.ne	LBB0_12
; %bb.11:
	add	x0, x22, #1
Lloh6:
	adrp	x8, _HOST_PORT_DELIMITERS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HOST_PORT_DELIMITERS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_vc_uri_find_delimiter
	mov	x20, x0
	b	LBB0_13
LBB0_12:
	mov	x20, x22
	mov	x22, #0
LBB0_13:
	sub	w2, w20, w21
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	bl	_parse_authority
	cbz	w0, LBB0_22
LBB0_14:
Lloh9:
	adrp	x8, _PATH_DELIMITERS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PATH_DELIMITERS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_vc_uri_find_delimiter
	mov	x21, x0
	subs	w1, w21, w20
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_create_unescaped_string
	str	x0, [x19, #8]
	mov	x0, x19
	bl	_vc_uri_set_path_extension
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_22
LBB0_16:
	ldrb	w8, [x21]
	cmp	w8, #63
	b.ne	LBB0_19
; %bb.17:
	add	x20, x21, #1
Lloh12:
	adrp	x8, _QUERY_DELIMITERS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QUERY_DELIMITERS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_vc_uri_find_delimiter
	mov	x21, x0
	sub	w2, w21, w20
	mov	x0, x19
	mov	x1, x20
	bl	_parse_query
	cbz	w0, LBB0_22
; %bb.18:
	ldrb	w8, [x21]
LBB0_19:
	cmp	w8, #35
	b.ne	LBB0_21
; %bb.20:
	add	x20, x21, #1
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	mov	x0, x20
	bl	_create_unescaped_string
	str	x0, [x19]
	cbz	x0, LBB0_22
LBB0_21:
	mov	w0, #1
	b	LBB0_23
LBB0_22:
	mov	x0, x19
	bl	_vc_uri_clear
	mov	w0, #0
LBB0_23:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SCHEME_DELIMITERS,4,2          ; @SCHEME_DELIMITERS
	.comm	_NETWORK_DELIMITERS,4,2         ; @NETWORK_DELIMITERS
	.comm	_HOST_PORT_DELIMITERS,4,2       ; @HOST_PORT_DELIMITERS
	.comm	_PATH_DELIMITERS,4,2            ; @PATH_DELIMITERS
	.comm	_QUERY_DELIMITERS,4,2           ; @QUERY_DELIMITERS
.subsections_via_symbols
