	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amfs_nfsx_remount
_amfs_nfsx_remount:                     ## @amfs_nfsx_remount
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	32(%rsi), %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, 24(%r15)
	cmpl	$0, (%r15)
	jle	LBB0_1
## %bb.2:
	movq	16(%r15), %r14
	movl	$-1, %r13d
	movq	_MFF_MOUNTING@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_mf_mounted
	movl	$0, (%r14)
	xorl	%r13d, %r13d
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %r14
	movslq	(%r15), %rax
	shlq	$4, %rax
	addq	16(%r15), %rax
	cmpq	%rax, %r14
	jae	LBB0_22
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r12
	movl	(%r12), %eax
	testl	%eax, (%rbx)
	jne	LBB0_22
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MFF_MOUNTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, (%r14)
	jns	LBB0_21
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MFF_MKMNT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r12), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dlog
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_foreground@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_FS_MBACKGROUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	jne	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_dlog
	movq	16(%r12), %rax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	*(%rax)
	movl	%eax, (%r14)
	testl	%eax, %eax
	jle	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r12), %ebx
	movl	%eax, %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dlog
	movl	(%r14), %eax
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%r13d, %r13d
	cmovsl	%eax, %r13d
	jmp	LBB0_20
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_FS_MKMNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r12), %edi
	movl	$365, %esi                      ## imm = 0x16D
	callq	_mkdirs
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_MFF_MKMNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	jmp	LBB0_11
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_MFF_MOUNTING@GOTPCREL(%rip), %rbx
	jmp	LBB0_21
LBB0_1:
	movl	$-1, %r13d
LBB0_22:
	xorl	%eax, %eax
	testl	%r13d, %r13d
	cmovgl	%r13d, %eax
LBB0_23:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	(%rbx), %eax
	orl	%eax, (%r12)
	movl	24(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_dlog
	movq	%r14, 8(%r15)
	movq	_try_amfs_nfsx_mount@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_amfs_nfsx_cont@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %esi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_run_task
	movl	$-1, (%r14)
	movl	$-1, %eax
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_MFF_MOUNTING,4,2               ## @MFF_MOUNTING
	.comm	_MFF_MOUNTED,4,2                ## @MFF_MOUNTED
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_MFF_MKMNT,4,2                  ## @MFF_MKMNT
	.comm	_FS_MKMNT,4,2                   ## @FS_MKMNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"calling underlying mount on %s"

	.comm	_foreground,8,3                 ## @foreground
	.comm	_FS_MBACKGROUND,4,2             ## @FS_MBACKGROUND
L_.str.1:                               ## @.str.1
	.asciz	"backgrounding mount of \"%s\""

	.comm	_try_amfs_nfsx_mount,4,2        ## @try_amfs_nfsx_mount
	.comm	_amfs_nfsx_cont,4,2             ## @amfs_nfsx_cont
L_.str.2:                               ## @.str.2
	.asciz	"foreground mount of \"%s\" ..."

L_.str.3:                               ## @.str.3
	.asciz	"underlying fmount of %s failed: %s"

	.no_dead_strip	_amfs_nfsx_remount
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amfs_nfsx_remount
_amfs_nfsx_remount:                     ; @amfs_nfsx_remount
	.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
	ldr	x27, [x1, #32]
	str	x0, [x27, #24]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x26, [x27, #16]
	mov	w28, #-1
Lloh0:
	adrp	x24, _MFF_MOUNTING@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MFF_MOUNTING@GOTPAGEOFF]
Lloh2:
	adrp	x22, _MFF_MOUNTED@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MFF_MOUNTED@GOTPAGEOFF]
Lloh4:
	adrp	x23, _FALSE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x23]
	mov	x0, x25
	bl	_mf_mounted
	mov	w28, #0
	str	wzr, [x26]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #16
	ldr	x8, [x27, #16]
	ldrsw	x9, [x27]
	add	x8, x8, x9, lsl #4
	cmp	x26, x8
	b.hs	LBB0_18
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x26, #8]
	ldr	w8, [x25]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_18
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x26]
	tbz	w9, #31, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh6:
	adrp	x9, _MFF_MKMNT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MFF_MKMNT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x25, #8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dlog
	cbnz	w20, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh11:
	adrp	x8, _foreground@GOTPAGE
Lloh12:
	ldr	x8, [x8, _foreground@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25, #4]
Lloh14:
	adrp	x9, _FS_MBACKGROUND@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FS_MBACKGROUND@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_20
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x19, #24]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dlog
	ldr	x8, [x25, #16]
	ldr	x8, [x8]
	mov	x0, x21
	mov	x1, x25
	blr	x8
	str	w0, [x26]
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w25, [x25, #8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x25
	bl	_dlog
	ldr	w0, [x26]
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w28, #0
	csel	w8, w0, w28, lt
	cmp	w0, #0
	csel	w28, wzr, w8, eq
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25, #4]
Lloh21:
	adrp	x9, _FS_MKMNT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _FS_MKMNT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25, #8]
	mov	w1, #365
	bl	_mkdirs
	cbnz	w0, LBB0_8
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh24:
	adrp	x8, _MFF_MKMNT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MFF_MKMNT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [x25]
	orr	w8, w9, w8
	str	w8, [x25]
	b	LBB0_8
LBB0_17:
	mov	w28, #-1
LBB0_18:
	cmp	w28, #0
	csel	w0, w28, wzr, gt
LBB0_19:
	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
LBB0_20:
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	str	w8, [x25]
	ldr	w1, [x25, #24]
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dlog
	str	x26, [x27, #8]
Lloh29:
	adrp	x8, _try_amfs_nfsx_mount@GOTPAGE
Lloh30:
	ldr	x8, [x8, _try_amfs_nfsx_mount@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
Lloh32:
	adrp	x8, _amfs_nfsx_cont@GOTPAGE
Lloh33:
	ldr	x8, [x8, _amfs_nfsx_cont@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x1, x25
	mov	x3, x19
	bl	_run_task
	mov	w8, #-1
	str	w8, [x26]
	mov	w0, #-1
	b	LBB0_19
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MFF_MOUNTING,4,2               ; @MFF_MOUNTING
	.comm	_MFF_MOUNTED,4,2                ; @MFF_MOUNTED
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_MFF_MKMNT,4,2                  ; @MFF_MKMNT
	.comm	_FS_MKMNT,4,2                   ; @FS_MKMNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"calling underlying mount on %s"

	.comm	_foreground,8,3                 ; @foreground
	.comm	_FS_MBACKGROUND,4,2             ; @FS_MBACKGROUND
l_.str.1:                               ; @.str.1
	.asciz	"backgrounding mount of \"%s\""

	.comm	_try_amfs_nfsx_mount,4,2        ; @try_amfs_nfsx_mount
	.comm	_amfs_nfsx_cont,4,2             ; @amfs_nfsx_cont
l_.str.2:                               ; @.str.2
	.asciz	"foreground mount of \"%s\" ..."

l_.str.3:                               ; @.str.3
	.asciz	"underlying fmount of %s failed: %s"

	.no_dead_strip	_amfs_nfsx_remount
.subsections_via_symbols
