	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_mount
_handle_mount:                          ## @handle_mount
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	52(%rdi), %edi
	leaq	-60(%rbp), %rdx
	movl	$2049, %esi                     ## imm = 0x801
	callq	_nfs41_server_resolve
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
LBB0_2:
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_eprintf
LBB0_3:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r14), %rdi
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rdi
	je	LBB0_8
## %bb.5:
	movq	%rdi, -32(%rbp)
LBB0_6:
	leaq	-60(%rbp), %rsi
	leaq	-72(%rbp), %r8
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_nfs41_root_mount_addrs
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_eprintf
	jmp	LBB0_16
LBB0_8:
	movl	48(%r14), %esi
	movl	52(%r14), %edi
	movq	_WRITE_OVERHEAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	40(%r14), %rdx
	movq	_READ_OVERHEAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	32(%r14), %rcx
	leaq	-32(%rbp), %r8
	callq	_nfs41_root_create
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_10:
	leaq	-48(%rbp), %rdi
	callq	_InitializeSRWLock
	movl	-52(%rbp), %edi
	movq	_NFS41_MAX_PATH_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r14), %edx
	callq	_StringCchCopyA
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	_ERROR_FILENAME_EXCED_RANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movl	12(%r14), %eax
	movq	-32(%rbp), %rdi
	movl	%eax, 4(%rdi)
	movl	8(%r14), %eax
	movl	%eax, (%rdi)
	jmp	LBB0_6
LBB0_13:
	movl	-52(%rbp), %edi
	callq	_strlen
	movw	%ax, -56(%rbp)
	movq	-32(%rbp), %rdi
	movq	-72(%rbp), %rax
	movq	(%rax), %rsi
	movq	$0, (%rsp)
	leaq	-56(%rbp), %rdx
	leaq	-40(%rbp), %r8
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_nfs41_lookup
	testl	%eax, %eax
	je	LBB0_18
## %bb.14:
	movl	-52(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_eprintf
	movq	_ERROR_BAD_NETPATH@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %ebx
LBB0_16:
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	jne	LBB0_3
## %bb.17:
	movq	-32(%rbp), %rdi
	callq	_nfs41_root_deref
	jmp	LBB0_3
LBB0_18:
	movl	-40(%rbp), %edi
	leaq	20(%r14), %rsi
	callq	_nfs41_superblock_fs_attributes
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	jne	LBB0_20
## %bb.19:
	movq	-32(%rbp), %rdi
	callq	_nfs41_root_ref
LBB0_20:
	movq	-32(%rbp), %rax
	movq	%rax, (%r14)
	movq	-72(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nfs41_server_resolve() failed with %d\n"

	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_WRITE_OVERHEAD,8,3             ## @WRITE_OVERHEAD
	.comm	_READ_OVERHEAD,8,3              ## @READ_OVERHEAD
L_.str.1:                               ## @.str.1
	.asciz	"nfs41_root_create() failed %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"nfs41_root_mount_addrs() failed with %d\n"

	.comm	_NFS41_MAX_PATH_LEN,4,2         ## @NFS41_MAX_PATH_LEN
	.comm	_ERROR_FILENAME_EXCED_RANGE,4,2 ## @ERROR_FILENAME_EXCED_RANGE
L_.str.3:                               ## @.str.3
	.asciz	"nfs41_lookup('%s') failed with %d\n"

	.comm	_ERROR_BAD_NETPATH,4,2          ## @ERROR_BAD_NETPATH
	.no_dead_strip	_handle_mount
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_mount
_handle_mount:                          ; @handle_mount
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x0
	ldr	w0, [x0, #52]
	add	x2, sp, #44
	mov	w1, #2049
	bl	_nfs41_server_resolve
	cbz	w0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	mov	x1, x20
	bl	_eprintf
LBB0_3:
	mov	x0, x20
	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
	add	sp, sp, #112
	ret
LBB0_4:
	ldr	x0, [x19]
Lloh2:
	adrp	x21, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.5:
	str	x0, [sp, #32]
LBB0_6:
	add	x1, sp, #44
	add	x4, sp, #24
	mov	w2, #0
	mov	w3, #0
	bl	_nfs41_root_mount_addrs
	cbz	w0, LBB0_10
; %bb.7:
	mov	x20, x0
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_eprintf
	b	LBB0_16
LBB0_8:
	ldp	w1, w0, [x19, #48]
Lloh6:
	adrp	x8, _WRITE_OVERHEAD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WRITE_OVERHEAD@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldp	x10, x9, [x19, #32]
	add	x2, x8, x9
Lloh9:
	adrp	x8, _READ_OVERHEAD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _READ_OVERHEAD@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x3, x8, x10
	add	x4, sp, #32
	bl	_nfs41_root_create
	cbz	w0, LBB0_12
; %bb.9:
	mov	x20, x0
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_10:
	add	x8, sp, #48
	add	x0, x8, #8
	bl	_InitializeSRWLock
	ldr	w0, [sp, #52]
Lloh14:
	adrp	x8, _NFS41_MAX_PATH_LEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NFS41_MAX_PATH_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
	bl	_StringCchCopyA
	bl	_FAILED
	cbz	x0, LBB0_13
; %bb.11:
Lloh17:
	adrp	x8, _ERROR_FILENAME_EXCED_RANGE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERROR_FILENAME_EXCED_RANGE@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:
	ldr	x0, [sp, #32]
	ldr	d0, [x19, #8]
	str	d0, [x0]
	b	LBB0_6
LBB0_13:
	ldr	w0, [sp, #52]
	bl	_strlen
	strh	w0, [sp, #48]
	ldp	x8, x0, [sp, #24]
	ldr	x1, [x8]
	add	x2, sp, #48
	add	x4, sp, #16
	mov	x3, #0
	mov	x5, #0
	mov	x6, #0
	bl	_nfs41_lookup
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_18
; %bb.14:
	ldr	w1, [sp, #52]
	str	x0, [sp]
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_eprintf
Lloh21:
	adrp	x8, _ERROR_BAD_NETPATH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERROR_BAD_NETPATH@GOTPAGEOFF]
LBB0_15:
	ldr	w20, [x8]
LBB0_16:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.17:
	ldr	x0, [sp, #32]
	bl	_nfs41_root_deref
	b	LBB0_3
LBB0_18:
	ldr	w0, [sp, #16]
	add	x1, x19, #20
	bl	_nfs41_superblock_fs_attributes
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.19:
	ldr	x0, [sp, #32]
	bl	_nfs41_root_ref
LBB0_20:
	mov	w20, #0
	ldr	x8, [sp, #32]
	str	x8, [x19]
	ldr	x8, [sp, #24]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x19, #16]
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nfs41_server_resolve() failed with %d\n"

	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_WRITE_OVERHEAD,8,3             ; @WRITE_OVERHEAD
	.comm	_READ_OVERHEAD,8,3              ; @READ_OVERHEAD
l_.str.1:                               ; @.str.1
	.asciz	"nfs41_root_create() failed %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"nfs41_root_mount_addrs() failed with %d\n"

	.comm	_NFS41_MAX_PATH_LEN,4,2         ; @NFS41_MAX_PATH_LEN
	.comm	_ERROR_FILENAME_EXCED_RANGE,4,2 ; @ERROR_FILENAME_EXCED_RANGE
l_.str.3:                               ; @.str.3
	.asciz	"nfs41_lookup('%s') failed with %d\n"

	.comm	_ERROR_BAD_NETPATH,4,2          ; @ERROR_BAD_NETPATH
	.no_dead_strip	_handle_mount
.subsections_via_symbols
