	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc_uri_remove_double_dot_segments
_vc_uri_remove_double_dot_segments:     ## @vc_uri_remove_double_dot_segments
	.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
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	cmpb	$47, (%rdi)
	sete	%r15b
	addq	%rdi, %r15
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %rbx
	leaq	2(%r14), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r15
	incq	%r15
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strchr
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	cmpb	$46, (%r15)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$46, 1(%r15)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$47, 2(%r15)
	je	LBB0_15
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$46, 1(%rbx)
	jne	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$46, 2(%rbx)
	jne	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movsbl	3(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$47, %eax
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_memmove
	cmpq	%r12, %r15
	jae	LBB0_12
	jmp	LBB0_16
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	$0, (%r15)
	cmpq	%r12, %r15
	jb	LBB0_16
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$-2, %r15
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rbx
	cmpq	%r14, %r15
	jb	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	leaq	-1(%rbx), %r15
	cmpb	$47, (%rbx)
	jne	LBB0_13
	jmp	LBB0_15
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vc_uri_remove_double_dot_segments
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc_uri_remove_double_dot_segments
_vc_uri_remove_double_dot_segments:     ; @vc_uri_remove_double_dot_segments
	.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	x8, x0
	ldrb	w9, [x8], #1
	cmp	w9, #47
	csel	x20, x0, x8, ne
	mov	x0, x20
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_15
; %bb.1:
	add	x22, x19, #2
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x0, #1
	mov	x0, x20
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_15
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldrb	w8, [x20]
	cmp	w8, #46
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x20, #1]
	cmp	w8, #46
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x20, #2]
	cmp	w8, #47
	b.eq	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x0, #1]
	cmp	w8, #46
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [x0, #2]
	cmp	w8, #46
	b.ne	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsb	w8, [x0, #3]
	cbz	w8, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #47
	b.ne	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x0, #4
	mov	x0, x21
	bl	_strlen
	add	w2, w0, #1
	mov	x0, x20
	mov	x1, x21
	bl	_memmove
	cmp	x20, x22
	b.hs	LBB0_12
	b	LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	wzr, [x20]
	cmp	x20, x22
	b.lo	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x8, x20, #2
LBB0_13:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x8
	cmp	x8, x19
	b.lo	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	mov	x8, x0
	ldrb	w9, [x8], #-1
	cmp	w9, #47
	b.ne	LBB0_13
	b	LBB0_2
LBB0_15:
	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
	.no_dead_strip	_vc_uri_remove_double_dot_segments
.subsections_via_symbols
