	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kva_import
_kva_import:                            ## @kva_import
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%esi, %r12d
	movq	_KVA_QUANTUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movl	%r12d, %eax
	cltd
	idivl	%esi
	xorl	%edi, %edi
	testl	%edx, %edx
	sete	%dil
	callq	_KASSERT
	movq	_kernel_map@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_vm_map_min
	movl	%eax, -36(%rbp)
	movl	(%r15), %edi
	movq	_VMFS_SUPER_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_VM_PROT_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movq	_MAP_NOFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	xorl	%r15d, %r15d
	leaq	-36(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rax
	pushq	%rax
	pushq	%r10
	callq	_vm_map_find
	addq	$32, %rsp
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movl	-36(%rbp), %eax
	movl	%eax, (%r14)
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KVA_QUANTUM,4,2                ## @KVA_QUANTUM
	.comm	_kernel_map,4,2                 ## @kernel_map
	.comm	_VMFS_SUPER_SPACE,4,2           ## @VMFS_SUPER_SPACE
	.comm	_VM_PROT_ALL,4,2                ## @VM_PROT_ALL
	.comm	_MAP_NOFAULT,4,2                ## @MAP_NOFAULT
	.comm	_KERN_SUCCESS,4,2               ## @KERN_SUCCESS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_kva_import
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kva_import
_kva_import:                            ; @kva_import
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x20, x1
Lloh0:
	adrp	x8, _KVA_QUANTUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KVA_QUANTUM@GOTPAGEOFF]
Lloh2:
	ldrsw	x1, [x8]
	sdiv	w8, w20, w1
	msub	w8, w8, w1, w20
	cmp	w8, #0
	cset	w0, eq
	bl	_KASSERT
Lloh3:
	adrp	x21, _kernel_map@GOTPAGE
Lloh4:
	ldr	x21, [x21, _kernel_map@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_vm_map_min
	str	w0, [sp, #12]
	ldr	w0, [x21]
Lloh5:
	adrp	x8, _VMFS_SUPER_SPACE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VMFS_SUPER_SPACE@GOTPAGEOFF]
Lloh7:
	ldr	w6, [x8]
Lloh8:
	adrp	x8, _VM_PROT_ALL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VM_PROT_ALL@GOTPAGEOFF]
Lloh10:
	ldr	w7, [x8]
Lloh11:
	adrp	x8, _MAP_NOFAULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAP_NOFAULT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stp	w7, w8, [sp]
	add	x3, sp, #12
	mov	x1, #0
	mov	w2, #0
	mov	x4, x20
	mov	w5, #0
	bl	_vm_map_find
Lloh14:
	adrp	x8, _KERN_SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KERN_SUCCESS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldr	w8, [sp, #12]
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_KVA_QUANTUM,4,2                ; @KVA_QUANTUM
	.comm	_kernel_map,4,2                 ; @kernel_map
	.comm	_VMFS_SUPER_SPACE,4,2           ; @VMFS_SUPER_SPACE
	.comm	_VM_PROT_ALL,4,2                ; @VM_PROT_ALL
	.comm	_MAP_NOFAULT,4,2                ; @MAP_NOFAULT
	.comm	_KERN_SUCCESS,4,2               ; @KERN_SUCCESS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_kva_import
.subsections_via_symbols
