	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amfs_host_umount
_amfs_host_umount:                      ## @amfs_host_umount
	.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, %r12
	movq	%rdi, %rbx
	movq	_MFF_ON_AUTOFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_2
## %bb.1:
	movq	_AMU_UMOUNT_AUTOFS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_2:
	movl	4(%r12), %edi
	movq	_mnttab_file_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_read_mtab
	testq	%rax, %rax
	je	LBB0_19
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rcx
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	%rcx, 8(%r15)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	%r15, %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	(%rax), %r13
	movl	4(%r12), %edi
	movq	%r13, %rsi
	callq	_directory_prefix
	movl	$0, %r14d
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	callq	_dlog
	movq	_mnttab_file_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_UMOUNT_FS
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	%eax, %r14d
	movl	$0, %ecx
	cmovel	%ecx, %r14d
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_XLOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movq	(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_plog
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_rmdirs
	xorl	%r14d, %r14d
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	testl	%r14d, %r14d
	je	LBB0_6
LBB0_13:
	movq	%r15, %rdi
	callq	_discard_mntlist
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.15:
	movq	_amd_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_Finishing@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.16:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_amfs_host_mount
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_18
LBB0_19:
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_discard_mntlist
	jmp	LBB0_18
LBB0_14:
	xorl	%r14d, %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MFF_ON_AUTOFS,4,2              ## @MFF_ON_AUTOFS
	.comm	_AMU_UMOUNT_AUTOFS,4,2          ## @AMU_UMOUNT_AUTOFS
	.comm	_mnttab_file_name,4,2           ## @mnttab_file_name
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"amfs_host: unmounts %s"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_errno,4,2                      ## @errno
	.comm	_XLOG_ERROR,4,2                 ## @XLOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Tree unmount of %s failed: %m"

	.comm	_amd_state,8,3                  ## @amd_state
	.comm	_Finishing,8,3                  ## @Finishing
	.no_dead_strip	_amfs_host_umount
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amfs_host_umount
_amfs_host_umount:                      ; @amfs_host_umount
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MFF_ON_AUTOFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MFF_ON_AUTOFS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AMU_UMOUNT_AUTOFS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AMU_UMOUNT_AUTOFS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldp	w10, w0, [x1]
	tst	w8, w10
	csel	w21, wzr, w9, eq
Lloh6:
	adrp	x26, _mnttab_file_name@GOTPAGE
Lloh7:
	ldr	x26, [x26, _mnttab_file_name@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_read_mtab
	cbz	x0, LBB0_14
; %bb.1:
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x20
	mov	x20, x0
	ldr	x0, [x0, #8]
	str	x8, [x20, #8]
	cbnz	x0, LBB0_2
; %bb.3:
Lloh8:
	adrp	x23, l_.str@PAGE
Lloh9:
	add	x23, x23, l_.str@PAGEOFF
Lloh10:
	adrp	x28, _ENOENT@GOTPAGE
Lloh11:
	ldr	x28, [x28, _ENOENT@GOTPAGEOFF]
Lloh12:
	adrp	x27, _EBUSY@GOTPAGE
Lloh13:
	ldr	x27, [x27, _EBUSY@GOTPAGEOFF]
	mov	x22, x20
Lloh14:
	adrp	x24, l_.str.1@PAGE
Lloh15:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	bl	_rmdirs
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w25, #0
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x22, [x22, #8]
	cmp	x22, #0
	ccmp	w25, #0, #0, ne
	b.ne	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x25, [x8]
	ldr	w0, [x19, #4]
	mov	x1, x25
	bl	_directory_prefix
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	mov	x1, x25
	bl	_dlog
	ldr	w1, [x26]
	mov	x0, x25
	mov	x2, x21
	bl	_UMOUNT_FS
	cbz	w0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x28]
	cmp	w0, w8
	csel	w25, wzr, w0, eq
	ldr	w8, [x27]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	str	w0, [x8]
Lloh19:
	adrp	x8, _XLOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _XLOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	x8, [x22]
	ldr	x2, [x8]
	mov	x1, x24
	bl	_plog
	b	LBB0_6
LBB0_11:
	mov	x0, x20
	bl	_discard_mntlist
	cbz	w25, LBB0_15
; %bb.12:
Lloh22:
	adrp	x8, _amd_state@GOTPAGE
Lloh23:
	ldr	x8, [x8, _amd_state@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
Lloh25:
	adrp	x9, _Finishing@GOTPAGE
Lloh26:
	ldr	x9, [x9, _Finishing@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.13:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x19
	bl	_amfs_host_mount
	ldr	w8, [x27]
	cmp	w0, #0
	csel	w25, w8, w0, eq
	b	LBB0_15
LBB0_14:
	bl	_discard_mntlist
	mov	w25, #0
LBB0_15:
	mov	x0, x25
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MFF_ON_AUTOFS,4,2              ; @MFF_ON_AUTOFS
	.comm	_AMU_UMOUNT_AUTOFS,4,2          ; @AMU_UMOUNT_AUTOFS
	.comm	_mnttab_file_name,4,2           ; @mnttab_file_name
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"amfs_host: unmounts %s"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_errno,4,2                      ; @errno
	.comm	_XLOG_ERROR,4,2                 ; @XLOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Tree unmount of %s failed: %m"

	.comm	_amd_state,8,3                  ; @amd_state
	.comm	_Finishing,8,3                  ; @Finishing
	.no_dead_strip	_amfs_host_umount
.subsections_via_symbols
