	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_is_visible_gfn             ## -- Begin function kvm_is_visible_gfn
	.p2align	4, 0x90
_kvm_is_visible_gfn:                    ## @kvm_is_visible_gfn
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_rcu_dereference
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_unalias_gfn_instantiation
	movq	_KVM_MEMORY_SLOTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%esi, %esi
	jle	LBB0_7
## %bb.1:
	movq	(%r14), %rcx
	movq	_KVM_MEMSLOT_INVALID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shlq	$3, %rsi
	leaq	(%rsi,%rsi,2), %rsi
	xorl	%edi, %edi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$24, %rdi
	cmpq	%rdi, %rsi
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edx, (%rcx,%rdi)
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rcx,%rdi), %rbx
	cmpq	%rbx, %rax
	jl	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	16(%rcx,%rdi), %rbx
	cmpq	%rbx, %rax
	jge	LBB0_6
## %bb.5:
	movl	$1, %eax
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KVM_MEMORY_SLOTS,4,2           ## @KVM_MEMORY_SLOTS
	.comm	_KVM_MEMSLOT_INVALID,4,2        ## @KVM_MEMSLOT_INVALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_is_visible_gfn             ; -- Begin function kvm_is_visible_gfn
	.p2align	2
_kvm_is_visible_gfn:                    ; @kvm_is_visible_gfn
	.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	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_rcu_dereference
	mov	x19, x0
	mov	x0, x21
	mov	x1, x20
	bl	_unalias_gfn_instantiation
Lloh0:
	adrp	x8, _KVM_MEMORY_SLOTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KVM_MEMORY_SLOTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	ldr	x10, [x19]
Lloh3:
	adrp	x9, _KVM_MEMSLOT_INVALID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _KVM_MEMSLOT_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	x10, x10, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #24
	subs	x8, x8, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x10, #-8]
	tst	w9, w11
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x10]
	cmp	x0, x11
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x10, #8]
	add	x11, x12, x11
	cmp	x0, x11
	b.ge	LBB0_2
; %bb.6:
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_KVM_MEMORY_SLOTS,4,2           ; @KVM_MEMORY_SLOTS
	.comm	_KVM_MEMSLOT_INVALID,4,2        ; @KVM_MEMSLOT_INVALID
.subsections_via_symbols
