	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amfs_toplvl_umount             ## -- Begin function amfs_toplvl_umount
	.p2align	4, 0x90
_amfs_toplvl_umount:                    ## @amfs_toplvl_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	(%rsi), %r15d
	movq	_MFF_ON_AUTOFS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_AMU_UMOUNT_AUTOFS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rdi), %edi
	leaq	-48(%rbp), %rsi
	callq	_lstat
	testq	%rax, %rax
	js	LBB0_11
## %bb.1:
	andl	%r15d, %ebx
	cmovel	%ebx, %r14d
	xorl	%r15d, %r15d
	leaq	-48(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	callq	_dlog
	orl	(%rbx), %r14d
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_lstat
	incl	%r15d
	testq	%rax, %rax
	js	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_S_IFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-48(%rbp), %eax
	movq	_S_IFDIR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	movq	_mnttab_file_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_UMOUNT_FS
	movl	%eax, %ebx
	movq	_EBUSY@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_XLOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_plog
	movl	$1, %edi
	callq	_sleep
	movq	_CFM_FORCED_UNMOUNTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_gopt@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movq	_AMU_UMOUNT_FORCE@GOTPCREL(%rip), %rbx
	cmpl	$4, %r15d
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$9, %r15d
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.4(%rip), %rdi
	movq	_AMU_UMOUNT_DETACH@GOTPCREL(%rip), %rbx
	jmp	LBB0_9
LBB0_11:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdi
	callq	_dlog
	jmp	LBB0_12
LBB0_3:
	movq	_XLOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_plog
	movq	_ENOTDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %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	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lstat(%s): %m"

	.comm	_S_IFMT,4,2                     ## @S_IFMT
	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
	.comm	_XLOG_ERROR,4,2                 ## @XLOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"amfs_toplvl_umount: %s is not a directory, aborting."

	.comm	_ENOTDIR,4,2                    ## @ENOTDIR
	.comm	_mnttab_file_name,4,2           ## @mnttab_file_name
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_XLOG_WARNING,4,2               ## @XLOG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"amfs_toplvl_unmount retrying %s in 1s"

	.comm	_gopt,4,2                       ## @gopt
	.comm	_CFM_FORCED_UNMOUNTS,4,2        ## @CFM_FORCED_UNMOUNTS
L_.str.3:                               ## @.str.3
	.asciz	"enabling forced unmounts for toplvl node %s"

	.comm	_AMU_UMOUNT_FORCE,4,2           ## @AMU_UMOUNT_FORCE
L_.str.4:                               ## @.str.4
	.asciz	"enabling detached unmounts for toplvl node %s"

	.comm	_AMU_UMOUNT_DETACH,4,2          ## @AMU_UMOUNT_DETACH
	.comm	_MFF_IS_AUTOFS,4,2              ## @MFF_IS_AUTOFS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amfs_toplvl_umount             ; -- Begin function amfs_toplvl_umount
	.p2align	2
_amfs_toplvl_umount:                    ; @amfs_toplvl_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, x0
Lloh0:
	adrp	x8, _MFF_ON_AUTOFS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MFF_ON_AUTOFS@GOTPAGEOFF]
	ldr	w20, [x1]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _AMU_UMOUNT_AUTOFS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AMU_UMOUNT_AUTOFS@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	ldr	w0, [x0]
	add	x1, sp, #8
	bl	_lstat
	tbnz	x0, #63, LBB0_11
; %bb.1:
	mov	w23, #0
	tst	w21, w20
	csel	w20, wzr, w22, eq
Lloh6:
	adrp	x24, _S_IFMT@GOTPAGE
Lloh7:
	ldr	x24, [x24, _S_IFMT@GOTPAGEOFF]
Lloh8:
	adrp	x25, _S_IFDIR@GOTPAGE
Lloh9:
	ldr	x25, [x25, _S_IFDIR@GOTPAGEOFF]
Lloh10:
	adrp	x27, _EBUSY@GOTPAGE
Lloh11:
	ldr	x27, [x27, _EBUSY@GOTPAGEOFF]
Lloh12:
	adrp	x21, l_.str.2@PAGE
Lloh13:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh14:
	adrp	x28, _gopt@GOTPAGE
Lloh15:
	ldr	x28, [x28, _gopt@GOTPAGEOFF]
Lloh16:
	adrp	x26, _CFM_FORCED_UNMOUNTS@GOTPAGE
Lloh17:
	ldr	x26, [x26, _CFM_FORCED_UNMOUNTS@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh20:
	adrp	x22, _AMU_UMOUNT_FORCE@GOTPAGE
Lloh21:
	ldr	x22, [x22, _AMU_UMOUNT_FORCE@GOTPAGEOFF]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x19]
	bl	_dlog
	ldr	w8, [x22]
	orr	w20, w8, w20
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_lstat
	add	w23, w23, #1
	tbnz	x0, #63, LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #8]
	ldr	w9, [x24]
	and	w8, w9, w8
	ldr	w9, [x25]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19]
Lloh22:
	adrp	x8, _mnttab_file_name@GOTPAGE
Lloh23:
	ldr	x8, [x8, _mnttab_file_name@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_UMOUNT_FS
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh25:
	adrp	x8, _XLOG_WARNING@GOTPAGE
Lloh26:
	ldr	x8, [x8, _XLOG_WARNING@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	ldr	w2, [x19]
	mov	x1, x21
	bl	_plog
	mov	w0, #1
	bl	_sleep
	ldr	w8, [x28]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w23, #4
	b.eq	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w23, #9
	b.ne	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh28:
	adrp	x0, l_.str.4@PAGE
Lloh29:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh30:
	adrp	x22, _AMU_UMOUNT_DETACH@GOTPAGE
Lloh31:
	ldr	x22, [x22, _AMU_UMOUNT_DETACH@GOTPAGEOFF]
	b	LBB0_3
LBB0_11:
Lloh32:
	adrp	x8, _errno@GOTPAGE
Lloh33:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh34:
	ldr	w22, [x8]
	ldr	w1, [x19]
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dlog
	b	LBB0_14
LBB0_12:
Lloh37:
	adrp	x8, _XLOG_ERROR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _XLOG_ERROR@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh40:
	adrp	x1, l_.str.1@PAGE
Lloh41:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_plog
Lloh42:
	adrp	x8, _ENOTDIR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ENOTDIR@GOTPAGEOFF]
Lloh44:
	ldr	w22, [x8]
	b	LBB0_14
LBB0_13:
	mov	x22, x0
LBB0_14:
	mov	x0, x22
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_MFF_ON_AUTOFS,4,2              ; @MFF_ON_AUTOFS
	.comm	_AMU_UMOUNT_AUTOFS,4,2          ; @AMU_UMOUNT_AUTOFS
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lstat(%s): %m"

	.comm	_S_IFMT,4,2                     ; @S_IFMT
	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
	.comm	_XLOG_ERROR,4,2                 ; @XLOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"amfs_toplvl_umount: %s is not a directory, aborting."

	.comm	_ENOTDIR,4,2                    ; @ENOTDIR
	.comm	_mnttab_file_name,4,2           ; @mnttab_file_name
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_XLOG_WARNING,4,2               ; @XLOG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"amfs_toplvl_unmount retrying %s in 1s"

	.comm	_gopt,4,2                       ; @gopt
	.comm	_CFM_FORCED_UNMOUNTS,4,2        ; @CFM_FORCED_UNMOUNTS
l_.str.3:                               ; @.str.3
	.asciz	"enabling forced unmounts for toplvl node %s"

	.comm	_AMU_UMOUNT_FORCE,4,2           ; @AMU_UMOUNT_FORCE
l_.str.4:                               ; @.str.4
	.asciz	"enabling detached unmounts for toplvl node %s"

	.comm	_AMU_UMOUNT_DETACH,4,2          ; @AMU_UMOUNT_DETACH
	.comm	_MFF_IS_AUTOFS,4,2              ; @MFF_IS_AUTOFS
.subsections_via_symbols
