	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function treat_leading_path
_treat_leading_path:                    ## @treat_leading_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %esi
	movslq	%ecx, %rax
	movq	%rax, %rcx
	shlq	$32, %rcx
	movabsq	$4294967296, %r15               ## imm = 0x100000000
	addq	%rcx, %r15
	leal	1(%rax), %r13d
	movabsq	$-4294967296, %rcx              ## imm = 0xFFFFFFFF00000000
	movq	%rax, %rdx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	subq	$1, %rdx
	jb	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	%rcx, %r15
	decl	%r13d
	cmpb	$47, -1(%rbx,%rax)
	movq	%rdx, %rax
	je	LBB0_1
## %bb.3:
	movq	_DIR_SHOW_OTHER_DIRECTORIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	andl	%esi, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	sarq	$32, %r15
	addq	%rbx, %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r12d, %rax
	leaq	(%rbx,%rax), %rdi
	cmpl	$1, %eax
	sbbq	$-1, %rdi
	movl	%r15d, %edx
	subl	%edi, %edx
	movl	$47, %esi
	callq	_memchr
	movl	%eax, %r12d
	subl	%ebx, %r12d
	testq	%rax, %rax
	cmovel	%r13d, %r12d
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_strbuf_setlen
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_strbuf_add
	movl	-44(%rbp), %edi
	callq	_is_directory
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_simplify_away
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_DT_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	leaq	-48(%rbp), %rcx
	movl	%r12d, %r8d
	pushq	$0
	pushq	%rax
	callq	_treat_one_path
	addq	$16, %rsp
	movq	_path_none@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r13d, %r12d
	jl	LBB0_4
## %bb.8:
	movl	$1, %r14d
	jmp	LBB0_12
LBB0_9:
	movl	$1, %r14d
	jmp	LBB0_13
LBB0_11:
	xorl	%r14d, %r14d
LBB0_12:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
LBB0_13:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.comm	_DIR_SHOW_OTHER_DIRECTORIES,4,2 ## @DIR_SHOW_OTHER_DIRECTORIES
	.comm	_DT_DIR,4,2                     ## @DT_DIR
	.comm	_path_none,8,3                  ## @path_none
	.no_dead_strip	_treat_leading_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function treat_leading_path
_treat_leading_path:                    ; @treat_leading_path
	.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, x4
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w24, [x0]
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	sxtw	x10, w3
	mov	x8, #4294967296
	add	x8, x8, x10, lsl #32
	add	w25, w3, #1
	mov	x9, #-4294967296
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x10, LBB0_9
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x11, x21, x10
	sub	x10, x10, #1
	ldurb	w11, [x11, #-1]
	add	x8, x8, x9
	sub	w25, w25, #1
	cmp	w11, #47
	b.eq	LBB0_1
; %bb.3:
	mov	w23, #0
Lloh3:
	adrp	x9, _DIR_SHOW_OTHER_DIRECTORIES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DIR_SHOW_OTHER_DIRECTORIES@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bic	w9, w24, w9
	str	w9, [x19]
	add	x26, x21, x8, asr #32
Lloh6:
	adrp	x27, _DT_DIR@GOTPAGE
Lloh7:
	ldr	x27, [x27, _DT_DIR@GOTPAGEOFF]
Lloh8:
	adrp	x28, _path_none@GOTPAGE
Lloh9:
	ldr	x28, [x28, _path_none@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x21, w23, sxtw
	cmp	w23, #0
	cinc	x0, x8, ne
	sub	w2, w26, w0
	mov	w1, #47
	bl	_memchr
	sub	w8, w0, w21
	cmp	x0, #0
	csel	w23, w25, w8, eq
	add	x0, sp, #8
	mov	w1, #0
	bl	_strbuf_setlen
	add	x0, sp, #8
	mov	x1, x21
	mov	x2, x23
	bl	_strbuf_add
	ldr	w0, [sp, #12]
	bl	_is_directory
	cbz	w0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w1, w0, [sp, #8]
	mov	x2, x20
	bl	_simplify_away
	cbnz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w6, [x27]
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, #0
	mov	x2, x22
	mov	x4, x23
	mov	x5, x20
	mov	x7, #0
	bl	_treat_one_path
	ldr	x8, [x28]
	cmp	x0, x8
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w23, w25
	b.lt	LBB0_4
; %bb.8:
	mov	w20, #1
	b	LBB0_11
LBB0_9:
	mov	w20, #1
	b	LBB0_12
LBB0_10:
	mov	w20, #0
LBB0_11:
	add	x0, sp, #8
	bl	_strbuf_release
	str	w24, [x19]
LBB0_12:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.comm	_DIR_SHOW_OTHER_DIRECTORIES,4,2 ; @DIR_SHOW_OTHER_DIRECTORIES
	.comm	_DT_DIR,4,2                     ; @DT_DIR
	.comm	_path_none,8,3                  ; @path_none
	.no_dead_strip	_treat_leading_path
.subsections_via_symbols
