	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_canonicalize_path              ## -- Begin function canonicalize_path
	.p2align	4, 0x90
_canonicalize_path:                     ## @canonicalize_path
	.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
	movq	%rdi, %r14
	callq	_trim_trailing_separator
	movb	(%r14), %dl
	movq	%r14, %rax
	testb	%dl, %dl
	je	LBB0_12
## %bb.1:
	xorl	%esi, %esi
	movq	%r14, %rcx
	movq	%r14, %rax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	cmpb	$47, %dl
	sete	%sil
	incq	%rax
	movb	(%rcx), %dl
	testb	%dl, %dl
	je	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	leaq	1(%rcx), %rdi
	cmpb	$47, %dl
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%esi, %esi
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, %rcx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rcx), %edx
	incq	%rcx
	cmpb	$47, %dl
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	testl	%esi, %esi
	jne	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-1(%rcx), %rsi
	cmpq	%rsi, %rax
	jne	LBB0_10
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %rsi
	movq	%rdi, %rcx
	cmpq	%rsi, %rax
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	%dl, (%rax)
	movb	(%rsi), %dl
	jmp	LBB0_11
LBB0_12:
	movb	$0, (%rax)
	movq	%r14, %rdi
	callq	_skip_drive
	movq	%rax, %rbx
	leaq	-2(%rax), %r12
	addq	$-3, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	leaq	L_.str(%rip), %r15
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	callq	_trim_directory
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, %r13d
	cmpl	$2, %eax
	jl	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%r13d, %edi
	addq	%r12, %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.23:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$3, %r13d
	jl	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	%r13d, %edi
	addq	-56(%rbp), %rdi                 ## 8-byte Folded Reload
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_26
## %bb.27:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	testl	%r13d, %r13d
	jle	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpb	$0, (%rbx)
	je	LBB0_19
## %bb.29:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	callq	_trim_directory
	decl	%r13d
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	cmpb	$0, (%rbx)
	jne	LBB0_13
## %bb.30:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcpy
	jmp	LBB0_13
LBB0_26:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r14, %rdi
	callq	_trim_directory
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_13
LBB0_17:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	testl	%r13d, %r13d
	jle	LBB0_31
## %bb.18:
	movb	$0, (%rbx)
LBB0_19:
	cmpl	$2, %r13d
	jb	LBB0_22
## %bb.20:
	incl	%r13d
	leaq	L_.str.4(%rip), %rbx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strcat
	decl	%r13d
	cmpl	$2, %r13d
	ja	LBB0_21
LBB0_22:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_strcat                         ## TAILCALL
LBB0_31:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/."

L_.str.1:                               ## @.str.1
	.asciz	"."

L_.str.2:                               ## @.str.2
	.asciz	"/.."

L_.str.3:                               ## @.str.3
	.asciz	".."

L_.str.4:                               ## @.str.4
	.asciz	"../"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_canonicalize_path              ; -- Begin function canonicalize_path
	.p2align	2
_canonicalize_path:                     ; @canonicalize_path
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_trim_trailing_separator
	ldrb	w9, [x19]
	mov	x8, x19
	cbz	w9, LBB0_10
; %bb.1:
	mov	w11, #0
	mov	x10, x19
	mov	x8, x19
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, #47
	cset	w11, eq
	add	x8, x8, #1
	ldrb	w9, [x10]
	cbz	w9, LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	add	x12, x10, #1
	cmp	w9, #47
	b.ne	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w11, LBB0_7
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x12], #1
	cmp	w9, #47
	ccmp	w11, #0, #4, eq
	b.ne	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x11, x12, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, x10
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x10, x12
	cmp	x8, x11
	b.eq	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	w9, [x8]
	ldrb	w9, [x11]
	b	LBB0_2
LBB0_10:
	strb	wzr, [x8]
	mov	x0, x19
	bl	_skip_drive
	mov	x20, x0
	mov	w26, #0
	sub	x27, x0, #2
	sub	x28, x0, #3
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh4:
	adrp	x23, l_.str.2@PAGE
Lloh5:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh6:
	adrp	x24, l_.str.3@PAGE
Lloh7:
	add	x24, x24, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	bl	_trim_directory
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_strlen
	mov	x25, x0
	cmp	w0, #2
	b.lt	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x0, x27, w25, uxtw
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_11
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w25, #3
	b.lt	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x0, x28, w25, uxtw
	mov	x1, x23
	bl	_strcmp
	cbz	x0, LBB0_22
LBB0_17:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_strcmp
	cbz	x0, LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	subs	w25, w26, #1
	b.lt	LBB0_29
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	ldrb	w8, [x20]
	cbz	w8, LBB0_25
; %bb.20:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	bl	_trim_directory
	ldrb	w8, [x20]
	mov	x26, x25
	cbnz	w8, LBB0_12
; %bb.21:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_strcpy
	mov	x26, x25
	b	LBB0_12
LBB0_22:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x19
	bl	_trim_directory
	add	w26, w26, #1
	b	LBB0_12
LBB0_23:
	cmp	w26, #1
	b.lt	LBB0_29
; %bb.24:
	strb	wzr, [x20]
LBB0_25:
	cmp	w26, #2
	b.lo	LBB0_28
; %bb.26:
	add	w21, w26, #1
Lloh8:
	adrp	x20, l_.str.4@PAGE
Lloh9:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_strcat
	sub	w21, w21, #1
	cmp	w21, #2
	b.hi	LBB0_27
LBB0_28:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_strcat
LBB0_29:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/."

l_.str.1:                               ; @.str.1
	.asciz	"."

l_.str.2:                               ; @.str.2
	.asciz	"/.."

l_.str.3:                               ; @.str.3
	.asciz	".."

l_.str.4:                               ; @.str.4
	.asciz	"../"

.subsections_via_symbols
