	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvm_handle_hva
_kvm_handle_hva:                        ## @kvm_handle_hva
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edi
	callq	_rcu_dereference
	cmpl	$0, (%rax)
	jle	LBB0_16
## %bb.1:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %r15d
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rcx
	movl	%r15d, %ebx
	cmpq	%rcx, %r13
	jge	LBB0_17
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	8(%rax), %r12
	leaq	(,%r13,4), %r14
	addq	%r13, %r14
	movq	(%r12,%r14,8), %rax
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rsi, %rax
	ja	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%r12,%r14,8), %rdx
	shlq	%cl, %rdx
	addq	%rax, %rdx
	cmpq	%rsi, %rdx
	jbe	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	subq	%rax, %rsi
                                        ## kill: def $cl killed $cl killed $rcx
	shrq	%cl, %rsi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	leaq	(,%rsi,8), %rsi
	addq	16(%r12,%r14,8), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	*-48(%rbp)                      ## 8-byte Folded Reload
	movl	%eax, %r15d
	orl	%ebx, %r15d
	movq	_KVM_NR_PAGE_SIZES@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r12,%r14,8), %r12
	addq	$24, %r12
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=2
	movq	%rdi, %rax
	xorl	%edx, %edx
	divq	%rcx
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=2
	subq	%rax, %rsi
	movq	8(%r12), %rax
	shlq	$3, %rsi
	addq	(%rax,%rbx,8), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	*%r14
	orl	%eax, %r15d
	incq	%rbx
	movq	_KVM_NR_PAGE_SIZES@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	decq	%rax
	cmpq	%rax, %rbx
	jge	LBB0_3
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_PT_DIRECTORY_LEVEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_KVM_PAGES_PER_HPAGE
	movl	%eax, %r8d
	movq	(%r12), %rdi
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addq	%rdi, %rax
	movslq	%r8d, %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %rsi
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r8d
	movl	%eax, %esi
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%rdi, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	jne	LBB0_8
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%r8d
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_9
LBB0_16:
	xorl	%r15d, %r15d
LBB0_17:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_KVM_NR_PAGE_SIZES,4,2          ## @KVM_NR_PAGE_SIZES
	.comm	_PT_DIRECTORY_LEVEL,8,3         ## @PT_DIRECTORY_LEVEL
	.no_dead_strip	_kvm_handle_hva
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvm_handle_hva
_kvm_handle_hva:                        ; @kvm_handle_hva
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x0]
	bl	_rcu_dereference
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	stp	x22, x20, [sp, #8]              ; 16-byte Folded Spill
	str	x19, [sp, #24]                  ; 8-byte Folded Spill
	mov	x25, #0
	mov	w24, #0
	mov	w27, #40
Lloh0:
	adrp	x12, _KVM_NR_PAGE_SIZES@GOTPAGE
Lloh1:
	ldr	x12, [x12, _KVM_NR_PAGE_SIZES@GOTPAGEOFF]
	stp	x0, x21, [sp, #32]              ; 16-byte Folded Spill
	mov	x20, x19
	ldp	x28, x22, [sp, #8]              ; 16-byte Folded Reload
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x12, x19
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldp	x0, x21, [sp, #32]              ; 16-byte Folded Reload
	ldrsw	x8, [x0]
	cmp	x25, x8
	mov	w27, #40
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x23, [x0, #8]
	mul	x8, x25, x27
	ldr	x8, [x23, x8]
	cmp	x8, x21
	b.hi	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh2:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	madd	x10, x25, x27, x23
	ldr	x10, [x10, #8]
	lsl	x10, x10, x9
	add	x10, x10, x8
	cmp	x10, x21
	b.ls	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x21, x8
	lsr	x26, x8, x9
	madd	x8, x25, x27, x23
	ldr	x8, [x8, #16]
	add	x1, x8, x26, lsl #3
	ldp	x0, x2, [sp, #8]                ; 16-byte Folded Reload
	mov	x19, x12
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	blr	x8
	orr	w24, w0, w24
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, #0
	madd	x8, x25, x27, x23
	add	x23, x8, #24
	add	x27, x8, #32
Lloh5:
	adrp	x9, _PT_DIRECTORY_LEVEL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PT_DIRECTORY_LEVEL@GOTPAGEOFF]
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x9]
	add	x0, x21, x8
	bl	_KVM_PAGES_PER_HPAGE
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x23]
	add	x9, x8, x26
	sxtw	x10, w0
	udiv	x9, x9, x10
	udiv	x8, x8, x10
	sub	x8, x9, x8
	ldr	x9, [x27]
	ldr	x9, [x9, x21, lsl #3]
	add	x1, x9, x8, lsl #3
	mov	x0, x28
	mov	x2, x22
	blr	x20
	mov	x12, x19
Lloh7:
	adrp	x9, _PT_DIRECTORY_LEVEL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PT_DIRECTORY_LEVEL@GOTPAGEOFF]
	orr	w24, w0, w24
	add	x21, x21, #1
	ldrsw	x8, [x19]
	sub	x8, x8, #1
	cmp	x21, x8
	b.lt	LBB0_8
	b	LBB0_3
LBB0_9:
	mov	w24, #0
LBB0_10:
	mov	x0, x24
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_KVM_NR_PAGE_SIZES,4,2          ; @KVM_NR_PAGE_SIZES
	.comm	_PT_DIRECTORY_LEVEL,8,3         ; @PT_DIRECTORY_LEVEL
	.no_dead_strip	_kvm_handle_hva
.subsections_via_symbols
