	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kmem_init                      ## -- Begin function kmem_init
	.p2align	4, 0x90
_kmem_init:                             ## @kmem_init
	.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	%rsi, %rdx
	movq	%rdi, %r14
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VM_MIN_KERNEL_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vm_map_create
	movq	%rax, %rbx
	movl	$1, (%rax)
	movq	%rax, %rdi
	callq	_vm_map_lock
	movq	_kernel_map@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	_KERNBASE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movq	_VM_PROT_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MAP_NOFAULT@GOTPCREL(%rip), %r15
	movl	(%r15), %r10d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r14, %r8
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r9
	callq	_vm_map_insert
	addq	$16, %rsp
	movq	_vm_page_array@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_vm_page_array_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$2, %edi
	callq	_round_2mpage
	leaq	(%rax,%r14), %r8
	movq	_VM_PROT_RW@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	(%r15), %r10d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%r14, %rcx
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r9
	callq	_vm_map_insert
	addq	$16, %rsp
	movq	%rbx, %rdi
	callq	_vm_map_unlock
	movq	_kernel_arena@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	$0
	callq	_vmem_init
	addq	$16, %rsp
	movq	(%rbx), %rdi
	movq	_kva_import@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KVA_QUANTUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vmem_set_import
	movq	_vm_ndomains@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	jle	LBB0_3
## %bb.1:
	movl	$8, %r15d
	xorl	%r14d, %r14d
	movq	_vm_dom@GOTPCREL(%rip), %r13
	movq	_kva_import_domain@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	L_.str.1(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_vmem_create
	movq	(%r13), %rcx
	movq	%rax, (%rcx,%r15)
	movq	(%r13), %rax
	movq	(%rax,%r15), %rdi
	movl	(%r12), %esi
	movq	_kernel_arena@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_KVA_QUANTUM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%edx, %edx
	callq	_vmem_set_import
	incq	%r14
	movslq	(%rbx), %rax
	addq	$16, %r15
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kernel_pmap,4,2                ## @kernel_pmap
	.comm	_VM_MIN_KERNEL_ADDRESS,4,2      ## @VM_MIN_KERNEL_ADDRESS
	.comm	_kernel_map,8,3                 ## @kernel_map
	.comm	_KERNBASE,4,2                   ## @KERNBASE
	.comm	_VM_PROT_ALL,4,2                ## @VM_PROT_ALL
	.comm	_MAP_NOFAULT,4,2                ## @MAP_NOFAULT
	.comm	_vm_page_array,8,3              ## @vm_page_array
	.comm	_vm_page_array_size,4,2         ## @vm_page_array_size
	.comm	_VM_PROT_RW,4,2                 ## @VM_PROT_RW
	.comm	_kernel_arena,8,3               ## @kernel_arena
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kernel arena"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_kva_import,4,2                 ## @kva_import
	.comm	_KVA_QUANTUM,4,2                ## @KVA_QUANTUM
	.comm	_vm_ndomains,4,2                ## @vm_ndomains
L_.str.1:                               ## @.str.1
	.asciz	"kernel arena domain"

	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_vm_dom,8,3                     ## @vm_dom
	.comm	_kva_import_domain,4,2          ## @kva_import_domain
	.comm	_vmem_xfree,8,3                 ## @vmem_xfree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kmem_init                      ; -- Begin function kmem_init
	.p2align	2
_kmem_init:                             ; @kmem_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x21, _VM_MIN_KERNEL_ADDRESS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _VM_MIN_KERNEL_ADDRESS@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_vm_map_create
	mov	x20, x0
	mov	w8, #1
	str	w8, [x0]
	bl	_vm_map_lock
Lloh5:
	adrp	x8, _kernel_map@GOTPAGE
Lloh6:
	ldr	x8, [x8, _kernel_map@GOTPAGEOFF]
Lloh7:
	str	x20, [x8]
	ldrsw	x3, [x21]
Lloh8:
	adrp	x8, _VM_PROT_ALL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VM_PROT_ALL@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
Lloh11:
	adrp	x8, _MAP_NOFAULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAP_NOFAULT@GOTPAGEOFF]
Lloh13:
	ldr	w7, [x8]
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	mov	x4, x19
	mov	x6, x5
	bl	_vm_map_insert
	mov	x0, x20
	bl	_vm_map_unlock
Lloh14:
	adrp	x20, _kernel_arena@GOTPAGE
Lloh15:
	ldr	x20, [x20, _kernel_arena@GOTPAGEOFF]
	ldr	x0, [x20]
Lloh16:
	adrp	x21, _PAGE_SIZE@GOTPAGE
Lloh17:
	ldr	x21, [x21, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w4, [x21]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #0
	mov	w3, #0
	mov	w5, #0
	mov	w6, #0
	bl	_vmem_init
	ldr	x0, [x20]
Lloh20:
	adrp	x8, _kva_import@GOTPAGE
Lloh21:
	ldr	x8, [x8, _kva_import@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x22, _KVA_QUANTUM@GOTPAGE
Lloh24:
	ldr	x22, [x22, _KVA_QUANTUM@GOTPAGEOFF]
	ldr	w4, [x22]
	mov	x2, #0
	mov	x3, #0
	bl	_vmem_set_import
Lloh25:
	adrp	x23, _vm_ndomains@GOTPAGE
Lloh26:
	ldr	x23, [x23, _vm_ndomains@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x24, #0
	mov	w25, #8
Lloh27:
	adrp	x26, _M_WAITOK@GOTPAGE
Lloh28:
	ldr	x26, [x26, _M_WAITOK@GOTPAGEOFF]
Lloh29:
	adrp	x27, _vm_dom@GOTPAGE
Lloh30:
	ldr	x27, [x27, _vm_dom@GOTPAGEOFF]
Lloh31:
	adrp	x28, _kva_import_domain@GOTPAGE
Lloh32:
	ldr	x28, [x28, _kva_import_domain@GOTPAGEOFF]
Lloh33:
	adrp	x19, l_.str.1@PAGE
Lloh34:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x21]
	ldr	w5, [x26]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w4, #0
	bl	_vmem_create
	ldr	x8, [x27]
	str	x0, [x8, x25]
	ldr	x8, [x27]
	ldr	x0, [x8, x25]
	ldr	w1, [x28]
	ldr	x3, [x20]
	ldr	w4, [x22]
	mov	x2, #0
	bl	_vmem_set_import
	add	x24, x24, #1
	ldrsw	x8, [x23]
	add	x25, x25, #16
	cmp	x24, x8
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_kernel_pmap,4,2                ; @kernel_pmap
	.comm	_VM_MIN_KERNEL_ADDRESS,4,2      ; @VM_MIN_KERNEL_ADDRESS
	.comm	_kernel_map,8,3                 ; @kernel_map
	.comm	_VM_PROT_ALL,4,2                ; @VM_PROT_ALL
	.comm	_MAP_NOFAULT,4,2                ; @MAP_NOFAULT
	.comm	_kernel_arena,8,3               ; @kernel_arena
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kernel arena"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_kva_import,4,2                 ; @kva_import
	.comm	_KVA_QUANTUM,4,2                ; @KVA_QUANTUM
	.comm	_vm_ndomains,4,2                ; @vm_ndomains
l_.str.1:                               ; @.str.1
	.asciz	"kernel arena domain"

	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_vm_dom,8,3                     ; @vm_dom
	.comm	_kva_import_domain,4,2          ; @kva_import_domain
	.comm	_KERNBASE,4,2                   ; @KERNBASE
	.comm	_VM_PROT_RW,4,2                 ; @VM_PROT_RW
	.comm	_vm_page_array,8,3              ; @vm_page_array
	.comm	_vm_page_array_size,4,2         ; @vm_page_array_size
	.comm	_vmem_xfree,8,3                 ; @vmem_xfree
.subsections_via_symbols
