	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_normalize_path_copy_len        ## -- Begin function normalize_path_copy_len
	.p2align	4, 0x90
_normalize_path_copy_len:               ## @normalize_path_copy_len
	.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	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_offset_1st_component
	testl	%eax, %eax
	jle	LBB0_1
## %bb.12:
	movslq	%eax, %r14
	addq	%r12, %r14
	movl	$47, %r15d
	movq	%rbx, %r13
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movsbl	(%r12), %ebx
	incq	%r12
	movl	%ebx, %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	cmovnel	%r15d, %ebx
	movb	%bl, (%r13)
	incq	%r13
	cmpq	%r14, %r12
	jb	LBB0_13
	jmp	LBB0_2
LBB0_1:
	movq	%rbx, %r13
LBB0_2:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	decq	%r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	1(%r12), %edi
	incq	%r12
	callq	_is_dir_sep
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rax
	notq	%rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	decq	%r12
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_16 Depth 3
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_28 Depth 2
                                        ##     Child Loop BB0_36 Depth 2
                                        ##     Child Loop BB0_33 Depth 2
	movq	%r12, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_16 Depth 3
	movb	(%rbx), %r14b
	cmpb	$46, %r14b
	jne	LBB0_26
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movb	1(%rbx), %al
	testb	%al, %al
	je	LBB0_8
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=2
	movsbl	%al, %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=2
	incq	%rbx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movsbl	1(%rbx), %edi
	incq	%rbx
	callq	_is_dir_sep
	testq	%rax, %rax
	jne	LBB0_16
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	addq	$2, %rbx
	movq	%rbx, %r12
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	je	LBB0_10
LBB0_31:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	$47, (%r15)
	movsbl	%r14b, %edi
	.p2align	4, 0x90
LBB0_33:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	callq	_is_dir_sep
	testq	%rax, %rax
	je	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_33 Depth=2
	movsbl	(%r12), %edi
	incq	%r12
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$46, 1(%rbx)
	jne	LBB0_25
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	2(%rbx), %r12
	movb	2(%rbx), %al
	testb	%al, %al
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	movsbl	%al, %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	je	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	1(%r12), %edi
	incq	%r12
	callq	_is_dir_sep
	testq	%rax, %rax
	jne	LBB0_22
	jmp	LBB0_23
LBB0_25:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	(%rbx), %r14b
LBB0_26:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movq	%rbx, %r12
	testb	%r14b, %r14b
	je	LBB0_9
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	%r14b, %r13d
	movl	%r13d, %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=2
	movb	%r14b, (%r15)
	incq	%r15
	movzbl	(%r12), %r14d
	incq	%r12
	testb	%r14b, %r14b
	jne	LBB0_28
	jmp	LBB0_9
LBB0_30:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %edi
	callq	_is_dir_sep
	testq	%rax, %rax
	jne	LBB0_31
	jmp	LBB0_5
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	-1(%r15), %rcx
	cmpq	%rbx, %rcx
	jbe	LBB0_24
## %bb.35:                              ##   in Loop: Header=BB0_5 Depth=1
	addq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	movq	%r15, %rdx
	.p2align	4, 0x90
LBB0_36:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %r15
	movq	%rdx, %rax
	cmpq	%rcx, %rbx
	jae	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_36 Depth=2
	leaq	-1(%r15), %rcx
	leaq	-1(%rax), %rdx
	cmpb	$47, -1(%r15)
	jne	LBB0_36
LBB0_38:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_5
## %bb.39:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_5
## %bb.40:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_5
LBB0_10:
	movb	$0, (%r15)
LBB0_11:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movl	$-1, %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_normalize_path_copy_len        ; -- Begin function normalize_path_copy_len
	.p2align	2
_normalize_path_copy_len:               ; @normalize_path_copy_len
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_offset_1st_component
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	add	x23, x21, w0, sxtw
	mov	w24, #47
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w22, [x21], #1
	mov	x0, x22
	bl	_is_dir_sep
	cmp	x0, #0
	csel	w8, w22, w24, eq
	strb	w8, [x20], #1
	cmp	x21, x23
	b.lo	LBB0_2
LBB0_3:
	sub	x25, x21, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x25, #1]!
	bl	_is_dir_sep
	cbnz	x0, LBB0_4
; %bb.5:
	mvn	x22, x20
	mov	w23, #47
	mov	x24, x20
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	x25, x25, #1
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
                                        ;     Child Loop BB0_17 Depth 2
                                        ;     Child Loop BB0_27 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
                                        ;     Child Loop BB0_32 Depth 2
	mov	x21, x25
LBB0_8:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	ldrb	w26, [x21]
	cmp	w26, #46
	b.ne	LBB0_26
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldrb	w8, [x21, #1]
	cbz	w8, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	sxtb	w0, w8
	bl	_is_dir_sep
	cbz	x0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	add	x21, x21, #1
LBB0_12:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrsb	w0, [x21, #1]!
	bl	_is_dir_sep
	cbnz	x0, LBB0_12
	b	LBB0_8
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x25, x21, #2
	b	LBB0_29
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [x21, #1]
	cmp	w8, #46
	b.ne	LBB0_25
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, x21
	ldrb	w8, [x25, #2]!
	cbz	w8, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	sxtb	w0, w8
	bl	_is_dir_sep
	cbz	x0, LBB0_25
LBB0_17:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x25, #1]!
	bl	_is_dir_sep
	cbnz	x0, LBB0_17
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	x9, x24, #1
	cmp	x9, x20
	b.ls	LBB0_36
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x22, x24
LBB0_20:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x24, x9
	mov	x8, x10
	cmp	x20, x9
	b.hs	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	mov	x9, x24
	ldrb	w11, [x9, #-1]!
	sub	x10, x8, #1
	cmp	w11, #47
	b.ne	LBB0_20
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	x19, LBB0_7
; %bb.23:                               ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x9, [x19]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.24:                               ;   in Loop: Header=BB0_7 Depth=1
	str	w8, [x19]
	b	LBB0_7
LBB0_25:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w26, [x21]
LBB0_26:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x25, x21, #1
	cbz	w26, LBB0_29
LBB0_27:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtb	w21, w26
	mov	x0, x21
	bl	_is_dir_sep
	cbnz	x0, LBB0_33
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=2
	strb	w26, [x24], #1
	ldrb	w26, [x25], #1
	cbnz	w26, LBB0_27
LBB0_29:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #0
	bl	_is_dir_sep
	cbz	x0, LBB0_34
; %bb.30:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w26, #0
LBB0_31:                                ;   in Loop: Header=BB0_7 Depth=1
	strb	w23, [x24], #1
	sxtb	w0, w26
	bl	_is_dir_sep
	cbz	x0, LBB0_6
LBB0_32:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x25], #1
	bl	_is_dir_sep
	cbnz	x0, LBB0_32
	b	LBB0_6
LBB0_33:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_is_dir_sep
	cbnz	x0, LBB0_31
	b	LBB0_7
LBB0_34:
	strb	wzr, [x24]
LBB0_35:
	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_36:
	mov	w0, #-1
	b	LBB0_35
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
