	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_pinit                     ## -- Begin function pmap_pinit
	.p2align	4, 0x90
_pmap_pinit:                            ## @pmap_pinit
	.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	_VM_ALLOC_NORMAL@GOTPCREL(%rip), %r15
	movq	_VM_ALLOC_NOOBJ@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	(%r15), %edx
	movq	_VM_ALLOC_WIRED@GOTPCREL(%rip), %r13
	orl	(%r13), %edx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_VM_ALLOC_ZERO@GOTPCREL(%rip), %r14
	orl	(%r14), %edx
	xorl	%edi, %edi
	movl	$-559038737, %esi               ## imm = 0xDEADBEEF
	callq	_vm_page_alloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	callq	_vm_wait
	movl	(%r12), %edx
	orl	(%r15), %edx
	orl	(%r13), %edx
	orl	(%r14), %edx
	xorl	%edi, %edi
	movl	$-559038737, %esi               ## imm = 0xDEADBEEF
	callq	_vm_page_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
LBB0_3:
	movq	%rbx, %rdi
	callq	_VM_PAGE_TO_PHYS
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_PHYS_TO_DMAP
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, 8(%rdx)
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %r15d
	movq	_SATP_MODE_SV39@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	movl	%r15d, (%rdx)
	movq	_PG_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	movq	%rdx, %rbx
	jne	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	callq	_pagezero
LBB0_5:
	leaq	20(%rbx), %rdi
	movl	$4, %esi
	callq	_bzero
	leaq	16(%rbx), %rdi
	callq	_CPU_ZERO
	movq	8(%rbx), %rdi
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	_allpmaps_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mtx_lock
	movq	_pm_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_allpmaps@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_LIST_INSERT_HEAD
	movq	%r14, %rdi
	callq	_mtx_unlock
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_vm_radix_init
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_ALLOC_NORMAL,4,2            ## @VM_ALLOC_NORMAL
	.comm	_VM_ALLOC_NOOBJ,4,2             ## @VM_ALLOC_NOOBJ
	.comm	_VM_ALLOC_WIRED,4,2             ## @VM_ALLOC_WIRED
	.comm	_VM_ALLOC_ZERO,4,2              ## @VM_ALLOC_ZERO
	.comm	_SATP_MODE_SV39,4,2             ## @SATP_MODE_SV39
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PG_ZERO,4,2                    ## @PG_ZERO
	.comm	_kernel_pmap,8,3                ## @kernel_pmap
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_allpmaps_lock,4,2              ## @allpmaps_lock
	.comm	_allpmaps,4,2                   ## @allpmaps
	.comm	_pm_list,4,2                    ## @pm_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_pinit                     ; -- Begin function pmap_pinit
	.p2align	2
_pmap_pinit:                            ; @pmap_pinit
	.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	x19, x0
Lloh0:
	adrp	x21, _VM_ALLOC_NORMAL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VM_ALLOC_NORMAL@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _VM_ALLOC_NOOBJ@GOTPAGE
Lloh3:
	ldr	x22, [x22, _VM_ALLOC_NOOBJ@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh4:
	adrp	x23, _VM_ALLOC_WIRED@GOTPAGE
Lloh5:
	ldr	x23, [x23, _VM_ALLOC_WIRED@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w8, w9
Lloh6:
	adrp	x24, _VM_ALLOC_ZERO@GOTPAGE
Lloh7:
	ldr	x24, [x24, _VM_ALLOC_ZERO@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w2, w8, w9
	mov	x0, #0
	mov	w1, #48879
	movk	w1, #57005, lsl #16
	bl	_vm_page_alloc
	mov	x20, x0
	cbnz	x0, LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, #0
	bl	_vm_wait
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w2, w8, w9
	mov	x0, #0
	mov	w1, #48879
	movk	w1, #57005, lsl #16
	bl	_vm_page_alloc
	cbz	x0, LBB0_1
; %bb.2:
	mov	x20, x0
LBB0_3:
	mov	x0, x20
	bl	_VM_PAGE_TO_PHYS
	mov	x21, x0
	bl	_PHYS_TO_DMAP
	str	x0, [x19, #8]
Lloh8:
	adrp	x8, _SATP_MODE_SV39@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SATP_MODE_SV39@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	asr	w9, w21, w9
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w8, [x20]
Lloh14:
	adrp	x9, _PG_ZERO@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PG_ZERO@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
	bl	_pagezero
LBB0_5:
	add	x0, x19, #20
	mov	w1, #4
	bl	_bzero
	add	x0, x19, #16
	bl	_CPU_ZERO
Lloh17:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh18:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
	ldr	x0, [x19, #8]
Lloh19:
	ldr	x8, [x8]
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_memcpy
Lloh23:
	adrp	x20, _allpmaps_lock@GOTPAGE
Lloh24:
	ldr	x20, [x20, _allpmaps_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_mtx_lock
Lloh25:
	adrp	x8, _pm_list@GOTPAGE
Lloh26:
	ldr	x8, [x8, _pm_list@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x0, _allpmaps@GOTPAGE
Lloh29:
	ldr	x0, [x0, _allpmaps@GOTPAGEOFF]
	mov	x1, x19
	bl	_LIST_INSERT_HEAD
	mov	x0, x20
	bl	_mtx_unlock
	add	x0, x19, #4
	bl	_vm_radix_init
	mov	w0, #1
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_ALLOC_NORMAL,4,2            ; @VM_ALLOC_NORMAL
	.comm	_VM_ALLOC_NOOBJ,4,2             ; @VM_ALLOC_NOOBJ
	.comm	_VM_ALLOC_WIRED,4,2             ; @VM_ALLOC_WIRED
	.comm	_VM_ALLOC_ZERO,4,2              ; @VM_ALLOC_ZERO
	.comm	_SATP_MODE_SV39,4,2             ; @SATP_MODE_SV39
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PG_ZERO,4,2                    ; @PG_ZERO
	.comm	_kernel_pmap,8,3                ; @kernel_pmap
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_allpmaps_lock,4,2              ; @allpmaps_lock
	.comm	_allpmaps,4,2                   ; @allpmaps
	.comm	_pm_list,4,2                    ; @pm_list
.subsections_via_symbols
