	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amfs_host_umounted
_amfs_host_umounted:                    ## @amfs_host_umounted
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_RPC_ANYSOCK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -36(%rbp)
	cmpq	$0, 16(%rdi)
	jne	LBB0_16
## %bb.1:
	cmpl	$1, (%rdi)
	jg	LBB0_16
## %bb.2:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.3:
	movq	_MFF_WEBNFS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rdi)
	je	LBB0_4
## %bb.17:
	movq	_XLOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_plog                           ## TAILCALL
LBB0_4:
	movq	(%rax), %r14
	movq	16(%rax), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -40(%rbp)
	movq	_XLOG_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	8(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_plog
	movq	_MOUNTVERS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$10, -56(%rbp)
	movq	$0, -48(%rbp)
	leaq	-40(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	leaq	-36(%rbp), %rcx
	movq	%r14, %rdi
	callq	_get_mount_client
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_nfs_auth@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_7
LBB0_9:
	movq	%rax, (%r15)
	leaq	L_.str.3(%rip), %rdi
	movq	%r14, %rsi
	callq	_dlog
	movq	_MOUNTPROC_UMNTALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_xdr_void@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movups	-56(%rbp), %xmm0
	movups	%xmm0, (%rsp)
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	movl	%edx, %r8d
	xorl	%r9d, %r9d
	callq	_clnt_call
	movq	_RPC_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.10:
	movq	_RPC_SYSTEMERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %edi
	callq	_clnt_sperrno
	movq	_XLOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_plog
	jmp	LBB0_12
LBB0_5:
	movq	_XLOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_plog
	jmp	LBB0_12
LBB0_7:
	xorl	%eax, %eax
	callq	_make_nfs_auth
	testq	%rax, %rax
	je	LBB0_8
LBB0_12:
	movl	-36(%rbp), %edi
	cmpl	(%rbx), %edi
	je	LBB0_14
## %bb.13:
	callq	_amu_close
LBB0_14:
	testq	%r15, %r15
	je	LBB0_16
## %bb.15:
	movq	%r15, %rdi
	callq	_clnt_destroy
LBB0_16:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%r12), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_RPC_ANYSOCK,4,2                ## @RPC_ANYSOCK
	.comm	_MFF_WEBNFS,4,2                 ## @MFF_WEBNFS
	.comm	_XLOG_ERROR,4,2                 ## @XLOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"amfs_host_umounted: cannot support WebNFS"

	.comm	_XLOG_INFO,4,2                  ## @XLOG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"amfs_host_umounted: NFS version %d"

	.comm	_MOUNTVERS,4,2                  ## @MOUNTVERS
L_.str.2:                               ## @.str.2
	.asciz	"get_mount_client failed for %s"

	.comm	_nfs_auth,8,3                   ## @nfs_auth
L_.str.3:                               ## @.str.3
	.asciz	"Unmounting all from %s"

	.comm	_MOUNTPROC_UMNTALL,4,2          ## @MOUNTPROC_UMNTALL
	.comm	_xdr_void,8,3                   ## @xdr_void
	.comm	_RPC_SUCCESS,4,2                ## @RPC_SUCCESS
	.comm	_RPC_SYSTEMERROR,4,2            ## @RPC_SYSTEMERROR
L_.str.4:                               ## @.str.4
	.asciz	"unmount all from %s rpc failed: %s"

	.comm	_AM_MOUNTVERS3,4,2              ## @AM_MOUNTVERS3
	.comm	_NFS_VERSION3,8,3               ## @NFS_VERSION3
	.no_dead_strip	_amfs_host_umounted
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amfs_host_umounted
_amfs_host_umounted:                    ; @amfs_host_umounted
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
Lloh0:
	adrp	x21, _RPC_ANYSOCK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _RPC_ANYSOCK@GOTPAGEOFF]
	ldr	w8, [x21]
	str	w8, [sp, #36]
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_16
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, #1
	b.gt	LBB0_16
; %bb.2:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_16
; %bb.3:
	ldr	w9, [x0, #4]
Lloh2:
	adrp	x10, _MFF_WEBNFS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MFF_WEBNFS@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _XLOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XLOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	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
	add	sp, sp, #96
	b	_plog
LBB0_5:
	ldr	x9, [x8, #16]
	ldr	w9, [x9]
	str	w9, [sp, #40]
Lloh10:
	adrp	x9, _XLOG_INFO@GOTPAGE
Lloh11:
	ldr	x9, [x9, _XLOG_INFO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x9]
	ldp	x20, x8, [x8]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_plog
Lloh15:
	adrp	x8, _MOUNTVERS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MOUNTVERS@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	mov	w8, #10
	str	w8, [sp, #16]
	str	xzr, [sp, #24]
	add	x1, sp, #40
	add	x2, sp, #16
	add	x3, sp, #36
	mov	x0, x20
	bl	_get_mount_client
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.6:
Lloh18:
	adrp	x22, _nfs_auth@GOTPAGE
Lloh19:
	ldr	x22, [x22, _nfs_auth@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_17
LBB0_7:
	str	x8, [x19]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_dlog
Lloh22:
	adrp	x8, _MOUNTPROC_UMNTALL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MOUNTPROC_UMNTALL@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _xdr_void@GOTPAGE
Lloh26:
	ldr	x8, [x8, _xdr_void@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	ldp	x6, x7, [sp, #16]
	mov	x0, x19
	mov	w3, #0
	mov	x4, x2
	mov	w5, #0
	bl	_clnt_call
Lloh28:
	adrp	x8, _RPC_SUCCESS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _RPC_SUCCESS@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_12
; %bb.8:
Lloh31:
	adrp	x8, _RPC_SYSTEMERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _RPC_SYSTEMERROR@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_12
; %bb.9:
	bl	_clnt_sperrno
Lloh34:
	adrp	x8, _XLOG_ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _XLOG_ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	stp	x20, x0, [sp]
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x8
	b	LBB0_11
LBB0_10:
Lloh39:
	adrp	x8, _XLOG_ERROR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _XLOG_ERROR@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh42:
	adrp	x1, l_.str.2@PAGE
Lloh43:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	bl	_plog
LBB0_12:
	ldr	w0, [sp, #36]
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_14
; %bb.13:
	bl	_amu_close
LBB0_14:
	cbz	x19, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_clnt_destroy
LBB0_16:
	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
	add	sp, sp, #96
	ret
LBB0_17:
	bl	_make_nfs_auth
	cbnz	x0, LBB0_12
; %bb.18:
	ldr	x8, [x22]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_RPC_ANYSOCK,4,2                ; @RPC_ANYSOCK
	.comm	_MFF_WEBNFS,4,2                 ; @MFF_WEBNFS
	.comm	_XLOG_ERROR,4,2                 ; @XLOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"amfs_host_umounted: cannot support WebNFS"

	.comm	_XLOG_INFO,4,2                  ; @XLOG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"amfs_host_umounted: NFS version %d"

	.comm	_MOUNTVERS,4,2                  ; @MOUNTVERS
l_.str.2:                               ; @.str.2
	.asciz	"get_mount_client failed for %s"

	.comm	_nfs_auth,8,3                   ; @nfs_auth
l_.str.3:                               ; @.str.3
	.asciz	"Unmounting all from %s"

	.comm	_MOUNTPROC_UMNTALL,4,2          ; @MOUNTPROC_UMNTALL
	.comm	_xdr_void,8,3                   ; @xdr_void
	.comm	_RPC_SUCCESS,4,2                ; @RPC_SUCCESS
	.comm	_RPC_SYSTEMERROR,4,2            ; @RPC_SYSTEMERROR
l_.str.4:                               ; @.str.4
	.asciz	"unmount all from %s rpc failed: %s"

	.comm	_AM_MOUNTVERS3,4,2              ; @AM_MOUNTVERS3
	.comm	_NFS_VERSION3,8,3               ; @NFS_VERSION3
	.no_dead_strip	_amfs_host_umounted
.subsections_via_symbols
