	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_uri_merge                   ## -- Begin function vc_uri_merge
	.p2align	4, 0x90
_vc_uri_merge:                          ## @vc_uri_merge
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, %ebx
	cmpq	$0, (%rsi)
	je	LBB0_2
LBB0_1:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	callq	_duplicate_string
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:
	cmpq	$0, 8(%r15)
	jne	LBB0_1
## %bb.4:
	cmpq	$0, 16(%r15)
	jne	LBB0_1
## %bb.5:
	cmpq	$0, 24(%r15)
	jne	LBB0_1
## %bb.6:
	leaq	8(%r15), %r13
	movq	8(%r12), %rdi
	movq	%r13, %rsi
	callq	_duplicate_string
	testl	%eax, %eax
	je	LBB0_13
## %bb.7:
	leaq	16(%r15), %r14
	movq	16(%r12), %rdi
	movq	%r14, %rsi
	callq	_duplicate_string
	testl	%eax, %eax
	je	LBB0_13
## %bb.8:
	leaq	24(%r15), %rsi
	movq	24(%r12), %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_duplicate_string
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	movq	32(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.10:
	movb	(%rcx), %al
	cmpb	$47, %al
	je	LBB0_1
## %bb.11:
	testb	%al, %al
	jne	LBB0_17
LBB0_12:
	movq	%r12, %rdi
	movq	%r15, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vc_uri_copy_base_path          ## TAILCALL
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_1
LBB0_17:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	32(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.18:
	cmpb	$0, (%rcx)
	jne	LBB0_22
LBB0_19:
	leaq	L_.str(%rip), %rcx
	cmpq	$0, (%r13)
	jne	LBB0_22
## %bb.20:
	cmpq	$0, (%r14)
	jne	LBB0_22
## %bb.21:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rcx
	cmoveq	%rax, %rcx
LBB0_22:
	movq	%rcx, %rdi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_strlen
	movq	%rax, %rbx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_strlen
	movq	%rax, %r14
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rbx), %r13
	incq	%r13
	movq	%r13, %rdi
	callq	_malloc
	movl	$0, %ebx
	testq	%rax, %rax
	je	LBB0_1
## %bb.23:
	movq	%r12, %rcx
	movq	%rax, %r12
	addq	$32, %r15
	addq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	movq	%rcx, %rbx
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_strncpy
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strrchr
	movq	%rax, %rcx
	cmpb	$59, (%rbx)
	jne	LBB0_25
## %bb.24:
	testq	%rcx, %rcx
	movq	%r12, %rdi
	cmovneq	%rcx, %rdi
	movl	$59, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_26
	jmp	LBB0_27
LBB0_25:
	leaq	1(%rcx), %rax
	testq	%rcx, %rcx
	cmoveq	%r12, %rax
LBB0_26:
	movb	$0, (%rax)
LBB0_27:
	movq	%r12, %rdi
	callq	_strlen
	subq	%rax, %r14
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_strncat
	movq	%r12, %rdi
	callq	_vc_uri_remove_single_dot_segments
	movq	%r12, %rdi
	callq	_vc_uri_remove_double_dot_segments
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_duplicate_string
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/"

L_.str.1:                               ## @.str.1
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_uri_merge                   ; -- Begin function vc_uri_merge
	.p2align	2
_vc_uri_merge:                          ; @vc_uri_merge
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x1]
	cbz	x8, LBB0_3
LBB0_1:
	mov	w0, #1
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x21, x1
	mov	x22, x0
	ldr	x0, [x0]
	bl	_duplicate_string
	cbz	w0, LBB0_2
; %bb.4:
	mov	x24, x21
	ldr	x8, [x24, #8]!
	cbnz	x8, LBB0_1
; %bb.5:
	mov	x25, x21
	ldr	x8, [x25, #16]!
	cbnz	x8, LBB0_1
; %bb.6:
	mov	x23, x21
	ldr	x8, [x23, #24]!
	cbnz	x8, LBB0_1
; %bb.7:
	ldr	x0, [x22, #8]
	mov	x1, x24
	bl	_duplicate_string
	cbz	w0, LBB0_2
; %bb.8:
	ldr	x0, [x22, #16]
	mov	x1, x25
	bl	_duplicate_string
	cbz	w0, LBB0_2
; %bb.9:
	ldr	x0, [x22, #24]
	mov	x1, x23
	bl	_duplicate_string
	cbz	w0, LBB0_2
; %bb.10:
	mov	x19, x21
	ldr	x20, [x19, #32]!
	cbz	x20, LBB0_13
; %bb.11:
	ldrb	w8, [x20]
	cmp	w8, #47
	b.eq	LBB0_1
; %bb.12:
	cbnz	w8, LBB0_14
LBB0_13:
	mov	x0, x22
	mov	x1, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_vc_uri_copy_base_path
LBB0_14:
	ldr	x22, [x22, #32]
	cbz	x22, LBB0_16
; %bb.15:
	ldrb	w8, [x22]
	cbnz	w8, LBB0_20
LBB0_16:
	ldr	x8, [x24]
	cbz	x8, LBB0_18
; %bb.17:
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_20
LBB0_18:
	ldr	x8, [x25]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
	cbnz	x8, LBB0_20
; %bb.19:
	ldr	x8, [x23]
Lloh4:
	adrp	x9, l_.str.1@PAGE
Lloh5:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x8, #0
	csel	x22, x9, x22, eq
LBB0_20:
	mov	x0, x22
	bl	_strlen
	mov	x21, x0
	mov	x0, x20
	bl	_strlen
	add	x24, x0, x21
	add	x23, x24, #1
	mov	x0, x23
	bl	_malloc
	cbz	x0, LBB0_2
; %bb.21:
	mov	x21, x0
	mov	x1, x22
	mov	x2, x23
	bl	_strncpy
	mov	x0, x21
	mov	w1, #47
	bl	_strrchr
	ldrb	w8, [x20]
	cmp	w8, #59
	b.ne	LBB0_23
; %bb.22:
	cmp	x0, #0
	csel	x0, x21, x0, eq
	mov	w1, #59
	bl	_strchr
	cbnz	x0, LBB0_24
	b	LBB0_25
LBB0_23:
	cmp	x0, #0
	csinc	x0, x21, x0, eq
LBB0_24:
	strb	wzr, [x0]
LBB0_25:
	mov	x0, x21
	bl	_strlen
	sub	x2, x24, x0
	mov	x0, x21
	mov	x1, x20
	bl	_strncat
	mov	x0, x21
	bl	_vc_uri_remove_single_dot_segments
	mov	x0, x21
	bl	_vc_uri_remove_double_dot_segments
	mov	x0, x21
	mov	x1, x19
	bl	_duplicate_string
	mov	x19, x0
	mov	x0, x21
	bl	_free
	mov	x0, x19
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/"

l_.str.1:                               ; @.str.1
	.space	1

.subsections_via_symbols
