	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kva_import_domain
_kva_import_domain:                     ## @kva_import_domain
	.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	%rcx, %r15
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	_KVA_QUANTUM@GOTPCREL(%rip), %r13
	movslq	(%r13), %rsi
	movl	%ebx, %eax
	cltd
	idivl	%esi
	xorl	%edi, %edi
	testl	%edx, %edx
	sete	%dil
	callq	_KASSERT
	movl	(%r13), %edx
	movq	_VMEM_ADDR_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_VMEM_ADDR_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	pushq	%r15
	pushq	%r14
	pushq	%rax
	callq	_vmem_xalloc
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KVA_QUANTUM,4,2                ## @KVA_QUANTUM
	.comm	_VMEM_ADDR_MIN,4,2              ## @VMEM_ADDR_MIN
	.comm	_VMEM_ADDR_MAX,4,2              ## @VMEM_ADDR_MAX
	.no_dead_strip	_kva_import_domain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kva_import_domain
_kva_import_domain:                     ; @kva_import_domain
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _KVA_QUANTUM@GOTPAGE
Lloh1:
	ldr	x23, [x23, _KVA_QUANTUM@GOTPAGEOFF]
	ldrsw	x1, [x23]
	sdiv	w8, w21, w1
	msub	w8, w8, w1, w21
	cmp	w8, #0
	cset	w0, eq
	bl	_KASSERT
	ldr	w2, [x23]
Lloh2:
	adrp	x8, _VMEM_ADDR_MIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VMEM_ADDR_MIN@GOTPAGEOFF]
Lloh4:
	ldr	w5, [x8]
Lloh5:
	adrp	x8, _VMEM_ADDR_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VMEM_ADDR_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w6, [x8]
	str	x19, [sp]
	mov	x0, x22
	mov	x1, x21
	mov	w3, #0
	mov	w4, #0
	mov	x7, x20
	bl	_vmem_xalloc
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_KVA_QUANTUM,4,2                ; @KVA_QUANTUM
	.comm	_VMEM_ADDR_MIN,4,2              ; @VMEM_ADDR_MIN
	.comm	_VMEM_ADDR_MAX,4,2              ; @VMEM_ADDR_MAX
	.no_dead_strip	_kva_import_domain
.subsections_via_symbols
