	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nlm_get_vfs_state
_nlm_get_vfs_state:                     ## @nlm_get_vfs_state
	.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	%r8, %r14
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	$0, -48(%rbp)
	movq	$0, -64(%rbp)
	movq	%rcx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	4(%r12), %rdi
	callq	_vfs_getvfs
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	testq	%r14, %r14
	je	LBB0_7
## %bb.2:
	leaq	-52(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_VFS_CHECKEXP
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.3:
	movq	_MNT_EXRDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -52(%rbp)
	jne	LBB0_5
## %bb.4:
	movq	8(%r13), %rax
	movq	_MNT_RDONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
LBB0_5:
	movq	_EROFS@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %ebx
	jmp	LBB0_19
LBB0_6:
	movq	_ESTALE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_23
LBB0_7:
	movq	_LK_EXCLUSIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	4(%r13), %rcx
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%rcx, %r12
	callq	_VFS_FHTOVP
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.8:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	testq	%r14, %r14
	je	LBB0_16
## %bb.9:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_svc_getcred
	testl	%eax, %eax
	je	LBB0_17
## %bb.10:
	movq	-48(%rbp), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_12
## %bb.11:
	movq	_MNT_EXPORTANON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -52(%rbp)
	je	LBB0_13
LBB0_12:
	movq	%rdx, %rdi
	callq	_crfree
	movq	-64(%rbp), %rdx
	movq	%rdx, -48(%rbp)
	movq	$0, -64(%rbp)
LBB0_13:
	movl	(%r12), %edi
	movq	_curthread@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%r14, %rsi
	callq	_VOP_ACCESS
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	%eax, %ebx
	movq	_VWRITE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%r14, %rsi
	je	LBB0_19
## %bb.15:
	movl	(%r12), %edi
	movq	-48(%rbp), %rdx
	movl	(%r15), %ecx
	callq	_VOP_ACCESS
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
LBB0_16:
	movl	4(%r13), %edi
	movq	_curthread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_VOP_UNLOCK
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
LBB0_19:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	callq	_crfree
LBB0_21:
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	callq	_crfree
LBB0_23:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ESTALE,4,2                     ## @ESTALE
	.comm	_MNT_EXRDONLY,4,2               ## @MNT_EXRDONLY
	.comm	_MNT_RDONLY,4,2                 ## @MNT_RDONLY
	.comm	_EROFS,4,2                      ## @EROFS
	.comm	_LK_EXCLUSIVE,4,2               ## @LK_EXCLUSIVE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MNT_EXPORTANON,4,2             ## @MNT_EXPORTANON
	.comm	_curthread,4,2                  ## @curthread
	.comm	_VWRITE,8,3                     ## @VWRITE
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_nlm_get_vfs_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nlm_get_vfs_state
_nlm_get_vfs_state:                     ; @nlm_get_vfs_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	stp	xzr, xzr, [sp, #8]
	mov	x0, x3
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x0, x23, #4
	bl	_vfs_getvfs
	str	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.1:
	cbz	x20, LBB0_8
; %bb.2:
	add	x2, sp, #28
	add	x3, sp, #8
	mov	x1, x22
	mov	x4, #0
	mov	x5, #0
	bl	_VFS_CHECKEXP
	mov	x24, x0
	cbnz	w0, LBB0_18
; %bb.3:
	ldr	w8, [sp, #28]
Lloh0:
	adrp	x9, _MNT_EXRDONLY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MNT_EXRDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
	ldr	x0, [x19, #8]
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _MNT_RDONLY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MNT_RDONLY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_5:
Lloh6:
	adrp	x8, _EROFS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EROFS@GOTPAGEOFF]
LBB0_6:
	ldr	w24, [x8]
	ldr	x0, [sp, #16]
	cbnz	x0, LBB0_19
	b	LBB0_20
LBB0_7:
Lloh8:
	adrp	x8, _ESTALE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ESTALE@GOTPAGEOFF]
Lloh10:
	ldr	w24, [x8]
	b	LBB0_22
LBB0_8:
Lloh11:
	adrp	x8, _LK_EXCLUSIVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LK_EXCLUSIVE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x22, x19, #4
	mov	x1, x23
	mov	x3, x22
	bl	_VFS_FHTOVP
	mov	x24, x0
	cbnz	w0, LBB0_18
; %bb.9:
Lloh14:
	adrp	x8, _TRUE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19]
	cbz	x20, LBB0_17
; %bb.10:
	add	x1, sp, #16
	mov	x0, x21
	mov	x2, #0
	bl	_svc_getcred
	cbz	w0, LBB0_23
; %bb.11:
	ldr	x2, [sp, #16]
	ldr	x8, [x2]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	w8, [sp, #28]
Lloh17:
	adrp	x9, _MNT_EXPORTANON@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MNT_EXPORTANON@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
LBB0_13:
	mov	x0, x2
	bl	_crfree
	ldr	x2, [sp, #8]
	stp	xzr, x2, [sp, #8]
LBB0_14:
	ldr	w0, [x22]
Lloh20:
	adrp	x21, _curthread@GOTPAGE
Lloh21:
	ldr	x21, [x21, _curthread@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x1, x20
	bl	_VOP_ACCESS
	cbz	w0, LBB0_17
; %bb.15:
	mov	x24, x0
Lloh22:
	adrp	x8, _VWRITE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VWRITE@GOTPAGEOFF]
Lloh24:
	ldr	x1, [x8]
	cmp	x1, x20
	b.eq	LBB0_18
; %bb.16:
	ldr	w0, [x22]
	ldr	x2, [sp, #16]
	ldr	w3, [x21]
	bl	_VOP_ACCESS
	mov	x24, x0
	cbnz	w0, LBB0_18
LBB0_17:
	ldr	w0, [x19, #4]
Lloh25:
	adrp	x8, _curthread@GOTPAGE
Lloh26:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	x8, [sp]
	mov	w1, #0
	bl	_VOP_UNLOCK
	mov	w24, #0
Lloh28:
	adrp	x8, _FALSE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_18:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_20
LBB0_19:
	bl	_crfree
LBB0_20:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_22
; %bb.21:
	bl	_crfree
LBB0_22:
	mov	x0, x24
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_23:
Lloh31:
	adrp	x8, _EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ESTALE,4,2                     ; @ESTALE
	.comm	_MNT_EXRDONLY,4,2               ; @MNT_EXRDONLY
	.comm	_MNT_RDONLY,4,2                 ; @MNT_RDONLY
	.comm	_EROFS,4,2                      ; @EROFS
	.comm	_LK_EXCLUSIVE,4,2               ; @LK_EXCLUSIVE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MNT_EXPORTANON,4,2             ; @MNT_EXPORTANON
	.comm	_curthread,4,2                  ; @curthread
	.comm	_VWRITE,8,3                     ; @VWRITE
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_nlm_get_vfs_state
.subsections_via_symbols
