	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_TSB_PAGES@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	cmpq	$0, 16(%rbx)
	jne	LBB0_3
## %bb.1:
	movq	_TSB_BSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_kva_alloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	cmpq	$0, 24(%rbx)
	jne	LBB0_5
## %bb.4:
	movq	_OBJT_PHYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_vm_object_allocate
	movq	%rax, 24(%rbx)
LBB0_5:
	movq	_MAXCPU@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.6:
	movq	(%rbx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$-1, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%rax), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_7
LBB0_8:
	leaq	32(%rbx), %rdi
	callq	_CPU_ZERO
	movq	24(%rbx), %rdi
	callq	_VM_OBJECT_WLOCK
	movq	_VM_ALLOC_NORMAL@GOTPCREL(%rip), %rax
	movq	_VM_ALLOC_NOBUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	24(%rbx), %rdi
	movq	_VM_ALLOC_WIRED@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_VM_ALLOC_ZERO@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r15), %r8d
	xorl	%esi, %esi
	movq	%r14, %rcx
	callq	_vm_page_grab_pages
	movq	24(%rbx), %rdi
	callq	_VM_OBJECT_WUNLOCK
	movl	(%r15), %edx
	testl	%edx, %edx
	jle	LBB0_16
## %bb.9:
	leaq	-1(%rdx), %rcx
	movl	%edx, %eax
	andl	$7, %eax
	cmpq	$7, %rcx
	jae	LBB0_11
## %bb.10:
	xorl	%ecx, %ecx
	jmp	LBB0_13
LBB0_11:
	movl	%edx, %esi
	andl	$-8, %esi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rcx,8), %rdi
	movq	%rbx, (%rdi)
	movq	8(%r14,%rcx,8), %rdi
	movq	%rbx, (%rdi)
	movq	16(%r14,%rcx,8), %rdi
	movq	%rbx, (%rdi)
	movq	24(%r14,%rcx,8), %rdi
	movq	%rbx, (%rdi)
	movq	32(%r14,%rcx,8), %rdi
	movq	%rbx, (%rdi)
	movq	40(%r14,%rcx,8), %rdi
	movq	%rbx, (%rdi)
	movq	48(%r14,%rcx,8), %rdi
	movq	%rbx, (%rdi)
	movq	56(%r14,%rcx,8), %rdi
	movq	%rbx, (%rdi)
	addq	$8, %rcx
	cmpq	%rcx, %rsi
	jne	LBB0_12
LBB0_13:
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	leaq	(%r14,%rcx,8), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rdi
	movq	%rbx, (%rdi)
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_15
LBB0_16:
	movl	16(%rbx), %edi
	movq	%r14, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_pmap_qenter
	addq	$8, %rbx
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_bzero
	movl	$1, %eax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TSB_PAGES,4,2                  ## @TSB_PAGES
	.comm	_TSB_BSIZE,4,2                  ## @TSB_BSIZE
	.comm	_OBJT_PHYS,4,2                  ## @OBJT_PHYS
	.comm	_MAXCPU,4,2                     ## @MAXCPU
	.comm	_VM_ALLOC_NORMAL,4,2            ## @VM_ALLOC_NORMAL
	.comm	_VM_ALLOC_NOBUSY,4,2            ## @VM_ALLOC_NOBUSY
	.comm	_VM_ALLOC_WIRED,4,2             ## @VM_ALLOC_WIRED
	.comm	_VM_ALLOC_ZERO,4,2              ## @VM_ALLOC_ZERO
.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x21, _TSB_PAGES@GOTPAGE
Lloh4:
	ldr	x21, [x21, _TSB_PAGES@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _TSB_BSIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TSB_BSIZE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_kva_alloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_11
LBB0_2:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _OBJT_PHYS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OBJT_PHYS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w1, [x21]
	bl	_vm_object_allocate
	str	x0, [x19, #24]
LBB0_4:
Lloh13:
	adrp	x8, _MAXCPU@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAXCPU@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x9, #0
	ldr	x10, [x19]
	mov	w11, #-1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	w11, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_6
LBB0_7:
	add	x0, x19, #32
	bl	_CPU_ZERO
	ldr	x0, [x19, #24]
	bl	_VM_OBJECT_WLOCK
	ldr	x0, [x19, #24]
Lloh15:
	adrp	x8, _VM_ALLOC_NORMAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VM_ALLOC_NORMAL@GOTPAGEOFF]
Lloh17:
	adrp	x9, _VM_ALLOC_NOBUSY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _VM_ALLOC_NOBUSY@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _VM_ALLOC_WIRED@GOTPAGE
Lloh22:
	ldr	x9, [x9, _VM_ALLOC_WIRED@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _VM_ALLOC_ZERO@GOTPAGE
Lloh25:
	ldr	x9, [x9, _VM_ALLOC_ZERO@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	w4, [x21]
	mov	w1, #0
	mov	x3, x20
	bl	_vm_page_grab_pages
	ldr	x0, [x19, #24]
	bl	_VM_OBJECT_WUNLOCK
	ldr	w2, [x21]
	cmp	w2, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x8, x2
	mov	x9, x20
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	str	x19, [x10]
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	ldr	w0, [x19, #16]
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_pmap_qenter
	add	x0, x19, #8
	mov	w1, #4
	bl	_bzero
	mov	w0, #1
LBB0_11:
	ldur	x8, [x29, #-40]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_TSB_PAGES,4,2                  ; @TSB_PAGES
	.comm	_TSB_BSIZE,4,2                  ; @TSB_BSIZE
	.comm	_OBJT_PHYS,4,2                  ; @OBJT_PHYS
	.comm	_MAXCPU,4,2                     ; @MAXCPU
	.comm	_VM_ALLOC_NORMAL,4,2            ; @VM_ALLOC_NORMAL
	.comm	_VM_ALLOC_NOBUSY,4,2            ; @VM_ALLOC_NOBUSY
	.comm	_VM_ALLOC_WIRED,4,2             ; @VM_ALLOC_WIRED
	.comm	_VM_ALLOC_ZERO,4,2              ; @VM_ALLOC_ZERO
.subsections_via_symbols
