	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function canonicalize_pathname
_canonicalize_pathname:                 ## @canonicalize_pathname
	.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	$56, %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	_strdup
	testq	%rax, %rax
	je	LBB0_38
## %bb.1:
	cmpb	$47, (%r14)
	sete	%cl
	cmpb	$0, (%rax)
	je	LBB0_37
## %bb.2:
	movb	%cl, -41(%rbp)                  ## 1-byte Spill
	movabsq	$-4294967296, %r8               ## imm = 0xFFFFFFFF00000000
	leaq	1(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	-1(%rax), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_22:                                ##   in Loop: Header=BB0_5 Depth=1
	testb	%cl, %cl
	je	LBB0_35
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %ebx
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	%ebx, %rcx
	cmpb	$0, (%rax,%rcx)
	je	LBB0_36
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_28 Depth 2
	movslq	%ebx, %rsi
	movq	%rsi, %r13
	imulq	%r8, %r13
	leaq	(%rax,%rsi), %rdi
	leal	1(%rsi), %ecx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rdi,%r12), %edx
	testb	%dl, %dl
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpb	$47, %dl
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	addq	%r8, %r13
	incq	%r12
	incl	%ecx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	testb	%dl, %dl
	je	LBB0_36
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%esi, %r14d
	leaq	(%r14,%r12), %rdx
	incq	%rdx
	addq	%r12, %r14
	addq	%r12, %rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movslq	%edx, %r15
	movslq	%ecx, %rsi
	addq	-80(%rbp), %rsi                 ## 8-byte Folded Reload
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	decl	%ecx
	cmpb	$47, 1(%rsi)
	leaq	1(%rsi), %rsi
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	addq	%r12, %rdi
	incq	%rdi
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	callq	_strcpy
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movabsq	$-4294967296, %r8               ## imm = 0xFFFFFFFF00000000
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%r14d, %r14d
	jle	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	leal	(%rbx,%r12), %ecx
	decl	%ecx
	cmpb	$92, (%rax,%rcx)
	je	LBB0_3
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	testl	%r14d, %r14d
	je	LBB0_24
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	(%rax,%r15), %cl
	testb	%cl, %cl
	je	LBB0_35
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$46, %cl
	jne	LBB0_3
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	%rax, %r15
	movabsq	$8589934592, %rcx               ## imm = 0x200000000
	subq	%r13, %rcx
	sarq	$32, %rcx
	movb	(%rax,%rcx), %cl
	cmpb	$46, %cl
	je	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$47, %cl
	jne	LBB0_22
## %bb.32:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %eax
	movq	%r15, %rdi
	movl	%r14d, %ebx
	jmp	LBB0_33
LBB0_24:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	(%rax,%r15), %cl
	cmpb	$46, %cl
	je	LBB0_20
	jmp	LBB0_3
LBB0_25:                                ##   in Loop: Header=BB0_5 Depth=1
	movabsq	$12884901888, %rcx              ## imm = 0x300000000
	subq	%r13, %rcx
	sarq	$32, %rcx
	movb	(%rax,%rcx), %cl
	testb	%cl, %cl
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$47, %cl
	jne	LBB0_3
LBB0_27:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %esi
	sarl	$31, %esi
	andl	%r14d, %esi
	decl	%esi
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%edx, %edx
	jle	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=2
	decq	%rdx
	movl	%edx, %ecx
	cmpb	$47, (%rax,%rcx)
	jne	LBB0_28
## %bb.30:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %esi
LBB0_31:                                ##   in Loop: Header=BB0_5 Depth=1
	movslq	%esi, %rdi
	addq	-64(%rbp), %rdi                 ## 8-byte Folded Reload
	movl	$2, %eax
	movq	%rsi, %rbx
LBB0_33:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	%rax, %r15
	movq	%r15, %rsi
	callq	_strcpy
	testl	%ebx, %ebx
	movl	$0, %eax
	cmovlel	%eax, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movabsq	$-4294967296, %r8               ## imm = 0xFFFFFFFF00000000
	jmp	LBB0_4
LBB0_35:
	negq	%r13
	sarq	$32, %r13
	movb	$0, (%rax,%r13)
LBB0_36:
	cmpb	$0, (%rax)
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	jne	LBB0_38
LBB0_37:
	orb	$46, %cl
	movb	%cl, (%rax)
	movb	$0, 1(%rax)
LBB0_38:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_canonicalize_pathname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function canonicalize_pathname
_canonicalize_pathname:                 ; @canonicalize_pathname
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x0
	bl	_strdup
	mov	x19, x0
	cbz	x0, LBB0_33
; %bb.1:
	ldrb	w8, [x20]
	cmp	w8, #47
	mov	w8, #46
	cinc	w9, w8, eq
	ldrb	w8, [x19]
	cbz	w8, LBB0_32
; %bb.2:
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	mov	w27, #0
	add	x8, x19, #1
	str	x8, [sp]                        ; 8-byte Folded Spill
	mov	x22, #8589934592
	mov	x24, #-4294967296
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w9, LBB0_30
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	ldrb	w8, [x19, w27, sxtw]
	cbz	w8, LBB0_31
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_25 Depth 2
	mov	x28, #0
	sxtw	x23, w27
	neg	x26, x23, lsl #32
	add	x9, x19, x23
	add	w8, w27, #1
	ldrb	w10, [x9, x28]
	cbz	w10, LBB0_8
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w10, #47
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x26, x26, x24
	add	x28, x28, #1
	add	w8, w8, #1
	ldrb	w10, [x9, x28]
	cbnz	w10, LBB0_6
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbz	w10, LBB0_31
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x9, #0
	add	x25, x28, w23, uxtw
	add	x27, x25, #1
	add	x21, x23, x28
	sxtw	x20, w27
	sxtw	x8, w8
	add	x10, x19, x8
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w11, [x10, x9]
	add	x9, x9, #1
	cmp	w11, #47
	b.eq	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #1
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x19, x8
	add	x8, x8, x9
	sub	x1, x8, #1
	add	x8, x19, x23
	add	x8, x8, x28
	add	x0, x8, #1
	bl	_strcpy
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w25, #1
	b.lt	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w23, w28
	sub	w8, w8, #1
	ldrb	w8, [x19, w8, uxtw]
	cmp	w8, #92
	b.eq	LBB0_4
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w25, LBB0_21
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x19, x20]
	cbz	w8, LBB0_30
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #46
	b.ne	LBB0_4
LBB0_18:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x19, x20
	sub	x9, x22, x26
	asr	x9, x9, #32
	ldrb	w9, [x19, x9]
	cmp	w9, #46
	b.eq	LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #47
	b.ne	LBB0_3
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w9, #1
	mov	x0, x8
	b	LBB0_29
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x19, x20]
	cmp	w8, #46
	b.eq	LBB0_18
	b	LBB0_4
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x9, #12884901888
	sub	x9, x9, x26
	asr	x9, x9, #32
	ldrb	w9, [x19, x9]
	cbz	w9, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, #47
	b.ne	LBB0_4
LBB0_24:                                ;   in Loop: Header=BB0_5 Depth=1
	and	x9, x21, #0xffffffff
	cmp	w25, #0
	csel	w10, w25, wzr, lt
	sub	w25, w10, #1
LBB0_25:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w9, #1
	b.lt	LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	sub	x9, x9, #1
	ldrb	w10, [x19, w9, uxtw]
	cmp	w10, #47
	b.ne	LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x9
LBB0_28:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	add	x0, x9, w25, sxtw
	mov	w9, #2
LBB0_29:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x1, x8, x9
	bl	_strcpy
	cmp	w25, #0
	csel	w27, w25, wzr, gt
	ldrb	w8, [x19, w27, sxtw]
	cbnz	w8, LBB0_5
	b	LBB0_31
LBB0_30:
	neg	x8, x26
	asr	x8, x8, #32
	strb	wzr, [x19, x8]
LBB0_31:
	ldrb	w8, [x19]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	cbnz	w8, LBB0_33
LBB0_32:
	strb	w9, [x19]
	strb	wzr, [x19, #1]
LBB0_33:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_canonicalize_pathname
.subsections_via_symbols
