	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtree_resolve
_mtree_resolve:                         ## @mtree_resolve
	.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	%rsi, %r14
	movq	%rdi, %r13
	callq	_strlen
	movq	%rax, %r15
	cmpq	$1, %rax
	je	LBB0_4
## %bb.1:
	testq	%r15, %r15
	jne	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_39:
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%r14d, %r14d
	jmp	LBB0_40
LBB0_3:
	movsbl	(%r13), %ebx
	cmpb	-1(%r15,%r13), %bl
	jne	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	cmpb	$96, %bl
	sete	%al
	movl	%eax, (%r14)
	cmpb	$34, %bl
	sete	%cl
	cmpl	$34, %ebx
	je	LBB0_10
## %bb.6:
	cmpl	$96, %ebx
	jne	LBB0_7
LBB0_10:
	xorl	%eax, %eax
	callq	_sbuf_new_auto
	testq	%rax, %rax
	je	LBB0_38
## %bb.11:
	movq	%rax, %r12
	addq	$-2, %r15
	je	LBB0_36
## %bb.12:
	incq	%r13
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
LBB0_4:
	movl	$0, (%r14)
	xorl	%eax, %eax
	xorl	%ebx, %ebx
LBB0_8:
	cmpl	$39, %ebx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	addq	%rax, %r13
	movq	%r13, %rdi
	callq	_estrdup
	movq	%rax, %r14
	cmpl	$39, %ebx
	jne	LBB0_40
## %bb.9:
	movb	$0, -2(%r15,%r14)
LBB0_40:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	movl	$36, %esi
	callq	_sbuf_putc
	addq	$2, %r13
	addq	$-2, %r15
LBB0_35:                                ##   in Loop: Header=BB0_13 Depth=1
	testq	%r15, %r15
	je	LBB0_36
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$36, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpb	$92, -1(%rax)
	leaq	-1(%rax), %rbx
	cmovneq	%rax, %rbx
	cmpq	%rbx, %r13
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %r14
	subq	%r13, %r14
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_sbuf_bcat
	subq	%r14, %r15
	movq	%rbx, %r13
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpb	$92, (%rbx)
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movzbl	1(%r13), %ebx
	cmpb	$123, %bl
	jne	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r15, %r14
	leaq	1(%r13), %r12
	movq	%r12, %rdi
	movl	$125, %esi
	callq	_strchr
	movq	%rax, %r15
	testq	%rax, %rax
	cmoveq	%r12, %r15
	leaq	1(%r15), %rcx
	movq	%r12, %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	subq	%rcx, %rax
	addq	%rax, %r14
	decq	%r14
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	cmpq	%r15, %r12
	je	LBB0_22
## %bb.24:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	subl	%r12d, %r15d
	movl	%r15d, %edi
	movl	$1, %esi
	callq	_ecalloc
	movq	%rax, %r12
	addq	$2, %r13
	decl	%r15d
	movq	%rax, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_25
## %bb.28:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_29
## %bb.30:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	callq	_getenv
	testq	%rax, %rax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %rdi
	callq	_estrdup
	movq	%rax, %rbx
	jmp	LBB0_32
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	addq	$2, %r13
	addq	$-2, %r15
	jmp	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_23:                                ##   in Loop: Header=BB0_13 Depth=1
	movsbl	%bl, %esi
	movq	%r12, %rdi
	callq	_sbuf_putc
	jmp	LBB0_35
LBB0_25:                                ##   in Loop: Header=BB0_13 Depth=1
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_getcwd
	movq	%rax, %rbx
	testq	%rax, %rax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_33
	jmp	LBB0_26
LBB0_29:                                ##   in Loop: Header=BB0_13 Depth=1
	xorl	%eax, %eax
	callq	_getprogname
	movq	%rax, %rdi
	callq	_estrdup
	movq	%rax, %rbx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_32:                                ##   in Loop: Header=BB0_13 Depth=1
	testq	%rbx, %rbx
	je	LBB0_34
LBB0_33:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_sbuf_cat
	movq	%rbx, %rdi
	callq	_free
LBB0_34:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	callq	_free
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_35
LBB0_7:
	orb	%cl, %al
	jmp	LBB0_8
LBB0_14:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_sbuf_bcat
LBB0_36:
	xorl	%edi, %edi
	callq	_free
	movq	%r12, %rdi
	callq	_sbuf_finish
LBB0_37:
	movq	%r12, %rdi
	callq	_sbuf_data
	movl	%eax, %edi
	callq	_strdup
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_sbuf_delete
	testq	%r14, %r14
	jne	LBB0_40
LBB0_38:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_39
LBB0_26:
	movq	%r12, %rdi
	callq	_free
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_sbuf_finish
	testl	%r14d, %r14d
	je	LBB0_37
## %bb.27:
	movq	%r12, %rdi
	callq	_sbuf_delete
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".CURDIR"

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

	.no_dead_strip	_mtree_resolve
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtree_resolve
_mtree_resolve:                         ; @mtree_resolve
	.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, x1
	mov	x21, x0
	bl	_strlen
	cmp	x0, #1
	b.eq	LBB0_12
; %bb.1:
	mov	x20, x0
	cbnz	x0, LBB0_6
; %bb.2:
	mov	x21, #0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	x8, [x8]
LBB0_4:
Lloh2:
	adrp	x9, _errno@GOTPAGE
Lloh3:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh4:
	str	x8, [x9]
LBB0_5:
	mov	x0, x21
	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
LBB0_6:
	ldrb	w8, [x21]
	add	x9, x20, x21
	ldurb	w9, [x9, #-1]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.7:
	sxtb	w22, w8
	cmp	w22, #96
	cset	w8, eq
	str	w8, [x19]
	cmp	w22, #34
	b.eq	LBB0_9
; %bb.8:
	cmp	w22, #96
	b.ne	LBB0_30
LBB0_9:
	bl	_sbuf_new_auto
	cbz	x0, LBB0_32
; %bb.10:
	mov	x19, x0
Lloh5:
	adrp	x26, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x26, [x26, _ENOMEM@GOTPAGEOFF]
	subs	x20, x20, #2
	b.eq	LBB0_34
; %bb.11:
	add	x23, x21, #1
Lloh7:
	adrp	x21, l_.str@PAGE
Lloh8:
	add	x21, x21, l_.str@PAGEOFF
Lloh9:
	adrp	x22, l_.str.1@PAGE
Lloh10:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_12:
	str	wzr, [x19]
	mov	x0, x21
	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	_estrdup
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	mov	w1, #36
	bl	_sbuf_putc
	add	x23, x23, #2
	sub	x20, x20, #2
	cbz	x20, LBB0_34
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	w1, #36
	bl	_strchr
	cbz	x0, LBB0_33
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x8, x0
	ldrb	w9, [x8, #-1]!
	cmp	w9, #92
	csel	x25, x8, x0, eq
	cmp	x23, x25
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	sub	x24, x25, x23
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_sbuf_bcat
	sub	x20, x20, x24
	mov	x23, x25
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	ldrb	w8, [x25]
	cmp	w8, #92
	b.eq	LBB0_13
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x24, x23
	ldrb	w25, [x24, #1]!
	cmp	w25, #123
	b.ne	LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
	mov	w1, #125
	bl	_strchr
	cmp	x0, #0
	csel	x8, x24, x0, eq
	add	x27, x8, #1
	sub	x9, x24, x27
	add	x9, x20, x9
	sub	x20, x9, #1
	cmp	x24, x8
	b.eq	LBB0_24
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x28, [x26]
	sub	w25, w8, w24
	mov	x0, x25
	mov	w1, #1
	bl	_ecalloc
	mov	x24, x0
	add	x1, x23, #2
	sub	w2, w25, #1
	bl	_memcpy
	mov	x0, x24
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_26
; %bb.22:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
	bl	_getenv
	cbnz	x0, LBB0_27
	b	LBB0_29
LBB0_23:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x27, x23, #2
	sub	x20, x20, #2
LBB0_24:                                ;   in Loop: Header=BB0_14 Depth=1
	sxtb	w1, w25
	mov	x0, x19
	bl	_sbuf_putc
	mov	x23, x27
	cbnz	x20, LBB0_14
	b	LBB0_34
LBB0_25:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w1, #0
	bl	_getcwd
	mov	x23, x0
	cbnz	x0, LBB0_28
	b	LBB0_37
LBB0_26:                                ;   in Loop: Header=BB0_14 Depth=1
	bl	_getprogname
LBB0_27:                                ;   in Loop: Header=BB0_14 Depth=1
	bl	_estrdup
	mov	x23, x0
	cbz	x0, LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_sbuf_cat
	mov	x0, x23
	bl	_free
LBB0_29:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x24
	bl	_free
	mov	x23, x27
	cbnz	x20, LBB0_14
	b	LBB0_34
LBB0_30:
	mov	w8, #34
	ccmp	w22, w8, #4, ne
	cset	w8, eq
	cmp	w22, #39
	cset	w9, eq
	orr	w8, w9, w8
	add	x0, x21, x8
	bl	_estrdup
	mov	x21, x0
	cmp	w22, #39
	b.ne	LBB0_5
; %bb.31:
	add	x8, x20, x21
	sturb	wzr, [x8, #-2]
	b	LBB0_5
LBB0_32:
	mov	x21, #0
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_33:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x20
	bl	_sbuf_bcat
LBB0_34:
	mov	x0, #0
	bl	_free
	mov	x0, x19
	bl	_sbuf_finish
LBB0_35:
	mov	x0, x19
	bl	_sbuf_data
	bl	_strdup
	mov	x21, x0
	mov	x0, x19
	bl	_sbuf_delete
	cbnz	x21, LBB0_5
LBB0_36:
	mov	x21, #0
	ldr	x8, [x26]
	b	LBB0_4
LBB0_37:
	mov	x0, x24
	bl	_free
	mov	x0, x19
	bl	_sbuf_finish
	cbz	w28, LBB0_35
; %bb.38:
	mov	x0, x19
	bl	_sbuf_delete
	b	LBB0_36
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".CURDIR"

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

	.no_dead_strip	_mtree_resolve
.subsections_via_symbols
