	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_mtree_spec
_read_mtree_spec:                       ## @read_mtree_spec
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leal	1(,%rbx,4), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_read_word
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_3
LBB0_1:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_skip_to
	movq	%r14, %rdi
	callq	_getc
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.2:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_strnunvis
	cmpl	$-1, %eax
	je	LBB0_16
## %bb.4:
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_17
## %bb.5:
	movq	%rax, %rbx
	movq	_mtree_root@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_mtree_current@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movb	$0, (%rbx)
	movq	%r15, %rdi
	callq	_IS_DOTDOT
	testq	%rax, %rax
	jne	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	xorl	%r12d, %r12d
	cmpb	$0, (%r15)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	callq	_IS_DOT
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_read_mtree_spec1
	movl	%eax, %r12d
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	leaq	1(%rax), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_memmove
	movq	%r15, %rdi
	movl	$47, %esi
	callq	_strchr
	testl	%r12d, %r12d
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
LBB0_12:
	testl	%r12d, %r12d
	jne	LBB0_1
## %bb.13:
	movq	%r15, %rdi
	callq	_IS_DOT
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	callq	_IS_DOTDOT
	testq	%rax, %rax
	je	LBB0_17
LBB0_15:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_20
LBB0_16:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_1
LBB0_17:
	cmpb	$0, (%r15)
	je	LBB0_21
## %bb.18:
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	callq	_read_mtree_spec1
	movl	%eax, %r12d
	jmp	LBB0_1
LBB0_19:
	leaq	L_.str(%rip), %rdi
LBB0_20:
	callq	_mtree_error
LBB0_21:
	xorl	%r12d, %r12d
	jmp	LBB0_1
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_errno,4,2                      ## @errno
	.comm	_mtree_root,4,2                 ## @mtree_root
	.comm	_mtree_current,4,2              ## @mtree_current
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"absolute path cannot contain .. component"

L_.str.1:                               ## @.str.1
	.asciz	"absolute path cannot contain . or .. components"

L_.str.2:                               ## @.str.2
	.asciz	"\n"

	.no_dead_strip	_read_mtree_spec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_mtree_spec
_read_mtree_spec:                       ; @read_mtree_spec
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x23, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PATH_MAX@GOTPAGEOFF]
	ldr	w8, [x23]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x10, x10, #0x1fffffff0
	sub	x20, x9, x10
	mov	sp, x20
	mov	w2, #1
	bfi	w2, w8, #2, #30
	add	x8, x2, #15
	and	x8, x8, #0x1fffffff0
	mov	x9, x2
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x22, x9, x8
	mov	sp, x22
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_read_word
	mov	x21, x0
	cbz	w0, LBB0_3
LBB0_1:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_skip_to
	mov	x0, x19
	bl	_getc
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.2:
	mov	x0, x21
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w1, [x23]
	mov	x0, x20
	mov	x2, x22
	bl	_strnunvis
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.4:
	mov	x0, x20
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_18
; %bb.5:
	mov	x22, x0
Lloh14:
	adrp	x8, _mtree_root@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mtree_root@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _mtree_current@GOTPAGE
Lloh18:
	ldr	x9, [x9, _mtree_current@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	strb	wzr, [x22], #1
	mov	x0, x20
	bl	_IS_DOTDOT
	cbnz	x0, LBB0_20
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x20]
	cbz	w8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_IS_DOT
	cbz	x0, LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w21, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_read_mtree_spec1
	mov	x21, x0
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_strlen
	add	x2, x0, #1
	mov	x0, x20
	mov	x1, x22
	bl	_memmove
	mov	x0, x20
	mov	w1, #47
	bl	_strchr
	cbnz	w21, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	cbnz	x0, LBB0_6
LBB0_13:
	cbnz	w21, LBB0_1
; %bb.14:
	mov	x0, x20
	bl	_IS_DOT
	cbnz	x0, LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_IS_DOTDOT
	cbz	x0, LBB0_18
LBB0_16:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_21
LBB0_17:
Lloh22:
	adrp	x8, _errno@GOTPAGE
Lloh23:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh24:
	ldr	w21, [x8]
	b	LBB0_1
LBB0_18:
	ldrb	w8, [x20]
	cbz	w8, LBB0_22
; %bb.19:
	mov	x0, x19
	mov	w1, #1
	mov	x2, x20
	bl	_read_mtree_spec1
	mov	x21, x0
	b	LBB0_1
LBB0_20:
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
LBB0_21:
	bl	_mtree_error
LBB0_22:
	mov	w21, #0
	b	LBB0_1
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_errno,4,2                      ; @errno
	.comm	_mtree_root,4,2                 ; @mtree_root
	.comm	_mtree_current,4,2              ; @mtree_current
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"absolute path cannot contain .. component"

l_.str.1:                               ; @.str.1
	.asciz	"absolute path cannot contain . or .. components"

l_.str.2:                               ; @.str.2
	.asciz	"\n"

	.no_dead_strip	_read_mtree_spec
.subsections_via_symbols
