	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hva_to_pfn                     ## -- Begin function hva_to_pfn
	.p2align	4, 0x90
_hva_to_pfn:                            ## @hva_to_pfn
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	xorl	%eax, %eax
	callq	_might_sleep
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_get_user_pages_fast
	xorl	%edi, %edi
	cmpl	$1, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	_current@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_down_read
	movq	%rbx, %rdi
	callq	_check_user_page_hwpoison
	movq	(%r14), %rcx
	movq	(%rcx), %rdi
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	callq	_up_read
	movq	_hwpoison_page@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
LBB0_9:
	movq	-32(%rbp), %rdi
	jmp	LBB0_10
LBB0_4:
	movq	%rbx, %rsi
	callq	_find_vma
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	(%rax), %rcx
	cmpq	%rbx, %rcx
	ja	LBB0_7
## %bb.6:
	movq	_VM_PFNMAP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 8(%rax)
	je	LBB0_7
## %bb.8:
	subq	%rcx, %rbx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrq	%cl, %rbx
	addq	16(%rax), %rbx
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_up_read
	movq	%rbx, %rdi
	callq	_kvm_is_mmio_pfn
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	jmp	LBB0_11
LBB0_7:
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_up_read
	movq	_fault_page@GOTPCREL(%rip), %rbx
LBB0_3:
	movq	(%rbx), %rdi
	callq	_get_page
	movq	(%rbx), %rdi
LBB0_10:
	callq	_page_to_pfn
	movq	%rax, %rbx
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_hwpoison_page,8,3              ## @hwpoison_page
	.comm	_VM_PFNMAP,4,2                  ## @VM_PFNMAP
	.comm	_fault_page,8,3                 ## @fault_page
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hva_to_pfn                     ; -- Begin function hva_to_pfn
	.p2align	2
_hva_to_pfn:                            ; @hva_to_pfn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_might_sleep
	mov	x3, sp
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_get_user_pages_fast
	cmp	w0, #1
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x20, _current@GOTPAGE
Lloh4:
	ldr	x20, [x20, _current@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_down_read
	mov	x0, x19
	bl	_check_user_page_hwpoison
	mov	x8, x0
	ldr	x9, [x20]
	ldr	x0, [x9]
	cbz	x8, LBB0_4
; %bb.2:
	bl	_up_read
Lloh5:
	adrp	x19, _hwpoison_page@GOTPAGE
Lloh6:
	ldr	x19, [x19, _hwpoison_page@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
	ldr	x0, [sp]
	b	LBB0_10
LBB0_4:
	mov	x1, x19
	bl	_find_vma
	cbz	x0, LBB0_8
; %bb.5:
	ldr	x8, [x0]
	cmp	x8, x19
	b.hi	LBB0_8
; %bb.6:
	ldr	w9, [x0, #8]
Lloh7:
	adrp	x10, _VM_PFNMAP@GOTPAGE
Lloh8:
	ldr	x10, [x10, _VM_PFNMAP@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.7:
	sub	x8, x19, x8
Lloh10:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	lsr	x8, x8, x9
	ldr	x9, [x0, #16]
	add	x19, x8, x9
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_up_read
	mov	x0, x19
	bl	_kvm_is_mmio_pfn
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	b	LBB0_11
LBB0_8:
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_up_read
Lloh13:
	adrp	x19, _fault_page@GOTPAGE
Lloh14:
	ldr	x19, [x19, _fault_page@GOTPAGEOFF]
LBB0_9:
	ldr	x0, [x19]
	bl	_get_page
	ldr	x0, [x19]
LBB0_10:
	bl	_page_to_pfn
	mov	x19, x0
LBB0_11:
	ldr	x8, [sp, #8]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_hwpoison_page,8,3              ; @hwpoison_page
	.comm	_VM_PFNMAP,4,2                  ; @VM_PFNMAP
	.comm	_fault_page,8,3                 ; @fault_page
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
.subsections_via_symbols
