	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_vma
_check_vma:                             ## @check_vma
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movl	(%rdi), %edi
	callq	_dax_alive
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	addq	$4, %r15
	movl	(%rbx), %eax
	movq	_VM_MAYSHARE@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	notl	%edx
	testl	%edx, (%rcx)
	jne	LBB0_3
## %bb.4:
	movslq	(%r12), %rcx
	decq	%rcx
	movq	8(%rbx), %r8
	movq	16(%rbx), %r9
	movq	%r8, %rdx
	orq	%r9, %rdx
	testq	%rcx, %rdx
	jne	LBB0_5
## %bb.6:
	movq	_PFN_DEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_PFN_MAP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	andl	4(%r12), %edx
	cmpl	%ecx, %edx
	jne	LBB0_9
## %bb.7:
	movq	_VM_DONTCOPY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
LBB0_9:
	movq	%rbx, %rdi
	callq	_vma_is_dax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.10:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_11
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_3:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
LBB0_11:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_dev_info_ratelimited
	jmp	LBB0_12
LBB0_5:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movq	%rcx, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_dev_info_ratelimited
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_13:
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_VM_MAYSHARE,4,2                ## @VM_MAYSHARE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s: fail, attempted private mapping\n"

	.comm	_current,8,3                    ## @current
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"%s: %s: fail, unaligned vma (%#lx - %#lx, %#lx)\n"

	.comm	_PFN_DEV,4,2                    ## @PFN_DEV
	.comm	_PFN_MAP,4,2                    ## @PFN_MAP
	.comm	_VM_DONTCOPY,4,2                ## @VM_DONTCOPY
L_.str.2:                               ## @.str.2
	.asciz	"%s: %s: fail, dax range requires MADV_DONTFORK\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s: %s: fail, vma is not DAX capable\n"

	.no_dead_strip	_check_vma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_vma
_check_vma:                             ; @check_vma
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x22, [x0, #8]
	ldr	w0, [x0]
	bl	_dax_alive
	cbz	w0, LBB0_7
; %bb.1:
	add	x20, x20, #4
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _VM_MAYSHARE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VM_MAYSHARE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_8
; %bb.2:
	ldrsw	x9, [x22]
	sub	x10, x9, #1
	ldp	x9, x11, [x21, #8]
	orr	x12, x9, x11
	tst	x12, x10
	b.ne	LBB0_9
; %bb.3:
	ldr	w9, [x22, #4]
Lloh3:
	adrp	x10, _PFN_DEV@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PFN_DEV@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _PFN_MAP@GOTPAGE
Lloh7:
	ldr	x11, [x11, _PFN_MAP@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w11, w11, w10
	and	w9, w11, w9
	cmp	w9, w10
	b.ne	LBB0_5
; %bb.4:
Lloh9:
	adrp	x9, _VM_DONTCOPY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VM_DONTCOPY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_5:
	mov	x0, x21
	bl	_vma_is_dax
	cbz	w0, LBB0_10
; %bb.6:
	mov	w0, #0
	b	LBB0_14
LBB0_7:
Lloh12:
	adrp	x8, _ENXIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
Lloh14:
	adrp	x8, _current@GOTPAGE
Lloh15:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w2, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_9:
Lloh19:
	adrp	x8, _current@GOTPAGE
Lloh20:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	w2, [x8]
	stp	x11, x10, [sp, #8]
	str	x9, [sp]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh24:
	adrp	x8, _current@GOTPAGE
Lloh25:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	w2, [x8]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh29:
	adrp	x8, _current@GOTPAGE
Lloh30:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	ldr	w2, [x8]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_12:
	mov	x0, x20
	mov	x3, x19
	bl	_dev_info_ratelimited
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_VM_MAYSHARE,4,2                ; @VM_MAYSHARE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s: fail, attempted private mapping\n"

	.comm	_current,8,3                    ; @current
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"%s: %s: fail, unaligned vma (%#lx - %#lx, %#lx)\n"

	.comm	_PFN_DEV,4,2                    ; @PFN_DEV
	.comm	_PFN_MAP,4,2                    ; @PFN_MAP
	.comm	_VM_DONTCOPY,4,2                ; @VM_DONTCOPY
l_.str.2:                               ; @.str.2
	.asciz	"%s: %s: fail, dax range requires MADV_DONTFORK\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s: %s: fail, vma is not DAX capable\n"

	.no_dead_strip	_check_vma
.subsections_via_symbols
