	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_pt2pg_init
_pmap_pt2pg_init:                       ## @pmap_pt2pg_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_pt_memattr@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_pmap_page_set_memattr
LBB0_2:
	movq	%rbx, %rdi
	callq	_pmap_pt2pg_zero
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_pt2_wirecount_init
	movq	_kernel_pmap@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	%r15d, %edi
	callq	_PTE2_KPT
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_pmap_kenter_pt2tab
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_pmap_pt2tab_entry
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_PTE2_KPT_NG
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pt2tab_store
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pt_memattr,8,3                 ## @pt_memattr
	.comm	_kernel_pmap,8,3                ## @kernel_pmap
	.no_dead_strip	_pmap_pt2pg_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_pt2pg_init
_pmap_pt2pg_init:                       ; @pmap_pt2pg_init
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x2]
Lloh0:
	adrp	x9, _pt_memattr@GOTPAGE
Lloh1:
	ldr	x9, [x9, _pt_memattr@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x9]
	cmp	x8, x1
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_pmap_page_set_memattr
LBB0_2:
	mov	x0, x22
	bl	_pmap_pt2pg_zero
	mov	x20, x0
	mov	x0, x22
	bl	_pt2_wirecount_init
Lloh3:
	adrp	x8, _kernel_pmap@GOTPAGE
Lloh4:
	ldr	x8, [x8, _kernel_pmap@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_PTE2_KPT
	mov	x1, x0
	mov	x0, x19
	bl	_pmap_kenter_pt2tab
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	mov	x1, x19
	bl	_pmap_pt2tab_entry
	mov	x19, x0
	mov	x0, x20
	bl	_PTE2_KPT_NG
	mov	x1, x0
	mov	x0, x19
	bl	_pt2tab_store
LBB0_5:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_pt_memattr,8,3                 ; @pt_memattr
	.comm	_kernel_pmap,8,3                ; @kernel_pmap
	.no_dead_strip	_pmap_pt2pg_init
.subsections_via_symbols
