	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __gfn_to_hva
___gfn_to_hva:                          ## @__gfn_to_hva
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	_KVM_MEMSLOT_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	popq	%rbp
	jmp	_bad_hva                        ## TAILCALL
LBB0_2:
	movslq	16(%rdi), %rax
	movslq	%esi, %rcx
	subq	%rax, %rcx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	%rcx, %rax
	addq	8(%rdi), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KVM_MEMSLOT_INVALID,4,2        ## @KVM_MEMSLOT_INVALID
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	___gfn_to_hva
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __gfn_to_hva
___gfn_to_hva:                          ; @__gfn_to_hva
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _KVM_MEMSLOT_INVALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _KVM_MEMSLOT_INVALID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	b	_bad_hva
LBB0_3:
	ldr	x8, [x0, #8]
	ldrsw	x9, [x0, #16]
	sxtw	x10, w1
	sub	x9, x10, x9
Lloh3:
	adrp	x10, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldrsw	x10, [x10]
	madd	x0, x9, x10, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_KVM_MEMSLOT_INVALID,4,2        ; @KVM_MEMSLOT_INVALID
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	___gfn_to_hva
.subsections_via_symbols
