	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfn_to_rmap
_gfn_to_rmap:                           ## @gfn_to_rmap
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	callq	_gfn_to_memslot
	movq	%rax, %r15
	movq	_PT_PAGE_TABLE_LEVEL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r14d, (%rax)
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	subq	8(%r15), %rbx
	shlq	$3, %rbx
	addq	(%r15), %rbx
	jmp	LBB0_9
LBB0_2:
	movl	%r14d, %edi
	callq	_KVM_PAGES_PER_HPAGE
	movq	%rax, %rcx
	orq	%rbx, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %rbx
	jmp	LBB0_5
LBB0_3:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ebx
LBB0_5:
	movq	8(%r15), %r12
	movl	%r14d, %edi
	callq	_KVM_PAGES_PER_HPAGE
	movq	%rax, %rcx
	orq	%r12, %rax
	shrq	$32, %rax
	je	LBB0_6
## %bb.7:
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_8
LBB0_6:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_8:
	subq	%rax, %rbx
	movq	16(%r15), %rax
	movslq	%r14d, %rcx
	shlq	$3, %rbx
	addq	-16(%rax,%rcx,8), %rbx
LBB0_9:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PT_PAGE_TABLE_LEVEL,4,2        ## @PT_PAGE_TABLE_LEVEL
	.no_dead_strip	_gfn_to_rmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfn_to_rmap
_gfn_to_rmap:                           ; @gfn_to_rmap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	bl	_gfn_to_memslot
	mov	x21, x0
Lloh0:
	adrp	x8, _PT_PAGE_TABLE_LEVEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PT_PAGE_TABLE_LEVEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x8, x9, [x21]
	sub	x9, x20, x9
	add	x0, x8, x9, lsl #3
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_KVM_PAGES_PER_HPAGE
	ldr	x22, [x21, #8]
	udiv	x20, x20, x0
	mov	x0, x19
	bl	_KVM_PAGES_PER_HPAGE
	udiv	x8, x22, x0
	sub	x8, x20, x8
	ldr	x9, [x21, #16]
	sub	w10, w19, #2
	ldr	x9, [x9, w10, sxtw #3]
	add	x0, x9, x8, lsl #3
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PT_PAGE_TABLE_LEVEL,4,2        ; @PT_PAGE_TABLE_LEVEL
	.no_dead_strip	_gfn_to_rmap
.subsections_via_symbols
