	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_init                      ## -- Begin function pmap_init
	.p2align	4, 0x90
_pmap_init:                             ## @pmap_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	_MTX_DEF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	_pv_chunks_mutex@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_mtx_init
	movl	(%rbx), %ecx
	movq	_allpmaps_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	callq	_mtx_init
	movq	_NPV_LIST_LOCKS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	movq	_pv_list_locks@GOTPCREL(%rip), %r12
	leaq	L_.str.2(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%r13, %rdi
	movq	%r15, %rsi
	callq	_rw_init
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_vm_phys_segs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_vm_phys_nsegs@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	-4(%rax,%rcx,4), %edi
	movq	_L2_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_howmany
	movl	%eax, %r15d
	movslq	%eax, %rbx
	leaq	(,%rbx,4), %rdi
	callq	_round_page
	movq	_M_WAITOK@GOTPCREL(%rip), %rcx
	movq	_M_ZERO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_kmem_malloc
	movq	_pv_table@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.4:
	movq	%rax, %rdi
	callq	_TAILQ_INIT
	cmpl	$1, %r15d
	je	LBB0_7
## %bb.5:
	movl	%r15d, %r15d
	decq	%r15
	movl	$4, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	callq	_TAILQ_INIT
	addq	$4, %rbx
	decq	%r15
	jne	LBB0_6
LBB0_7:
	movq	_pv_dummy@GOTPCREL(%rip), %rdi
	callq	_TAILQ_INIT
	movq	_superpages_enabled@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	movl	(%r14), %eax
	movq	_pagesizes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 4(%rcx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pv_chunks_mutex,4,2            ## @pv_chunks_mutex
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pmap pv chunk list"

	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
	.comm	_allpmaps_lock,4,2              ## @allpmaps_lock
L_.str.1:                               ## @.str.1
	.asciz	"allpmaps"

	.comm	_NPV_LIST_LOCKS,4,2             ## @NPV_LIST_LOCKS
	.comm	_pv_list_locks,8,3              ## @pv_list_locks
L_.str.2:                               ## @.str.2
	.asciz	"pmap pv list"

	.comm	_vm_phys_segs,8,3               ## @vm_phys_segs
	.comm	_vm_phys_nsegs,4,2              ## @vm_phys_nsegs
	.comm	_L2_SIZE,4,2                    ## @L2_SIZE
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_pv_table,8,3                   ## @pv_table
	.comm	_pv_dummy,4,2                   ## @pv_dummy
	.comm	_superpages_enabled,8,3         ## @superpages_enabled
	.comm	_pagesizes,8,3                  ## @pagesizes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_init                      ; -- Begin function pmap_init
	.p2align	2
_pmap_init:                             ; @pmap_init
	.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
Lloh0:
	adrp	x19, _MTX_DEF@GOTPAGE
Lloh1:
	ldr	x19, [x19, _MTX_DEF@GOTPAGEOFF]
	ldr	w3, [x19]
Lloh2:
	adrp	x0, _pv_chunks_mutex@GOTPAGE
Lloh3:
	ldr	x0, [x0, _pv_chunks_mutex@GOTPAGEOFF]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_mtx_init
	ldr	w3, [x19]
Lloh6:
	adrp	x0, _allpmaps_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _allpmaps_lock@GOTPAGEOFF]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, #0
	bl	_mtx_init
Lloh10:
	adrp	x20, _NPV_LIST_LOCKS@GOTPAGE
Lloh11:
	ldr	x20, [x20, _NPV_LIST_LOCKS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x22, #0
Lloh12:
	adrp	x23, _pv_list_locks@GOTPAGE
Lloh13:
	ldr	x23, [x23, _pv_list_locks@GOTPAGEOFF]
Lloh14:
	adrp	x19, l_.str.2@PAGE
Lloh15:
	add	x19, x19, l_.str.2@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x0, x8, x21
	mov	x1, x19
	bl	_rw_init
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
Lloh16:
	adrp	x8, _vm_phys_segs@GOTPAGE
Lloh17:
	ldr	x8, [x8, _vm_phys_segs@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _vm_phys_nsegs@GOTPAGE
Lloh20:
	ldr	x9, [x9, _vm_phys_nsegs@GOTPAGEOFF]
Lloh21:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #2
	ldur	w0, [x8, #-4]
Lloh22:
	adrp	x20, _L2_SIZE@GOTPAGE
Lloh23:
	ldr	x20, [x20, _L2_SIZE@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_howmany
	mov	x19, x0
	sbfiz	x0, x19, #2, #32
	bl	_round_page
Lloh24:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh28:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_kmem_malloc
Lloh30:
	adrp	x21, _pv_table@GOTPAGE
Lloh31:
	ldr	x21, [x21, _pv_table@GOTPAGEOFF]
	str	x0, [x21]
	cmp	w19, #1
	b.lt	LBB0_7
; %bb.4:
	bl	_TAILQ_INIT
	cmp	w19, #1
	b.eq	LBB0_7
; %bb.5:
	mov	w8, w19
	sub	x19, x8, #1
	mov	w22, #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x0, x8, x22
	bl	_TAILQ_INIT
	add	x22, x22, #4
	subs	x19, x19, #1
	b.ne	LBB0_6
LBB0_7:
Lloh32:
	adrp	x0, _pv_dummy@GOTPAGE
Lloh33:
	ldr	x0, [x0, _pv_dummy@GOTPAGEOFF]
	bl	_TAILQ_INIT
Lloh34:
	adrp	x8, _superpages_enabled@GOTPAGE
Lloh35:
	ldr	x8, [x8, _superpages_enabled@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w8, [x20]
Lloh37:
	adrp	x9, _pagesizes@GOTPAGE
Lloh38:
	ldr	x9, [x9, _pagesizes@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	str	w8, [x9, #4]
LBB0_9:
	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	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_pv_chunks_mutex,4,2            ; @pv_chunks_mutex
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pmap pv chunk list"

	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
	.comm	_allpmaps_lock,4,2              ; @allpmaps_lock
l_.str.1:                               ; @.str.1
	.asciz	"allpmaps"

	.comm	_NPV_LIST_LOCKS,4,2             ; @NPV_LIST_LOCKS
	.comm	_pv_list_locks,8,3              ; @pv_list_locks
l_.str.2:                               ; @.str.2
	.asciz	"pmap pv list"

	.comm	_vm_phys_segs,8,3               ; @vm_phys_segs
	.comm	_vm_phys_nsegs,4,2              ; @vm_phys_nsegs
	.comm	_L2_SIZE,4,2                    ; @L2_SIZE
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_pv_table,8,3                   ; @pv_table
	.comm	_pv_dummy,4,2                   ; @pv_dummy
	.comm	_superpages_enabled,8,3         ; @superpages_enabled
	.comm	_pagesizes,8,3                  ; @pagesizes
.subsections_via_symbols
