	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amfs_nfsx_umount
_amfs_nfsx_umount:                      ## @amfs_nfsx_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	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rsi), %r13
	movq	8(%r13), %r14
	movslq	(%r13), %rdx
	movq	%rdx, %rcx
	shlq	$4, %rcx
	leaq	(%r14,%rcx), %r15
	addq	$-16, %r15
	cmpq	%r14, %r15
	jb	LBB0_7
## %bb.1:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$-16, %r15
	movq	8(%r13), %r14
	cmpq	%r14, %r15
	jb	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r15)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rbx
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_dlog
	movq	16(%rbx), %rax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	*(%rax)
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	cmovnel	%eax, %r12d
	negl	%ecx
	movl	%ecx, (%r15)
	jmp	LBB0_4
LBB0_5:
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.16:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_amfs_nfsx_remount
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_XLOG_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_plog
LBB0_18:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_19
LBB0_6:
	movl	(%r13), %edx
LBB0_7:
	xorl	%eax, %eax
	testl	%edx, %edx
	jle	LBB0_19
## %bb.8:
	leaq	L_.str.2(%rip), %r15
	movq	_FS_MKMNT@GOTPCREL(%rip), %r12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	_free_mntfs
	movq	$0, 8(%r14)
	movl	$-1, (%r14)
	addq	$16, %r14
	movslq	(%r13), %rax
	shlq	$4, %rax
	addq	8(%r13), %rax
	cmpq	%rax, %r14
	jae	LBB0_15
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rbx
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_dlog
	movq	16(%rbx), %rax
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	callq	*%rax
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$0, (%r14)
	jns	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	8(%rbx), %edi
	callq	_rmdirs
	movq	_MFF_MKMNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%rbx)
	jmp	LBB0_14
LBB0_15:
	xorl	%eax, %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"calling underlying fumount on %s"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_errno,4,2                      ## @errno
	.comm	_XLOG_USER,4,2                  ## @XLOG_USER
L_.str.1:                               ## @.str.1
	.asciz	"amfs_nfsx: remount of %s failed: %m"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.2:                               ## @.str.2
	.asciz	"calling underlying umounted on %s"

	.comm	_FS_MKMNT,4,2                   ## @FS_MKMNT
	.comm	_MFF_MKMNT,4,2                  ## @MFF_MKMNT
	.no_dead_strip	_amfs_nfsx_umount
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amfs_nfsx_umount
_amfs_nfsx_umount:                      ; @amfs_nfsx_umount
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x23, [x1, #24]
	ldr	x22, [x23, #8]
	ldrsw	x8, [x23]
	add	x9, x22, x8, lsl #4
	sub	x24, x9, #16
	cmp	x24, x22
	b.lo	LBB0_10
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w25, #0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x24, x24, #16
	ldr	x22, [x23, #8]
	cmp	x24, x22
	b.lo	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	cbnz	w8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x22, [x24, #8]
	ldr	w1, [x22, #8]
	mov	x0, x21
	bl	_dlog
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x22
	blr	x8
	cmp	w0, #0
	csel	w25, w25, w0, eq
	csetm	w8, eq
	str	w8, [x24]
	b	LBB0_2
LBB0_5:
	cbz	w25, LBB0_9
; %bb.6:
Lloh2:
	adrp	x8, _TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_amfs_nfsx_remount
	cbz	w0, LBB0_8
; %bb.7:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	str	w0, [x8]
Lloh8:
	adrp	x8, _XLOG_USER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XLOG_USER@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_plog
LBB0_8:
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	b	LBB0_19
LBB0_9:
	ldr	w8, [x23]
LBB0_10:
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.11:
Lloh16:
	adrp	x21, _FS_MKMNT@GOTPAGE
Lloh17:
	ldr	x21, [x21, _FS_MKMNT@GOTPAGEOFF]
Lloh18:
	adrp	x24, _MFF_MKMNT@GOTPAGE
Lloh19:
	ldr	x24, [x24, _MFF_MKMNT@GOTPAGEOFF]
	mov	w25, #-1
Lloh20:
	adrp	x19, l_.str.2@PAGE
Lloh21:
	add	x19, x19, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	bl	_free_mntfs
	str	xzr, [x22, #8]
	str	w25, [x22], #16
	ldr	x8, [x23, #8]
	ldrsw	x9, [x23]
	add	x8, x8, x9, lsl #4
	cmp	x22, x8
	b.hs	LBB0_18
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x20, [x22, #8]
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_dlog
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x20
	blr	x8
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x22]
	tbz	w8, #31, LBB0_12
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x20, #8]
	bl	_rmdirs
	ldr	w8, [x24]
	ldr	w9, [x20, #4]
	bic	w8, w9, w8
	str	w8, [x20, #4]
	b	LBB0_12
LBB0_18:
	mov	w0, #0
LBB0_19:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"calling underlying fumount on %s"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_errno,4,2                      ; @errno
	.comm	_XLOG_USER,4,2                  ; @XLOG_USER
l_.str.1:                               ; @.str.1
	.asciz	"amfs_nfsx: remount of %s failed: %m"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.2:                               ; @.str.2
	.asciz	"calling underlying umounted on %s"

	.comm	_FS_MKMNT,4,2                   ; @FS_MKMNT
	.comm	_MFF_MKMNT,4,2                  ; @MFF_MKMNT
	.no_dead_strip	_amfs_nfsx_umount
.subsections_via_symbols
