	.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	_PMAP_SHPGPERPROC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_L2_TABLE_SIZE_REAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_pmap_l2ptp_ctor@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_UMA_ALIGN_PTR@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_UMA_ZONE_VM@GOTPCREL(%rip), %r14
	movq	_UMA_ZONE_NOFREE@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	orl	(%r14), %ebx
	leaq	L_.str(%rip), %r13
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rax
	callq	_uma_zcreate
	addq	$16, %rsp
	movq	_l2zone@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	(%r15), %eax
	movl	(%r12), %ebx
	orl	(%r14), %ebx
	movq	%r13, %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rax
	callq	_uma_zcreate
	addq	$16, %rsp
	movq	_l2table_zone@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	(%r15), %eax
	movl	(%r12), %ebx
	orl	(%r14), %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rax
	callq	_uma_zcreate
	addq	$16, %rsp
	movq	_pvzone@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	leaq	L_.str.2(%rip), %rdi
	leaq	-44(%rbp), %rsi
	callq	_TUNABLE_INT_FETCH
	movq	_maxproc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	-44(%rbp), %esi
	movq	_vm_cnt@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movq	_pv_entry_max@GOTPCREL(%rip), %rbx
	movl	%esi, (%rbx)
	movq	(%r14), %rdi
	callq	_uma_zone_reserve_kva
	movslq	(%rbx), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	leal	(%rax,%rax,8), %eax
	movq	_pv_entry_high_water@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str.3(%rip), %rdi
	callq	_printf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_PDEBUG
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PMAP_SHPGPERPROC,4,2           ## @PMAP_SHPGPERPROC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"L2 Table"

	.comm	_L2_TABLE_SIZE_REAL,4,2         ## @L2_TABLE_SIZE_REAL
	.comm	_pmap_l2ptp_ctor,8,3            ## @pmap_l2ptp_ctor
	.comm	_UMA_ALIGN_PTR,4,2              ## @UMA_ALIGN_PTR
	.comm	_UMA_ZONE_VM,4,2                ## @UMA_ZONE_VM
	.comm	_UMA_ZONE_NOFREE,4,2            ## @UMA_ZONE_NOFREE
	.comm	_l2zone,8,3                     ## @l2zone
	.comm	_l2table_zone,8,3               ## @l2table_zone
L_.str.1:                               ## @.str.1
	.asciz	"PV ENTRY"

	.comm	_pvzone,8,3                     ## @pvzone
L_.str.2:                               ## @.str.2
	.asciz	"vm.pmap.shpgperproc"

	.comm	_maxproc,4,2                    ## @maxproc
	.comm	_vm_cnt,4,2                     ## @vm_cnt
	.comm	_pv_entry_max,4,2               ## @pv_entry_max
	.comm	_pv_entry_high_water,4,2        ## @pv_entry_high_water
L_.str.3:                               ## @.str.3
	.asciz	"pmap_init: done!\n"

.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:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x8, _PMAP_SHPGPERPROC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PMAP_SHPGPERPROC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh3:
	adrp	x8, _L2_TABLE_SIZE_REAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _L2_TABLE_SIZE_REAL@GOTPAGEOFF]
Lloh5:
	adrp	x9, _pmap_l2ptp_ctor@GOTPAGE
Lloh6:
	ldr	x9, [x9, _pmap_l2ptp_ctor@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	x2, [x9]
Lloh9:
	adrp	x20, _UMA_ALIGN_PTR@GOTPAGE
Lloh10:
	ldr	x20, [x20, _UMA_ALIGN_PTR@GOTPAGEOFF]
Lloh11:
	adrp	x21, _UMA_ZONE_VM@GOTPAGE
Lloh12:
	ldr	x21, [x21, _UMA_ZONE_VM@GOTPAGEOFF]
	ldr	w6, [x20]
	ldr	w8, [x21]
Lloh13:
	adrp	x22, _UMA_ZONE_NOFREE@GOTPAGE
Lloh14:
	ldr	x22, [x22, _UMA_ZONE_NOFREE@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w7, w9, w8
Lloh15:
	adrp	x19, l_.str@PAGE
Lloh16:
	add	x19, x19, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_uma_zcreate
Lloh17:
	adrp	x8, _l2zone@GOTPAGE
Lloh18:
	ldr	x8, [x8, _l2zone@GOTPAGEOFF]
Lloh19:
	str	x0, [x8]
	ldr	w6, [x20]
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w7, w9, w8
	mov	x0, x19
	mov	w1, #4
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_uma_zcreate
Lloh20:
	adrp	x8, _l2table_zone@GOTPAGE
Lloh21:
	ldr	x8, [x8, _l2table_zone@GOTPAGEOFF]
Lloh22:
	str	x0, [x8]
	ldr	w6, [x20]
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w7, w9, w8
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #4
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_uma_zcreate
Lloh25:
	adrp	x19, _pvzone@GOTPAGE
Lloh26:
	ldr	x19, [x19, _pvzone@GOTPAGEOFF]
	str	x0, [x19]
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x1, sp, #12
	bl	_TUNABLE_INT_FETCH
	ldr	w8, [sp, #12]
Lloh29:
	adrp	x9, _maxproc@GOTPAGE
Lloh30:
	ldr	x9, [x9, _maxproc@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x10, _vm_cnt@GOTPAGE
Lloh33:
	ldr	x10, [x10, _vm_cnt@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	madd	w1, w9, w8, w10
Lloh35:
	adrp	x20, _pv_entry_max@GOTPAGE
Lloh36:
	ldr	x20, [x20, _pv_entry_max@GOTPAGEOFF]
	str	w1, [x20]
	ldr	x0, [x19]
	bl	_uma_zone_reserve_kva
	ldrsw	x8, [x20]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	add	w8, w8, w8, lsl #3
Lloh37:
	adrp	x9, _pv_entry_high_water@GOTPAGE
Lloh38:
	ldr	x9, [x9, _pv_entry_high_water@GOTPAGEOFF]
Lloh39:
	str	w8, [x9]
Lloh40:
	adrp	x0, l_.str.3@PAGE
Lloh41:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	mov	x1, x0
	mov	w0, #1
	bl	_PDEBUG
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotStr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PMAP_SHPGPERPROC,4,2           ; @PMAP_SHPGPERPROC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"L2 Table"

	.comm	_L2_TABLE_SIZE_REAL,4,2         ; @L2_TABLE_SIZE_REAL
	.comm	_pmap_l2ptp_ctor,8,3            ; @pmap_l2ptp_ctor
	.comm	_UMA_ALIGN_PTR,4,2              ; @UMA_ALIGN_PTR
	.comm	_UMA_ZONE_VM,4,2                ; @UMA_ZONE_VM
	.comm	_UMA_ZONE_NOFREE,4,2            ; @UMA_ZONE_NOFREE
	.comm	_l2zone,8,3                     ; @l2zone
	.comm	_l2table_zone,8,3               ; @l2table_zone
l_.str.1:                               ; @.str.1
	.asciz	"PV ENTRY"

	.comm	_pvzone,8,3                     ; @pvzone
l_.str.2:                               ; @.str.2
	.asciz	"vm.pmap.shpgperproc"

	.comm	_maxproc,4,2                    ; @maxproc
	.comm	_vm_cnt,4,2                     ; @vm_cnt
	.comm	_pv_entry_max,4,2               ; @pv_entry_max
	.comm	_pv_entry_high_water,4,2        ; @pv_entry_high_water
l_.str.3:                               ; @.str.3
	.asciz	"pmap_init: done!\n"

.subsections_via_symbols
