	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_am_unmounted                   ## -- Begin function am_unmounted
	.p2align	4, 0x90
_am_unmounted:                          ## @am_unmounted
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_foreground@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_18
## %bb.1:
	movq	32(%rbx), %rax
	movq	(%rax), %r14
	movq	16(%r14), %rax
	movq	24(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	*%rax
LBB0_3:
	cmpq	$0, 64(%rbx)
	je	LBB0_6
## %bb.4:
	movq	16(%r14), %rax
	cmpq	_amfs_link_ops@GOTPCREL(%rip), %rax
	je	LBB0_6
## %bb.5:
	movq	_amfs_link_ops@GOTPCREL(%rip), %rax
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*16(%rax)
LBB0_6:
	movq	_MFF_MKMNT@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%r14)
	je	LBB0_10
## %bb.7:
	cmpl	$1, 4(%r14)
	jne	LBB0_10
## %bb.8:
	movq	_AMF_REMOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_10
## %bb.9:
	movq	_XLOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	callq	_plog
	movq	8(%r14), %rdi
	callq	_rmdirs
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, (%r14)
LBB0_10:
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.11:
	movq	48(%rbx), %rax
	movq	_NFDIR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	decl	60(%rdi)
LBB0_13:
	movq	32(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.14:
	addq	$56, %rdi
	callq	_clocktime
	cmpq	$0, 40(%rbx)
	je	LBB0_16
LBB0_15:
	movq	_AMF_REMOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_19
LBB0_16:
	movq	_AMQ_UMNT_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_notify_child
	cmpl	$0, 24(%rbx)
	je	LBB0_20
## %bb.17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_XLOG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_plog
	movq	_AMQ_UMNT_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_notify_child                   ## TAILCALL
LBB0_20:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_map                       ## TAILCALL
LBB0_19:
	movq	(%rbx), %rdi
	callq	_xstrdup
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_foreground,4,2                 ## @foreground
	.comm	_XLOG_FATAL,4,2                 ## @XLOG_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"am_unmounted: illegal use in background (%s)"

	.comm	_AMQ_UMNT_OK,4,2                ## @AMQ_UMNT_OK
	.comm	_amfs_link_ops,32,3             ## @amfs_link_ops
	.comm	_MFF_MKMNT,4,2                  ## @MFF_MKMNT
	.comm	_AMF_REMOUNT,4,2                ## @AMF_REMOUNT
	.comm	_XLOG_INFO,4,2                  ## @XLOG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"removing mountpoint directory '%s'"

	.comm	_NFDIR,8,3                      ## @NFDIR
	.comm	_VLOOK_CREATE,4,2               ## @VLOOK_CREATE
	.comm	_errno,4,2                      ## @errno
	.comm	_XLOG_ERROR,4,2                 ## @XLOG_ERROR
	.comm	_AMQ_UMNT_FAILED,4,2            ## @AMQ_UMNT_FAILED
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_AMF_AUTOFS,4,2                 ## @AMF_AUTOFS
	.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	_am_unmounted                   ; -- Begin function am_unmounted
	.p2align	2
_am_unmounted:                          ; @am_unmounted
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _foreground@GOTPAGE
Lloh1:
	ldr	x8, [x8, _foreground@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_17
; %bb.1:
	ldr	x8, [x19, #32]
	ldr	x20, [x8]
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	blr	x8
LBB0_3:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x9, [x20, #16]
Lloh3:
	adrp	x8, _amfs_link_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _amfs_link_ops@GOTPAGEOFF]
	cmp	x9, x8
	b.eq	LBB0_6
; %bb.5:
	ldr	x8, [x8, #16]
	mov	x0, x19
	mov	x1, x20
	blr	x8
LBB0_6:
	ldr	w8, [x20]
Lloh5:
	adrp	x21, _MFF_MKMNT@GOTPAGE
Lloh6:
	ldr	x21, [x21, _MFF_MKMNT@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.ne	LBB0_9
; %bb.8:
	ldr	w8, [x19, #8]
Lloh7:
	adrp	x9, _AMF_REMOUNT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AMF_REMOUNT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
LBB0_9:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_15
LBB0_10:
	ldr	x9, [x19, #48]
Lloh10:
	adrp	x10, _NFDIR@GOTPAGE
Lloh11:
	ldr	x10, [x10, _NFDIR@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_12
; %bb.11:
	ldr	w9, [x8, #60]
	sub	w9, w9, #1
	str	w9, [x8, #60]
LBB0_12:
	ldr	x9, [x8, #32]
	ldr	x9, [x9]
	cbz	x9, LBB0_14
; %bb.13:
	add	x0, x8, #56
	bl	_clocktime
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_15
LBB0_14:
	ldr	w8, [x19, #8]
Lloh13:
	adrp	x9, _AMF_REMOUNT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AMF_REMOUNT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_20
LBB0_15:
Lloh16:
	adrp	x8, _AMQ_UMNT_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AMQ_UMNT_OK@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_notify_child
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_18
; %bb.16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_17:
Lloh19:
	adrp	x8, _XLOG_FATAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _XLOG_FATAL@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	x2, [x19]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_plog
Lloh24:
	adrp	x8, _AMQ_UMNT_OK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AMQ_UMNT_OK@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_notify_child
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_free_map
LBB0_19:
Lloh27:
	adrp	x8, _XLOG_INFO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _XLOG_INFO@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	x2, [x20, #8]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_plog
	ldr	x0, [x20, #8]
	bl	_rmdirs
	ldr	w8, [x21]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_10
	b	LBB0_15
LBB0_20:
	ldr	x0, [x19]
	bl	_xstrdup
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_foreground,4,2                 ; @foreground
	.comm	_XLOG_FATAL,4,2                 ; @XLOG_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"am_unmounted: illegal use in background (%s)"

	.comm	_AMQ_UMNT_OK,4,2                ; @AMQ_UMNT_OK
	.comm	_amfs_link_ops,32,3             ; @amfs_link_ops
	.comm	_MFF_MKMNT,4,2                  ; @MFF_MKMNT
	.comm	_AMF_REMOUNT,4,2                ; @AMF_REMOUNT
	.comm	_XLOG_INFO,4,2                  ; @XLOG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"removing mountpoint directory '%s'"

	.comm	_NFDIR,8,3                      ; @NFDIR
	.comm	_VLOOK_CREATE,4,2               ; @VLOOK_CREATE
	.comm	_errno,4,2                      ; @errno
	.comm	_XLOG_ERROR,4,2                 ; @XLOG_ERROR
	.comm	_AMQ_UMNT_FAILED,4,2            ; @AMQ_UMNT_FAILED
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_AMF_AUTOFS,4,2                 ; @AMF_AUTOFS
	.comm	_MFF_IS_AUTOFS,4,2              ; @MFF_IS_AUTOFS
.subsections_via_symbols
