	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function host_mapping_level
_host_mapping_level:                    ## @host_mapping_level
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %r14
	callq	_gfn_to_hva
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_kvm_is_error_hva
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_PT_PAGE_TABLE_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_current@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rax), %rdi
	callq	_down_read
	movq	(%r13), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_find_vma
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rdi
	callq	_vma_kernel_pagesize
	movq	%rax, %r14
LBB0_4:
	movq	(%r13), %rax
	movq	(%rax), %rdi
	callq	_up_read
	cmpq	(%r12), %r14
	jne	LBB0_10
## %bb.5:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_hva_to_pfn
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_is_error_pfn
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movl	%ebx, %edi
	callq	_kvm_is_mmio_pfn
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movl	%ebx, %edi
	callq	_pfn_to_page
	movl	%eax, %edi
	callq	_PageTransCompound
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	$2, %edi
	callq	_KVM_HPAGE_SIZE
	movq	%rax, %r14
LBB0_9:
	movl	%ebx, %edi
	callq	_kvm_release_pfn_clean
LBB0_10:
	movq	_KVM_NR_PAGE_SIZES@GOTPCREL(%rip), %r12
	xorl	%r15d, %r15d
	cmpl	$0, (%r12)
	jle	LBB0_14
## %bb.11:
	movq	_PT_PAGE_TABLE_LEVEL@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_KVM_HPAGE_SIZE
	cmpq	%rax, %r14
	jb	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%ebx, %r15d
	leal	1(%r15), %ebx
	movl	(%r12), %eax
	addl	(%r13), %eax
	cmpl	%eax, %ebx
	jl	LBB0_12
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.comm	_PT_PAGE_TABLE_LEVEL,4,2        ## @PT_PAGE_TABLE_LEVEL
	.comm	_current,8,3                    ## @current
	.comm	_KVM_NR_PAGE_SIZES,4,2          ## @KVM_NR_PAGE_SIZES
	.no_dead_strip	_host_mapping_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function host_mapping_level
_host_mapping_level:                    ; @host_mapping_level
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x22, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x19, [x22]
	bl	_gfn_to_hva
	mov	x21, x0
	bl	_kvm_is_error_hva
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _PT_PAGE_TABLE_LEVEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PT_PAGE_TABLE_LEVEL@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	b	LBB0_13
LBB0_2:
Lloh5:
	adrp	x23, _current@GOTPAGE
Lloh6:
	ldr	x23, [x23, _current@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x0, [x8]
	bl	_down_read
	ldr	x8, [x23]
	ldr	x0, [x8]
	mov	x1, x21
	bl	_find_vma
	cbz	x0, LBB0_4
; %bb.3:
	bl	_vma_kernel_pagesize
	mov	x19, x0
LBB0_4:
	ldr	x8, [x23]
	ldr	x0, [x8]
	bl	_up_read
	ldr	x8, [x22]
	cmp	x19, x8
	b.ne	LBB0_10
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	bl	_hva_to_pfn
	mov	x20, x0
	bl	_is_error_pfn
	cbnz	w0, LBB0_9
; %bb.6:
	mov	x0, x20
	bl	_kvm_is_mmio_pfn
	cbnz	w0, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_pfn_to_page
	bl	_PageTransCompound
	cbz	x0, LBB0_9
; %bb.8:
	mov	w0, #2
	bl	_KVM_HPAGE_SIZE
	mov	x19, x0
LBB0_9:
	mov	x0, x20
	bl	_kvm_release_pfn_clean
LBB0_10:
Lloh7:
	adrp	x22, _KVM_NR_PAGE_SIZES@GOTPAGE
Lloh8:
	ldr	x22, [x22, _KVM_NR_PAGE_SIZES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.11:
Lloh9:
	adrp	x23, _PT_PAGE_TABLE_LEVEL@GOTPAGE
Lloh10:
	ldr	x23, [x23, _PT_PAGE_TABLE_LEVEL@GOTPAGEOFF]
	ldr	w21, [x23]
	mov	x0, x21
	bl	_KVM_HPAGE_SIZE
	cmp	x19, x0
	b.hs	LBB0_14
LBB0_12:
	mov	w20, #0
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x20, x21
	add	w21, w21, #1
	ldr	w8, [x23]
	ldr	w9, [x22]
	add	w8, w9, w8
	cmp	w21, w8
	b.ge	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x21
	bl	_KVM_HPAGE_SIZE
	cmp	x19, x0
	b.hs	LBB0_14
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.comm	_PT_PAGE_TABLE_LEVEL,4,2        ; @PT_PAGE_TABLE_LEVEL
	.comm	_current,8,3                    ; @current
	.comm	_KVM_NR_PAGE_SIZES,4,2          ; @KVM_NR_PAGE_SIZES
	.no_dead_strip	_host_mapping_level
.subsections_via_symbols
